From dfb46e54ecf9174cc50c52b3357f6ac9168618c0 Mon Sep 17 00:00:00 2001 From: Evan Welsh <2943271+rockon999@users.noreply.github.com> Date: Tue, 9 Jun 2020 13:59:34 -0500 Subject: [PATCH 1/6] Revamping DPT... - Wallpaper-based panel - Much, much faster - Strips out overly complex/hard-to-maintain settings - Add "wallpaper tester" app to test wallpaper statistics --- .gitignore | 1 + .../__init__.js | 12 - .../background.js | 58 + .../color_util.js | 220 + .../compat.js | 12 +- .../convenience.js | 19 +- .../events.js | 447 +- .../extension.js | 764 +- .../gi/atk.d.ts | 1480 ++ .../gi/cairo.d.ts | 275 + .../gi/gdk.d.ts | 6664 ++++++ .../gi/gdkpixbuf.d.ts | 278 + .../gi/gio.d.ts | 6132 ++++++ .../gi/glib.d.ts | 3578 ++++ .../gi/gobject.d.ts | 1351 ++ .../gi/gtk.d.ts | 17117 ++++++++++++++++ .../gi/pango.d.ts | 1257 ++ .../gi/xlib.d.ts | 67 + .../intellifade.js | 403 +- .../metadata.json | 9 +- .../prefs.js | 398 + .../prefs.js/preferences/appChooser.js | 254 - .../prefs.js/preferences/appRow.js | 161 - .../prefs.js/preferences/main.js | 866 - .../prefs.js/preferences/tweaks.js | 39 - .../prefs.js/ui/app-prefs.ui | 226 - .../{prefs.js/ui => }/prefs.ui | 540 +- .../schemas/gschemas.compiled | Bin 2552 -> 2608 bytes ...ons.dynamic-panel-transparency.gschema.xml | 5 + .../settings.js | 619 +- .../stylesheet.css | 3 +- .../theme.css | 88 + .../theme.scss | 183 + .../theming.js | 1064 +- .../transitions.js | 322 +- .../types/extension.d.ts | 35 + .../types/global.d.ts | 19 + .../types/imports.d.ts | 16 + .../util.js | 43 +- wallpaper_tester.js | 264 + 40 files changed, 40950 insertions(+), 4339 deletions(-) delete mode 100644 dynamic-panel-transparency@rockon999.github.io/__init__.js create mode 100644 dynamic-panel-transparency@rockon999.github.io/background.js create mode 100644 dynamic-panel-transparency@rockon999.github.io/color_util.js create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/atk.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/cairo.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/gdk.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/gdkpixbuf.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/gio.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/glib.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/gobject.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/gtk.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/pango.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/gi/xlib.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/prefs.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appChooser.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appRow.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/main.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/tweaks.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/prefs.js/ui/app-prefs.ui rename dynamic-panel-transparency@rockon999.github.io/{prefs.js/ui => }/prefs.ui (67%) create mode 100644 dynamic-panel-transparency@rockon999.github.io/theme.css create mode 100644 dynamic-panel-transparency@rockon999.github.io/theme.scss create mode 100644 dynamic-panel-transparency@rockon999.github.io/types/extension.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/types/global.d.ts create mode 100644 dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts create mode 100644 wallpaper_tester.js diff --git a/.gitignore b/.gitignore index 1c34efd..480d63b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ styles/ .vscode/ .buildconfig *.json +~tsconfig.json *~ *.dpt.css .goutputstream* diff --git a/dynamic-panel-transparency@rockon999.github.io/__init__.js b/dynamic-panel-transparency@rockon999.github.io/__init__.js deleted file mode 100644 index d219b47..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/__init__.js +++ /dev/null @@ -1,12 +0,0 @@ -/* exported prefs */ - -/* Get the extension path. */ -const _dpt_prefs_path = imports.misc.extensionUtils.getCurrentExtension()['path'] + '/prefs.js/'; - -/* Add the prefs.js files to the searchPath */ -if (imports.searchPath.indexOf(_dpt_prefs_path) === -1) { - imports.searchPath.unshift(_dpt_prefs_path); -} - -/* Define prefs so that imports can find it. */ -var prefs = imports.preferences.main; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/background.js b/dynamic-panel-transparency@rockon999.github.io/background.js new file mode 100644 index 0000000..3ed3936 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/background.js @@ -0,0 +1,58 @@ +const Me = imports.misc.extensionUtils.getCurrentExtension(); + +const ColorUtil = Me.imports.color_util; + +const LUMINANCE_DARK_THRESHOLD = 60; +const LUMINANCE_BRIGHT_THRESHOLD = 140; +const LUMINANCE_STD_NOISY_THRESHOLD = 28; +const ACUTANCE_NOISY_THRESHOLD = 8; +const ACUTANCE_STD_NOISY_THRESHOLD = 6; + +/** + * @param {number} x + * @param {number} y + * @param {number} width + * @param {number} height + * @param {any} returnRawValues + */ +function getCharacteristicsForArea(x, y, width, height, returnRawValues) { + let background = this._backgroundSource.getBackground(this._monitorIndex); + let metaBackground = background.background; + + let areaIsNoisy, areaIsDark, areaIsBright; + + areaIsNoisy = false; + areaIsDark = false; + areaIsBright = false; + + // Always return false for animated backgrounds, we don't want to + // do those calculations on every animation frame. + if (background.isAnimated()) + return [false]; + + let { mean_luminance, luminance_variance, mean_acutance, acutance_variance } = + ColorUtil.get_background_color_information(metaBackground, x, y, width, height); + + let luminanceStd = Math.sqrt(luminance_variance); + let acutanceStd = Math.sqrt(acutance_variance); + + if (mean_luminance < LUMINANCE_DARK_THRESHOLD) + areaIsDark = true; + else if (mean_luminance > LUMINANCE_BRIGHT_THRESHOLD) + areaIsBright = true; + + if (mean_acutance > ACUTANCE_NOISY_THRESHOLD || + (mean_acutance * 4 > ACUTANCE_NOISY_THRESHOLD && + acutanceStd > ACUTANCE_STD_NOISY_THRESHOLD) || + luminanceStd > LUMINANCE_STD_NOISY_THRESHOLD || + (areaIsDark && + mean_luminance + luminanceStd > LUMINANCE_BRIGHT_THRESHOLD) || + (areaIsBright && + mean_luminance - luminanceStd < LUMINANCE_DARK_THRESHOLD)) + areaIsNoisy = true; + + if (returnRawValues) + return [true, areaIsNoisy, areaIsDark, areaIsBright, mean_luminance, luminanceStd, mean_acutance, acutanceStd]; + else + return [true, areaIsNoisy, areaIsDark, areaIsBright]; +} \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/color_util.js b/dynamic-panel-transparency@rockon999.github.io/color_util.js new file mode 100644 index 0000000..b508b06 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/color_util.js @@ -0,0 +1,220 @@ +/** @type {Module} */ +var module = {}; + +const SATURATION_WEIGHT = 1.5; +const WEIGHT_THRESHOLD = 1.0; + +const { GdkPixbuf } = imports.gi; + +let id = -1; + +/** + * @param {number} [monitorIndex] + * @param {(info: { mean_luminance: number; luminance_variance: number; mean_acutance: number; acutance_variance: number; }) => void} infoCallback + */ +function getBackgroundColorInfo(monitorIndex = 0, infoCallback) { + log('getting info...'); + const cache = imports.ui.background.getBackgroundCache(); + const source = cache.getBackgroundSource(imports.ui.main.layoutManager, imports.ui.background.BACKGROUND_SCHEMA); + + let background = source.getBackground(monitorIndex); + + if (id > -1) { + background.disconnect(id); + } + + function analyze() { + log('analyzing...'); + const file = background._file; + + if (file) { + log(`file: ${file.get_path()}`) + let background = GdkPixbuf.Pixbuf.new_from_file(file.get_path()); + log('loaded image'); + let monitor = imports.ui.main.layoutManager.monitors[monitorIndex]; + log(`area: ${30} x ${monitor.width}`); + infoCallback(get_background_color_information(background, 0, 0, 30, monitor.width)); + } else { + log(file); + + infoCallback(null); + } + } + + function handler() { + log('changed!'); + if (id > -1) { + background.disconnect(id); + } + + background = source.getBackground(monitorIndex); + + id = background.connect('bg-changed', handler); + + analyze(); + + } + + id = background.connect('bg-changed', handler); + + log('backgrounded:') + log(`${Object.keys(background)}`); + analyze(); +} + +/** + * @param {*} source + * @param {number} reference_x + * @param {number} reference_y + * @param {number} reference_height + * @param {number} reference_width + */ +function get_background_color_information(source, reference_x, reference_y, reference_height, reference_width) { + let bg_actor_width = Math.floor(source.get_width()); + let bg_actor_height = Math.floor(source.get_height()); + + // A commit in mutter added some padding to offscreen textures, so we + // need to avoid looking at the edges of the texture as it often has a + // black border. The commit specifies that up to 1.75px around each side + // could now be padding, so cut off 2px from left and top if necessary + // (https://gitlab.gnome.org/GNOME/mutter/commit/8655bc5d8de6a969e0ca83eff8e450f62d28fbee) + let x_start = reference_x; + if (x_start < 2) { + x_start = 2; + } + + let y_start = reference_y; + if (y_start < 2) { + y_start = 2; + } + + // For the same reason as above, we need to not use the bottom and right + // 2px of the texture. However, if the caller has specified an area of + // interest that already misses these parts, use that instead, otherwise + // chop 2px + + const width = Math.min(bg_actor_width - 2 - reference_x, reference_width); + const height = Math.min(bg_actor_height - 2 - reference_y, reference_height); + + if (x_start > bg_actor_width || y_start > bg_actor_height || width <= 0 || height <= 0) { + throw new Error(`Invalid rectangle specified: ${x_start}, ${y_start}, ${width}, ${height}`); + } + + let mean_acutance = 0, mean_luminance = 0, r_total = 0, g_total = 0, b_total = 0; + + let pixel_lums = new Float64Array((x_start + width + 1) * (y_start + height + 1)); + + let pixels = source.get_pixels(); + + log('got pixels!'); + const size = width * height; + + let mean_squares = 0; + let pixel = 0; + + let max, min, score, delta, score_total = 0, r_total2 = 0, g_total2 = 0, b_total2 = 0; + + /* + * code to calculate weighted average color is copied from + * plank's lib/Drawing/DrawingService.vala average_color() + * http://bazaar.launchpad.net/~docky-core/plank/trunk/view/head:/lib/Drawing/DrawingService.vala + */ + for (let y = y_start; y < (y_start + height); y++) { + for (let x = x_start; x < (x_start + width); x++) { + const i = (y * width * 4) + (x * 4); + + let b = pixels[i]; + let g = pixels[i + 1]; + let r = pixels[i + 2]; + + pixel = (0.3 * r + 0.59 * g + 0.11 * b); + + pixel_lums[y * width + x] = pixel; + + min = Math.min(r, Math.min(g, b)); + max = Math.max(r, Math.max(g, b)); + + delta = max - min; + + /* prefer colored pixels over shades of grey */ + score = SATURATION_WEIGHT * (delta == 0 ? 0.0 : delta / max); + + r_total += score * r; + g_total += score * g; + b_total += score * b; + score_total += score; + + r_total += r; + g_total += g; + b_total += b; + + mean_luminance += pixel; + mean_squares += pixel * pixel; + } + } + + for (let y = y_start + 1; y < (y_start + height) - 1; y++) { + for (let x = x_start + 1; x < (x_start + width) - 1; x++) { + let acutance = + (pixel_lums[y * width + x] * 4) - + ( + pixel_lums[y * width + x - 1] + + pixel_lums[y * width + x + 1] + + pixel_lums[(y - 1) * width + x] + + pixel_lums[(y + 1) * width + x] + ); + + mean_acutance += acutance > 0 ? acutance : -acutance; + } + } + + score_total /= size; + b_total /= size; + g_total /= size; + r_total /= size; + + if (score_total > 0.0) { + b_total /= score_total; + g_total /= score_total; + r_total /= score_total; + } + + b_total2 /= size * 255; + g_total2 /= size * 255; + r_total2 /= size * 255; + + /* + * combine weighted and not weighted sum depending on the average "saturation" + * if saturation isn't reasonable enough + * s = 0.0 -> f = 0.0 ; s = WEIGHT_THRESHOLD -> f = 1.0 + */ + if (score_total <= WEIGHT_THRESHOLD) { + let f = 1.0 / WEIGHT_THRESHOLD * score_total; + let rf = 1.0 - f; + + b_total = b_total * f + b_total2 * rf; + g_total = g_total * f + g_total2 * rf; + r_total = r_total * f + r_total2 * rf; + } + + /* there shouldn't be values larger then 1.0 */ + let max_val = Math.max(r_total, Math.max(g_total, b_total)); + + if (max_val > 1.0) { + b_total /= max_val; + g_total /= max_val; + r_total /= max_val; + } + + mean_luminance /= size; + mean_squares = mean_squares / size; + + let luminance_variance = (mean_squares - (mean_luminance * mean_luminance)); + let acutance_variance = mean_squares - (mean_acutance * mean_acutance); + + mean_acutance /= (width - 2) * (height - 2); + log('calculated') + return { mean_luminance, luminance_variance, mean_acutance, acutance_variance }; +} + +module.exports = { getBackgroundColorInfo, get_background_color_information }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/compat.js b/dynamic-panel-transparency@rockon999.github.io/compat.js index d4fc0b3..0dbcd3c 100644 --- a/dynamic-panel-transparency@rockon999.github.io/compat.js +++ b/dynamic-panel-transparency@rockon999.github.io/compat.js @@ -1,9 +1,17 @@ +/** @type {Module} */ +var module = { }; + const St = imports.gi.St; +/** + * @param {object} obj + */ function getActorOf(obj) { if (obj instanceof St.Widget) { return obj; } - return obj.actor; -} \ No newline at end of file + return /** @type {any} */ (obj).actor; +} + +module.exports = { getActorOf }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/convenience.js b/dynamic-panel-transparency@rockon999.github.io/convenience.js index 24b851b..eda79ca 100644 --- a/dynamic-panel-transparency@rockon999.github.io/convenience.js +++ b/dynamic-panel-transparency@rockon999.github.io/convenience.js @@ -1,4 +1,5 @@ -/* exported initTranslations, getSettings, getSchemaObj */ +/** @type {Module} */ +const module = {}; /* Copyright (c) 2011-2012, Giovanni Campagna @@ -35,7 +36,7 @@ const ExtensionUtils = imports.misc.extensionUtils; /** * initTranslations: - * @domain: (optional): the gettext domain to use + * @param {string} [domain] the gettext domain to use * * Initialize Gettext to load translations from extensionsdir/locale. * If @domain is not provided, it will be taken from metadata['gettext-domain'] @@ -46,7 +47,7 @@ function initTranslations(domain) { domain = domain || extension.metadata['gettext-domain']; // check if this extension was built with "make zip-file", and thus - // has the locale files in a subfolder + // has the locale files in a sub-folder // otherwise assume that extension has been installed in the // same prefix as gnome-shell let localeDir = extension.dir.get_child('locale'); @@ -60,7 +61,7 @@ function initTranslations(domain) { /** * getSettings: - * @schema: (optional): the GSettings schema id + * @param {string} [schema] the GSettings schema id * * Builds and return a GSettings schema for @schema, using schema files * in extensionsdir/schemas. If @schema is not provided, it is taken from @@ -73,11 +74,11 @@ function getSettings(schema) { } /** - * Seperated from getSettings to allow for custom paths. + * Separated from getSettings to allow for custom paths. * * @param {string} schema - the GSettings schema id (default from extension.metadata) * - * @returns {Object} A GSettingsSchema found based on the given schema path. + * @returns {import("gio").SettingsSchema} A GSettingsSchema found based on the given schema path. */ function getSchemaObj(schema, defaultSource = false) { let extension = ExtensionUtils.getCurrentExtension(); @@ -87,7 +88,7 @@ function getSchemaObj(schema, defaultSource = false) { const GioSSS = Gio.SettingsSchemaSource; // check if this extension was built with "make zip-file", and thus - // has the schema files in a subfolder + // has the schema files in a sub-folder // otherwise assume that extension has been installed in the // same prefix as gnome-shell (and therefore schemas are available // in the standard folders) @@ -107,4 +108,6 @@ function getSchemaObj(schema, defaultSource = false) { } return schemaObj; -} \ No newline at end of file +} + +module.exports = { initTranslations, getSettings, getSchemaObj }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/events.js b/dynamic-panel-transparency@rockon999.github.io/events.js index f7abc35..16f0ddf 100644 --- a/dynamic-panel-transparency@rockon999.github.io/events.js +++ b/dynamic-panel-transparency@rockon999.github.io/events.js @@ -1,7 +1,5 @@ -/* exported init, cleanup, get_current_maximized_window */ - -const Mainloop = imports.mainloop; -const Lang = imports.lang; +/** @type {Module} */ +const module = {}; const GLib = imports.gi.GLib; const Gio = imports.gi.Gio; @@ -11,306 +9,291 @@ const Main = imports.ui.main; const Me = imports.misc.extensionUtils.getCurrentExtension(); -const Compat = Me.imports.compat; const Convenience = Me.imports.convenience; const Extension = Me.imports.extension; -const Intellifade = Me.imports.intellifade; const Settings = Me.imports.settings; -const Util = Me.imports.util; - -const Theming = Me.imports.theming; -const Transitions = Me.imports.transitions; const USER_THEME_SCHEMA = 'org.gnome.shell.extensions.user-theme'; +/** @typedef {typeof Extension.DynamicPanel.prototype} DynamicPanel */ + /** - * Signal Connections - * js/ui/overview.js/hidden: occurs after the overview is hidden - * js/ui/overview.js/shown: occurs after the overview is open - * MetaScreen/restacked: occurs when the window Z-ordering changes - * org/gnome/shell/extensions/user-theme/changed::name: occurs when the user's theme changes - * window_group/actor-added: occurs when a window actor is added - * window_group/actor-removed: occurs when a window actor is removed - * wm/switch-workspace: occurs after a workspace is switched + * @param {DynamicPanel[]} panels */ +function forceSyncCheck(panels) { + panels.forEach(panel => panel.intellifader.forceSyncCheck()); +} /** - * Intialize. - * + * @param {DynamicPanel[]} panels */ -function init() { - this.windows = []; +function syncCheck(panels) { + panels.forEach(panel => panel.intellifader.syncCheck()); +} - this._wm_tracker = Shell.WindowTracker.get_default(); +/** + * @param {DynamicPanel[]} panels + */ +function asyncCheck(panels) { + panels.forEach(panel => panel.intellifader.asyncCheck()); +} - this._overviewHidingSig = Main.overview.connect('hiding', Util.strip_args(Intellifade.syncCheck).bind(this)); - if (Settings.transition_with_overview()) { - this._overviewShownSig = Main.overview.connect('showing', _overviewShown.bind(this)); - } else { - this._overviewShownSig = Main.overview.connect('shown', _overviewShown.bind(this)); - } +var EventManager = class EventManager { - let windows = global.get_window_actors(); + /** + * Initialize. + * @param {any[]} panels + */ + constructor(panels) { + this.panels = panels; - for (let window_actor of windows) { - /* Simulate window creation event, null container because _windowActorAdded doesn't utilize containers */ - _windowActorAdded(null, window_actor, false); - } + const settings = Settings.get(); - this._workspaceSwitchSig = global.window_manager.connect_after('switch-workspace', _workspaceSwitched.bind(this)); + this._wm_tracker = Shell.WindowTracker.get_default(); - const screen = global.screen || global.display; + this._overviewHidingSig = Main.overview.connect('hiding', this._overviewHiding.bind(this)); - if (screen) { - this._windowRestackedSig = screen.connect_after('restacked', _windowRestacked.bind(this)); - } else { - log('[Dynamic Panel Transparency] Error could not register \'restacked\' event.'); - } + if (settings.transitionWithOverview()) { + this._overviewShownSig = Main.overview.connect('showing', this._overviewShown.bind(this)); + } else { + this._overviewShownSig = Main.overview.connect('shown', this._overviewShown.bind(this)); + } - this._windowActorAddedSig = global.window_group.connect('actor-added', _windowActorAdded.bind(this)); - this._windowActorRemovedSig = global.window_group.connect('actor-removed', _windowActorRemoved.bind(this)); + const windows = global.get_window_actors(); - this._appFocusedSig = this._wm_tracker.connect_after('notify::focus-app', _windowRestacked.bind(this)); + for (const window_actor of windows) { + /* Simulate window creation event, null container because _windowActorAdded doesn't utilize containers */ + this._windowActorAdded(null, window_actor, false); + } - this._theme_settings = null; - this._userThemeChangedSig = null; + this._workspaceSwitchSig = global.window_manager.connect_after('switch-workspace', this._workspaceSwitched.bind(this)); - try { - let schemaObj = Convenience.getSchemaObj(USER_THEME_SCHEMA, true); + const screen = global.screen || global.display; - if (schemaObj) { - this._theme_settings = new Gio.Settings({ - settings_schema: schemaObj - }); + if (screen) { + this._windowRestackedSig = screen.connect_after('restacked', this._windowRestacked.bind(this)); + } else { + log('[Dynamic Panel Transparency] Error could not register \'restacked\' event.'); } - } catch (error) { - log('[Dynamic Panel Transparency] Failed to find shell theme settings. Ignore this if you are not using a custom theme.'); - } - if (this._theme_settings) { - this._userThemeChangedSig = this._theme_settings.connect_after('changed::name', _userThemeChanged.bind(this)); - } -} + this._windowActorAddedSig = global.window_group.connect('actor-added', this._windowActorAdded.bind(this)); + this._windowActorRemovedSig = global.window_group.connect('actor-removed', this._windowActorRemoved.bind(this)); + + this._appFocusedSig = this._wm_tracker.connect_after('notify::focus-app', this._windowRestacked.bind(this)); + + this._theme_settings = null; + this._userThemeChangedSig = null; -function disconnect(obj, sig) { - try { - if (sig != null && obj) { - obj.disconnect(sig); + try { + let schemaObj = Convenience.getSchemaObj(USER_THEME_SCHEMA, true); + + if (schemaObj) { + this._theme_settings = new Gio.Settings({ + settings_schema: schemaObj + }); + } + } catch (error) { + log('[Dynamic Panel Transparency] Failed to find shell theme settings. Ignore this if you are not using a custom theme.'); } - } catch (error) { - log('[Dynamic Panel Transparency] Failed to disconnect signal: ' + error); + + if (this._theme_settings) { + this._userThemeChangedSig = this._theme_settings.connect_after('changed::name', this._userThemeChanged.bind(this)); + }; + this._windowUnminimizeSig = undefined; } -} -/** - * Don't want to hold onto anything that isn't ours. - * - */ -function cleanup() { - /* Disconnect Signals */ - if (this._windowUnminimizeSig) { - disconnect(global.window_manager, this._windowUnminimizeSig); + /** + * @param {import('gobject').Object} obj + * @param {number} sig + */ + disconnect(obj, sig) { + try { + if (sig != null && obj) { + obj.disconnect(sig); + } + } catch (error) { + log('[Dynamic Panel Transparency] Failed to disconnect signal: ' + error); + } } - disconnect(Main.overview, this._overviewShownSig); - disconnect(Main.overview, this._overviewHidingSig); + /** + * Don't want to hold onto anything that isn't ours. + * @returns {void} + */ + cleanup() { + /* Disconnect Signals */ + if (this._windowUnminimizeSig) { + this.disconnect(global.window_manager, this._windowUnminimizeSig); + } - disconnect(global.window_manager, this._workspaceSwitchSig); + this.disconnect(Main.overview, this._overviewShownSig); + this.disconnect(Main.overview, this._overviewHidingSig); - disconnect(global.window_group, this._windowActorAddedSig); - disconnect(global.window_group, this._windowActorRemovedSig); + this.disconnect(global.window_manager, this._workspaceSwitchSig); - const screen = global.screen || global.display; + this.disconnect(global.window_group, this._windowActorAddedSig); + this.disconnect(global.window_group, this._windowActorRemovedSig); - if (screen) { - disconnect(screen, this._windowRestackedSig); - } else { - log('[Dynamic Panel Transparency] Error could not disconnect \'restacked\' event.'); - } + const screen = global.screen || global.display; - disconnect(this._wm_tracker, this._appFocusedSig); + if (screen) { + this.disconnect(screen, this._windowRestackedSig); + } else { + log('[Dynamic Panel Transparency] Error could not disconnect \'restacked\' event.'); + } - if (this._theme_settings && this._userThemeChangedSig) { - disconnect(this._theme_settings, this._userThemeChangedSig); - } + this.disconnect(this._wm_tracker, this._appFocusedSig); - for (let window_actor of this.windows) { - if (!window_actor.is_destroyed()) { + if (this._theme_settings && this._userThemeChangedSig) { + this.disconnect(this._theme_settings, this._userThemeChangedSig); + } + + const windows = global.get_window_actors(); + + for (const window_actor of windows) { if (typeof (window_actor._dpt_signals) !== 'undefined') { for (let signalId of window_actor._dpt_signals) { - disconnect(window_actor, signalId); + this.disconnect(window_actor, signalId); } } + + delete window_actor._dpt_signals; + delete window_actor._dpt_tracking; } - delete window_actor._dpt_signals; - delete window_actor._dpt_tracking; - } + /* Cleanup Signals */ + this._windowRestackedSig = null; + this._overviewShownSig = null; + this._overviewHidingSig = null; + this._windowActorRemovedSig = null; + this._workspaceSwitchSig = null; + this._userThemeChangedSig = null; + this._windowActorAddedSig = null; - /* Cleanup Signals */ - this._windowRestackedSig = null; - this._overviewShownSig = null; - this._overviewHidingSig = null; - this._windowActorRemovedSig = null; - this._workspaceSwitchSig = null; - this._userThemeChangedSig = null; - this._windowActorAddedSig = null; + this._theme_settings = null; - this._theme_settings = null; + this._wm_tracker = null; + } - this._wm_tracker = null; + /* Event Handlers */ - this.windows = null; -} + /** + * Called whenever the overview is shown. + * + */ + _overviewShown() { + this.panels.forEach(panel => { + if (!panel.transitions.is_blank()) { + panel.transitions.blank_fade_out(); + } -/* Event Handlers */ + const settings = Settings.get(); -/** - * Called whenever the overview is shown. - * - */ -function _overviewShown() { - if (!Transitions.get_transparency_status().is_blank()) { - Transitions.blank_fade_out(); + if (settings.enableTextColor() && (settings.enableMaximizedTextColor() || settings.enableOverviewTextColor())) { + if (settings.enableOverviewTextColor()) { + panel.themer.remove_text_color(); + panel.themer.set_text_color('maximized'); + } else { + panel.themer.remove_text_color('maximized'); + panel.themer.set_text_color(); + } + } + }); } - if (Settings.get_enable_text_color() && (Settings.get_enable_maximized_text_color() || Settings.get_enable_overview_text_color())) { - if (Settings.get_enable_overview_text_color()) { - Theming.remove_text_color(); - Theming.set_text_color('maximized'); - } else { - Theming.remove_text_color('maximized'); - Theming.set_text_color(); - } + _overviewHiding() { + forceSyncCheck(this.panels); } -} -/** - * Called whenever a window actor is removed. - * - */ -function _windowActorRemoved(container, window_actor) { - if (typeof (window_actor._dpt_tracking) === 'undefined') { - return; - } + /** + * Called whenever a window actor is removed. + * @param {any} _container + * @param {any} window_actor + */ + _windowActorRemoved(_container, window_actor) { + if (typeof (window_actor._dpt_tracking) === 'undefined') { + return; + } - /* Remove our tracking variable. */ - delete window_actor._dpt_tracking; + /* Remove our tracking variable. */ + delete window_actor._dpt_tracking; - if (typeof (window_actor._dpt_signals) !== 'undefined') { - for (let signalId of window_actor._dpt_signals) { - window_actor.disconnect(signalId); + if (typeof (window_actor._dpt_signals) !== 'undefined') { + for (let signalId of window_actor._dpt_signals) { + window_actor.disconnect(signalId); + } } - } - delete window_actor._dpt_signals; + delete window_actor._dpt_signals; - let index = this.windows.indexOf(window_actor); - if (index !== -1) { - this.windows.splice(index, 1); + asyncCheck(this.panels); } - Intellifade.asyncCheck(); -} + /** + * Called whenever the User Theme extension updates the current theme. + * + */ -/** - * Called whenever the User Theme extension updates the current theme. - * - */ + _userThemeChanged() { + log('[Dynamic Panel Transparency] User theme changed.'); -function _userThemeChanged() { - log('[Dynamic Panel Transparency] User theme changed.'); - - /* Remove Our Styling */ - Extension.unmodify_panel(); - Theming.cleanup(); - Theming.init(); + // todo + Extension.disable(); + Extension.enable(); + } - /* Hopefully every computer is fast enough to apply a theme in three seconds. */ - const id = this.theme_detection_id = Mainloop.timeout_add(3000, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.theme_detection_id) { - return false; + /** + * Called whenever a window is created in the shell. + * @param {any} _window_group + * @param {any} window_actor + */ + _windowActorAdded(_window_group, window_actor, force = true) { + if (window_actor && (force || typeof (window_actor._dpt_tracking) === 'undefined')) { + window_actor._dpt_tracking = true; + const ac_wId = window_actor.connect('allocation-changed', (function() { + asyncCheck(this.panels); + }).bind(this)); + const v_wId = window_actor.connect('notify::visible', (function() { + asyncCheck(this.panels); + }).bind(this)); + window_actor._dpt_signals = [ac_wId, v_wId]; + + asyncCheck(this.panels); } + } - log('[Dynamic Panel Transparency] Updating user theme data.'); - - let theme = Compat.getActorOf(Main.panel).get_theme_node(); - - /* Store user theme values. */ - let background = null; - - let image_background = Theming.get_background_image_color(theme); - let theme_background = theme.get_background_color(); - - if (image_background !== null) { - background = image_background; - } else { - background = theme_background; + /** + * SPECIAL_CASE: Only update if we're using per-app settings or is desktop icons are enabled. + * + */ + _windowRestacked() { + const settings = Settings.get(); + /* Don't allow restacks while the overview is transitioning. */ + if (!Main.overview.visible) { + /* Detect if desktop icons are enabled. */ + if (settings.gs_show_desktop()) { + asyncCheck(this.panels); + } } - - Theming.set_theme_background_color(Util.clutter_to_native_color(background)); - Theming.set_theme_opacity(background.alpha); - - let theme_name = this._theme_settings.get_string('name'); - theme_name = theme_name === '' ? 'Adwaita' : theme_name; - Settings._settings.set_string('current-user-theme', theme_name); - Settings._settings.set_boolean('force-theme-update', true); - Settings._settings.set_value('panel-theme-color', new GLib.Variant('(iii)', [background.red, background.green, background.blue])); - Settings._settings.set_value('theme-opacity', new GLib.Variant('i', background.alpha)); - - log('[Dynamic Panel Transparency] Detected user theme style: rgba(' + background.red + ', ' + background.green + ', ' + background.blue + ', ' + background.alpha + ')'); - log('[Dynamic Panel Transparency] Using theme data for: ' + Settings.get_current_user_theme()); - - Extension.modify_panel(); - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); -} - -/** - * Called whenever a window is created in the shell. - * - */ -function _windowActorAdded(window_group, window_actor, force = true) { - if (window_actor && (force || typeof (window_actor._dpt_tracking) === 'undefined')) { - window_actor._dpt_tracking = true; - const ac_wId = window_actor.connect('allocation-changed', (function() { - Intellifade.asyncCheck(); - }).bind(this)); - const v_wId = window_actor.connect('notify::visible', (function() { - Intellifade.asyncCheck(); - }).bind(this)); - window_actor._dpt_signals = [ac_wId, v_wId]; - this.windows.push(window_actor); - - Intellifade.asyncCheck(); } -} -/** - * SPECIAL_CASE: Only update if we're using per-app settings or is desktop icons are enabled. - * - */ -function _windowRestacked() { - /* Don't allow restacks while the overview is transitioning. */ - if (!Main.overview.visible) { + /** + * SPECIAL_CASE: Update logic requires the workspace that we'll be switching to. + * @param {any} _wm + * @param {any} _from + * @param {any} _to + * @param {any} _direction + */ + _workspaceSwitched(_wm, _from, _to, _direction) { + const settings = Settings.get(); + /* Detect if desktop icons are enabled. */ - if (Settings.gs_show_desktop() || Settings.check_overrides() || Settings.check_triggers()) { - Intellifade.asyncCheck(); + if (!settings.gs_show_desktop()) { + syncCheck(this.panels); } } + } -/** - * SPECIAL_CASE: Update logic requires the workspace that we'll be switching to. - * - */ -function _workspaceSwitched(wm, from, to, direction) { - /* Detect if desktop icons are enabled. */ - if (!Settings.gs_show_desktop() && !Settings.check_overrides() && !Settings.check_triggers()) { - Intellifade.syncCheck(); - } -} \ No newline at end of file +module.exports = { EventManager }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/extension.js b/dynamic-panel-transparency@rockon999.github.io/extension.js index 64ccbd8..50db193 100644 --- a/dynamic-panel-transparency@rockon999.github.io/extension.js +++ b/dynamic-panel-transparency@rockon999.github.io/extension.js @@ -1,745 +1,149 @@ -/* exported init, enable, disable */ +/** @type {Module} */ +const module = {}; -const Lang = imports.lang; const Mainloop = imports.mainloop; -const GLib = imports.gi.GLib; -const Gio = imports.gi.Gio; -const St = imports.gi.St; - -const ExtensionSystem = imports.ui.extensionSystem; -const Main = imports.ui.main; +const { main: Main } = imports.ui; const Me = imports.misc.extensionUtils.getCurrentExtension(); -const Compat = Me.imports.compat; -const Convenience = Me.imports.convenience; -const Events = Me.imports.events; -const Intellifade = Me.imports.intellifade; -const Settings = Me.imports.settings; -const Util = Me.imports.util; - -const Theming = Me.imports.theming; -const Transitions = Me.imports.transitions; - -const SETTINGS_DELAY = 3000; - -const USER_THEME_SCHEMA = 'org.gnome.shell.extensions.user-theme'; +const { + compat: Compat, + events: { EventManager }, + intellifade: { Intellifader }, + settings: Settings, + theming: { Themer, load_panel_theme }, + transitions: { TransitionManager } +} = Me.imports; + +/** @type {DynamicPanel[]} */ +let panels = []; + +class DynamicPanel { + /** + * @param {any} panelActor + */ + constructor(panelActor) { + this.actor = panelActor; + + /* Initialize Utilities */ + this.themer = new Themer(this); + this.transitions = new TransitionManager(this.themer); + this.intellifader = new Intellifader(this.transitions, this.themer); + } -/* Only way to prevent multiple runs apparently. Hacky-ness. */ -let modified = false; + get panel() { + return this.actor; + } -/* User theme extension settings... */ -let theme_settings = null; + cleanup() { + this.themer.cleanup(); + this.transitions.cleanup(); + this.intellifader.cleanup(); + } +} /* Initialize */ function init() { } function enable() { - /* Initialize Settings */ - initialize_settings(); - - /* Initialize Utilities */ - Transitions.init(); - Theming.init(); - Intellifade.init(); - - try { - let schemaObj = Convenience.getSchemaObj(USER_THEME_SCHEMA, true); + const panel = Main.panel; + const panelActor = Compat.getActorOf(panel); - if (schemaObj) { - theme_settings = new Gio.Settings({ - settings_schema: schemaObj - }); - } - } catch (error) { - log('[Dynamic Panel Transparency] Failed to find the user theme extension.'); - } - - if (!theme_settings) { - idle_enable(false); - } else { - /* Is our data current? */ - let theme_name = theme_settings.get_string('name'); - theme_name = theme_name === '' ? 'Adwaita' : theme_name; - - let current = Settings.get_current_user_theme(); + Settings.init(); - if (current !== theme_name || Settings.force_theme_update()) { - /* Wait for the theme extension to initialize and enable. */ - idle_enable(true, theme_settings); - } else { - /* Start the plugin. We have our data. */ - log('[Dynamic Panel Transparency] Using theme data for: ' + Settings._settings.get_string('current-user-theme')); + const dp = new DynamicPanel(panelActor); - let theme_color = Settings.get_panel_theme_color(); - let opacity = Settings.get_theme_opacity(); + panels.push(dp); - Theming.set_theme_background_color(theme_color); - Theming.set_theme_opacity(opacity); + load_panel_theme(); - /* Modify the panel. */ - modify_panel(); + panels.forEach(panel => { + /* Modify the panel. */ + Mainloop.idle_add((() => { + panel.themer.loadBackgroundInfo(); - /* Start the event loop. */ - Events.init(); + modify_panel(panel); /* Simulate window changes. */ - Intellifade.forceSyncCheck(); - } - } -} - -function idle_enable(update, theme_settings = null) { - /* Delay the extension so we can retreive the theme background color (why are user themes an extension?). */ - Mainloop.idle_add((function() { - let extension = imports.misc.extensionUtils.getCurrentExtension(); - - if (modified) { - log('[Dynamic Panel Transparency] Attempted to run modifications multiple times.'); - return false; - } - - if (!extension || (extension && typeof (extension.extensionState) !== 'undefined' && extension.extensionState === ExtensionSystem.ExtensionState.DISABLED)) { - log('[Dynamic Panel Transparency] Tried to modify the panel while disabled.'); + panel.intellifader.forceSyncCheck(); return false; - } - - modified = true; - - let background = null; - - if (update) { - log('[Dynamic Panel Transparency] Updating user theme data.'); - - let theme = Compat.getActorOf(Main.panel).get_theme_node(); - - let image_background = Theming.get_background_image_color(theme); - let theme_background = theme.get_background_color(); - - background = (image_background !== null ? image_background : theme_background); - - let theme_name = theme_settings.get_string('name'); - theme_name = theme_name === '' ? 'Adwaita' : theme_name; - - /* The Settings convenience object wasn't built to handle setting, so we use the internal object... */ - Settings._settings.set_string('current-user-theme', theme_name); - Settings._settings.set_value('panel-theme-color', new GLib.Variant('(iii)', [background.red, background.green, background.blue])); - Settings._settings.set_value('theme-opacity', new GLib.Variant('i', background.alpha)); - Settings._settings.set_value('force-theme-update', new GLib.Variant('b', false)); - log('[Dynamic Panel Transparency] Detected shell theme style: rgba(' + background.red + ', ' + background.green + ', ' + background.blue + ', ' + background.alpha + ')'); - } else { - let color = Settings.get_panel_theme_color(); - let opacity = Settings.get_theme_opacity(); - - background = { red: color.red, blue: color.blue, green: color.green, alpha: opacity }; - } - - log('[Dynamic Panel Transparency] Using theme data for: ' + Settings.get_current_user_theme()); - - Theming.set_theme_background_color(Util.clutter_to_native_color(background)); - Theming.set_theme_opacity(background.alpha); - - /* Modify the panel. */ - modify_panel(); - - /* Start the event loop. */ - Events.init(); - - /* Simulate window changes. */ - Intellifade.forceSyncCheck(); + })); + }); - return false; - }).bind(this)); + /* Start the event loop. */ + this.eventManager = new EventManager(panels); } function disable() { /* Do this first in case any of the upcoming methods fail. */ unmodify_panel(); + panels.forEach(panel => panel.cleanup()); + + panels = []; + try { /* Disconnect & Null Signals */ - Events.cleanup(); + this.eventManager.cleanup(); /* Cleanup Settings */ - Settings.unbind(); Settings.cleanup(); - - /* Cleanup Transitions */ - Transitions.cleanup(); - - /* Cleanup Theming */ - Theming.cleanup(); - - /* Cleanup Intellifade */ - Intellifade.cleanup(); } catch (error) { log('[DPT] Encountered an error cleaning up extension: ' + error); } - /* Shouldn't be an issue, but let's make sure it isn't. */ - modified = false; - return false; } -function modify_panel() { - /* Initial Coloring */ - - let theme_color = Theming.get_theme_background_color(); - - /* Update the corners. */ - - Theming.set_corner_color({ - red: theme_color.red, - green: theme_color.green, - blue: theme_color.blue - }); +/** + * @param {DynamicPanel} panel + */ +function modify_panel(panel) { + const Theming = panel.themer; /* Get Rid of the Panel's CSS Background */ Theming.initialize_background_styles(); - let text_shadow = Theming.register_text_shadow(Settings.get_text_shadow_color(), Settings.get_text_shadow_position()); - let icon_shadow = Theming.register_icon_shadow(Settings.get_icon_shadow_color(), Settings.get_icon_shadow_position()); + const settings = Settings.get(); /* Add Text Shadowing */ - if (Settings.add_text_shadow()) { - if (text_shadow !== null) { - Theming.add_text_shadow(); - } else { - log('[Dynamic Panel Transparency] Failed to enabled text shadowing.'); - } + if (settings.addTextShadow()) { + Theming.add_text_shadow(); } /* Add Icon Shadowing */ - if (Settings.add_icon_shadow()) { - if (icon_shadow !== null) { - Theming.add_icon_shadow(); - } else { - log('[Dynamic Panel Transparency] Failed to enabled icon shadowing.'); - } + if (settings.addIconShadow()) { + Theming.add_icon_shadow(); } - /* Register text color styling. */ - let [text, icon, arrow] = Theming.register_text_color(Settings.get_text_color()); // eslint-disable-line no-unused-vars - let [maximized_text, maximized_icon, maximized_arrow] = Theming.register_text_color(Settings.get_maximized_text_color(), 'maximized'); // eslint-disable-line no-unused-vars + Theming.set_text_color(); - if (Settings.get_enable_text_color()) { - if (text !== null) { - Theming.set_text_color(); - } else { - log('[Dynamic Panel Transparency] Failed to enabled text coloring.'); - } + if (settings.enableTextColor()) { + // TODO Set custom text color... } } function unmodify_panel() { + panels.forEach(panel => { + const Theming = panel.themer; - /* Remove corner styling */ - Theming.clear_corner_color(); - - /* Remove Our Styling */ - Theming.reapply_panel_styling(); - Theming.reapply_panel_background_image(); - - /* Remove shadowing */ - if (Theming.has_text_shadow()) { - Theming.remove_text_shadow(); - } - - if (Theming.has_icon_shadow()) { - Theming.remove_icon_shadow(); - } - - /* Remove text coloring */ - Theming.remove_text_color(); - - /* Remove maximized text coloring */ - Theming.remove_text_color('maximized'); -} - -// TODO: Merge handler code or hide it behind the backend. -function initialize_settings() { - /* Setup settings... */ - Settings.init(); + /* Remove Our Styling */ + Theming.reapply_panel_styling(); + Theming.reapply_panel_background_image(); - /* Register settings... */ - Settings.add({ - key: 'hide-corners', - name: 'hide_corners', - type: 'b', - handler: (function() { - Transitions.update_corner_alpha(); - }.bind(this)) - }); - Settings.add({ - key: 'transition-speed', - name: 'transition_speed', - type: 'i', - handler: ( - /* Update the backend24 transition CSS. */ - function() { - Compat.getActorOf(Main.panel).remove_style_class_name('dpt-panel-transition-duration'); - - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('transitions') !== -1 && stylesheet.endsWith('panel-transition-duration.dpt.css')) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - - const id = this.panel_transition_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.panel_transition_update_id) { - return false; - } - - /* Get Rid of the Panel's CSS Background */ - // TODO: Figure out why it takes applying wierd "fake" style classes to get the real ones working... - Theming.update_transition_css(); - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - }).bind(this) - }); - Settings.add({ - key: 'unmaximized-opacity', - name: 'unmaximized_opacity', - type: 'i', - getter: 'get_unmaximized_opacity', - handler: (function() { - const super_id = this.opacity_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { - if (super_id !== this.opacity_update_id) { - return false; - } - - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('background') !== -1 && stylesheet.indexOf('panel-') !== -1) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - - Theming.initialize_background_styles(); - - const id = this.panel_color_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.panel_color_update_id) { - return false; - } - - /* Get Rid of the Panel's CSS Background */ - // TODO: Figure out why it takes applying wierd "fake" style classes to get the real ones working... - - Theming.set_maximized_background_color((Math.random() * 100).toFixed(0)); - Theming.remove_background_color(); - Theming.set_unmaximized_background_color((Math.random() * 100).toFixed(0)); - Theming.remove_background_color(); - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - - return false; - }).bind(this)); - }).bind(this) - }); - Settings.add({ - key: 'maximized-opacity', - name: 'maximized_opacity', - type: 'i', - getter: 'get_maximized_opacity', - handler: (function() { - const super_id = this.opacity_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { - if (super_id !== this.opacity_update_id) { - return false; - } - - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('background') !== -1 && stylesheet.indexOf('panel-') !== -1) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - - Theming.initialize_background_styles(); - - const id = this.panel_color_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.panel_color_update_id) { - return false; - } - - /* Get Rid of the Panel's CSS Background */ - // TODO: Figure out why it takes applying wierd "fake" style classes to get the real ones working... - - Theming.set_maximized_background_color((Math.random() * 100).toFixed(0)); - Theming.remove_background_color(); - Theming.set_unmaximized_background_color((Math.random() * 100).toFixed(0)); - Theming.remove_background_color(); - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - - return false; - }).bind(this)); - }).bind(this) - }); - Settings.add({ - key: 'panel-color', - name: 'panel_color', - type: 'ai', - parser: Util.tuple_to_native_color, - handler: ( - /* Handler for 3.24+ */ - function() { - Theming.remove_background_color(); - - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('background') !== -1 && stylesheet.indexOf('panel.dpt.css') !== -1) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - Theming.register_background_color(Settings.get_panel_color()); - const id = this.panel_color_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.panel_color_update_id) { - return false; - } - - /* Get Rid of the Panel's CSS Background */ - // TODO: Figure out why it takes applying wierd "fake" style classes to get the real ones working... - - Theming.set_maximized_background_color((Math.random() * 100).toFixed(0)); - Theming.remove_background_color(); - Theming.set_unmaximized_background_color((Math.random() * 100).toFixed(0)); - Theming.remove_background_color(); - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - /* Legacy Handler */ - }).bind(this) - }); - Settings.add({ - key: 'panel-theme-color', - name: 'panel_theme_color', - type: '(iii)', - parser: Util.tuple_to_native_color - }); - Settings.add({ - key: 'theme-opacity', - name: 'theme_opacity', - type: 'i', - }); - Settings.add({ - key: 'force-theme-update', - name: 'force_theme_update', - type: 'b', - getter: 'force_theme_update' - }); - Settings.add({ - key: 'current-user-theme', - name: 'current_user_theme', - type: 's', - }); - Settings.add({ - key: 'trigger-apps', - name: 'trigger_apps', - type: 'as' - }); - Settings.add({ - key: 'trigger-windows', - name: 'trigger_windows', - type: 'as' - }); - Settings.add({ - key: 'text-shadow', - name: 'text_shadow', - type: 'b', - getter: 'add_text_shadow', - handler: (function() { - if (Settings.add_text_shadow()) { - Theming.add_text_shadow(); - } else { - Theming.remove_text_shadow(); - } - }).bind(this) - }); - Settings.add({ - key: 'icon-shadow', - name: 'icon_shadow', - type: 'b', - getter: 'add_icon_shadow', - handler: (function() { - if (Settings.add_icon_shadow()) { - Theming.add_icon_shadow(); - } else { - Theming.remove_icon_shadow(); - } - }).bind(this) - }); - Settings.add({ - key: 'text-shadow-position', - name: 'text_shadow_position', - type: '(iii)', - handler: (function() { + /* Remove shadowing */ + if (Theming.has_text_shadow()) { Theming.remove_text_shadow(); + } - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('text') !== -1) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - let text_shadow = Theming.register_text_shadow(Settings.get_text_shadow_color(), Settings.get_text_shadow_position()); - const id = this.text_shadow_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.text_shadow_update_id) { - return false; - } - - /* Add Text Shadowing */ - if (Settings.add_text_shadow()) { - if (text_shadow !== null) { - Theming.add_text_shadow(); - } else { - log('[Dynamic Panel Transparency] Failed to enabled text shadowing.'); - } - } - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - }).bind(this) - }); - Settings.add({ - key: 'icon-shadow-position', - name: 'icon_shadow_position', - type: '(iii)', - handler: (function() { - Theming.remove_icon_shadow(); - - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('icon') !== -1) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - let icon_shadow = Theming.register_icon_shadow(Settings.get_icon_shadow_color(), Settings.get_icon_shadow_position()); - const id = this.icon_shadow_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.icon_shadow_update_id) { - return false; - } - - /* Add Icon Shadowing */ - if (Settings.add_icon_shadow()) { - if (icon_shadow !== null) { - Theming.add_icon_shadow(); - } else { - log('[Dynamic Panel Transparency] Failed to enabled icon shadowing.'); - } - } - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - }).bind(this) - }); - Settings.add({ - key: 'icon-shadow-color', - name: 'icon_shadow_color', - type: '(iiid)', - parser: Util.tuple_to_native_color, - handler: (function() { + if (Theming.has_icon_shadow()) { Theming.remove_icon_shadow(); + } - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('icon') !== -1) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - let icon_shadow = Theming.register_icon_shadow(Settings.get_icon_shadow_color(), Settings.get_icon_shadow_position()); - const id = this.icon_shadow_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.icon_shadow_update_id) { - return false; - } - - /* Add Icon Shadowing */ - if (Settings.add_icon_shadow()) { - if (icon_shadow !== null) { - Theming.add_icon_shadow(); - } else { - log('[Dynamic Panel Transparency] Failed to enabled icon shadowing.'); - } - } - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - }).bind(this) - }); - Settings.add({ - key: 'text-shadow-color', - name: 'text_shadow_color', - type: '(iiid)', - parser: Util.tuple_to_native_color, - handler: (function() { - Theming.remove_text_shadow(); - - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - - for (let i = Theming.stylesheets.length - 1; i >= 0; i--) { - let stylesheet = Theming.stylesheets[i]; - if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('text') !== -1) { - theme.unload_stylesheet(Util.get_file(stylesheet)); - Util.remove_file(stylesheet); - Theming.stylesheets.splice(i, 1); - } - } - let text_shadow = Theming.register_text_shadow(Settings.get_text_shadow_color(), Settings.get_text_shadow_position()); - const id = this.text_shadow_update_id = Mainloop.timeout_add(SETTINGS_DELAY, (function() { // eslint-disable-line no-magic-numbers - if (id !== this.text_shadow_update_id) { - return false; - } - - /* Add Text Shadowing */ - if (Settings.add_text_shadow()) { - if (text_shadow !== null) { - Theming.add_text_shadow(); - } else { - log('[Dynamic Panel Transparency] Failed to enabled text shadowing.'); - } - } - - Intellifade.forceSyncCheck(); - - return false; - }).bind(this)); - }).bind(this) - }); - Settings.add({ - key: 'text-color', - name: 'text_color', - type: '(iii)', - parser: Util.tuple_to_native_color - }); - Settings.add({ - key: 'maximized-text-color', - name: 'maximized_text_color', - type: '(iii)', - parser: Util.tuple_to_native_color - }); - Settings.add({ - key: 'enable-maximized-text-color', - name: 'enable_maximized_text_color', - type: 'b', - handler: (function() { - Intellifade.forceSyncCheck(); - }).bind(this) - }); - Settings.add({ - key: 'remove-panel-styling', - name: 'remove_panel_styling', - getter: 'remove_panel_styling', - type: 'b' - }); - Settings.add({ - key: 'enable-overview-text-color', - name: 'enable_overview_text_color', - type: 'b' - }); - Settings.add({ - key: 'enable-text-color', - name: 'enable_text_color', - type: 'b', - handler: (function() { - if (Settings.get_enable_text_color()) { - Intellifade.forceSyncCheck(); - } else { - Theming.remove_text_color(); - Theming.remove_text_color('maximized'); - } - }).bind(this) - }); - Settings.add({ - key: 'enable-opacity', - name: 'enable_custom_opacity', - getter: 'enable_custom_opacity', - type: 'b' - }); - Settings.add({ - key: 'enable-background-color', - name: 'enable_custom_background_color', - getter: 'enable_custom_background_color', - type: 'b' - }); - Settings.add({ - key: 'transition-with-overview', - name: 'transition_with_overview', - getter: 'transition_with_overview', - type: 'b' - }); - Settings.add({ - key: 'transition-windows-touch', - name: 'transition_windows_touch', - getter: 'transition_when_windows_touch_panel', - type: 'b' - }); - - /* App-Specific Settings */ - - Settings.add_app_setting({ - key: 'enable-background-tweaks', - name: 'enable_background_tweaks', - type: 'b' - }); - Settings.add_app_override({ - key: 'maximized-opacity', - name: 'maximized_opacity', - type: 'i' - }); - Settings.add_app_override({ - key: 'panel-color', - name: 'panel_color', - type: '(iii)', - parser: Util.tuple_to_native_color + /* Remove text coloring */ + Theming.remove_text_color(); }); +} - /* After we've given Settings the necessary information... let's bind it. */ - Settings.bind(); -} \ No newline at end of file +module.exports = { DynamicPanel, init, enable, disable }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/atk.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/atk.d.ts new file mode 100644 index 0000000..374ba01 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/atk.d.ts @@ -0,0 +1,1480 @@ + + +/** + * Atk + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +type GType = object; + +export const BINARY_AGE: number; + +export const INTERFACE_AGE: number; + +export const MAJOR_VERSION: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const VERSION_MIN_REQUIRED: number; + +export function attribute_set_free(attrib_set: AttributeSet): void; + +export function focus_tracker_notify(object: Object): void; + +export function get_binary_age(): number; + +export function get_default_registry(): Registry; + +export function get_focus_object(): Object; + +export function get_interface_age(): number; + +export function get_major_version(): number; + +export function get_micro_version(): number; + +export function get_minor_version(): number; + +export function get_root(): Object; + +export function get_toolkit_name(): string; + +export function get_toolkit_version(): string; + +export function get_version(): string; + +export function relation_type_for_name(name: string): RelationType; + +export function relation_type_get_name(type: RelationType): string; + +export function relation_type_register(name: string): RelationType; + +export function remove_focus_tracker(tracker_id: number): void; + +export function remove_global_event_listener(listener_id: number): void; + +export function remove_key_event_listener(listener_id: number): void; + +export function role_for_name(name: string): Role; + +export function role_get_localized_name(role: Role): string; + +export function role_get_name(role: Role): string; + +export function role_register(name: string): Role; + +export function state_type_for_name(name: string): StateType; + +export function state_type_get_name(type: StateType): string; + +export function state_type_register(name: string): StateType; + +export function text_attribute_for_name(name: string): TextAttribute; + +export function text_attribute_get_name(attr: TextAttribute): string; + +export function text_attribute_get_value(attr: TextAttribute, index_: number): string | null; + +export function text_attribute_register(name: string): TextAttribute; + +export function text_free_ranges(ranges: TextRange[]): void; + +export function value_type_get_localized_name(value_type: ValueType): string; + +export function value_type_get_name(value_type: ValueType): string; + +export type EventListener = (obj: Object) => void; + +export type EventListenerInit = () => void; + +export type FocusHandler = (object: Object, focus_in: boolean) => void; + +export type Function = () => boolean; + +export type KeySnoopFunc = (event: KeyEventStruct) => number; + +export type PropertyChangeHandler = (obj: Object, vals: PropertyValues) => void; +export enum CoordType { + SCREEN = 0, + WINDOW = 1, + PARENT = 2, +} +export enum KeyEventType { + PRESS = 0, + RELEASE = 1, + LAST_DEFINED = 2, +} +export enum Layer { + INVALID = 0, + BACKGROUND = 1, + CANVAS = 2, + WIDGET = 3, + MDI = 4, + POPUP = 5, + OVERLAY = 6, + WINDOW = 7, +} +export enum RelationType { + NULL = 0, + CONTROLLED_BY = 1, + CONTROLLER_FOR = 2, + LABEL_FOR = 3, + LABELLED_BY = 4, + MEMBER_OF = 5, + NODE_CHILD_OF = 6, + FLOWS_TO = 7, + FLOWS_FROM = 8, + SUBWINDOW_OF = 9, + EMBEDS = 10, + EMBEDDED_BY = 11, + POPUP_FOR = 12, + PARENT_WINDOW_OF = 13, + DESCRIBED_BY = 14, + DESCRIPTION_FOR = 15, + NODE_PARENT_OF = 16, + DETAILS = 17, + DETAILS_FOR = 18, + ERROR_MESSAGE = 19, + ERROR_FOR = 20, + LAST_DEFINED = 21, +} +export enum Role { + INVALID = 0, + ACCELERATOR_LABEL = 1, + ALERT = 2, + ANIMATION = 3, + ARROW = 4, + CALENDAR = 5, + CANVAS = 6, + CHECK_BOX = 7, + CHECK_MENU_ITEM = 8, + COLOR_CHOOSER = 9, + COLUMN_HEADER = 10, + COMBO_BOX = 11, + DATE_EDITOR = 12, + DESKTOP_ICON = 13, + DESKTOP_FRAME = 14, + DIAL = 15, + DIALOG = 16, + DIRECTORY_PANE = 17, + DRAWING_AREA = 18, + FILE_CHOOSER = 19, + FILLER = 20, + FONT_CHOOSER = 21, + FRAME = 22, + GLASS_PANE = 23, + HTML_CONTAINER = 24, + ICON = 25, + IMAGE = 26, + INTERNAL_FRAME = 27, + LABEL = 28, + LAYERED_PANE = 29, + LIST = 30, + LIST_ITEM = 31, + MENU = 32, + MENU_BAR = 33, + MENU_ITEM = 34, + OPTION_PANE = 35, + PAGE_TAB = 36, + PAGE_TAB_LIST = 37, + PANEL = 38, + PASSWORD_TEXT = 39, + POPUP_MENU = 40, + PROGRESS_BAR = 41, + PUSH_BUTTON = 42, + RADIO_BUTTON = 43, + RADIO_MENU_ITEM = 44, + ROOT_PANE = 45, + ROW_HEADER = 46, + SCROLL_BAR = 47, + SCROLL_PANE = 48, + SEPARATOR = 49, + SLIDER = 50, + SPLIT_PANE = 51, + SPIN_BUTTON = 52, + STATUSBAR = 53, + TABLE = 54, + TABLE_CELL = 55, + TABLE_COLUMN_HEADER = 56, + TABLE_ROW_HEADER = 57, + TEAR_OFF_MENU_ITEM = 58, + TERMINAL = 59, + TEXT = 60, + TOGGLE_BUTTON = 61, + TOOL_BAR = 62, + TOOL_TIP = 63, + TREE = 64, + TREE_TABLE = 65, + UNKNOWN = 66, + VIEWPORT = 67, + WINDOW = 68, + HEADER = 69, + FOOTER = 70, + PARAGRAPH = 71, + RULER = 72, + APPLICATION = 73, + AUTOCOMPLETE = 74, + EDIT_BAR = 75, + EMBEDDED = 76, + ENTRY = 77, + CHART = 78, + CAPTION = 79, + DOCUMENT_FRAME = 80, + HEADING = 81, + PAGE = 82, + SECTION = 83, + REDUNDANT_OBJECT = 84, + FORM = 85, + LINK = 86, + INPUT_METHOD_WINDOW = 87, + TABLE_ROW = 88, + TREE_ITEM = 89, + DOCUMENT_SPREADSHEET = 90, + DOCUMENT_PRESENTATION = 91, + DOCUMENT_TEXT = 92, + DOCUMENT_WEB = 93, + DOCUMENT_EMAIL = 94, + COMMENT = 95, + LIST_BOX = 96, + GROUPING = 97, + IMAGE_MAP = 98, + NOTIFICATION = 99, + INFO_BAR = 100, + LEVEL_BAR = 101, + TITLE_BAR = 102, + BLOCK_QUOTE = 103, + AUDIO = 104, + VIDEO = 105, + DEFINITION = 106, + ARTICLE = 107, + LANDMARK = 108, + LOG = 109, + MARQUEE = 110, + MATH = 111, + RATING = 112, + TIMER = 113, + DESCRIPTION_LIST = 114, + DESCRIPTION_TERM = 115, + DESCRIPTION_VALUE = 116, + STATIC = 117, + MATH_FRACTION = 118, + MATH_ROOT = 119, + SUBSCRIPT = 120, + SUPERSCRIPT = 121, + FOOTNOTE = 122, + CONTENT_DELETION = 123, + CONTENT_INSERTION = 124, + MARK = 125, + SUGGESTION = 126, + LAST_DEFINED = 127, +} +export enum ScrollType { + TOP_LEFT = 0, + BOTTOM_RIGHT = 1, + TOP_EDGE = 2, + BOTTOM_EDGE = 3, + LEFT_EDGE = 4, + RIGHT_EDGE = 5, + ANYWHERE = 6, +} +export enum StateType { + INVALID = 0, + ACTIVE = 1, + ARMED = 2, + BUSY = 3, + CHECKED = 4, + DEFUNCT = 5, + EDITABLE = 6, + ENABLED = 7, + EXPANDABLE = 8, + EXPANDED = 9, + FOCUSABLE = 10, + FOCUSED = 11, + HORIZONTAL = 12, + ICONIFIED = 13, + MODAL = 14, + MULTI_LINE = 15, + MULTISELECTABLE = 16, + OPAQUE = 17, + PRESSED = 18, + RESIZABLE = 19, + SELECTABLE = 20, + SELECTED = 21, + SENSITIVE = 22, + SHOWING = 23, + SINGLE_LINE = 24, + STALE = 25, + TRANSIENT = 26, + VERTICAL = 27, + VISIBLE = 28, + MANAGES_DESCENDANTS = 29, + INDETERMINATE = 30, + TRUNCATED = 31, + REQUIRED = 32, + INVALID_ENTRY = 33, + SUPPORTS_AUTOCOMPLETION = 34, + SELECTABLE_TEXT = 35, + DEFAULT = 36, + ANIMATED = 37, + VISITED = 38, + CHECKABLE = 39, + HAS_POPUP = 40, + HAS_TOOLTIP = 41, + READ_ONLY = 42, + LAST_DEFINED = 43, +} +export enum TextAttribute { + INVALID = 0, + LEFT_MARGIN = 1, + RIGHT_MARGIN = 2, + INDENT = 3, + INVISIBLE = 4, + EDITABLE = 5, + PIXELS_ABOVE_LINES = 6, + PIXELS_BELOW_LINES = 7, + PIXELS_INSIDE_WRAP = 8, + BG_FULL_HEIGHT = 9, + RISE = 10, + UNDERLINE = 11, + STRIKETHROUGH = 12, + SIZE = 13, + SCALE = 14, + WEIGHT = 15, + LANGUAGE = 16, + FAMILY_NAME = 17, + BG_COLOR = 18, + FG_COLOR = 19, + BG_STIPPLE = 20, + FG_STIPPLE = 21, + WRAP_MODE = 22, + DIRECTION = 23, + JUSTIFICATION = 24, + STRETCH = 25, + VARIANT = 26, + STYLE = 27, + TEXT_POSITION = 28, + LAST_DEFINED = 29, +} +export enum TextBoundary { + CHAR = 0, + WORD_START = 1, + WORD_END = 2, + SENTENCE_START = 3, + SENTENCE_END = 4, + LINE_START = 5, + LINE_END = 6, +} +export enum TextClipType { + NONE = 0, + MIN = 1, + MAX = 2, + BOTH = 3, +} +export enum TextGranularity { + CHAR = 0, + WORD = 1, + SENTENCE = 2, + LINE = 3, + PARAGRAPH = 4, +} +export enum ValueType { + VERY_WEAK = 0, + WEAK = 1, + ACCEPTABLE = 2, + STRONG = 3, + VERY_STRONG = 4, + VERY_LOW = 5, + LOW = 6, + MEDIUM = 7, + HIGH = 8, + VERY_HIGH = 9, + VERY_BAD = 10, + BAD = 11, + GOOD = 12, + VERY_GOOD = 13, + BEST = 14, + LAST_DEFINED = 15, +} +export enum HyperlinkStateFlags { + INLINE = 1, +} +export module GObjectAccessible { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class GObjectAccessible extends Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + get_object(): GObject.Object; + static for_object(obj: GObject.Object): Object; +} +export module Hyperlink { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + end_index: number; + number_of_anchors: number; + selected_link: boolean; + start_index: number; + } +} +export class Hyperlink extends GObject.Object implements Action { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + end_index: number; + number_of_anchors: number; + selected_link: boolean; + start_index: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'link-activated', callback: (_source: this) => void): number; + connect_after(signal: 'link-activated', callback: (_source: this) => void): number; + emit(signal: 'link-activated'): void; + // Members + get_end_index(): number; + get_n_anchors(): number; + get_object(i: number): Object; + get_start_index(): number; + get_uri(i: number): string; + is_inline(): boolean; + is_selected_link(): boolean; + is_valid(): boolean; + vfunc_get_end_index(): number; + vfunc_get_n_anchors(): number; + vfunc_get_object(i: number): Object; + vfunc_get_start_index(): number; + vfunc_get_uri(i: number): string; + vfunc_is_selected_link(): boolean; + vfunc_is_valid(): boolean; + vfunc_link_activated(): void; + vfunc_link_state(): number; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + set_description(i: number, desc: string): boolean; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_set_description(i: number, desc: string): boolean; +} +export module Misc { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Misc extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + threads_enter(): void; + threads_leave(): void; + vfunc_threads_enter(): void; + vfunc_threads_leave(): void; + static get_instance(): Misc; +} +export module NoOpObject { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class NoOpObject extends Object implements Action, Component, Document, EditableText, Hypertext, Image, Selection, Table, TableCell, Text, Value, Window { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](obj: GObject.Object): NoOpObject; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + contains(x: number, y: number, coord_type: CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Layer; + get_mdi_zorder(): number; + get_position(coord_type: CoordType): [number | null, number | null]; + get_position(...args: never[]): never; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: ScrollType): boolean; + scroll_to_point(coords: CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + set_position(x: number, y: number, coord_type: CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: CoordType): [number | null, number | null]; + vfunc_get_position(...args: never[]): never; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: ScrollType): boolean; + vfunc_scroll_to_point(coords: CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; + get_attribute_value(attribute_name: string): string | null; + get_attributes(): AttributeSet; + get_current_page_number(): number; + get_document(): any | null; + get_document_type(): string; + get_locale(): string; + get_page_count(): number; + set_attribute_value(attribute_name: string, attribute_value: string): boolean; + vfunc_get_current_page_number(): number; + vfunc_get_document(): any | null; + vfunc_get_document_attribute_value(attribute_name: string): string | null; + vfunc_get_document_attributes(): AttributeSet; + vfunc_get_document_locale(): string; + vfunc_get_document_type(): string; + vfunc_get_page_count(): number; + vfunc_set_document_attribute(attribute_name: string, attribute_value: string): boolean; + copy_text(start_pos: number, end_pos: number): void; + cut_text(start_pos: number, end_pos: number): void; + delete_text(start_pos: number, end_pos: number): void; + insert_text(string: string, length: number, position: number): void; + paste_text(position: number): void; + set_run_attributes(attrib_set: AttributeSet, start_offset: number, end_offset: number): boolean; + set_text_contents(string: string): void; + vfunc_copy_text(start_pos: number, end_pos: number): void; + vfunc_cut_text(start_pos: number, end_pos: number): void; + vfunc_delete_text(start_pos: number, end_pos: number): void; + vfunc_insert_text(string: string, length: number, position: number): void; + vfunc_paste_text(position: number): void; + vfunc_set_run_attributes(attrib_set: AttributeSet, start_offset: number, end_offset: number): boolean; + vfunc_set_text_contents(string: string): void; + get_link(link_index: number): Hyperlink; + get_link_index(char_index: number): number; + get_n_links(): number; + vfunc_get_link(link_index: number): Hyperlink; + vfunc_get_link_index(char_index: number): number; + vfunc_get_n_links(): number; + vfunc_link_selected(link_index: number): void; + get_image_description(): string; + get_image_locale(): string | null; + get_image_position(coord_type: CoordType): [number | null, number | null]; + get_image_size(): [number | null, number | null]; + set_image_description(description: string): boolean; + vfunc_get_image_description(): string; + vfunc_get_image_locale(): string | null; + vfunc_get_image_position(coord_type: CoordType): [number | null, number | null]; + vfunc_get_image_size(): [number | null, number | null]; + vfunc_set_image_description(description: string): boolean; + add_selection(i: number): boolean; + add_selection(...args: never[]): never; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_add_selection(...args: never[]): never; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; + add_column_selection(column: number): boolean; + add_row_selection(row: number): boolean; + get_caption(): Object | null; + get_column_at_index(index_: number): number; + get_column_description(column: number): string; + get_column_extent_at(row: number, column: number): number; + get_column_header(column: number): Object | null; + get_index_at(row: number, column: number): number; + get_n_columns(): number; + get_n_rows(): number; + get_row_at_index(index_: number): number; + get_row_description(row: number): string | null; + get_row_extent_at(row: number, column: number): number; + get_row_header(row: number): Object | null; + get_selected_columns(selected: number): number; + get_selected_rows(selected: number): number; + get_summary(): Object; + is_column_selected(column: number): boolean; + is_row_selected(row: number): boolean; + is_selected(row: number, column: number): boolean; + ref_at(row: number, column: number): Object; + remove_column_selection(column: number): boolean; + remove_row_selection(row: number): boolean; + set_caption(caption: Object): void; + set_column_description(column: number, description: string): void; + set_column_header(column: number, header: Object): void; + set_row_description(row: number, description: string): void; + set_row_header(row: number, header: Object): void; + set_summary(accessible: Object): void; + vfunc_add_column_selection(column: number): boolean; + 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; + vfunc_get_caption(): Object | null; + vfunc_get_column_at_index(index_: number): number; + vfunc_get_column_description(column: number): string; + vfunc_get_column_extent_at(row: number, column: number): number; + vfunc_get_column_header(column: number): Object | null; + vfunc_get_index_at(row: number, column: number): number; + vfunc_get_n_columns(): number; + vfunc_get_n_rows(): number; + vfunc_get_row_at_index(index_: number): number; + vfunc_get_row_description(row: number): string | null; + vfunc_get_row_extent_at(row: number, column: number): number; + vfunc_get_row_header(row: number): Object | null; + vfunc_get_selected_columns(selected: number): number; + vfunc_get_selected_rows(selected: number): number; + vfunc_get_summary(): Object; + vfunc_is_column_selected(column: number): boolean; + vfunc_is_row_selected(row: number): boolean; + vfunc_is_selected(row: number, column: number): boolean; + vfunc_model_changed(): void; + vfunc_ref_at(row: number, column: number): Object; + vfunc_remove_column_selection(column: number): boolean; + 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; + vfunc_set_caption(caption: Object): void; + vfunc_set_column_description(column: number, description: string): void; + vfunc_set_column_header(column: number, header: Object): void; + vfunc_set_row_description(row: number, description: string): void; + vfunc_set_row_header(row: number, header: Object): void; + vfunc_set_summary(accessible: Object): void; + get_column_header_cells(): Object[]; + get_column_span(): number; + get_position(): [boolean, number, number]; + get_position(...args: never[]): never; + get_row_column_span(): [boolean, number, number, number, number]; + get_row_header_cells(): Object[]; + get_row_span(): number; + get_table(): Object; + vfunc_get_column_header_cells(): Object[]; + vfunc_get_column_span(): number; + vfunc_get_position(): [boolean, number, number]; + vfunc_get_position(...args: never[]): never; + vfunc_get_row_column_span(): [boolean, number, number, number, number]; + vfunc_get_row_header_cells(): Object[]; + vfunc_get_row_span(): number; + vfunc_get_table(): Object; + add_selection(start_offset: number, end_offset: number): boolean; + add_selection(...args: never[]): never; + get_bounded_ranges(rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType): TextRange[]; + get_caret_offset(): number; + get_character_at_offset(offset: number): number; + get_character_count(): number; + get_character_extents(offset: number, coords: CoordType): [number | null, number | null, number | null, number | null]; + get_default_attributes(): AttributeSet; + get_n_selections(): number; + get_offset_at_point(x: number, y: number, coords: CoordType): number; + get_range_extents(start_offset: number, end_offset: number, coord_type: CoordType): TextRectangle; + get_run_attributes(offset: number): [AttributeSet, number, number]; + get_selection(selection_num: number): [string, number, number]; + get_string_at_offset(offset: number, granularity: TextGranularity): [string | null, number, number]; + get_text(start_offset: number, end_offset: number): string; + get_text_after_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + get_text_at_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + get_text_before_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + remove_selection(selection_num: number): boolean; + scroll_substring_to(start_offset: number, end_offset: number, type: ScrollType): boolean; + scroll_substring_to_point(start_offset: number, end_offset: number, coords: CoordType, x: number, y: number): boolean; + set_caret_offset(offset: number): boolean; + set_selection(selection_num: number, start_offset: number, end_offset: number): boolean; + vfunc_add_selection(start_offset: number, end_offset: number): boolean; + vfunc_add_selection(...args: never[]): never; + vfunc_get_bounded_ranges(rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType): TextRange[]; + vfunc_get_caret_offset(): number; + vfunc_get_character_at_offset(offset: number): number; + vfunc_get_character_count(): number; + vfunc_get_character_extents(offset: number, coords: CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_default_attributes(): AttributeSet; + vfunc_get_n_selections(): number; + vfunc_get_offset_at_point(x: number, y: number, coords: CoordType): number; + vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: CoordType): TextRectangle; + vfunc_get_run_attributes(offset: number): [AttributeSet, number, number]; + vfunc_get_selection(selection_num: number): [string, number, number]; + vfunc_get_string_at_offset(offset: number, granularity: TextGranularity): [string | null, number, number]; + vfunc_get_text(start_offset: number, end_offset: number): string; + vfunc_get_text_after_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + vfunc_get_text_at_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + vfunc_get_text_before_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + vfunc_remove_selection(selection_num: number): boolean; + vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: ScrollType): boolean; + vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: CoordType, x: number, y: number): boolean; + vfunc_set_caret_offset(offset: number): boolean; + 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; + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export module NoOpObjectFactory { + export interface ConstructorProperties extends ObjectFactory.ConstructorProperties { + [key: string]: any; + } +} +export class NoOpObjectFactory extends ObjectFactory { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): NoOpObjectFactory; +} +export module Object { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + accessible_component_layer: number; + accessible_component_mdi_zorder: number; + accessible_description: string; + accessible_hypertext_nlinks: number; + accessible_name: string; + accessible_parent: Object; + accessible_role: Role; + accessible_table_caption: string; + accessible_table_caption_object: Object; + accessible_table_column_description: string; + accessible_table_column_header: Object; + accessible_table_row_description: string; + accessible_table_row_header: Object; + accessible_table_summary: Object; + accessible_value: number; + } +} +export class Object extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + accessible_component_layer: number; + accessible_component_mdi_zorder: number; + accessible_description: string; + accessible_hypertext_nlinks: number; + accessible_name: string; + accessible_parent: Object; + accessible_role: Role; + accessible_table_caption: string; + accessible_table_caption_object: Object; + accessible_table_column_description: string; + accessible_table_column_header: Object; + accessible_table_row_description: string; + accessible_table_row_header: Object; + accessible_table_summary: Object; + accessible_value: number; + // Fields + description: string; + name: string; + role: Role; + relation_set: RelationSet; + layer: Layer; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'active-descendant-changed', callback: (_source: this, arg1: Object) => void): number; + connect_after(signal: 'active-descendant-changed', callback: (_source: this, arg1: Object) => void): number; + emit(signal: 'active-descendant-changed', arg1: Object): void; + connect(signal: 'children-changed', callback: (_source: this, arg1: number, arg2: Object) => void): number; + connect_after(signal: 'children-changed', callback: (_source: this, arg1: number, arg2: Object) => void): number; + emit(signal: 'children-changed', arg1: number, arg2: Object): void; + connect(signal: 'focus-event', callback: (_source: this, arg1: boolean) => void): number; + connect_after(signal: 'focus-event', callback: (_source: this, arg1: boolean) => void): number; + emit(signal: 'focus-event', arg1: boolean): void; + connect(signal: 'property-change', callback: (_source: this, arg1: PropertyValues) => void): number; + connect_after(signal: 'property-change', callback: (_source: this, arg1: PropertyValues) => void): number; + emit(signal: 'property-change', arg1: PropertyValues): void; + connect(signal: 'state-change', callback: (_source: this, arg1: string, arg2: boolean) => void): number; + connect_after(signal: 'state-change', callback: (_source: this, arg1: string, arg2: boolean) => void): number; + emit(signal: 'state-change', arg1: string, arg2: boolean): void; + connect(signal: 'visible-data-changed', callback: (_source: this) => void): number; + connect_after(signal: 'visible-data-changed', callback: (_source: this) => void): number; + emit(signal: 'visible-data-changed'): void; + // Members + add_relationship(relationship: RelationType, target: Object): boolean; + get_accessible_id(): string; + get_attributes(): AttributeSet; + get_description(): string; + get_index_in_parent(): number; + get_layer(): Layer; + get_mdi_zorder(): number; + get_n_accessible_children(): number; + get_name(): string; + get_object_locale(): string; + get_parent(): Object; + get_role(): Role; + initialize(data: any | null): void; + notify_state_change(state: State, value: boolean): void; + peek_parent(): Object; + ref_accessible_child(i: number): Object; + ref_relation_set(): RelationSet; + ref_state_set(): StateSet; + remove_property_change_handler(handler_id: number): void; + remove_relationship(relationship: RelationType, target: Object): boolean; + set_accessible_id(name: string): void; + set_description(description: string): void; + set_name(name: string): void; + set_parent(parent: Object): void; + set_role(role: Role): void; + 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; + vfunc_get_attributes(): AttributeSet; + vfunc_get_description(): string; + vfunc_get_index_in_parent(): number; + vfunc_get_layer(): Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_n_children(): number; + vfunc_get_name(): string; + vfunc_get_object_locale(): string; + vfunc_get_parent(): this; + vfunc_get_role(): Role; + vfunc_initialize(data: any | null): void; + vfunc_property_change(values: PropertyValues): void; + vfunc_ref_relation_set(): RelationSet; + vfunc_ref_state_set(): StateSet; + vfunc_remove_property_change_handler(handler_id: number): void; + vfunc_set_description(description: string): void; + vfunc_set_name(name: string): void; + vfunc_set_parent(parent: Object): void; + vfunc_set_role(role: Role): void; + vfunc_state_change(name: string, state_set: boolean): void; + vfunc_visible_data_changed(): void; +} +export module ObjectFactory { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class ObjectFactory extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + create_accessible(obj: GObject.Object): Object; + get_accessible_type(): GType; + invalidate(): void; + vfunc_invalidate(): void; +} +export module Plug { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Plug extends Object implements Component { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): Plug; + // Members + get_id(): string; + set_child(child: Object): void; + vfunc_get_object_id(): string; + // Implemented Members + contains(x: number, y: number, coord_type: CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Layer; + get_mdi_zorder(): number; + get_position(coord_type: CoordType): [number | null, number | null]; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: ScrollType): boolean; + scroll_to_point(coords: CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + set_position(x: number, y: number, coord_type: CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: CoordType): [number | null, number | null]; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: ScrollType): boolean; + vfunc_scroll_to_point(coords: CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; +} +export module Registry { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Registry extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + factory_type_registry: GLib.HashTable; + factory_singleton_cache: GLib.HashTable; + // Members + get_factory(type: GType): ObjectFactory; + get_factory_type(type: GType): GType; + set_factory_type(type: GType, factory_type: GType): void; +} +export module Relation { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + relation_type: RelationType; + target: GObject.ValueArray; + } +} +export class Relation extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + relation_type: RelationType; + target: GObject.ValueArray; + // Fields + relationship: RelationType; + // Constructors + static ["new"](targets: Object[], relationship: RelationType): Relation; + // Members + add_target(target: Object): void; + get_relation_type(): RelationType; + get_target(): Object[]; + remove_target(target: Object): boolean; +} +export module RelationSet { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class RelationSet extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + relations: any[]; + // Constructors + static ["new"](): RelationSet; + // Members + add(relation: Relation): void; + add_relation_by_type(relationship: RelationType, target: Object): void; + contains(relationship: RelationType): boolean; + contains_target(relationship: RelationType, target: Object): boolean; + get_n_relations(): number; + get_relation(i: number): Relation; + get_relation_by_type(relationship: RelationType): Relation; + remove(relation: Relation): void; +} +export module Socket { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Socket extends Object implements Component { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): Socket; + // Members + embed(plug_id: string): void; + is_occupied(): boolean; + vfunc_embed(plug_id: string): void; + // Implemented Members + contains(x: number, y: number, coord_type: CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Layer; + get_mdi_zorder(): number; + get_position(coord_type: CoordType): [number | null, number | null]; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: ScrollType): boolean; + scroll_to_point(coords: CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + set_position(x: number, y: number, coord_type: CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: CoordType): [number | null, number | null]; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: ScrollType): boolean; + vfunc_scroll_to_point(coords: CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; +} +export module StateSet { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class StateSet extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): StateSet; + // Members + add_state(type: StateType): boolean; + add_states(types: StateType[]): void; + and_sets(compare_set: StateSet): StateSet; + clear_states(): void; + contains_state(type: StateType): boolean; + contains_states(types: StateType[]): boolean; + is_empty(): boolean; + or_sets(compare_set: StateSet): StateSet | null; + remove_state(type: StateType): boolean; + xor_sets(compare_set: StateSet): StateSet; +} +export module Util { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Util extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export class Attribute { + constructor(copy: Attribute); + // Fields + name: string; + value: string; + // Members + static set_free(attrib_set: AttributeSet): void; +} +export class Implementor { + constructor(copy: Implementor); + // Members + ref_accessible(): Object; +} +export class KeyEventStruct { + constructor(copy: KeyEventStruct); + // Fields + type: number; + state: number; + keyval: number; + length: number; + string: string; + keycode: number; + timestamp: number; +} +export class PropertyValues { + constructor(copy: PropertyValues); + // Fields + property_name: string; + old_value: GObject.Value; + new_value: GObject.Value; +} +export class Range { + constructor(lower_limit: number, upper_limit: number, description: string); + constructor(copy: Range); + // Constructors + static ["new"](lower_limit: number, upper_limit: number, description: string): Range; + // Members + copy(): Range; + free(): void; + get_description(): string; + get_lower_limit(): number; + get_upper_limit(): number; +} +export class Rectangle { + constructor(copy: Rectangle); + // Fields + x: number; + y: number; + width: number; + height: number; +} +export class TextRange { + constructor(copy: TextRange); + // Fields + bounds: TextRectangle; + start_offset: number; + end_offset: number; + content: string; +} +export class TextRectangle { + constructor(copy: TextRectangle); + // Fields + x: number; + y: number; + width: number; + height: number; +} +export interface Action { + // Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + set_description(i: number, desc: string): boolean; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_set_description(i: number, desc: string): boolean; +} +export interface Component { + // Members + contains(x: number, y: number, coord_type: CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Layer; + get_mdi_zorder(): number; + get_position(coord_type: CoordType): [number | null, number | null]; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: ScrollType): boolean; + scroll_to_point(coords: CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + set_position(x: number, y: number, coord_type: CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: CoordType): [number | null, number | null]; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: ScrollType): boolean; + vfunc_scroll_to_point(coords: CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; +} +export interface Document { + // Members + get_attribute_value(attribute_name: string): string | null; + get_attributes(): AttributeSet; + get_current_page_number(): number; + get_document(): any | null; + get_document_type(): string; + get_locale(): string; + get_page_count(): number; + set_attribute_value(attribute_name: string, attribute_value: string): boolean; + vfunc_get_current_page_number(): number; + vfunc_get_document(): any | null; + vfunc_get_document_attribute_value(attribute_name: string): string | null; + vfunc_get_document_attributes(): AttributeSet; + vfunc_get_document_locale(): string; + vfunc_get_document_type(): string; + vfunc_get_page_count(): number; + vfunc_set_document_attribute(attribute_name: string, attribute_value: string): boolean; +} +export interface EditableText { + // Members + copy_text(start_pos: number, end_pos: number): void; + cut_text(start_pos: number, end_pos: number): void; + delete_text(start_pos: number, end_pos: number): void; + insert_text(string: string, length: number, position: number): void; + paste_text(position: number): void; + set_run_attributes(attrib_set: AttributeSet, start_offset: number, end_offset: number): boolean; + set_text_contents(string: string): void; + vfunc_copy_text(start_pos: number, end_pos: number): void; + vfunc_cut_text(start_pos: number, end_pos: number): void; + vfunc_delete_text(start_pos: number, end_pos: number): void; + vfunc_insert_text(string: string, length: number, position: number): void; + vfunc_paste_text(position: number): void; + vfunc_set_run_attributes(attrib_set: AttributeSet, start_offset: number, end_offset: number): boolean; + vfunc_set_text_contents(string: string): void; +} +export interface HyperlinkImpl { + // Members + get_hyperlink(): Hyperlink; + vfunc_get_hyperlink(): Hyperlink; +} +export interface Hypertext { + // Members + get_link(link_index: number): Hyperlink; + get_link_index(char_index: number): number; + get_n_links(): number; + vfunc_get_link(link_index: number): Hyperlink; + vfunc_get_link_index(char_index: number): number; + vfunc_get_n_links(): number; + vfunc_link_selected(link_index: number): void; +} +export interface Image { + // Members + get_image_description(): string; + get_image_locale(): string | null; + get_image_position(coord_type: CoordType): [number | null, number | null]; + get_image_size(): [number | null, number | null]; + set_image_description(description: string): boolean; + vfunc_get_image_description(): string; + vfunc_get_image_locale(): string | null; + vfunc_get_image_position(coord_type: CoordType): [number | null, number | null]; + vfunc_get_image_size(): [number | null, number | null]; + vfunc_set_image_description(description: string): boolean; +} +export interface ImplementorIface { +} +export interface Selection { + // Members + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export interface StreamableContent { + // Members + get_mime_type(i: number): string; + get_n_mime_types(): number; + get_stream(mime_type: string): GLib.IOChannel; + get_uri(mime_type: string): string | null; + vfunc_get_mime_type(i: number): string; + vfunc_get_n_mime_types(): number; + vfunc_get_stream(mime_type: string): GLib.IOChannel; + vfunc_get_uri(mime_type: string): string | null; +} +export interface Table { + // Members + add_column_selection(column: number): boolean; + add_row_selection(row: number): boolean; + get_caption(): Object | null; + get_column_at_index(index_: number): number; + get_column_description(column: number): string; + get_column_extent_at(row: number, column: number): number; + get_column_header(column: number): Object | null; + get_index_at(row: number, column: number): number; + get_n_columns(): number; + get_n_rows(): number; + get_row_at_index(index_: number): number; + get_row_description(row: number): string | null; + get_row_extent_at(row: number, column: number): number; + get_row_header(row: number): Object | null; + get_selected_columns(selected: number): number; + get_selected_rows(selected: number): number; + get_summary(): Object; + is_column_selected(column: number): boolean; + is_row_selected(row: number): boolean; + is_selected(row: number, column: number): boolean; + ref_at(row: number, column: number): Object; + remove_column_selection(column: number): boolean; + remove_row_selection(row: number): boolean; + set_caption(caption: Object): void; + set_column_description(column: number, description: string): void; + set_column_header(column: number, header: Object): void; + set_row_description(row: number, description: string): void; + set_row_header(row: number, header: Object): void; + set_summary(accessible: Object): void; + vfunc_add_column_selection(column: number): boolean; + 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; + vfunc_get_caption(): Object | null; + vfunc_get_column_at_index(index_: number): number; + vfunc_get_column_description(column: number): string; + vfunc_get_column_extent_at(row: number, column: number): number; + vfunc_get_column_header(column: number): Object | null; + vfunc_get_index_at(row: number, column: number): number; + vfunc_get_n_columns(): number; + vfunc_get_n_rows(): number; + vfunc_get_row_at_index(index_: number): number; + vfunc_get_row_description(row: number): string | null; + vfunc_get_row_extent_at(row: number, column: number): number; + vfunc_get_row_header(row: number): Object | null; + vfunc_get_selected_columns(selected: number): number; + vfunc_get_selected_rows(selected: number): number; + vfunc_get_summary(): Object; + vfunc_is_column_selected(column: number): boolean; + vfunc_is_row_selected(row: number): boolean; + vfunc_is_selected(row: number, column: number): boolean; + vfunc_model_changed(): void; + vfunc_ref_at(row: number, column: number): Object; + vfunc_remove_column_selection(column: number): boolean; + 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; + vfunc_set_caption(caption: Object): void; + vfunc_set_column_description(column: number, description: string): void; + vfunc_set_column_header(column: number, header: Object): void; + vfunc_set_row_description(row: number, description: string): void; + vfunc_set_row_header(row: number, header: Object): void; + vfunc_set_summary(accessible: Object): void; +} +export interface TableCell { + // Members + get_column_header_cells(): Object[]; + get_column_span(): number; + get_position(): [boolean, number, number]; + get_row_column_span(): [boolean, number, number, number, number]; + get_row_header_cells(): Object[]; + get_row_span(): number; + get_table(): Object; + vfunc_get_column_header_cells(): Object[]; + vfunc_get_column_span(): number; + vfunc_get_position(): [boolean, number, number]; + vfunc_get_row_column_span(): [boolean, number, number, number, number]; + vfunc_get_row_header_cells(): Object[]; + vfunc_get_row_span(): number; + vfunc_get_table(): Object; +} +export interface TextNamespace { + free_ranges(ranges: TextRange[]): void; +} +export interface Text { + // Members + add_selection(start_offset: number, end_offset: number): boolean; + get_bounded_ranges(rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType): TextRange[]; + get_caret_offset(): number; + get_character_at_offset(offset: number): number; + get_character_count(): number; + get_character_extents(offset: number, coords: CoordType): [number | null, number | null, number | null, number | null]; + get_default_attributes(): AttributeSet; + get_n_selections(): number; + get_offset_at_point(x: number, y: number, coords: CoordType): number; + get_range_extents(start_offset: number, end_offset: number, coord_type: CoordType): TextRectangle; + get_run_attributes(offset: number): [AttributeSet, number, number]; + get_selection(selection_num: number): [string, number, number]; + get_string_at_offset(offset: number, granularity: TextGranularity): [string | null, number, number]; + get_text(start_offset: number, end_offset: number): string; + get_text_after_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + get_text_at_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + get_text_before_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + remove_selection(selection_num: number): boolean; + scroll_substring_to(start_offset: number, end_offset: number, type: ScrollType): boolean; + scroll_substring_to_point(start_offset: number, end_offset: number, coords: CoordType, x: number, y: number): boolean; + set_caret_offset(offset: number): boolean; + set_selection(selection_num: number, start_offset: number, end_offset: number): boolean; + vfunc_add_selection(start_offset: number, end_offset: number): boolean; + vfunc_get_bounded_ranges(rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType): TextRange[]; + vfunc_get_caret_offset(): number; + vfunc_get_character_at_offset(offset: number): number; + vfunc_get_character_count(): number; + vfunc_get_character_extents(offset: number, coords: CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_default_attributes(): AttributeSet; + vfunc_get_n_selections(): number; + vfunc_get_offset_at_point(x: number, y: number, coords: CoordType): number; + vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: CoordType): TextRectangle; + vfunc_get_run_attributes(offset: number): [AttributeSet, number, number]; + vfunc_get_selection(selection_num: number): [string, number, number]; + vfunc_get_string_at_offset(offset: number, granularity: TextGranularity): [string | null, number, number]; + vfunc_get_text(start_offset: number, end_offset: number): string; + vfunc_get_text_after_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + vfunc_get_text_at_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + vfunc_get_text_before_offset(offset: number, boundary_type: TextBoundary): [string, number, number]; + vfunc_remove_selection(selection_num: number): boolean; + vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: ScrollType): boolean; + vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: CoordType, x: number, y: number): boolean; + vfunc_set_caret_offset(offset: number): boolean; + 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; +} + +export const Text: TextNamespace; +export interface Value { + // Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export interface Window { +} + +export type AttributeSet = string[]; + +export type State = number; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/cairo.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/cairo.d.ts new file mode 100644 index 0000000..eb8bea9 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/cairo.d.ts @@ -0,0 +1,275 @@ + + +/** + * cairo + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +type GType = object; + +export function image_surface_create(): void; +export enum Status { + SUCCESS = 0, + NO_MEMORY = 1, + INVALID_RESTORE = 2, + INVALID_POP_GROUP = 3, + NO_CURRENT_POINT = 4, + INVALID_MATRIX = 5, + INVALID_STATUS = 6, + NULL_POINTER = 7, + INVALID_STRING = 8, + INVALID_PATH_DATA = 9, + READ_ERROR = 10, + WRITE_ERROR = 11, + SURFACE_FINISHED = 12, + SURFACE_TYPE_MISMATCH = 13, + PATTERN_TYPE_MISMATCH = 14, + INVALID_CONTENT = 15, + INVALID_FORMAT = 16, + INVALID_VISUAL = 17, + FILE_NOT_FOUND = 18, + INVALID_DASH = 19, + INVALID_DSC_COMMENT = 20, + INVALID_INDEX = 21, + CLIP_NOT_REPRESENTABLE = 22, + TEMP_FILE_ERROR = 23, + INVALID_STRIDE = 24, + FONT_TYPE_MISMATCH = 25, + USER_FONT_IMMUTABLE = 26, + USER_FONT_ERROR = 27, + NEGATIVE_COUNT = 28, + INVALID_CLUSTERS = 29, + INVALID_SLANT = 30, + INVALID_WEIGHT = 31, + INVALID_SIZE = 32, + USER_FONT_NOT_IMPLEMENTED = 33, + DEVICE_TYPE_MISMATCH = 34, + DEVICE_ERROR = 35, + INVALID_MESH_CONSTRUCTION = 36, + DEVICE_FINISHED = 37, + JBIG2_GLOBAL_MISSING = 38, +} +export enum Content { + COLOR = 4096, + ALPHA = 8192, + COLOR_ALPHA = 12288, +} +export enum Operator { + CLEAR = 0, + SOURCE = 1, + OVER = 2, + IN = 3, + OUT = 4, + ATOP = 5, + DEST = 6, + DEST_OVER = 7, + DEST_IN = 8, + DEST_OUT = 9, + DEST_ATOP = 10, + XOR = 11, + ADD = 12, + SATURATE = 13, + MULTIPLY = 14, + SCREEN = 15, + OVERLAY = 16, + DARKEN = 17, + LIGHTEN = 18, + COLOR_DODGE = 19, + COLOR_BURN = 20, + HARD_LIGHT = 21, + SOFT_LIGHT = 22, + DIFFERENCE = 23, + EXCLUSION = 24, + HSL_HUE = 25, + HSL_SATURATION = 26, + HSL_COLOR = 27, + HSL_LUMINOSITY = 28, +} +export enum Antialias { + DEFAULT = 0, + NONE = 1, + GRAY = 2, + SUBPIXEL = 3, + FAST = 4, + GOOD = 5, + BEST = 6, +} +export enum FillRule { + WINDING = 0, + EVEN_ODD = 1, +} +export enum LineCap { + BUTT = 0, + ROUND = 1, + SQUARE = 2, +} +export enum LineJoin { + MITER = 0, + ROUND = 1, + BEVEL = 2, +} +export enum TextClusterFlags { + BACKWARD = 1, +} +export enum FontSlant { + NORMAL = 0, + ITALIC = 1, + OBLIQUE = 2, +} +export enum FontWeight { + NORMAL = 0, + BOLD = 1, +} +export enum SubpixelOrder { + DEFAULT = 0, + RGB = 1, + BGR = 2, + VRGB = 3, + VBGR = 4, +} +export enum HintStyle { + DEFAULT = 0, + NONE = 1, + SLIGHT = 2, + MEDIUM = 3, + FULL = 4, +} +export enum HintMetrics { + DEFAULT = 0, + OFF = 1, + ON = 2, +} +export enum FontType { + TOY = 0, + FT = 1, + WIN32 = 2, + QUARTZ = 3, + USER = 4, +} +export enum PathDataType { + MOVE_TO = 0, + LINE_TO = 1, + CURVE_TO = 2, + CLOSE_PATH = 3, +} +export enum DeviceType { + DRM = 0, + GL = 1, + SCRIPT = 2, + XCB = 3, + XLIB = 4, + XML = 5, + COGL = 6, + WIN32 = 7, + INVALID = -1, +} +export enum SurfaceType { + IMAGE = 0, + PDF = 1, + PS = 2, + XLIB = 3, + XCB = 4, + GLITZ = 5, + QUARTZ = 6, + WIN32 = 7, + BEOS = 8, + DIRECTFB = 9, + SVG = 10, + OS2 = 11, + WIN32_PRINTING = 12, + QUARTZ_IMAGE = 13, + SCRIPT = 14, + QT = 15, + RECORDING = 16, + VG = 17, + GL = 18, + DRM = 19, + TEE = 20, + XML = 21, + SKIA = 22, + SUBSURFACE = 23, + COGL = 24, +} +export enum Format { + INVALID = -1, + ARGB32 = 0, + RGB24 = 1, + A8 = 2, + A1 = 3, + RGB16_565 = 4, + RGB30 = 5, +} +export enum PatternType { + SOLID = 0, + SURFACE = 1, + LINEAR = 2, + RADIAL = 3, + MESH = 4, + RASTER_SOURCE = 5, +} +export enum Extend { + NONE = 0, + REPEAT = 1, + REFLECT = 2, + PAD = 3, +} +export enum Filter { + FAST = 0, + GOOD = 1, + BEST = 2, + NEAREST = 3, + BILINEAR = 4, + GAUSSIAN = 5, +} +export enum RegionOverlap { + IN = 0, + OUT = 1, + PART = 2, +} +export class Context { + constructor(copy: Context); +} +export class Device { + constructor(copy: Device); +} +export class Surface { + constructor(copy: Surface); +} +export class Matrix { + constructor(copy: Matrix); +} +export class Pattern { + constructor(copy: Pattern); +} +export class Region { + constructor(copy: Region); +} +export class FontOptions { + constructor(copy: FontOptions); +} +export class FontFace { + constructor(copy: FontFace); +} +export class ScaledFont { + constructor(copy: ScaledFont); +} +export class Path { + constructor(copy: Path); +} +export class Rectangle { + constructor(copy: Rectangle); + // Fields + x: number; + y: number; + width: number; + height: number; +} +export class RectangleInt { + constructor(copy: RectangleInt); + // Fields + x: number; + y: number; + width: number; + height: number; +} \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gdk.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/gdk.d.ts new file mode 100644 index 0000000..234cc07 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/gdk.d.ts @@ -0,0 +1,6664 @@ + + +/** + * Gdk + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as GdkPixbuf from "gdkpixbuf"; +import * as Pango from "pango"; +import * as cairo from "cairo"; +type GType = object; + +export const BUTTON_MIDDLE: number; + +export const BUTTON_PRIMARY: number; + +export const BUTTON_SECONDARY: number; + +export const CURRENT_TIME: number; + +export const EVENT_PROPAGATE: boolean; + +export const EVENT_STOP: boolean; + +export const KEY_0: number; + +export const KEY_1: number; + +export const KEY_2: number; + +export const KEY_3: number; + +export const KEY_3270_AltCursor: number; + +export const KEY_3270_Attn: number; + +export const KEY_3270_BackTab: number; + +export const KEY_3270_ChangeScreen: number; + +export const KEY_3270_Copy: number; + +export const KEY_3270_CursorBlink: number; + +export const KEY_3270_CursorSelect: number; + +export const KEY_3270_DeleteWord: number; + +export const KEY_3270_Duplicate: number; + +export const KEY_3270_Enter: number; + +export const KEY_3270_EraseEOF: number; + +export const KEY_3270_EraseInput: number; + +export const KEY_3270_ExSelect: number; + +export const KEY_3270_FieldMark: number; + +export const KEY_3270_Ident: number; + +export const KEY_3270_Jump: number; + +export const KEY_3270_KeyClick: number; + +export const KEY_3270_Left2: number; + +export const KEY_3270_PA1: number; + +export const KEY_3270_PA2: number; + +export const KEY_3270_PA3: number; + +export const KEY_3270_Play: number; + +export const KEY_3270_PrintScreen: number; + +export const KEY_3270_Quit: number; + +export const KEY_3270_Record: number; + +export const KEY_3270_Reset: number; + +export const KEY_3270_Right2: number; + +export const KEY_3270_Rule: number; + +export const KEY_3270_Setup: number; + +export const KEY_3270_Test: number; + +export const KEY_4: number; + +export const KEY_5: number; + +export const KEY_6: number; + +export const KEY_7: number; + +export const KEY_8: number; + +export const KEY_9: number; + +export const KEY_A: number; + +export const KEY_AE: number; + +export const KEY_Aacute: number; + +export const KEY_Abelowdot: number; + +export const KEY_Abreve: number; + +export const KEY_Abreveacute: number; + +export const KEY_Abrevebelowdot: number; + +export const KEY_Abrevegrave: number; + +export const KEY_Abrevehook: number; + +export const KEY_Abrevetilde: number; + +export const KEY_AccessX_Enable: number; + +export const KEY_AccessX_Feedback_Enable: number; + +export const KEY_Acircumflex: number; + +export const KEY_Acircumflexacute: number; + +export const KEY_Acircumflexbelowdot: number; + +export const KEY_Acircumflexgrave: number; + +export const KEY_Acircumflexhook: number; + +export const KEY_Acircumflextilde: number; + +export const KEY_AddFavorite: number; + +export const KEY_Adiaeresis: number; + +export const KEY_Agrave: number; + +export const KEY_Ahook: number; + +export const KEY_Alt_L: number; + +export const KEY_Alt_R: number; + +export const KEY_Amacron: number; + +export const KEY_Aogonek: number; + +export const KEY_ApplicationLeft: number; + +export const KEY_ApplicationRight: number; + +export const KEY_Arabic_0: number; + +export const KEY_Arabic_1: number; + +export const KEY_Arabic_2: number; + +export const KEY_Arabic_3: number; + +export const KEY_Arabic_4: number; + +export const KEY_Arabic_5: number; + +export const KEY_Arabic_6: number; + +export const KEY_Arabic_7: number; + +export const KEY_Arabic_8: number; + +export const KEY_Arabic_9: number; + +export const KEY_Arabic_ain: number; + +export const KEY_Arabic_alef: number; + +export const KEY_Arabic_alefmaksura: number; + +export const KEY_Arabic_beh: number; + +export const KEY_Arabic_comma: number; + +export const KEY_Arabic_dad: number; + +export const KEY_Arabic_dal: number; + +export const KEY_Arabic_damma: number; + +export const KEY_Arabic_dammatan: number; + +export const KEY_Arabic_ddal: number; + +export const KEY_Arabic_farsi_yeh: number; + +export const KEY_Arabic_fatha: number; + +export const KEY_Arabic_fathatan: number; + +export const KEY_Arabic_feh: number; + +export const KEY_Arabic_fullstop: number; + +export const KEY_Arabic_gaf: number; + +export const KEY_Arabic_ghain: number; + +export const KEY_Arabic_ha: number; + +export const KEY_Arabic_hah: number; + +export const KEY_Arabic_hamza: number; + +export const KEY_Arabic_hamza_above: number; + +export const KEY_Arabic_hamza_below: number; + +export const KEY_Arabic_hamzaonalef: number; + +export const KEY_Arabic_hamzaonwaw: number; + +export const KEY_Arabic_hamzaonyeh: number; + +export const KEY_Arabic_hamzaunderalef: number; + +export const KEY_Arabic_heh: number; + +export const KEY_Arabic_heh_doachashmee: number; + +export const KEY_Arabic_heh_goal: number; + +export const KEY_Arabic_jeem: number; + +export const KEY_Arabic_jeh: number; + +export const KEY_Arabic_kaf: number; + +export const KEY_Arabic_kasra: number; + +export const KEY_Arabic_kasratan: number; + +export const KEY_Arabic_keheh: number; + +export const KEY_Arabic_khah: number; + +export const KEY_Arabic_lam: number; + +export const KEY_Arabic_madda_above: number; + +export const KEY_Arabic_maddaonalef: number; + +export const KEY_Arabic_meem: number; + +export const KEY_Arabic_noon: number; + +export const KEY_Arabic_noon_ghunna: number; + +export const KEY_Arabic_peh: number; + +export const KEY_Arabic_percent: number; + +export const KEY_Arabic_qaf: number; + +export const KEY_Arabic_question_mark: number; + +export const KEY_Arabic_ra: number; + +export const KEY_Arabic_rreh: number; + +export const KEY_Arabic_sad: number; + +export const KEY_Arabic_seen: number; + +export const KEY_Arabic_semicolon: number; + +export const KEY_Arabic_shadda: number; + +export const KEY_Arabic_sheen: number; + +export const KEY_Arabic_sukun: number; + +export const KEY_Arabic_superscript_alef: number; + +export const KEY_Arabic_switch: number; + +export const KEY_Arabic_tah: number; + +export const KEY_Arabic_tatweel: number; + +export const KEY_Arabic_tcheh: number; + +export const KEY_Arabic_teh: number; + +export const KEY_Arabic_tehmarbuta: number; + +export const KEY_Arabic_thal: number; + +export const KEY_Arabic_theh: number; + +export const KEY_Arabic_tteh: number; + +export const KEY_Arabic_veh: number; + +export const KEY_Arabic_waw: number; + +export const KEY_Arabic_yeh: number; + +export const KEY_Arabic_yeh_baree: number; + +export const KEY_Arabic_zah: number; + +export const KEY_Arabic_zain: number; + +export const KEY_Aring: number; + +export const KEY_Armenian_AT: number; + +export const KEY_Armenian_AYB: number; + +export const KEY_Armenian_BEN: number; + +export const KEY_Armenian_CHA: number; + +export const KEY_Armenian_DA: number; + +export const KEY_Armenian_DZA: number; + +export const KEY_Armenian_E: number; + +export const KEY_Armenian_FE: number; + +export const KEY_Armenian_GHAT: number; + +export const KEY_Armenian_GIM: number; + +export const KEY_Armenian_HI: number; + +export const KEY_Armenian_HO: number; + +export const KEY_Armenian_INI: number; + +export const KEY_Armenian_JE: number; + +export const KEY_Armenian_KE: number; + +export const KEY_Armenian_KEN: number; + +export const KEY_Armenian_KHE: number; + +export const KEY_Armenian_LYUN: number; + +export const KEY_Armenian_MEN: number; + +export const KEY_Armenian_NU: number; + +export const KEY_Armenian_O: number; + +export const KEY_Armenian_PE: number; + +export const KEY_Armenian_PYUR: number; + +export const KEY_Armenian_RA: number; + +export const KEY_Armenian_RE: number; + +export const KEY_Armenian_SE: number; + +export const KEY_Armenian_SHA: number; + +export const KEY_Armenian_TCHE: number; + +export const KEY_Armenian_TO: number; + +export const KEY_Armenian_TSA: number; + +export const KEY_Armenian_TSO: number; + +export const KEY_Armenian_TYUN: number; + +export const KEY_Armenian_VEV: number; + +export const KEY_Armenian_VO: number; + +export const KEY_Armenian_VYUN: number; + +export const KEY_Armenian_YECH: number; + +export const KEY_Armenian_ZA: number; + +export const KEY_Armenian_ZHE: number; + +export const KEY_Armenian_accent: number; + +export const KEY_Armenian_amanak: number; + +export const KEY_Armenian_apostrophe: number; + +export const KEY_Armenian_at: number; + +export const KEY_Armenian_ayb: number; + +export const KEY_Armenian_ben: number; + +export const KEY_Armenian_but: number; + +export const KEY_Armenian_cha: number; + +export const KEY_Armenian_da: number; + +export const KEY_Armenian_dza: number; + +export const KEY_Armenian_e: number; + +export const KEY_Armenian_exclam: number; + +export const KEY_Armenian_fe: number; + +export const KEY_Armenian_full_stop: number; + +export const KEY_Armenian_ghat: number; + +export const KEY_Armenian_gim: number; + +export const KEY_Armenian_hi: number; + +export const KEY_Armenian_ho: number; + +export const KEY_Armenian_hyphen: number; + +export const KEY_Armenian_ini: number; + +export const KEY_Armenian_je: number; + +export const KEY_Armenian_ke: number; + +export const KEY_Armenian_ken: number; + +export const KEY_Armenian_khe: number; + +export const KEY_Armenian_ligature_ew: number; + +export const KEY_Armenian_lyun: number; + +export const KEY_Armenian_men: number; + +export const KEY_Armenian_nu: number; + +export const KEY_Armenian_o: number; + +export const KEY_Armenian_paruyk: number; + +export const KEY_Armenian_pe: number; + +export const KEY_Armenian_pyur: number; + +export const KEY_Armenian_question: number; + +export const KEY_Armenian_ra: number; + +export const KEY_Armenian_re: number; + +export const KEY_Armenian_se: number; + +export const KEY_Armenian_separation_mark: number; + +export const KEY_Armenian_sha: number; + +export const KEY_Armenian_shesht: number; + +export const KEY_Armenian_tche: number; + +export const KEY_Armenian_to: number; + +export const KEY_Armenian_tsa: number; + +export const KEY_Armenian_tso: number; + +export const KEY_Armenian_tyun: number; + +export const KEY_Armenian_verjaket: number; + +export const KEY_Armenian_vev: number; + +export const KEY_Armenian_vo: number; + +export const KEY_Armenian_vyun: number; + +export const KEY_Armenian_yech: number; + +export const KEY_Armenian_yentamna: number; + +export const KEY_Armenian_za: number; + +export const KEY_Armenian_zhe: number; + +export const KEY_Atilde: number; + +export const KEY_AudibleBell_Enable: number; + +export const KEY_AudioCycleTrack: number; + +export const KEY_AudioForward: number; + +export const KEY_AudioLowerVolume: number; + +export const KEY_AudioMedia: number; + +export const KEY_AudioMicMute: number; + +export const KEY_AudioMute: number; + +export const KEY_AudioNext: number; + +export const KEY_AudioPause: number; + +export const KEY_AudioPlay: number; + +export const KEY_AudioPrev: number; + +export const KEY_AudioRaiseVolume: number; + +export const KEY_AudioRandomPlay: number; + +export const KEY_AudioRecord: number; + +export const KEY_AudioRepeat: number; + +export const KEY_AudioRewind: number; + +export const KEY_AudioStop: number; + +export const KEY_Away: number; + +export const KEY_B: number; + +export const KEY_Babovedot: number; + +export const KEY_Back: number; + +export const KEY_BackForward: number; + +export const KEY_BackSpace: number; + +export const KEY_Battery: number; + +export const KEY_Begin: number; + +export const KEY_Blue: number; + +export const KEY_Bluetooth: number; + +export const KEY_Book: number; + +export const KEY_BounceKeys_Enable: number; + +export const KEY_Break: number; + +export const KEY_BrightnessAdjust: number; + +export const KEY_Byelorussian_SHORTU: number; + +export const KEY_Byelorussian_shortu: number; + +export const KEY_C: number; + +export const KEY_CD: number; + +export const KEY_CH: number; + +export const KEY_C_H: number; + +export const KEY_C_h: number; + +export const KEY_Cabovedot: number; + +export const KEY_Cacute: number; + +export const KEY_Calculator: number; + +export const KEY_Calendar: number; + +export const KEY_Cancel: number; + +export const KEY_Caps_Lock: number; + +export const KEY_Ccaron: number; + +export const KEY_Ccedilla: number; + +export const KEY_Ccircumflex: number; + +export const KEY_Ch: number; + +export const KEY_Clear: number; + +export const KEY_ClearGrab: number; + +export const KEY_Close: number; + +export const KEY_Codeinput: number; + +export const KEY_ColonSign: number; + +export const KEY_Community: number; + +export const KEY_ContrastAdjust: number; + +export const KEY_Control_L: number; + +export const KEY_Control_R: number; + +export const KEY_Copy: number; + +export const KEY_CruzeiroSign: number; + +export const KEY_Cut: number; + +export const KEY_CycleAngle: number; + +export const KEY_Cyrillic_A: number; + +export const KEY_Cyrillic_BE: number; + +export const KEY_Cyrillic_CHE: number; + +export const KEY_Cyrillic_CHE_descender: number; + +export const KEY_Cyrillic_CHE_vertstroke: number; + +export const KEY_Cyrillic_DE: number; + +export const KEY_Cyrillic_DZHE: number; + +export const KEY_Cyrillic_E: number; + +export const KEY_Cyrillic_EF: number; + +export const KEY_Cyrillic_EL: number; + +export const KEY_Cyrillic_EM: number; + +export const KEY_Cyrillic_EN: number; + +export const KEY_Cyrillic_EN_descender: number; + +export const KEY_Cyrillic_ER: number; + +export const KEY_Cyrillic_ES: number; + +export const KEY_Cyrillic_GHE: number; + +export const KEY_Cyrillic_GHE_bar: number; + +export const KEY_Cyrillic_HA: number; + +export const KEY_Cyrillic_HARDSIGN: number; + +export const KEY_Cyrillic_HA_descender: number; + +export const KEY_Cyrillic_I: number; + +export const KEY_Cyrillic_IE: number; + +export const KEY_Cyrillic_IO: number; + +export const KEY_Cyrillic_I_macron: number; + +export const KEY_Cyrillic_JE: number; + +export const KEY_Cyrillic_KA: number; + +export const KEY_Cyrillic_KA_descender: number; + +export const KEY_Cyrillic_KA_vertstroke: number; + +export const KEY_Cyrillic_LJE: number; + +export const KEY_Cyrillic_NJE: number; + +export const KEY_Cyrillic_O: number; + +export const KEY_Cyrillic_O_bar: number; + +export const KEY_Cyrillic_PE: number; + +export const KEY_Cyrillic_SCHWA: number; + +export const KEY_Cyrillic_SHA: number; + +export const KEY_Cyrillic_SHCHA: number; + +export const KEY_Cyrillic_SHHA: number; + +export const KEY_Cyrillic_SHORTI: number; + +export const KEY_Cyrillic_SOFTSIGN: number; + +export const KEY_Cyrillic_TE: number; + +export const KEY_Cyrillic_TSE: number; + +export const KEY_Cyrillic_U: number; + +export const KEY_Cyrillic_U_macron: number; + +export const KEY_Cyrillic_U_straight: number; + +export const KEY_Cyrillic_U_straight_bar: number; + +export const KEY_Cyrillic_VE: number; + +export const KEY_Cyrillic_YA: number; + +export const KEY_Cyrillic_YERU: number; + +export const KEY_Cyrillic_YU: number; + +export const KEY_Cyrillic_ZE: number; + +export const KEY_Cyrillic_ZHE: number; + +export const KEY_Cyrillic_ZHE_descender: number; + +export const KEY_Cyrillic_a: number; + +export const KEY_Cyrillic_be: number; + +export const KEY_Cyrillic_che: number; + +export const KEY_Cyrillic_che_descender: number; + +export const KEY_Cyrillic_che_vertstroke: number; + +export const KEY_Cyrillic_de: number; + +export const KEY_Cyrillic_dzhe: number; + +export const KEY_Cyrillic_e: number; + +export const KEY_Cyrillic_ef: number; + +export const KEY_Cyrillic_el: number; + +export const KEY_Cyrillic_em: number; + +export const KEY_Cyrillic_en: number; + +export const KEY_Cyrillic_en_descender: number; + +export const KEY_Cyrillic_er: number; + +export const KEY_Cyrillic_es: number; + +export const KEY_Cyrillic_ghe: number; + +export const KEY_Cyrillic_ghe_bar: number; + +export const KEY_Cyrillic_ha: number; + +export const KEY_Cyrillic_ha_descender: number; + +export const KEY_Cyrillic_hardsign: number; + +export const KEY_Cyrillic_i: number; + +export const KEY_Cyrillic_i_macron: number; + +export const KEY_Cyrillic_ie: number; + +export const KEY_Cyrillic_io: number; + +export const KEY_Cyrillic_je: number; + +export const KEY_Cyrillic_ka: number; + +export const KEY_Cyrillic_ka_descender: number; + +export const KEY_Cyrillic_ka_vertstroke: number; + +export const KEY_Cyrillic_lje: number; + +export const KEY_Cyrillic_nje: number; + +export const KEY_Cyrillic_o: number; + +export const KEY_Cyrillic_o_bar: number; + +export const KEY_Cyrillic_pe: number; + +export const KEY_Cyrillic_schwa: number; + +export const KEY_Cyrillic_sha: number; + +export const KEY_Cyrillic_shcha: number; + +export const KEY_Cyrillic_shha: number; + +export const KEY_Cyrillic_shorti: number; + +export const KEY_Cyrillic_softsign: number; + +export const KEY_Cyrillic_te: number; + +export const KEY_Cyrillic_tse: number; + +export const KEY_Cyrillic_u: number; + +export const KEY_Cyrillic_u_macron: number; + +export const KEY_Cyrillic_u_straight: number; + +export const KEY_Cyrillic_u_straight_bar: number; + +export const KEY_Cyrillic_ve: number; + +export const KEY_Cyrillic_ya: number; + +export const KEY_Cyrillic_yeru: number; + +export const KEY_Cyrillic_yu: number; + +export const KEY_Cyrillic_ze: number; + +export const KEY_Cyrillic_zhe: number; + +export const KEY_Cyrillic_zhe_descender: number; + +export const KEY_D: number; + +export const KEY_DOS: number; + +export const KEY_Dabovedot: number; + +export const KEY_Dcaron: number; + +export const KEY_Delete: number; + +export const KEY_Display: number; + +export const KEY_Documents: number; + +export const KEY_DongSign: number; + +export const KEY_Down: number; + +export const KEY_Dstroke: number; + +export const KEY_E: number; + +export const KEY_ENG: number; + +export const KEY_ETH: number; + +export const KEY_EZH: number; + +export const KEY_Eabovedot: number; + +export const KEY_Eacute: number; + +export const KEY_Ebelowdot: number; + +export const KEY_Ecaron: number; + +export const KEY_Ecircumflex: number; + +export const KEY_Ecircumflexacute: number; + +export const KEY_Ecircumflexbelowdot: number; + +export const KEY_Ecircumflexgrave: number; + +export const KEY_Ecircumflexhook: number; + +export const KEY_Ecircumflextilde: number; + +export const KEY_EcuSign: number; + +export const KEY_Ediaeresis: number; + +export const KEY_Egrave: number; + +export const KEY_Ehook: number; + +export const KEY_Eisu_Shift: number; + +export const KEY_Eisu_toggle: number; + +export const KEY_Eject: number; + +export const KEY_Emacron: number; + +export const KEY_End: number; + +export const KEY_Eogonek: number; + +export const KEY_Escape: number; + +export const KEY_Eth: number; + +export const KEY_Etilde: number; + +export const KEY_EuroSign: number; + +export const KEY_Excel: number; + +export const KEY_Execute: number; + +export const KEY_Explorer: number; + +export const KEY_F: number; + +export const KEY_F1: number; + +export const KEY_F10: number; + +export const KEY_F11: number; + +export const KEY_F12: number; + +export const KEY_F13: number; + +export const KEY_F14: number; + +export const KEY_F15: number; + +export const KEY_F16: number; + +export const KEY_F17: number; + +export const KEY_F18: number; + +export const KEY_F19: number; + +export const KEY_F2: number; + +export const KEY_F20: number; + +export const KEY_F21: number; + +export const KEY_F22: number; + +export const KEY_F23: number; + +export const KEY_F24: number; + +export const KEY_F25: number; + +export const KEY_F26: number; + +export const KEY_F27: number; + +export const KEY_F28: number; + +export const KEY_F29: number; + +export const KEY_F3: number; + +export const KEY_F30: number; + +export const KEY_F31: number; + +export const KEY_F32: number; + +export const KEY_F33: number; + +export const KEY_F34: number; + +export const KEY_F35: number; + +export const KEY_F4: number; + +export const KEY_F5: number; + +export const KEY_F6: number; + +export const KEY_F7: number; + +export const KEY_F8: number; + +export const KEY_F9: number; + +export const KEY_FFrancSign: number; + +export const KEY_Fabovedot: number; + +export const KEY_Farsi_0: number; + +export const KEY_Farsi_1: number; + +export const KEY_Farsi_2: number; + +export const KEY_Farsi_3: number; + +export const KEY_Farsi_4: number; + +export const KEY_Farsi_5: number; + +export const KEY_Farsi_6: number; + +export const KEY_Farsi_7: number; + +export const KEY_Farsi_8: number; + +export const KEY_Farsi_9: number; + +export const KEY_Farsi_yeh: number; + +export const KEY_Favorites: number; + +export const KEY_Finance: number; + +export const KEY_Find: number; + +export const KEY_First_Virtual_Screen: number; + +export const KEY_Forward: number; + +export const KEY_FrameBack: number; + +export const KEY_FrameForward: number; + +export const KEY_G: number; + +export const KEY_Gabovedot: number; + +export const KEY_Game: number; + +export const KEY_Gbreve: number; + +export const KEY_Gcaron: number; + +export const KEY_Gcedilla: number; + +export const KEY_Gcircumflex: number; + +export const KEY_Georgian_an: number; + +export const KEY_Georgian_ban: number; + +export const KEY_Georgian_can: number; + +export const KEY_Georgian_char: number; + +export const KEY_Georgian_chin: number; + +export const KEY_Georgian_cil: number; + +export const KEY_Georgian_don: number; + +export const KEY_Georgian_en: number; + +export const KEY_Georgian_fi: number; + +export const KEY_Georgian_gan: number; + +export const KEY_Georgian_ghan: number; + +export const KEY_Georgian_hae: number; + +export const KEY_Georgian_har: number; + +export const KEY_Georgian_he: number; + +export const KEY_Georgian_hie: number; + +export const KEY_Georgian_hoe: number; + +export const KEY_Georgian_in: number; + +export const KEY_Georgian_jhan: number; + +export const KEY_Georgian_jil: number; + +export const KEY_Georgian_kan: number; + +export const KEY_Georgian_khar: number; + +export const KEY_Georgian_las: number; + +export const KEY_Georgian_man: number; + +export const KEY_Georgian_nar: number; + +export const KEY_Georgian_on: number; + +export const KEY_Georgian_par: number; + +export const KEY_Georgian_phar: number; + +export const KEY_Georgian_qar: number; + +export const KEY_Georgian_rae: number; + +export const KEY_Georgian_san: number; + +export const KEY_Georgian_shin: number; + +export const KEY_Georgian_tan: number; + +export const KEY_Georgian_tar: number; + +export const KEY_Georgian_un: number; + +export const KEY_Georgian_vin: number; + +export const KEY_Georgian_we: number; + +export const KEY_Georgian_xan: number; + +export const KEY_Georgian_zen: number; + +export const KEY_Georgian_zhar: number; + +export const KEY_Go: number; + +export const KEY_Greek_ALPHA: number; + +export const KEY_Greek_ALPHAaccent: number; + +export const KEY_Greek_BETA: number; + +export const KEY_Greek_CHI: number; + +export const KEY_Greek_DELTA: number; + +export const KEY_Greek_EPSILON: number; + +export const KEY_Greek_EPSILONaccent: number; + +export const KEY_Greek_ETA: number; + +export const KEY_Greek_ETAaccent: number; + +export const KEY_Greek_GAMMA: number; + +export const KEY_Greek_IOTA: number; + +export const KEY_Greek_IOTAaccent: number; + +export const KEY_Greek_IOTAdiaeresis: number; + +export const KEY_Greek_IOTAdieresis: number; + +export const KEY_Greek_KAPPA: number; + +export const KEY_Greek_LAMBDA: number; + +export const KEY_Greek_LAMDA: number; + +export const KEY_Greek_MU: number; + +export const KEY_Greek_NU: number; + +export const KEY_Greek_OMEGA: number; + +export const KEY_Greek_OMEGAaccent: number; + +export const KEY_Greek_OMICRON: number; + +export const KEY_Greek_OMICRONaccent: number; + +export const KEY_Greek_PHI: number; + +export const KEY_Greek_PI: number; + +export const KEY_Greek_PSI: number; + +export const KEY_Greek_RHO: number; + +export const KEY_Greek_SIGMA: number; + +export const KEY_Greek_TAU: number; + +export const KEY_Greek_THETA: number; + +export const KEY_Greek_UPSILON: number; + +export const KEY_Greek_UPSILONaccent: number; + +export const KEY_Greek_UPSILONdieresis: number; + +export const KEY_Greek_XI: number; + +export const KEY_Greek_ZETA: number; + +export const KEY_Greek_accentdieresis: number; + +export const KEY_Greek_alpha: number; + +export const KEY_Greek_alphaaccent: number; + +export const KEY_Greek_beta: number; + +export const KEY_Greek_chi: number; + +export const KEY_Greek_delta: number; + +export const KEY_Greek_epsilon: number; + +export const KEY_Greek_epsilonaccent: number; + +export const KEY_Greek_eta: number; + +export const KEY_Greek_etaaccent: number; + +export const KEY_Greek_finalsmallsigma: number; + +export const KEY_Greek_gamma: number; + +export const KEY_Greek_horizbar: number; + +export const KEY_Greek_iota: number; + +export const KEY_Greek_iotaaccent: number; + +export const KEY_Greek_iotaaccentdieresis: number; + +export const KEY_Greek_iotadieresis: number; + +export const KEY_Greek_kappa: number; + +export const KEY_Greek_lambda: number; + +export const KEY_Greek_lamda: number; + +export const KEY_Greek_mu: number; + +export const KEY_Greek_nu: number; + +export const KEY_Greek_omega: number; + +export const KEY_Greek_omegaaccent: number; + +export const KEY_Greek_omicron: number; + +export const KEY_Greek_omicronaccent: number; + +export const KEY_Greek_phi: number; + +export const KEY_Greek_pi: number; + +export const KEY_Greek_psi: number; + +export const KEY_Greek_rho: number; + +export const KEY_Greek_sigma: number; + +export const KEY_Greek_switch: number; + +export const KEY_Greek_tau: number; + +export const KEY_Greek_theta: number; + +export const KEY_Greek_upsilon: number; + +export const KEY_Greek_upsilonaccent: number; + +export const KEY_Greek_upsilonaccentdieresis: number; + +export const KEY_Greek_upsilondieresis: number; + +export const KEY_Greek_xi: number; + +export const KEY_Greek_zeta: number; + +export const KEY_Green: number; + +export const KEY_H: number; + +export const KEY_Hangul: number; + +export const KEY_Hangul_A: number; + +export const KEY_Hangul_AE: number; + +export const KEY_Hangul_AraeA: number; + +export const KEY_Hangul_AraeAE: number; + +export const KEY_Hangul_Banja: number; + +export const KEY_Hangul_Cieuc: number; + +export const KEY_Hangul_Codeinput: number; + +export const KEY_Hangul_Dikeud: number; + +export const KEY_Hangul_E: number; + +export const KEY_Hangul_EO: number; + +export const KEY_Hangul_EU: number; + +export const KEY_Hangul_End: number; + +export const KEY_Hangul_Hanja: number; + +export const KEY_Hangul_Hieuh: number; + +export const KEY_Hangul_I: number; + +export const KEY_Hangul_Ieung: number; + +export const KEY_Hangul_J_Cieuc: number; + +export const KEY_Hangul_J_Dikeud: number; + +export const KEY_Hangul_J_Hieuh: number; + +export const KEY_Hangul_J_Ieung: number; + +export const KEY_Hangul_J_Jieuj: number; + +export const KEY_Hangul_J_Khieuq: number; + +export const KEY_Hangul_J_Kiyeog: number; + +export const KEY_Hangul_J_KiyeogSios: number; + +export const KEY_Hangul_J_KkogjiDalrinIeung: number; + +export const KEY_Hangul_J_Mieum: number; + +export const KEY_Hangul_J_Nieun: number; + +export const KEY_Hangul_J_NieunHieuh: number; + +export const KEY_Hangul_J_NieunJieuj: number; + +export const KEY_Hangul_J_PanSios: number; + +export const KEY_Hangul_J_Phieuf: number; + +export const KEY_Hangul_J_Pieub: number; + +export const KEY_Hangul_J_PieubSios: number; + +export const KEY_Hangul_J_Rieul: number; + +export const KEY_Hangul_J_RieulHieuh: number; + +export const KEY_Hangul_J_RieulKiyeog: number; + +export const KEY_Hangul_J_RieulMieum: number; + +export const KEY_Hangul_J_RieulPhieuf: number; + +export const KEY_Hangul_J_RieulPieub: number; + +export const KEY_Hangul_J_RieulSios: number; + +export const KEY_Hangul_J_RieulTieut: number; + +export const KEY_Hangul_J_Sios: number; + +export const KEY_Hangul_J_SsangKiyeog: number; + +export const KEY_Hangul_J_SsangSios: number; + +export const KEY_Hangul_J_Tieut: number; + +export const KEY_Hangul_J_YeorinHieuh: number; + +export const KEY_Hangul_Jamo: number; + +export const KEY_Hangul_Jeonja: number; + +export const KEY_Hangul_Jieuj: number; + +export const KEY_Hangul_Khieuq: number; + +export const KEY_Hangul_Kiyeog: number; + +export const KEY_Hangul_KiyeogSios: number; + +export const KEY_Hangul_KkogjiDalrinIeung: number; + +export const KEY_Hangul_Mieum: number; + +export const KEY_Hangul_MultipleCandidate: number; + +export const KEY_Hangul_Nieun: number; + +export const KEY_Hangul_NieunHieuh: number; + +export const KEY_Hangul_NieunJieuj: number; + +export const KEY_Hangul_O: number; + +export const KEY_Hangul_OE: number; + +export const KEY_Hangul_PanSios: number; + +export const KEY_Hangul_Phieuf: number; + +export const KEY_Hangul_Pieub: number; + +export const KEY_Hangul_PieubSios: number; + +export const KEY_Hangul_PostHanja: number; + +export const KEY_Hangul_PreHanja: number; + +export const KEY_Hangul_PreviousCandidate: number; + +export const KEY_Hangul_Rieul: number; + +export const KEY_Hangul_RieulHieuh: number; + +export const KEY_Hangul_RieulKiyeog: number; + +export const KEY_Hangul_RieulMieum: number; + +export const KEY_Hangul_RieulPhieuf: number; + +export const KEY_Hangul_RieulPieub: number; + +export const KEY_Hangul_RieulSios: number; + +export const KEY_Hangul_RieulTieut: number; + +export const KEY_Hangul_RieulYeorinHieuh: number; + +export const KEY_Hangul_Romaja: number; + +export const KEY_Hangul_SingleCandidate: number; + +export const KEY_Hangul_Sios: number; + +export const KEY_Hangul_Special: number; + +export const KEY_Hangul_SsangDikeud: number; + +export const KEY_Hangul_SsangJieuj: number; + +export const KEY_Hangul_SsangKiyeog: number; + +export const KEY_Hangul_SsangPieub: number; + +export const KEY_Hangul_SsangSios: number; + +export const KEY_Hangul_Start: number; + +export const KEY_Hangul_SunkyeongeumMieum: number; + +export const KEY_Hangul_SunkyeongeumPhieuf: number; + +export const KEY_Hangul_SunkyeongeumPieub: number; + +export const KEY_Hangul_Tieut: number; + +export const KEY_Hangul_U: number; + +export const KEY_Hangul_WA: number; + +export const KEY_Hangul_WAE: number; + +export const KEY_Hangul_WE: number; + +export const KEY_Hangul_WEO: number; + +export const KEY_Hangul_WI: number; + +export const KEY_Hangul_YA: number; + +export const KEY_Hangul_YAE: number; + +export const KEY_Hangul_YE: number; + +export const KEY_Hangul_YEO: number; + +export const KEY_Hangul_YI: number; + +export const KEY_Hangul_YO: number; + +export const KEY_Hangul_YU: number; + +export const KEY_Hangul_YeorinHieuh: number; + +export const KEY_Hangul_switch: number; + +export const KEY_Hankaku: number; + +export const KEY_Hcircumflex: number; + +export const KEY_Hebrew_switch: number; + +export const KEY_Help: number; + +export const KEY_Henkan: number; + +export const KEY_Henkan_Mode: number; + +export const KEY_Hibernate: number; + +export const KEY_Hiragana: number; + +export const KEY_Hiragana_Katakana: number; + +export const KEY_History: number; + +export const KEY_Home: number; + +export const KEY_HomePage: number; + +export const KEY_HotLinks: number; + +export const KEY_Hstroke: number; + +export const KEY_Hyper_L: number; + +export const KEY_Hyper_R: number; + +export const KEY_I: number; + +export const KEY_ISO_Center_Object: number; + +export const KEY_ISO_Continuous_Underline: number; + +export const KEY_ISO_Discontinuous_Underline: number; + +export const KEY_ISO_Emphasize: number; + +export const KEY_ISO_Enter: number; + +export const KEY_ISO_Fast_Cursor_Down: number; + +export const KEY_ISO_Fast_Cursor_Left: number; + +export const KEY_ISO_Fast_Cursor_Right: number; + +export const KEY_ISO_Fast_Cursor_Up: number; + +export const KEY_ISO_First_Group: number; + +export const KEY_ISO_First_Group_Lock: number; + +export const KEY_ISO_Group_Latch: number; + +export const KEY_ISO_Group_Lock: number; + +export const KEY_ISO_Group_Shift: number; + +export const KEY_ISO_Last_Group: number; + +export const KEY_ISO_Last_Group_Lock: number; + +export const KEY_ISO_Left_Tab: number; + +export const KEY_ISO_Level2_Latch: number; + +export const KEY_ISO_Level3_Latch: number; + +export const KEY_ISO_Level3_Lock: number; + +export const KEY_ISO_Level3_Shift: number; + +export const KEY_ISO_Level5_Latch: number; + +export const KEY_ISO_Level5_Lock: number; + +export const KEY_ISO_Level5_Shift: number; + +export const KEY_ISO_Lock: number; + +export const KEY_ISO_Move_Line_Down: number; + +export const KEY_ISO_Move_Line_Up: number; + +export const KEY_ISO_Next_Group: number; + +export const KEY_ISO_Next_Group_Lock: number; + +export const KEY_ISO_Partial_Line_Down: number; + +export const KEY_ISO_Partial_Line_Up: number; + +export const KEY_ISO_Partial_Space_Left: number; + +export const KEY_ISO_Partial_Space_Right: number; + +export const KEY_ISO_Prev_Group: number; + +export const KEY_ISO_Prev_Group_Lock: number; + +export const KEY_ISO_Release_Both_Margins: number; + +export const KEY_ISO_Release_Margin_Left: number; + +export const KEY_ISO_Release_Margin_Right: number; + +export const KEY_ISO_Set_Margin_Left: number; + +export const KEY_ISO_Set_Margin_Right: number; + +export const KEY_Iabovedot: number; + +export const KEY_Iacute: number; + +export const KEY_Ibelowdot: number; + +export const KEY_Ibreve: number; + +export const KEY_Icircumflex: number; + +export const KEY_Idiaeresis: number; + +export const KEY_Igrave: number; + +export const KEY_Ihook: number; + +export const KEY_Imacron: number; + +export const KEY_Insert: number; + +export const KEY_Iogonek: number; + +export const KEY_Itilde: number; + +export const KEY_J: number; + +export const KEY_Jcircumflex: number; + +export const KEY_K: number; + +export const KEY_KP_0: number; + +export const KEY_KP_1: number; + +export const KEY_KP_2: number; + +export const KEY_KP_3: number; + +export const KEY_KP_4: number; + +export const KEY_KP_5: number; + +export const KEY_KP_6: number; + +export const KEY_KP_7: number; + +export const KEY_KP_8: number; + +export const KEY_KP_9: number; + +export const KEY_KP_Add: number; + +export const KEY_KP_Begin: number; + +export const KEY_KP_Decimal: number; + +export const KEY_KP_Delete: number; + +export const KEY_KP_Divide: number; + +export const KEY_KP_Down: number; + +export const KEY_KP_End: number; + +export const KEY_KP_Enter: number; + +export const KEY_KP_Equal: number; + +export const KEY_KP_F1: number; + +export const KEY_KP_F2: number; + +export const KEY_KP_F3: number; + +export const KEY_KP_F4: number; + +export const KEY_KP_Home: number; + +export const KEY_KP_Insert: number; + +export const KEY_KP_Left: number; + +export const KEY_KP_Multiply: number; + +export const KEY_KP_Next: number; + +export const KEY_KP_Page_Down: number; + +export const KEY_KP_Page_Up: number; + +export const KEY_KP_Prior: number; + +export const KEY_KP_Right: number; + +export const KEY_KP_Separator: number; + +export const KEY_KP_Space: number; + +export const KEY_KP_Subtract: number; + +export const KEY_KP_Tab: number; + +export const KEY_KP_Up: number; + +export const KEY_Kana_Lock: number; + +export const KEY_Kana_Shift: number; + +export const KEY_Kanji: number; + +export const KEY_Kanji_Bangou: number; + +export const KEY_Katakana: number; + +export const KEY_KbdBrightnessDown: number; + +export const KEY_KbdBrightnessUp: number; + +export const KEY_KbdLightOnOff: number; + +export const KEY_Kcedilla: number; + +export const KEY_Korean_Won: number; + +export const KEY_L: number; + +export const KEY_L1: number; + +export const KEY_L10: number; + +export const KEY_L2: number; + +export const KEY_L3: number; + +export const KEY_L4: number; + +export const KEY_L5: number; + +export const KEY_L6: number; + +export const KEY_L7: number; + +export const KEY_L8: number; + +export const KEY_L9: number; + +export const KEY_Lacute: number; + +export const KEY_Last_Virtual_Screen: number; + +export const KEY_Launch0: number; + +export const KEY_Launch1: number; + +export const KEY_Launch2: number; + +export const KEY_Launch3: number; + +export const KEY_Launch4: number; + +export const KEY_Launch5: number; + +export const KEY_Launch6: number; + +export const KEY_Launch7: number; + +export const KEY_Launch8: number; + +export const KEY_Launch9: number; + +export const KEY_LaunchA: number; + +export const KEY_LaunchB: number; + +export const KEY_LaunchC: number; + +export const KEY_LaunchD: number; + +export const KEY_LaunchE: number; + +export const KEY_LaunchF: number; + +export const KEY_Lbelowdot: number; + +export const KEY_Lcaron: number; + +export const KEY_Lcedilla: number; + +export const KEY_Left: number; + +export const KEY_LightBulb: number; + +export const KEY_Linefeed: number; + +export const KEY_LiraSign: number; + +export const KEY_LogGrabInfo: number; + +export const KEY_LogOff: number; + +export const KEY_LogWindowTree: number; + +export const KEY_Lstroke: number; + +export const KEY_M: number; + +export const KEY_Mabovedot: number; + +export const KEY_Macedonia_DSE: number; + +export const KEY_Macedonia_GJE: number; + +export const KEY_Macedonia_KJE: number; + +export const KEY_Macedonia_dse: number; + +export const KEY_Macedonia_gje: number; + +export const KEY_Macedonia_kje: number; + +export const KEY_Mae_Koho: number; + +export const KEY_Mail: number; + +export const KEY_MailForward: number; + +export const KEY_Market: number; + +export const KEY_Massyo: number; + +export const KEY_Meeting: number; + +export const KEY_Memo: number; + +export const KEY_Menu: number; + +export const KEY_MenuKB: number; + +export const KEY_MenuPB: number; + +export const KEY_Messenger: number; + +export const KEY_Meta_L: number; + +export const KEY_Meta_R: number; + +export const KEY_MillSign: number; + +export const KEY_ModeLock: number; + +export const KEY_Mode_switch: number; + +export const KEY_MonBrightnessDown: number; + +export const KEY_MonBrightnessUp: number; + +export const KEY_MouseKeys_Accel_Enable: number; + +export const KEY_MouseKeys_Enable: number; + +export const KEY_Muhenkan: number; + +export const KEY_Multi_key: number; + +export const KEY_MultipleCandidate: number; + +export const KEY_Music: number; + +export const KEY_MyComputer: number; + +export const KEY_MySites: number; + +export const KEY_N: number; + +export const KEY_Nacute: number; + +export const KEY_NairaSign: number; + +export const KEY_Ncaron: number; + +export const KEY_Ncedilla: number; + +export const KEY_New: number; + +export const KEY_NewSheqelSign: number; + +export const KEY_News: number; + +export const KEY_Next: number; + +export const KEY_Next_VMode: number; + +export const KEY_Next_Virtual_Screen: number; + +export const KEY_Ntilde: number; + +export const KEY_Num_Lock: number; + +export const KEY_O: number; + +export const KEY_OE: number; + +export const KEY_Oacute: number; + +export const KEY_Obarred: number; + +export const KEY_Obelowdot: number; + +export const KEY_Ocaron: number; + +export const KEY_Ocircumflex: number; + +export const KEY_Ocircumflexacute: number; + +export const KEY_Ocircumflexbelowdot: number; + +export const KEY_Ocircumflexgrave: number; + +export const KEY_Ocircumflexhook: number; + +export const KEY_Ocircumflextilde: number; + +export const KEY_Odiaeresis: number; + +export const KEY_Odoubleacute: number; + +export const KEY_OfficeHome: number; + +export const KEY_Ograve: number; + +export const KEY_Ohook: number; + +export const KEY_Ohorn: number; + +export const KEY_Ohornacute: number; + +export const KEY_Ohornbelowdot: number; + +export const KEY_Ohorngrave: number; + +export const KEY_Ohornhook: number; + +export const KEY_Ohorntilde: number; + +export const KEY_Omacron: number; + +export const KEY_Ooblique: number; + +export const KEY_Open: number; + +export const KEY_OpenURL: number; + +export const KEY_Option: number; + +export const KEY_Oslash: number; + +export const KEY_Otilde: number; + +export const KEY_Overlay1_Enable: number; + +export const KEY_Overlay2_Enable: number; + +export const KEY_P: number; + +export const KEY_Pabovedot: number; + +export const KEY_Page_Down: number; + +export const KEY_Page_Up: number; + +export const KEY_Paste: number; + +export const KEY_Pause: number; + +export const KEY_PesetaSign: number; + +export const KEY_Phone: number; + +export const KEY_Pictures: number; + +export const KEY_Pointer_Accelerate: number; + +export const KEY_Pointer_Button1: number; + +export const KEY_Pointer_Button2: number; + +export const KEY_Pointer_Button3: number; + +export const KEY_Pointer_Button4: number; + +export const KEY_Pointer_Button5: number; + +export const KEY_Pointer_Button_Dflt: number; + +export const KEY_Pointer_DblClick1: number; + +export const KEY_Pointer_DblClick2: number; + +export const KEY_Pointer_DblClick3: number; + +export const KEY_Pointer_DblClick4: number; + +export const KEY_Pointer_DblClick5: number; + +export const KEY_Pointer_DblClick_Dflt: number; + +export const KEY_Pointer_DfltBtnNext: number; + +export const KEY_Pointer_DfltBtnPrev: number; + +export const KEY_Pointer_Down: number; + +export const KEY_Pointer_DownLeft: number; + +export const KEY_Pointer_DownRight: number; + +export const KEY_Pointer_Drag1: number; + +export const KEY_Pointer_Drag2: number; + +export const KEY_Pointer_Drag3: number; + +export const KEY_Pointer_Drag4: number; + +export const KEY_Pointer_Drag5: number; + +export const KEY_Pointer_Drag_Dflt: number; + +export const KEY_Pointer_EnableKeys: number; + +export const KEY_Pointer_Left: number; + +export const KEY_Pointer_Right: number; + +export const KEY_Pointer_Up: number; + +export const KEY_Pointer_UpLeft: number; + +export const KEY_Pointer_UpRight: number; + +export const KEY_PowerDown: number; + +export const KEY_PowerOff: number; + +export const KEY_Prev_VMode: number; + +export const KEY_Prev_Virtual_Screen: number; + +export const KEY_PreviousCandidate: number; + +export const KEY_Print: number; + +export const KEY_Prior: number; + +export const KEY_Q: number; + +export const KEY_R: number; + +export const KEY_R1: number; + +export const KEY_R10: number; + +export const KEY_R11: number; + +export const KEY_R12: number; + +export const KEY_R13: number; + +export const KEY_R14: number; + +export const KEY_R15: number; + +export const KEY_R2: number; + +export const KEY_R3: number; + +export const KEY_R4: number; + +export const KEY_R5: number; + +export const KEY_R6: number; + +export const KEY_R7: number; + +export const KEY_R8: number; + +export const KEY_R9: number; + +export const KEY_Racute: number; + +export const KEY_Rcaron: number; + +export const KEY_Rcedilla: number; + +export const KEY_Red: number; + +export const KEY_Redo: number; + +export const KEY_Refresh: number; + +export const KEY_Reload: number; + +export const KEY_RepeatKeys_Enable: number; + +export const KEY_Reply: number; + +export const KEY_Return: number; + +export const KEY_Right: number; + +export const KEY_RockerDown: number; + +export const KEY_RockerEnter: number; + +export const KEY_RockerUp: number; + +export const KEY_Romaji: number; + +export const KEY_RotateWindows: number; + +export const KEY_RotationKB: number; + +export const KEY_RotationPB: number; + +export const KEY_RupeeSign: number; + +export const KEY_S: number; + +export const KEY_SCHWA: number; + +export const KEY_Sabovedot: number; + +export const KEY_Sacute: number; + +export const KEY_Save: number; + +export const KEY_Scaron: number; + +export const KEY_Scedilla: number; + +export const KEY_Scircumflex: number; + +export const KEY_ScreenSaver: number; + +export const KEY_ScrollClick: number; + +export const KEY_ScrollDown: number; + +export const KEY_ScrollUp: number; + +export const KEY_Scroll_Lock: number; + +export const KEY_Search: number; + +export const KEY_Select: number; + +export const KEY_SelectButton: number; + +export const KEY_Send: number; + +export const KEY_Serbian_DJE: number; + +export const KEY_Serbian_DZE: number; + +export const KEY_Serbian_JE: number; + +export const KEY_Serbian_LJE: number; + +export const KEY_Serbian_NJE: number; + +export const KEY_Serbian_TSHE: number; + +export const KEY_Serbian_dje: number; + +export const KEY_Serbian_dze: number; + +export const KEY_Serbian_je: number; + +export const KEY_Serbian_lje: number; + +export const KEY_Serbian_nje: number; + +export const KEY_Serbian_tshe: number; + +export const KEY_Shift_L: number; + +export const KEY_Shift_Lock: number; + +export const KEY_Shift_R: number; + +export const KEY_Shop: number; + +export const KEY_SingleCandidate: number; + +export const KEY_Sinh_a: number; + +export const KEY_Sinh_aa: number; + +export const KEY_Sinh_aa2: number; + +export const KEY_Sinh_ae: number; + +export const KEY_Sinh_ae2: number; + +export const KEY_Sinh_aee: number; + +export const KEY_Sinh_aee2: number; + +export const KEY_Sinh_ai: number; + +export const KEY_Sinh_ai2: number; + +export const KEY_Sinh_al: number; + +export const KEY_Sinh_au: number; + +export const KEY_Sinh_au2: number; + +export const KEY_Sinh_ba: number; + +export const KEY_Sinh_bha: number; + +export const KEY_Sinh_ca: number; + +export const KEY_Sinh_cha: number; + +export const KEY_Sinh_dda: number; + +export const KEY_Sinh_ddha: number; + +export const KEY_Sinh_dha: number; + +export const KEY_Sinh_dhha: number; + +export const KEY_Sinh_e: number; + +export const KEY_Sinh_e2: number; + +export const KEY_Sinh_ee: number; + +export const KEY_Sinh_ee2: number; + +export const KEY_Sinh_fa: number; + +export const KEY_Sinh_ga: number; + +export const KEY_Sinh_gha: number; + +export const KEY_Sinh_h2: number; + +export const KEY_Sinh_ha: number; + +export const KEY_Sinh_i: number; + +export const KEY_Sinh_i2: number; + +export const KEY_Sinh_ii: number; + +export const KEY_Sinh_ii2: number; + +export const KEY_Sinh_ja: number; + +export const KEY_Sinh_jha: number; + +export const KEY_Sinh_jnya: number; + +export const KEY_Sinh_ka: number; + +export const KEY_Sinh_kha: number; + +export const KEY_Sinh_kunddaliya: number; + +export const KEY_Sinh_la: number; + +export const KEY_Sinh_lla: number; + +export const KEY_Sinh_lu: number; + +export const KEY_Sinh_lu2: number; + +export const KEY_Sinh_luu: number; + +export const KEY_Sinh_luu2: number; + +export const KEY_Sinh_ma: number; + +export const KEY_Sinh_mba: number; + +export const KEY_Sinh_na: number; + +export const KEY_Sinh_ndda: number; + +export const KEY_Sinh_ndha: number; + +export const KEY_Sinh_ng: number; + +export const KEY_Sinh_ng2: number; + +export const KEY_Sinh_nga: number; + +export const KEY_Sinh_nja: number; + +export const KEY_Sinh_nna: number; + +export const KEY_Sinh_nya: number; + +export const KEY_Sinh_o: number; + +export const KEY_Sinh_o2: number; + +export const KEY_Sinh_oo: number; + +export const KEY_Sinh_oo2: number; + +export const KEY_Sinh_pa: number; + +export const KEY_Sinh_pha: number; + +export const KEY_Sinh_ra: number; + +export const KEY_Sinh_ri: number; + +export const KEY_Sinh_rii: number; + +export const KEY_Sinh_ru2: number; + +export const KEY_Sinh_ruu2: number; + +export const KEY_Sinh_sa: number; + +export const KEY_Sinh_sha: number; + +export const KEY_Sinh_ssha: number; + +export const KEY_Sinh_tha: number; + +export const KEY_Sinh_thha: number; + +export const KEY_Sinh_tta: number; + +export const KEY_Sinh_ttha: number; + +export const KEY_Sinh_u: number; + +export const KEY_Sinh_u2: number; + +export const KEY_Sinh_uu: number; + +export const KEY_Sinh_uu2: number; + +export const KEY_Sinh_va: number; + +export const KEY_Sinh_ya: number; + +export const KEY_Sleep: number; + +export const KEY_SlowKeys_Enable: number; + +export const KEY_Spell: number; + +export const KEY_SplitScreen: number; + +export const KEY_Standby: number; + +export const KEY_Start: number; + +export const KEY_StickyKeys_Enable: number; + +export const KEY_Stop: number; + +export const KEY_Subtitle: number; + +export const KEY_Super_L: number; + +export const KEY_Super_R: number; + +export const KEY_Support: number; + +export const KEY_Suspend: number; + +export const KEY_Switch_VT_1: number; + +export const KEY_Switch_VT_10: number; + +export const KEY_Switch_VT_11: number; + +export const KEY_Switch_VT_12: number; + +export const KEY_Switch_VT_2: number; + +export const KEY_Switch_VT_3: number; + +export const KEY_Switch_VT_4: number; + +export const KEY_Switch_VT_5: number; + +export const KEY_Switch_VT_6: number; + +export const KEY_Switch_VT_7: number; + +export const KEY_Switch_VT_8: number; + +export const KEY_Switch_VT_9: number; + +export const KEY_Sys_Req: number; + +export const KEY_T: number; + +export const KEY_THORN: number; + +export const KEY_Tab: number; + +export const KEY_Tabovedot: number; + +export const KEY_TaskPane: number; + +export const KEY_Tcaron: number; + +export const KEY_Tcedilla: number; + +export const KEY_Terminal: number; + +export const KEY_Terminate_Server: number; + +export const KEY_Thai_baht: number; + +export const KEY_Thai_bobaimai: number; + +export const KEY_Thai_chochan: number; + +export const KEY_Thai_chochang: number; + +export const KEY_Thai_choching: number; + +export const KEY_Thai_chochoe: number; + +export const KEY_Thai_dochada: number; + +export const KEY_Thai_dodek: number; + +export const KEY_Thai_fofa: number; + +export const KEY_Thai_fofan: number; + +export const KEY_Thai_hohip: number; + +export const KEY_Thai_honokhuk: number; + +export const KEY_Thai_khokhai: number; + +export const KEY_Thai_khokhon: number; + +export const KEY_Thai_khokhuat: number; + +export const KEY_Thai_khokhwai: number; + +export const KEY_Thai_khorakhang: number; + +export const KEY_Thai_kokai: number; + +export const KEY_Thai_lakkhangyao: number; + +export const KEY_Thai_lekchet: number; + +export const KEY_Thai_lekha: number; + +export const KEY_Thai_lekhok: number; + +export const KEY_Thai_lekkao: number; + +export const KEY_Thai_leknung: number; + +export const KEY_Thai_lekpaet: number; + +export const KEY_Thai_leksam: number; + +export const KEY_Thai_leksi: number; + +export const KEY_Thai_leksong: number; + +export const KEY_Thai_leksun: number; + +export const KEY_Thai_lochula: number; + +export const KEY_Thai_loling: number; + +export const KEY_Thai_lu: number; + +export const KEY_Thai_maichattawa: number; + +export const KEY_Thai_maiek: number; + +export const KEY_Thai_maihanakat: number; + +export const KEY_Thai_maihanakat_maitho: number; + +export const KEY_Thai_maitaikhu: number; + +export const KEY_Thai_maitho: number; + +export const KEY_Thai_maitri: number; + +export const KEY_Thai_maiyamok: number; + +export const KEY_Thai_moma: number; + +export const KEY_Thai_ngongu: number; + +export const KEY_Thai_nikhahit: number; + +export const KEY_Thai_nonen: number; + +export const KEY_Thai_nonu: number; + +export const KEY_Thai_oang: number; + +export const KEY_Thai_paiyannoi: number; + +export const KEY_Thai_phinthu: number; + +export const KEY_Thai_phophan: number; + +export const KEY_Thai_phophung: number; + +export const KEY_Thai_phosamphao: number; + +export const KEY_Thai_popla: number; + +export const KEY_Thai_rorua: number; + +export const KEY_Thai_ru: number; + +export const KEY_Thai_saraa: number; + +export const KEY_Thai_saraaa: number; + +export const KEY_Thai_saraae: number; + +export const KEY_Thai_saraaimaimalai: number; + +export const KEY_Thai_saraaimaimuan: number; + +export const KEY_Thai_saraam: number; + +export const KEY_Thai_sarae: number; + +export const KEY_Thai_sarai: number; + +export const KEY_Thai_saraii: number; + +export const KEY_Thai_sarao: number; + +export const KEY_Thai_sarau: number; + +export const KEY_Thai_saraue: number; + +export const KEY_Thai_sarauee: number; + +export const KEY_Thai_sarauu: number; + +export const KEY_Thai_sorusi: number; + +export const KEY_Thai_sosala: number; + +export const KEY_Thai_soso: number; + +export const KEY_Thai_sosua: number; + +export const KEY_Thai_thanthakhat: number; + +export const KEY_Thai_thonangmontho: number; + +export const KEY_Thai_thophuthao: number; + +export const KEY_Thai_thothahan: number; + +export const KEY_Thai_thothan: number; + +export const KEY_Thai_thothong: number; + +export const KEY_Thai_thothung: number; + +export const KEY_Thai_topatak: number; + +export const KEY_Thai_totao: number; + +export const KEY_Thai_wowaen: number; + +export const KEY_Thai_yoyak: number; + +export const KEY_Thai_yoying: number; + +export const KEY_Thorn: number; + +export const KEY_Time: number; + +export const KEY_ToDoList: number; + +export const KEY_Tools: number; + +export const KEY_TopMenu: number; + +export const KEY_TouchpadOff: number; + +export const KEY_TouchpadOn: number; + +export const KEY_TouchpadToggle: number; + +export const KEY_Touroku: number; + +export const KEY_Travel: number; + +export const KEY_Tslash: number; + +export const KEY_U: number; + +export const KEY_UWB: number; + +export const KEY_Uacute: number; + +export const KEY_Ubelowdot: number; + +export const KEY_Ubreve: number; + +export const KEY_Ucircumflex: number; + +export const KEY_Udiaeresis: number; + +export const KEY_Udoubleacute: number; + +export const KEY_Ugrave: number; + +export const KEY_Uhook: number; + +export const KEY_Uhorn: number; + +export const KEY_Uhornacute: number; + +export const KEY_Uhornbelowdot: number; + +export const KEY_Uhorngrave: number; + +export const KEY_Uhornhook: number; + +export const KEY_Uhorntilde: number; + +export const KEY_Ukrainian_GHE_WITH_UPTURN: number; + +export const KEY_Ukrainian_I: number; + +export const KEY_Ukrainian_IE: number; + +export const KEY_Ukrainian_YI: number; + +export const KEY_Ukrainian_ghe_with_upturn: number; + +export const KEY_Ukrainian_i: number; + +export const KEY_Ukrainian_ie: number; + +export const KEY_Ukrainian_yi: number; + +export const KEY_Ukranian_I: number; + +export const KEY_Ukranian_JE: number; + +export const KEY_Ukranian_YI: number; + +export const KEY_Ukranian_i: number; + +export const KEY_Ukranian_je: number; + +export const KEY_Ukranian_yi: number; + +export const KEY_Umacron: number; + +export const KEY_Undo: number; + +export const KEY_Ungrab: number; + +export const KEY_Uogonek: number; + +export const KEY_Up: number; + +export const KEY_Uring: number; + +export const KEY_User1KB: number; + +export const KEY_User2KB: number; + +export const KEY_UserPB: number; + +export const KEY_Utilde: number; + +export const KEY_V: number; + +export const KEY_VendorHome: number; + +export const KEY_Video: number; + +export const KEY_View: number; + +export const KEY_VoidSymbol: number; + +export const KEY_W: number; + +export const KEY_WLAN: number; + +export const KEY_WWW: number; + +export const KEY_Wacute: number; + +export const KEY_WakeUp: number; + +export const KEY_Wcircumflex: number; + +export const KEY_Wdiaeresis: number; + +export const KEY_WebCam: number; + +export const KEY_Wgrave: number; + +export const KEY_WheelButton: number; + +export const KEY_WindowClear: number; + +export const KEY_WonSign: number; + +export const KEY_Word: number; + +export const KEY_X: number; + +export const KEY_Xabovedot: number; + +export const KEY_Xfer: number; + +export const KEY_Y: number; + +export const KEY_Yacute: number; + +export const KEY_Ybelowdot: number; + +export const KEY_Ycircumflex: number; + +export const KEY_Ydiaeresis: number; + +export const KEY_Yellow: number; + +export const KEY_Ygrave: number; + +export const KEY_Yhook: number; + +export const KEY_Ytilde: number; + +export const KEY_Z: number; + +export const KEY_Zabovedot: number; + +export const KEY_Zacute: number; + +export const KEY_Zcaron: number; + +export const KEY_Zen_Koho: number; + +export const KEY_Zenkaku: number; + +export const KEY_Zenkaku_Hankaku: number; + +export const KEY_ZoomIn: number; + +export const KEY_ZoomOut: number; + +export const KEY_Zstroke: number; + +export const KEY_a: number; + +export const KEY_aacute: number; + +export const KEY_abelowdot: number; + +export const KEY_abovedot: number; + +export const KEY_abreve: number; + +export const KEY_abreveacute: number; + +export const KEY_abrevebelowdot: number; + +export const KEY_abrevegrave: number; + +export const KEY_abrevehook: number; + +export const KEY_abrevetilde: number; + +export const KEY_acircumflex: number; + +export const KEY_acircumflexacute: number; + +export const KEY_acircumflexbelowdot: number; + +export const KEY_acircumflexgrave: number; + +export const KEY_acircumflexhook: number; + +export const KEY_acircumflextilde: number; + +export const KEY_acute: number; + +export const KEY_adiaeresis: number; + +export const KEY_ae: number; + +export const KEY_agrave: number; + +export const KEY_ahook: number; + +export const KEY_amacron: number; + +export const KEY_ampersand: number; + +export const KEY_aogonek: number; + +export const KEY_apostrophe: number; + +export const KEY_approxeq: number; + +export const KEY_approximate: number; + +export const KEY_aring: number; + +export const KEY_asciicircum: number; + +export const KEY_asciitilde: number; + +export const KEY_asterisk: number; + +export const KEY_at: number; + +export const KEY_atilde: number; + +export const KEY_b: number; + +export const KEY_babovedot: number; + +export const KEY_backslash: number; + +export const KEY_ballotcross: number; + +export const KEY_bar: number; + +export const KEY_because: number; + +export const KEY_blank: number; + +export const KEY_botintegral: number; + +export const KEY_botleftparens: number; + +export const KEY_botleftsqbracket: number; + +export const KEY_botleftsummation: number; + +export const KEY_botrightparens: number; + +export const KEY_botrightsqbracket: number; + +export const KEY_botrightsummation: number; + +export const KEY_bott: number; + +export const KEY_botvertsummationconnector: number; + +export const KEY_braceleft: number; + +export const KEY_braceright: number; + +export const KEY_bracketleft: number; + +export const KEY_bracketright: number; + +export const KEY_braille_blank: number; + +export const KEY_braille_dot_1: number; + +export const KEY_braille_dot_10: number; + +export const KEY_braille_dot_2: number; + +export const KEY_braille_dot_3: number; + +export const KEY_braille_dot_4: number; + +export const KEY_braille_dot_5: number; + +export const KEY_braille_dot_6: number; + +export const KEY_braille_dot_7: number; + +export const KEY_braille_dot_8: number; + +export const KEY_braille_dot_9: number; + +export const KEY_braille_dots_1: number; + +export const KEY_braille_dots_12: number; + +export const KEY_braille_dots_123: number; + +export const KEY_braille_dots_1234: number; + +export const KEY_braille_dots_12345: number; + +export const KEY_braille_dots_123456: number; + +export const KEY_braille_dots_1234567: number; + +export const KEY_braille_dots_12345678: number; + +export const KEY_braille_dots_1234568: number; + +export const KEY_braille_dots_123457: number; + +export const KEY_braille_dots_1234578: number; + +export const KEY_braille_dots_123458: number; + +export const KEY_braille_dots_12346: number; + +export const KEY_braille_dots_123467: number; + +export const KEY_braille_dots_1234678: number; + +export const KEY_braille_dots_123468: number; + +export const KEY_braille_dots_12347: number; + +export const KEY_braille_dots_123478: number; + +export const KEY_braille_dots_12348: number; + +export const KEY_braille_dots_1235: number; + +export const KEY_braille_dots_12356: number; + +export const KEY_braille_dots_123567: number; + +export const KEY_braille_dots_1235678: number; + +export const KEY_braille_dots_123568: number; + +export const KEY_braille_dots_12357: number; + +export const KEY_braille_dots_123578: number; + +export const KEY_braille_dots_12358: number; + +export const KEY_braille_dots_1236: number; + +export const KEY_braille_dots_12367: number; + +export const KEY_braille_dots_123678: number; + +export const KEY_braille_dots_12368: number; + +export const KEY_braille_dots_1237: number; + +export const KEY_braille_dots_12378: number; + +export const KEY_braille_dots_1238: number; + +export const KEY_braille_dots_124: number; + +export const KEY_braille_dots_1245: number; + +export const KEY_braille_dots_12456: number; + +export const KEY_braille_dots_124567: number; + +export const KEY_braille_dots_1245678: number; + +export const KEY_braille_dots_124568: number; + +export const KEY_braille_dots_12457: number; + +export const KEY_braille_dots_124578: number; + +export const KEY_braille_dots_12458: number; + +export const KEY_braille_dots_1246: number; + +export const KEY_braille_dots_12467: number; + +export const KEY_braille_dots_124678: number; + +export const KEY_braille_dots_12468: number; + +export const KEY_braille_dots_1247: number; + +export const KEY_braille_dots_12478: number; + +export const KEY_braille_dots_1248: number; + +export const KEY_braille_dots_125: number; + +export const KEY_braille_dots_1256: number; + +export const KEY_braille_dots_12567: number; + +export const KEY_braille_dots_125678: number; + +export const KEY_braille_dots_12568: number; + +export const KEY_braille_dots_1257: number; + +export const KEY_braille_dots_12578: number; + +export const KEY_braille_dots_1258: number; + +export const KEY_braille_dots_126: number; + +export const KEY_braille_dots_1267: number; + +export const KEY_braille_dots_12678: number; + +export const KEY_braille_dots_1268: number; + +export const KEY_braille_dots_127: number; + +export const KEY_braille_dots_1278: number; + +export const KEY_braille_dots_128: number; + +export const KEY_braille_dots_13: number; + +export const KEY_braille_dots_134: number; + +export const KEY_braille_dots_1345: number; + +export const KEY_braille_dots_13456: number; + +export const KEY_braille_dots_134567: number; + +export const KEY_braille_dots_1345678: number; + +export const KEY_braille_dots_134568: number; + +export const KEY_braille_dots_13457: number; + +export const KEY_braille_dots_134578: number; + +export const KEY_braille_dots_13458: number; + +export const KEY_braille_dots_1346: number; + +export const KEY_braille_dots_13467: number; + +export const KEY_braille_dots_134678: number; + +export const KEY_braille_dots_13468: number; + +export const KEY_braille_dots_1347: number; + +export const KEY_braille_dots_13478: number; + +export const KEY_braille_dots_1348: number; + +export const KEY_braille_dots_135: number; + +export const KEY_braille_dots_1356: number; + +export const KEY_braille_dots_13567: number; + +export const KEY_braille_dots_135678: number; + +export const KEY_braille_dots_13568: number; + +export const KEY_braille_dots_1357: number; + +export const KEY_braille_dots_13578: number; + +export const KEY_braille_dots_1358: number; + +export const KEY_braille_dots_136: number; + +export const KEY_braille_dots_1367: number; + +export const KEY_braille_dots_13678: number; + +export const KEY_braille_dots_1368: number; + +export const KEY_braille_dots_137: number; + +export const KEY_braille_dots_1378: number; + +export const KEY_braille_dots_138: number; + +export const KEY_braille_dots_14: number; + +export const KEY_braille_dots_145: number; + +export const KEY_braille_dots_1456: number; + +export const KEY_braille_dots_14567: number; + +export const KEY_braille_dots_145678: number; + +export const KEY_braille_dots_14568: number; + +export const KEY_braille_dots_1457: number; + +export const KEY_braille_dots_14578: number; + +export const KEY_braille_dots_1458: number; + +export const KEY_braille_dots_146: number; + +export const KEY_braille_dots_1467: number; + +export const KEY_braille_dots_14678: number; + +export const KEY_braille_dots_1468: number; + +export const KEY_braille_dots_147: number; + +export const KEY_braille_dots_1478: number; + +export const KEY_braille_dots_148: number; + +export const KEY_braille_dots_15: number; + +export const KEY_braille_dots_156: number; + +export const KEY_braille_dots_1567: number; + +export const KEY_braille_dots_15678: number; + +export const KEY_braille_dots_1568: number; + +export const KEY_braille_dots_157: number; + +export const KEY_braille_dots_1578: number; + +export const KEY_braille_dots_158: number; + +export const KEY_braille_dots_16: number; + +export const KEY_braille_dots_167: number; + +export const KEY_braille_dots_1678: number; + +export const KEY_braille_dots_168: number; + +export const KEY_braille_dots_17: number; + +export const KEY_braille_dots_178: number; + +export const KEY_braille_dots_18: number; + +export const KEY_braille_dots_2: number; + +export const KEY_braille_dots_23: number; + +export const KEY_braille_dots_234: number; + +export const KEY_braille_dots_2345: number; + +export const KEY_braille_dots_23456: number; + +export const KEY_braille_dots_234567: number; + +export const KEY_braille_dots_2345678: number; + +export const KEY_braille_dots_234568: number; + +export const KEY_braille_dots_23457: number; + +export const KEY_braille_dots_234578: number; + +export const KEY_braille_dots_23458: number; + +export const KEY_braille_dots_2346: number; + +export const KEY_braille_dots_23467: number; + +export const KEY_braille_dots_234678: number; + +export const KEY_braille_dots_23468: number; + +export const KEY_braille_dots_2347: number; + +export const KEY_braille_dots_23478: number; + +export const KEY_braille_dots_2348: number; + +export const KEY_braille_dots_235: number; + +export const KEY_braille_dots_2356: number; + +export const KEY_braille_dots_23567: number; + +export const KEY_braille_dots_235678: number; + +export const KEY_braille_dots_23568: number; + +export const KEY_braille_dots_2357: number; + +export const KEY_braille_dots_23578: number; + +export const KEY_braille_dots_2358: number; + +export const KEY_braille_dots_236: number; + +export const KEY_braille_dots_2367: number; + +export const KEY_braille_dots_23678: number; + +export const KEY_braille_dots_2368: number; + +export const KEY_braille_dots_237: number; + +export const KEY_braille_dots_2378: number; + +export const KEY_braille_dots_238: number; + +export const KEY_braille_dots_24: number; + +export const KEY_braille_dots_245: number; + +export const KEY_braille_dots_2456: number; + +export const KEY_braille_dots_24567: number; + +export const KEY_braille_dots_245678: number; + +export const KEY_braille_dots_24568: number; + +export const KEY_braille_dots_2457: number; + +export const KEY_braille_dots_24578: number; + +export const KEY_braille_dots_2458: number; + +export const KEY_braille_dots_246: number; + +export const KEY_braille_dots_2467: number; + +export const KEY_braille_dots_24678: number; + +export const KEY_braille_dots_2468: number; + +export const KEY_braille_dots_247: number; + +export const KEY_braille_dots_2478: number; + +export const KEY_braille_dots_248: number; + +export const KEY_braille_dots_25: number; + +export const KEY_braille_dots_256: number; + +export const KEY_braille_dots_2567: number; + +export const KEY_braille_dots_25678: number; + +export const KEY_braille_dots_2568: number; + +export const KEY_braille_dots_257: number; + +export const KEY_braille_dots_2578: number; + +export const KEY_braille_dots_258: number; + +export const KEY_braille_dots_26: number; + +export const KEY_braille_dots_267: number; + +export const KEY_braille_dots_2678: number; + +export const KEY_braille_dots_268: number; + +export const KEY_braille_dots_27: number; + +export const KEY_braille_dots_278: number; + +export const KEY_braille_dots_28: number; + +export const KEY_braille_dots_3: number; + +export const KEY_braille_dots_34: number; + +export const KEY_braille_dots_345: number; + +export const KEY_braille_dots_3456: number; + +export const KEY_braille_dots_34567: number; + +export const KEY_braille_dots_345678: number; + +export const KEY_braille_dots_34568: number; + +export const KEY_braille_dots_3457: number; + +export const KEY_braille_dots_34578: number; + +export const KEY_braille_dots_3458: number; + +export const KEY_braille_dots_346: number; + +export const KEY_braille_dots_3467: number; + +export const KEY_braille_dots_34678: number; + +export const KEY_braille_dots_3468: number; + +export const KEY_braille_dots_347: number; + +export const KEY_braille_dots_3478: number; + +export const KEY_braille_dots_348: number; + +export const KEY_braille_dots_35: number; + +export const KEY_braille_dots_356: number; + +export const KEY_braille_dots_3567: number; + +export const KEY_braille_dots_35678: number; + +export const KEY_braille_dots_3568: number; + +export const KEY_braille_dots_357: number; + +export const KEY_braille_dots_3578: number; + +export const KEY_braille_dots_358: number; + +export const KEY_braille_dots_36: number; + +export const KEY_braille_dots_367: number; + +export const KEY_braille_dots_3678: number; + +export const KEY_braille_dots_368: number; + +export const KEY_braille_dots_37: number; + +export const KEY_braille_dots_378: number; + +export const KEY_braille_dots_38: number; + +export const KEY_braille_dots_4: number; + +export const KEY_braille_dots_45: number; + +export const KEY_braille_dots_456: number; + +export const KEY_braille_dots_4567: number; + +export const KEY_braille_dots_45678: number; + +export const KEY_braille_dots_4568: number; + +export const KEY_braille_dots_457: number; + +export const KEY_braille_dots_4578: number; + +export const KEY_braille_dots_458: number; + +export const KEY_braille_dots_46: number; + +export const KEY_braille_dots_467: number; + +export const KEY_braille_dots_4678: number; + +export const KEY_braille_dots_468: number; + +export const KEY_braille_dots_47: number; + +export const KEY_braille_dots_478: number; + +export const KEY_braille_dots_48: number; + +export const KEY_braille_dots_5: number; + +export const KEY_braille_dots_56: number; + +export const KEY_braille_dots_567: number; + +export const KEY_braille_dots_5678: number; + +export const KEY_braille_dots_568: number; + +export const KEY_braille_dots_57: number; + +export const KEY_braille_dots_578: number; + +export const KEY_braille_dots_58: number; + +export const KEY_braille_dots_6: number; + +export const KEY_braille_dots_67: number; + +export const KEY_braille_dots_678: number; + +export const KEY_braille_dots_68: number; + +export const KEY_braille_dots_7: number; + +export const KEY_braille_dots_78: number; + +export const KEY_braille_dots_8: number; + +export const KEY_breve: number; + +export const KEY_brokenbar: number; + +export const KEY_c: number; + +export const KEY_c_h: number; + +export const KEY_cabovedot: number; + +export const KEY_cacute: number; + +export const KEY_careof: number; + +export const KEY_caret: number; + +export const KEY_caron: number; + +export const KEY_ccaron: number; + +export const KEY_ccedilla: number; + +export const KEY_ccircumflex: number; + +export const KEY_cedilla: number; + +export const KEY_cent: number; + +export const KEY_ch: number; + +export const KEY_checkerboard: number; + +export const KEY_checkmark: number; + +export const KEY_circle: number; + +export const KEY_club: number; + +export const KEY_colon: number; + +export const KEY_comma: number; + +export const KEY_containsas: number; + +export const KEY_copyright: number; + +export const KEY_cr: number; + +export const KEY_crossinglines: number; + +export const KEY_cuberoot: number; + +export const KEY_currency: number; + +export const KEY_cursor: number; + +export const KEY_d: number; + +export const KEY_dabovedot: number; + +export const KEY_dagger: number; + +export const KEY_dcaron: number; + +export const KEY_dead_A: number; + +export const KEY_dead_E: number; + +export const KEY_dead_I: number; + +export const KEY_dead_O: number; + +export const KEY_dead_U: number; + +export const KEY_dead_a: number; + +export const KEY_dead_abovecomma: number; + +export const KEY_dead_abovedot: number; + +export const KEY_dead_abovereversedcomma: number; + +export const KEY_dead_abovering: number; + +export const KEY_dead_acute: number; + +export const KEY_dead_belowbreve: number; + +export const KEY_dead_belowcircumflex: number; + +export const KEY_dead_belowcomma: number; + +export const KEY_dead_belowdiaeresis: number; + +export const KEY_dead_belowdot: number; + +export const KEY_dead_belowmacron: number; + +export const KEY_dead_belowring: number; + +export const KEY_dead_belowtilde: number; + +export const KEY_dead_breve: number; + +export const KEY_dead_capital_schwa: number; + +export const KEY_dead_caron: number; + +export const KEY_dead_cedilla: number; + +export const KEY_dead_circumflex: number; + +export const KEY_dead_currency: number; + +export const KEY_dead_dasia: number; + +export const KEY_dead_diaeresis: number; + +export const KEY_dead_doubleacute: number; + +export const KEY_dead_doublegrave: number; + +export const KEY_dead_e: number; + +export const KEY_dead_grave: number; + +export const KEY_dead_greek: number; + +export const KEY_dead_hook: number; + +export const KEY_dead_horn: number; + +export const KEY_dead_i: number; + +export const KEY_dead_invertedbreve: number; + +export const KEY_dead_iota: number; + +export const KEY_dead_macron: number; + +export const KEY_dead_o: number; + +export const KEY_dead_ogonek: number; + +export const KEY_dead_perispomeni: number; + +export const KEY_dead_psili: number; + +export const KEY_dead_semivoiced_sound: number; + +export const KEY_dead_small_schwa: number; + +export const KEY_dead_stroke: number; + +export const KEY_dead_tilde: number; + +export const KEY_dead_u: number; + +export const KEY_dead_voiced_sound: number; + +export const KEY_decimalpoint: number; + +export const KEY_degree: number; + +export const KEY_diaeresis: number; + +export const KEY_diamond: number; + +export const KEY_digitspace: number; + +export const KEY_dintegral: number; + +export const KEY_division: number; + +export const KEY_dollar: number; + +export const KEY_doubbaselinedot: number; + +export const KEY_doubleacute: number; + +export const KEY_doubledagger: number; + +export const KEY_doublelowquotemark: number; + +export const KEY_downarrow: number; + +export const KEY_downcaret: number; + +export const KEY_downshoe: number; + +export const KEY_downstile: number; + +export const KEY_downtack: number; + +export const KEY_dstroke: number; + +export const KEY_e: number; + +export const KEY_eabovedot: number; + +export const KEY_eacute: number; + +export const KEY_ebelowdot: number; + +export const KEY_ecaron: number; + +export const KEY_ecircumflex: number; + +export const KEY_ecircumflexacute: number; + +export const KEY_ecircumflexbelowdot: number; + +export const KEY_ecircumflexgrave: number; + +export const KEY_ecircumflexhook: number; + +export const KEY_ecircumflextilde: number; + +export const KEY_ediaeresis: number; + +export const KEY_egrave: number; + +export const KEY_ehook: number; + +export const KEY_eightsubscript: number; + +export const KEY_eightsuperior: number; + +export const KEY_elementof: number; + +export const KEY_ellipsis: number; + +export const KEY_em3space: number; + +export const KEY_em4space: number; + +export const KEY_emacron: number; + +export const KEY_emdash: number; + +export const KEY_emfilledcircle: number; + +export const KEY_emfilledrect: number; + +export const KEY_emopencircle: number; + +export const KEY_emopenrectangle: number; + +export const KEY_emptyset: number; + +export const KEY_emspace: number; + +export const KEY_endash: number; + +export const KEY_enfilledcircbullet: number; + +export const KEY_enfilledsqbullet: number; + +export const KEY_eng: number; + +export const KEY_enopencircbullet: number; + +export const KEY_enopensquarebullet: number; + +export const KEY_enspace: number; + +export const KEY_eogonek: number; + +export const KEY_equal: number; + +export const KEY_eth: number; + +export const KEY_etilde: number; + +export const KEY_exclam: number; + +export const KEY_exclamdown: number; + +export const KEY_ezh: number; + +export const KEY_f: number; + +export const KEY_fabovedot: number; + +export const KEY_femalesymbol: number; + +export const KEY_ff: number; + +export const KEY_figdash: number; + +export const KEY_filledlefttribullet: number; + +export const KEY_filledrectbullet: number; + +export const KEY_filledrighttribullet: number; + +export const KEY_filledtribulletdown: number; + +export const KEY_filledtribulletup: number; + +export const KEY_fiveeighths: number; + +export const KEY_fivesixths: number; + +export const KEY_fivesubscript: number; + +export const KEY_fivesuperior: number; + +export const KEY_fourfifths: number; + +export const KEY_foursubscript: number; + +export const KEY_foursuperior: number; + +export const KEY_fourthroot: number; + +export const KEY_function: number; + +export const KEY_g: number; + +export const KEY_gabovedot: number; + +export const KEY_gbreve: number; + +export const KEY_gcaron: number; + +export const KEY_gcedilla: number; + +export const KEY_gcircumflex: number; + +export const KEY_grave: number; + +export const KEY_greater: number; + +export const KEY_greaterthanequal: number; + +export const KEY_guillemotleft: number; + +export const KEY_guillemotright: number; + +export const KEY_h: number; + +export const KEY_hairspace: number; + +export const KEY_hcircumflex: number; + +export const KEY_heart: number; + +export const KEY_hebrew_aleph: number; + +export const KEY_hebrew_ayin: number; + +export const KEY_hebrew_bet: number; + +export const KEY_hebrew_beth: number; + +export const KEY_hebrew_chet: number; + +export const KEY_hebrew_dalet: number; + +export const KEY_hebrew_daleth: number; + +export const KEY_hebrew_doublelowline: number; + +export const KEY_hebrew_finalkaph: number; + +export const KEY_hebrew_finalmem: number; + +export const KEY_hebrew_finalnun: number; + +export const KEY_hebrew_finalpe: number; + +export const KEY_hebrew_finalzade: number; + +export const KEY_hebrew_finalzadi: number; + +export const KEY_hebrew_gimel: number; + +export const KEY_hebrew_gimmel: number; + +export const KEY_hebrew_he: number; + +export const KEY_hebrew_het: number; + +export const KEY_hebrew_kaph: number; + +export const KEY_hebrew_kuf: number; + +export const KEY_hebrew_lamed: number; + +export const KEY_hebrew_mem: number; + +export const KEY_hebrew_nun: number; + +export const KEY_hebrew_pe: number; + +export const KEY_hebrew_qoph: number; + +export const KEY_hebrew_resh: number; + +export const KEY_hebrew_samech: number; + +export const KEY_hebrew_samekh: number; + +export const KEY_hebrew_shin: number; + +export const KEY_hebrew_taf: number; + +export const KEY_hebrew_taw: number; + +export const KEY_hebrew_tet: number; + +export const KEY_hebrew_teth: number; + +export const KEY_hebrew_waw: number; + +export const KEY_hebrew_yod: number; + +export const KEY_hebrew_zade: number; + +export const KEY_hebrew_zadi: number; + +export const KEY_hebrew_zain: number; + +export const KEY_hebrew_zayin: number; + +export const KEY_hexagram: number; + +export const KEY_horizconnector: number; + +export const KEY_horizlinescan1: number; + +export const KEY_horizlinescan3: number; + +export const KEY_horizlinescan5: number; + +export const KEY_horizlinescan7: number; + +export const KEY_horizlinescan9: number; + +export const KEY_hstroke: number; + +export const KEY_ht: number; + +export const KEY_hyphen: number; + +export const KEY_i: number; + +export const KEY_iTouch: number; + +export const KEY_iacute: number; + +export const KEY_ibelowdot: number; + +export const KEY_ibreve: number; + +export const KEY_icircumflex: number; + +export const KEY_identical: number; + +export const KEY_idiaeresis: number; + +export const KEY_idotless: number; + +export const KEY_ifonlyif: number; + +export const KEY_igrave: number; + +export const KEY_ihook: number; + +export const KEY_imacron: number; + +export const KEY_implies: number; + +export const KEY_includedin: number; + +export const KEY_includes: number; + +export const KEY_infinity: number; + +export const KEY_integral: number; + +export const KEY_intersection: number; + +export const KEY_iogonek: number; + +export const KEY_itilde: number; + +export const KEY_j: number; + +export const KEY_jcircumflex: number; + +export const KEY_jot: number; + +export const KEY_k: number; + +export const KEY_kana_A: number; + +export const KEY_kana_CHI: number; + +export const KEY_kana_E: number; + +export const KEY_kana_FU: number; + +export const KEY_kana_HA: number; + +export const KEY_kana_HE: number; + +export const KEY_kana_HI: number; + +export const KEY_kana_HO: number; + +export const KEY_kana_HU: number; + +export const KEY_kana_I: number; + +export const KEY_kana_KA: number; + +export const KEY_kana_KE: number; + +export const KEY_kana_KI: number; + +export const KEY_kana_KO: number; + +export const KEY_kana_KU: number; + +export const KEY_kana_MA: number; + +export const KEY_kana_ME: number; + +export const KEY_kana_MI: number; + +export const KEY_kana_MO: number; + +export const KEY_kana_MU: number; + +export const KEY_kana_N: number; + +export const KEY_kana_NA: number; + +export const KEY_kana_NE: number; + +export const KEY_kana_NI: number; + +export const KEY_kana_NO: number; + +export const KEY_kana_NU: number; + +export const KEY_kana_O: number; + +export const KEY_kana_RA: number; + +export const KEY_kana_RE: number; + +export const KEY_kana_RI: number; + +export const KEY_kana_RO: number; + +export const KEY_kana_RU: number; + +export const KEY_kana_SA: number; + +export const KEY_kana_SE: number; + +export const KEY_kana_SHI: number; + +export const KEY_kana_SO: number; + +export const KEY_kana_SU: number; + +export const KEY_kana_TA: number; + +export const KEY_kana_TE: number; + +export const KEY_kana_TI: number; + +export const KEY_kana_TO: number; + +export const KEY_kana_TSU: number; + +export const KEY_kana_TU: number; + +export const KEY_kana_U: number; + +export const KEY_kana_WA: number; + +export const KEY_kana_WO: number; + +export const KEY_kana_YA: number; + +export const KEY_kana_YO: number; + +export const KEY_kana_YU: number; + +export const KEY_kana_a: number; + +export const KEY_kana_closingbracket: number; + +export const KEY_kana_comma: number; + +export const KEY_kana_conjunctive: number; + +export const KEY_kana_e: number; + +export const KEY_kana_fullstop: number; + +export const KEY_kana_i: number; + +export const KEY_kana_middledot: number; + +export const KEY_kana_o: number; + +export const KEY_kana_openingbracket: number; + +export const KEY_kana_switch: number; + +export const KEY_kana_tsu: number; + +export const KEY_kana_tu: number; + +export const KEY_kana_u: number; + +export const KEY_kana_ya: number; + +export const KEY_kana_yo: number; + +export const KEY_kana_yu: number; + +export const KEY_kappa: number; + +export const KEY_kcedilla: number; + +export const KEY_kra: number; + +export const KEY_l: number; + +export const KEY_lacute: number; + +export const KEY_latincross: number; + +export const KEY_lbelowdot: number; + +export const KEY_lcaron: number; + +export const KEY_lcedilla: number; + +export const KEY_leftanglebracket: number; + +export const KEY_leftarrow: number; + +export const KEY_leftcaret: number; + +export const KEY_leftdoublequotemark: number; + +export const KEY_leftmiddlecurlybrace: number; + +export const KEY_leftopentriangle: number; + +export const KEY_leftpointer: number; + +export const KEY_leftradical: number; + +export const KEY_leftshoe: number; + +export const KEY_leftsinglequotemark: number; + +export const KEY_leftt: number; + +export const KEY_lefttack: number; + +export const KEY_less: number; + +export const KEY_lessthanequal: number; + +export const KEY_lf: number; + +export const KEY_logicaland: number; + +export const KEY_logicalor: number; + +export const KEY_lowleftcorner: number; + +export const KEY_lowrightcorner: number; + +export const KEY_lstroke: number; + +export const KEY_m: number; + +export const KEY_mabovedot: number; + +export const KEY_macron: number; + +export const KEY_malesymbol: number; + +export const KEY_maltesecross: number; + +export const KEY_marker: number; + +export const KEY_masculine: number; + +export const KEY_minus: number; + +export const KEY_minutes: number; + +export const KEY_mu: number; + +export const KEY_multiply: number; + +export const KEY_musicalflat: number; + +export const KEY_musicalsharp: number; + +export const KEY_n: number; + +export const KEY_nabla: number; + +export const KEY_nacute: number; + +export const KEY_ncaron: number; + +export const KEY_ncedilla: number; + +export const KEY_ninesubscript: number; + +export const KEY_ninesuperior: number; + +export const KEY_nl: number; + +export const KEY_nobreakspace: number; + +export const KEY_notapproxeq: number; + +export const KEY_notelementof: number; + +export const KEY_notequal: number; + +export const KEY_notidentical: number; + +export const KEY_notsign: number; + +export const KEY_ntilde: number; + +export const KEY_numbersign: number; + +export const KEY_numerosign: number; + +export const KEY_o: number; + +export const KEY_oacute: number; + +export const KEY_obarred: number; + +export const KEY_obelowdot: number; + +export const KEY_ocaron: number; + +export const KEY_ocircumflex: number; + +export const KEY_ocircumflexacute: number; + +export const KEY_ocircumflexbelowdot: number; + +export const KEY_ocircumflexgrave: number; + +export const KEY_ocircumflexhook: number; + +export const KEY_ocircumflextilde: number; + +export const KEY_odiaeresis: number; + +export const KEY_odoubleacute: number; + +export const KEY_oe: number; + +export const KEY_ogonek: number; + +export const KEY_ograve: number; + +export const KEY_ohook: number; + +export const KEY_ohorn: number; + +export const KEY_ohornacute: number; + +export const KEY_ohornbelowdot: number; + +export const KEY_ohorngrave: number; + +export const KEY_ohornhook: number; + +export const KEY_ohorntilde: number; + +export const KEY_omacron: number; + +export const KEY_oneeighth: number; + +export const KEY_onefifth: number; + +export const KEY_onehalf: number; + +export const KEY_onequarter: number; + +export const KEY_onesixth: number; + +export const KEY_onesubscript: number; + +export const KEY_onesuperior: number; + +export const KEY_onethird: number; + +export const KEY_ooblique: number; + +export const KEY_openrectbullet: number; + +export const KEY_openstar: number; + +export const KEY_opentribulletdown: number; + +export const KEY_opentribulletup: number; + +export const KEY_ordfeminine: number; + +export const KEY_oslash: number; + +export const KEY_otilde: number; + +export const KEY_overbar: number; + +export const KEY_overline: number; + +export const KEY_p: number; + +export const KEY_pabovedot: number; + +export const KEY_paragraph: number; + +export const KEY_parenleft: number; + +export const KEY_parenright: number; + +export const KEY_partdifferential: number; + +export const KEY_partialderivative: number; + +export const KEY_percent: number; + +export const KEY_period: number; + +export const KEY_periodcentered: number; + +export const KEY_permille: number; + +export const KEY_phonographcopyright: number; + +export const KEY_plus: number; + +export const KEY_plusminus: number; + +export const KEY_prescription: number; + +export const KEY_prolongedsound: number; + +export const KEY_punctspace: number; + +export const KEY_q: number; + +export const KEY_quad: number; + +export const KEY_question: number; + +export const KEY_questiondown: number; + +export const KEY_quotedbl: number; + +export const KEY_quoteleft: number; + +export const KEY_quoteright: number; + +export const KEY_r: number; + +export const KEY_racute: number; + +export const KEY_radical: number; + +export const KEY_rcaron: number; + +export const KEY_rcedilla: number; + +export const KEY_registered: number; + +export const KEY_rightanglebracket: number; + +export const KEY_rightarrow: number; + +export const KEY_rightcaret: number; + +export const KEY_rightdoublequotemark: number; + +export const KEY_rightmiddlecurlybrace: number; + +export const KEY_rightmiddlesummation: number; + +export const KEY_rightopentriangle: number; + +export const KEY_rightpointer: number; + +export const KEY_rightshoe: number; + +export const KEY_rightsinglequotemark: number; + +export const KEY_rightt: number; + +export const KEY_righttack: number; + +export const KEY_s: number; + +export const KEY_sabovedot: number; + +export const KEY_sacute: number; + +export const KEY_scaron: number; + +export const KEY_scedilla: number; + +export const KEY_schwa: number; + +export const KEY_scircumflex: number; + +export const KEY_script_switch: number; + +export const KEY_seconds: number; + +export const KEY_section: number; + +export const KEY_semicolon: number; + +export const KEY_semivoicedsound: number; + +export const KEY_seveneighths: number; + +export const KEY_sevensubscript: number; + +export const KEY_sevensuperior: number; + +export const KEY_signaturemark: number; + +export const KEY_signifblank: number; + +export const KEY_similarequal: number; + +export const KEY_singlelowquotemark: number; + +export const KEY_sixsubscript: number; + +export const KEY_sixsuperior: number; + +export const KEY_slash: number; + +export const KEY_soliddiamond: number; + +export const KEY_space: number; + +export const KEY_squareroot: number; + +export const KEY_ssharp: number; + +export const KEY_sterling: number; + +export const KEY_stricteq: number; + +export const KEY_t: number; + +export const KEY_tabovedot: number; + +export const KEY_tcaron: number; + +export const KEY_tcedilla: number; + +export const KEY_telephone: number; + +export const KEY_telephonerecorder: number; + +export const KEY_therefore: number; + +export const KEY_thinspace: number; + +export const KEY_thorn: number; + +export const KEY_threeeighths: number; + +export const KEY_threefifths: number; + +export const KEY_threequarters: number; + +export const KEY_threesubscript: number; + +export const KEY_threesuperior: number; + +export const KEY_tintegral: number; + +export const KEY_topintegral: number; + +export const KEY_topleftparens: number; + +export const KEY_topleftradical: number; + +export const KEY_topleftsqbracket: number; + +export const KEY_topleftsummation: number; + +export const KEY_toprightparens: number; + +export const KEY_toprightsqbracket: number; + +export const KEY_toprightsummation: number; + +export const KEY_topt: number; + +export const KEY_topvertsummationconnector: number; + +export const KEY_trademark: number; + +export const KEY_trademarkincircle: number; + +export const KEY_tslash: number; + +export const KEY_twofifths: number; + +export const KEY_twosubscript: number; + +export const KEY_twosuperior: number; + +export const KEY_twothirds: number; + +export const KEY_u: number; + +export const KEY_uacute: number; + +export const KEY_ubelowdot: number; + +export const KEY_ubreve: number; + +export const KEY_ucircumflex: number; + +export const KEY_udiaeresis: number; + +export const KEY_udoubleacute: number; + +export const KEY_ugrave: number; + +export const KEY_uhook: number; + +export const KEY_uhorn: number; + +export const KEY_uhornacute: number; + +export const KEY_uhornbelowdot: number; + +export const KEY_uhorngrave: number; + +export const KEY_uhornhook: number; + +export const KEY_uhorntilde: number; + +export const KEY_umacron: number; + +export const KEY_underbar: number; + +export const KEY_underscore: number; + +export const KEY_union: number; + +export const KEY_uogonek: number; + +export const KEY_uparrow: number; + +export const KEY_upcaret: number; + +export const KEY_upleftcorner: number; + +export const KEY_uprightcorner: number; + +export const KEY_upshoe: number; + +export const KEY_upstile: number; + +export const KEY_uptack: number; + +export const KEY_uring: number; + +export const KEY_utilde: number; + +export const KEY_v: number; + +export const KEY_variation: number; + +export const KEY_vertbar: number; + +export const KEY_vertconnector: number; + +export const KEY_voicedsound: number; + +export const KEY_vt: number; + +export const KEY_w: number; + +export const KEY_wacute: number; + +export const KEY_wcircumflex: number; + +export const KEY_wdiaeresis: number; + +export const KEY_wgrave: number; + +export const KEY_x: number; + +export const KEY_xabovedot: number; + +export const KEY_y: number; + +export const KEY_yacute: number; + +export const KEY_ybelowdot: number; + +export const KEY_ycircumflex: number; + +export const KEY_ydiaeresis: number; + +export const KEY_yen: number; + +export const KEY_ygrave: number; + +export const KEY_yhook: number; + +export const KEY_ytilde: number; + +export const KEY_z: number; + +export const KEY_zabovedot: number; + +export const KEY_zacute: number; + +export const KEY_zcaron: number; + +export const KEY_zerosubscript: number; + +export const KEY_zerosuperior: number; + +export const KEY_zstroke: number; + +export const MAJOR_VERSION: number; + +export const MAX_TIMECOORD_AXES: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const PARENT_RELATIVE: number; + +export const PRIORITY_REDRAW: number; + +export function add_option_entries_libgtk_only(group: GLib.OptionGroup): void; + +export function atom_intern(atom_name: string, only_if_exists: boolean): Atom; + +export function atom_intern_static_string(atom_name: string): Atom; + +export function beep(): void; + +export function cairo_create(window: Window): cairo.Context; + +export function cairo_draw_from_gl(cr: cairo.Context, window: Window, source: number, source_type: number, buffer_scale: number, x: number, y: number, width: number, height: number): void; + +export function cairo_get_clip_rectangle(cr: cairo.Context): [boolean, Rectangle | null]; + +export function cairo_get_drawing_context(cr: cairo.Context): DrawingContext | null; + +export function cairo_rectangle(cr: cairo.Context, rectangle: Rectangle): void; + +export function cairo_region(cr: cairo.Context, region: cairo.Region): void; + +export function cairo_region_create_from_surface(surface: cairo.Surface): cairo.Region; + +export function cairo_set_source_color(cr: cairo.Context, color: Color): void; + +export function cairo_set_source_pixbuf(cr: cairo.Context, pixbuf: GdkPixbuf.Pixbuf, pixbuf_x: number, pixbuf_y: number): void; + +export function cairo_set_source_rgba(cr: cairo.Context, rgba: RGBA): void; + +export function cairo_set_source_window(cr: cairo.Context, window: Window, x: number, y: number): void; + +export function cairo_surface_create_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf, scale: number, for_window: Window | null): cairo.Surface; + +export function color_parse(spec: string): [boolean, Color]; + +export function disable_multidevice(): void; + +export function drag_abort(context: DragContext, time_: number): void; + +export function drag_begin(window: Window, targets: GLib.List): DragContext; + +export function drag_begin_for_device(window: Window, device: Device, targets: GLib.List): DragContext; + +export function drag_begin_from_point(window: Window, device: Device, targets: GLib.List, x_root: number, y_root: number): DragContext; + +export function drag_drop(context: DragContext, time_: number): void; + +export function drag_drop_done(context: DragContext, success: boolean): void; + +export function drag_drop_succeeded(context: DragContext): boolean; + +export function drag_find_window_for_screen(context: DragContext, drag_window: Window, screen: Screen, x_root: number, y_root: number): [Window, DragProtocol]; + +export function drag_get_selection(context: DragContext): Atom; + +export function drag_motion(context: DragContext, dest_window: Window, protocol: DragProtocol, x_root: number, y_root: number, suggested_action: DragAction, possible_actions: DragAction, time_: number): boolean; + +export function drag_status(context: DragContext, action: DragAction, time_: number): void; + +export function drop_finish(context: DragContext, success: boolean, time_: number): void; + +export function drop_reply(context: DragContext, accepted: boolean, time_: number): void; + +export function error_trap_pop(): number; + +export function error_trap_pop_ignored(): void; + +export function error_trap_push(): void; + +export function event_get(): Event | null; + +export function event_handler_set(func: EventFunc, data: any | null, notify: GLib.DestroyNotify): void; + +export function event_peek(): Event | null; + +export function event_request_motions(event: EventMotion): void; + +export function events_get_angle(event1: Event, event2: Event): [boolean, number]; + +export function events_get_center(event1: Event, event2: Event): [boolean, number, number]; + +export function events_get_distance(event1: Event, event2: Event): [boolean, number]; + +export function events_pending(): boolean; + +export function flush(): void; + +export function get_default_root_window(): Window; + +export function get_display(): string; + +export function get_display_arg_name(): string | null; + +export function get_program_class(): string; + +export function get_show_events(): boolean; + +export function gl_error_quark(): GLib.Quark; + +export function init(argv: string[]): string[]; + +export function init_check(argv: string[]): [boolean, string[]]; + +export function keyboard_grab(window: Window, owner_events: boolean, time_: number): GrabStatus; + +export function keyboard_ungrab(time_: number): void; + +export function keyval_convert_case(symbol: number): [number, number]; + +export function keyval_from_name(keyval_name: string): number; + +export function keyval_is_lower(keyval: number): boolean; + +export function keyval_is_upper(keyval: number): boolean; + +export function keyval_name(keyval: number): string | null; + +export function keyval_to_lower(keyval: number): number; + +export function keyval_to_unicode(keyval: number): number; + +export function keyval_to_upper(keyval: number): number; + +export function list_visuals(): GLib.List; + +export function notify_startup_complete(): void; + +export function notify_startup_complete_with_id(startup_id: string): void; + +export function offscreen_window_get_embedder(window: Window): Window | null; + +export function offscreen_window_get_surface(window: Window): cairo.Surface | null; + +export function offscreen_window_set_embedder(window: Window, embedder: Window): void; + +export function pango_context_get(): Pango.Context; + +export function pango_context_get_for_display(display: Display): Pango.Context; + +export function pango_context_get_for_screen(screen: Screen): Pango.Context; + +export function parse_args(argv: string[]): string[]; + +export function pixbuf_get_from_surface(surface: cairo.Surface, src_x: number, src_y: number, width: number, height: number): GdkPixbuf.Pixbuf | null; + +export function pixbuf_get_from_window(window: Window, src_x: number, src_y: number, width: number, height: number): GdkPixbuf.Pixbuf | null; + +export function pointer_grab(window: Window, owner_events: boolean, event_mask: EventMask, confine_to: Window | null, cursor: Cursor | null, time_: number): GrabStatus; + +export function pointer_is_grabbed(): boolean; + +export function pointer_ungrab(time_: number): void; + +export function pre_parse_libgtk_only(): void; + +export function property_delete(window: Window, property: Atom): void; + +export function property_get(window: Window, property: Atom, type: Atom, offset: number, length: number, pdelete: number): [boolean, Atom, number, number[]]; + +export function query_depths(): number[]; + +export function query_visual_types(): VisualType[]; + +export function selection_convert(requestor: Window, selection: Atom, target: Atom, time_: number): void; + +export function selection_owner_get(selection: Atom): Window | null; + +export function selection_owner_get_for_display(display: Display, selection: Atom): Window | null; + +export function selection_owner_set(owner: Window | null, selection: Atom, time_: number, send_event: boolean): boolean; + +export function selection_owner_set_for_display(display: Display, owner: Window | null, selection: Atom, time_: number, send_event: boolean): boolean; + +export function selection_send_notify(requestor: Window, selection: Atom, target: Atom, property: Atom, time_: number): void; + +export function selection_send_notify_for_display(display: Display, requestor: Window, selection: Atom, target: Atom, property: Atom, time_: number): void; + +export function set_allowed_backends(backends: string): void; + +export function set_double_click_time(msec: number): void; + +export function set_program_class(program_class: string): void; + +export function set_show_events(show_events: boolean): void; + +export function setting_get(name: string, value: GObject.Value): boolean; + +export function synthesize_window_state(window: Window, unset_flags: WindowState, set_flags: WindowState): void; + +export function test_render_sync(window: Window): void; + +export function test_simulate_button(window: Window, x: number, y: number, button: number, modifiers: ModifierType, button_pressrelease: EventType): boolean; + +export function test_simulate_key(window: Window, x: number, y: number, keyval: number, modifiers: ModifierType, key_pressrelease: EventType): boolean; + +export function text_property_to_utf8_list_for_display(display: Display, encoding: Atom, format: number, text: number[]): [number, string[]]; + +export function threads_add_idle(priority: number, _function: GLib.SourceFunc, data: any | null, notify: GLib.DestroyNotify | null): number; + +export function threads_add_timeout(priority: number, interval: number, _function: GLib.SourceFunc, data: any | null, notify: GLib.DestroyNotify | null): number; + +export function threads_add_timeout_seconds(priority: number, interval: number, _function: GLib.SourceFunc, data: any | null, notify: GLib.DestroyNotify | null): number; + +export function threads_enter(): void; + +export function threads_init(): void; + +export function threads_leave(): void; + +export function unicode_to_keyval(wc: number): number; + +export function utf8_to_string_target(str: string): string | null; + +export type EventFunc = (event: Event, data: any | null) => void; + +export type FilterFunc = (xevent: XEvent, event: Event, data: any | null) => FilterReturn; + +export type SeatGrabPrepareFunc = (seat: Seat, window: Window) => void; + +export type WindowChildFunc = (window: Window) => boolean; + +export type WindowInvalidateHandlerFunc = (window: Window, region: cairo.Region) => void; +export enum AxisUse { + IGNORE = 0, + X = 1, + Y = 2, + PRESSURE = 3, + XTILT = 4, + YTILT = 5, + WHEEL = 6, + DISTANCE = 7, + ROTATION = 8, + SLIDER = 9, + LAST = 10, +} +export enum ByteOrder { + LSB_FIRST = 0, + MSB_FIRST = 1, +} +export enum CrossingMode { + NORMAL = 0, + GRAB = 1, + UNGRAB = 2, + GTK_GRAB = 3, + GTK_UNGRAB = 4, + STATE_CHANGED = 5, + TOUCH_BEGIN = 6, + TOUCH_END = 7, + DEVICE_SWITCH = 8, +} +export enum CursorType { + X_CURSOR = 0, + ARROW = 2, + BASED_ARROW_DOWN = 4, + BASED_ARROW_UP = 6, + BOAT = 8, + BOGOSITY = 10, + BOTTOM_LEFT_CORNER = 12, + BOTTOM_RIGHT_CORNER = 14, + BOTTOM_SIDE = 16, + BOTTOM_TEE = 18, + BOX_SPIRAL = 20, + CENTER_PTR = 22, + CIRCLE = 24, + CLOCK = 26, + COFFEE_MUG = 28, + CROSS = 30, + CROSS_REVERSE = 32, + CROSSHAIR = 34, + DIAMOND_CROSS = 36, + DOT = 38, + DOTBOX = 40, + DOUBLE_ARROW = 42, + DRAFT_LARGE = 44, + DRAFT_SMALL = 46, + DRAPED_BOX = 48, + EXCHANGE = 50, + FLEUR = 52, + GOBBLER = 54, + GUMBY = 56, + HAND1 = 58, + HAND2 = 60, + HEART = 62, + ICON = 64, + IRON_CROSS = 66, + LEFT_PTR = 68, + LEFT_SIDE = 70, + LEFT_TEE = 72, + LEFTBUTTON = 74, + LL_ANGLE = 76, + LR_ANGLE = 78, + MAN = 80, + MIDDLEBUTTON = 82, + MOUSE = 84, + PENCIL = 86, + PIRATE = 88, + PLUS = 90, + QUESTION_ARROW = 92, + RIGHT_PTR = 94, + RIGHT_SIDE = 96, + RIGHT_TEE = 98, + RIGHTBUTTON = 100, + RTL_LOGO = 102, + SAILBOAT = 104, + SB_DOWN_ARROW = 106, + SB_H_DOUBLE_ARROW = 108, + SB_LEFT_ARROW = 110, + SB_RIGHT_ARROW = 112, + SB_UP_ARROW = 114, + SB_V_DOUBLE_ARROW = 116, + SHUTTLE = 118, + SIZING = 120, + SPIDER = 122, + SPRAYCAN = 124, + STAR = 126, + TARGET = 128, + TCROSS = 130, + TOP_LEFT_ARROW = 132, + TOP_LEFT_CORNER = 134, + TOP_RIGHT_CORNER = 136, + TOP_SIDE = 138, + TOP_TEE = 140, + TREK = 142, + UL_ANGLE = 144, + UMBRELLA = 146, + UR_ANGLE = 148, + WATCH = 150, + XTERM = 152, + LAST_CURSOR = 153, + BLANK_CURSOR = -2, + CURSOR_IS_PIXMAP = -1, +} +export enum DevicePadFeature { + BUTTON = 0, + RING = 1, + STRIP = 2, +} +export enum DeviceToolType { + UNKNOWN = 0, + PEN = 1, + ERASER = 2, + BRUSH = 3, + PENCIL = 4, + AIRBRUSH = 5, + MOUSE = 6, + LENS = 7, +} +export enum DeviceType { + MASTER = 0, + SLAVE = 1, + FLOATING = 2, +} +export enum DragCancelReason { + NO_TARGET = 0, + USER_CANCELLED = 1, + ERROR = 2, +} +export enum DragProtocol { + NONE = 0, + MOTIF = 1, + XDND = 2, + ROOTWIN = 3, + WIN32_DROPFILES = 4, + OLE2 = 5, + LOCAL = 6, + WAYLAND = 7, +} +export class EventType { + constructor(copy: EventType); + // Properties + static NOTHING: number; + static DELETE: number; + static DESTROY: number; + static EXPOSE: number; + static MOTION_NOTIFY: number; + static BUTTON_PRESS: number; + static "2BUTTON_PRESS": number; + static DOUBLE_BUTTON_PRESS: number; + static "3BUTTON_PRESS": number; + static TRIPLE_BUTTON_PRESS: number; + static BUTTON_RELEASE: number; + static KEY_PRESS: number; + static KEY_RELEASE: number; + static ENTER_NOTIFY: number; + static LEAVE_NOTIFY: number; + static FOCUS_CHANGE: number; + static CONFIGURE: number; + static MAP: number; + static UNMAP: number; + static PROPERTY_NOTIFY: number; + static SELECTION_CLEAR: number; + static SELECTION_REQUEST: number; + static SELECTION_NOTIFY: number; + static PROXIMITY_IN: number; + static PROXIMITY_OUT: number; + static DRAG_ENTER: number; + static DRAG_LEAVE: number; + static DRAG_MOTION: number; + static DRAG_STATUS: number; + static DROP_START: number; + static DROP_FINISHED: number; + static CLIENT_EVENT: number; + static VISIBILITY_NOTIFY: number; + static SCROLL: number; + static WINDOW_STATE: number; + static SETTING: number; + static OWNER_CHANGE: number; + static GRAB_BROKEN: number; + static DAMAGE: number; + static TOUCH_BEGIN: number; + static TOUCH_UPDATE: number; + static TOUCH_END: number; + static TOUCH_CANCEL: number; + static TOUCHPAD_SWIPE: number; + static TOUCHPAD_PINCH: number; + static PAD_BUTTON_PRESS: number; + static PAD_BUTTON_RELEASE: number; + static PAD_RING: number; + static PAD_STRIP: number; + static PAD_GROUP_MODE: number; + static EVENT_LAST: number; +} +export enum FilterReturn { + CONTINUE = 0, + TRANSLATE = 1, + REMOVE = 2, +} +export enum FullscreenMode { + CURRENT_MONITOR = 0, + ALL_MONITORS = 1, +} +export class GLError extends GLib.Error { + constructor(copy: GLError); + // Properties + static NOT_AVAILABLE: number; + static UNSUPPORTED_FORMAT: number; + static UNSUPPORTED_PROFILE: number; + // Members + quark(): GLib.Quark; +} +export enum GrabOwnership { + NONE = 0, + WINDOW = 1, + APPLICATION = 2, +} +export enum GrabStatus { + SUCCESS = 0, + ALREADY_GRABBED = 1, + INVALID_TIME = 2, + NOT_VIEWABLE = 3, + FROZEN = 4, + FAILED = 5, +} +export enum Gravity { + NORTH_WEST = 1, + NORTH = 2, + NORTH_EAST = 3, + WEST = 4, + CENTER = 5, + EAST = 6, + SOUTH_WEST = 7, + SOUTH = 8, + SOUTH_EAST = 9, + STATIC = 10, +} +export enum InputMode { + DISABLED = 0, + SCREEN = 1, + WINDOW = 2, +} +export enum InputSource { + MOUSE = 0, + PEN = 1, + ERASER = 2, + CURSOR = 3, + KEYBOARD = 4, + TOUCHSCREEN = 5, + TOUCHPAD = 6, + TRACKPOINT = 7, + TABLET_PAD = 8, +} +export enum ModifierIntent { + PRIMARY_ACCELERATOR = 0, + CONTEXT_MENU = 1, + EXTEND_SELECTION = 2, + MODIFY_SELECTION = 3, + NO_TEXT_INPUT = 4, + SHIFT_GROUP = 5, + DEFAULT_MOD_MASK = 6, +} +export enum NotifyType { + ANCESTOR = 0, + VIRTUAL = 1, + INFERIOR = 2, + NONLINEAR = 3, + NONLINEAR_VIRTUAL = 4, + UNKNOWN = 5, +} +export enum OwnerChange { + NEW_OWNER = 0, + DESTROY = 1, + CLOSE = 2, +} +export enum PropMode { + REPLACE = 0, + PREPEND = 1, + APPEND = 2, +} +export enum PropertyState { + NEW_VALUE = 0, + DELETE = 1, +} +export enum ScrollDirection { + UP = 0, + DOWN = 1, + LEFT = 2, + RIGHT = 3, + SMOOTH = 4, +} +export enum SettingAction { + NEW = 0, + CHANGED = 1, + DELETED = 2, +} +export enum Status { + OK = 0, + ERROR = -1, + ERROR_PARAM = -2, + ERROR_FILE = -3, + ERROR_MEM = -4, +} +export enum SubpixelLayout { + UNKNOWN = 0, + NONE = 1, + HORIZONTAL_RGB = 2, + HORIZONTAL_BGR = 3, + VERTICAL_RGB = 4, + VERTICAL_BGR = 5, +} +export enum TouchpadGesturePhase { + BEGIN = 0, + UPDATE = 1, + END = 2, + CANCEL = 3, +} +export enum VisibilityState { + UNOBSCURED = 0, + PARTIAL = 1, + FULLY_OBSCURED = 2, +} +export enum VisualType { + STATIC_GRAY = 0, + GRAYSCALE = 1, + STATIC_COLOR = 2, + PSEUDO_COLOR = 3, + TRUE_COLOR = 4, + DIRECT_COLOR = 5, +} +export enum WindowEdge { + NORTH_WEST = 0, + NORTH = 1, + NORTH_EAST = 2, + WEST = 3, + EAST = 4, + SOUTH_WEST = 5, + SOUTH = 6, + SOUTH_EAST = 7, +} +export enum WindowType { + ROOT = 0, + TOPLEVEL = 1, + CHILD = 2, + TEMP = 3, + FOREIGN = 4, + OFFSCREEN = 5, + SUBSURFACE = 6, +} +export enum WindowTypeHint { + NORMAL = 0, + DIALOG = 1, + MENU = 2, + TOOLBAR = 3, + SPLASHSCREEN = 4, + UTILITY = 5, + DOCK = 6, + DESKTOP = 7, + DROPDOWN_MENU = 8, + POPUP_MENU = 9, + TOOLTIP = 10, + NOTIFICATION = 11, + COMBO = 12, + DND = 13, +} +export enum WindowWindowClass { + INPUT_OUTPUT = 0, + INPUT_ONLY = 1, +} +export enum AnchorHints { + FLIP_X = 1, + FLIP_Y = 2, + SLIDE_X = 4, + SLIDE_Y = 8, + RESIZE_X = 16, + RESIZE_Y = 32, + FLIP = 3, + SLIDE = 12, + RESIZE = 48, +} +export enum AxisFlags { + X = 2, + Y = 4, + PRESSURE = 8, + XTILT = 16, + YTILT = 32, + WHEEL = 64, + DISTANCE = 128, + ROTATION = 256, + SLIDER = 512, +} +export enum DragAction { + DEFAULT = 1, + COPY = 2, + MOVE = 4, + LINK = 8, + PRIVATE = 16, + ASK = 32, +} +export enum EventMask { + EXPOSURE_MASK = 2, + POINTER_MOTION_MASK = 4, + POINTER_MOTION_HINT_MASK = 8, + BUTTON_MOTION_MASK = 16, + BUTTON1_MOTION_MASK = 32, + BUTTON2_MOTION_MASK = 64, + BUTTON3_MOTION_MASK = 128, + BUTTON_PRESS_MASK = 256, + BUTTON_RELEASE_MASK = 512, + KEY_PRESS_MASK = 1024, + KEY_RELEASE_MASK = 2048, + ENTER_NOTIFY_MASK = 4096, + LEAVE_NOTIFY_MASK = 8192, + FOCUS_CHANGE_MASK = 16384, + STRUCTURE_MASK = 32768, + PROPERTY_CHANGE_MASK = 65536, + VISIBILITY_NOTIFY_MASK = 131072, + PROXIMITY_IN_MASK = 262144, + PROXIMITY_OUT_MASK = 524288, + SUBSTRUCTURE_MASK = 1048576, + SCROLL_MASK = 2097152, + TOUCH_MASK = 4194304, + SMOOTH_SCROLL_MASK = 8388608, + TOUCHPAD_GESTURE_MASK = 16777216, + TABLET_PAD_MASK = 33554432, + ALL_EVENTS_MASK = 67108862, +} +export enum FrameClockPhase { + NONE = 0, + FLUSH_EVENTS = 1, + BEFORE_PAINT = 2, + UPDATE = 4, + LAYOUT = 8, + PAINT = 16, + RESUME_EVENTS = 32, + AFTER_PAINT = 64, +} +export enum ModifierType { + SHIFT_MASK = 1, + LOCK_MASK = 2, + CONTROL_MASK = 4, + MOD1_MASK = 8, + MOD2_MASK = 16, + MOD3_MASK = 32, + MOD4_MASK = 64, + MOD5_MASK = 128, + BUTTON1_MASK = 256, + BUTTON2_MASK = 512, + BUTTON3_MASK = 1024, + BUTTON4_MASK = 2048, + BUTTON5_MASK = 4096, + MODIFIER_RESERVED_13_MASK = 8192, + MODIFIER_RESERVED_14_MASK = 16384, + MODIFIER_RESERVED_15_MASK = 32768, + MODIFIER_RESERVED_16_MASK = 65536, + MODIFIER_RESERVED_17_MASK = 131072, + MODIFIER_RESERVED_18_MASK = 262144, + MODIFIER_RESERVED_19_MASK = 524288, + MODIFIER_RESERVED_20_MASK = 1048576, + MODIFIER_RESERVED_21_MASK = 2097152, + MODIFIER_RESERVED_22_MASK = 4194304, + MODIFIER_RESERVED_23_MASK = 8388608, + MODIFIER_RESERVED_24_MASK = 16777216, + MODIFIER_RESERVED_25_MASK = 33554432, + SUPER_MASK = 67108864, + HYPER_MASK = 134217728, + META_MASK = 268435456, + MODIFIER_RESERVED_29_MASK = 536870912, + RELEASE_MASK = 1073741824, + MODIFIER_MASK = 1543512063, +} +export enum SeatCapabilities { + NONE = 0, + POINTER = 1, + TOUCH = 2, + TABLET_STYLUS = 4, + KEYBOARD = 8, + ALL_POINTING = 7, + ALL = 15, +} +export enum WMDecoration { + ALL = 1, + BORDER = 2, + RESIZEH = 4, + TITLE = 8, + MENU = 16, + MINIMIZE = 32, + MAXIMIZE = 64, +} +export enum WMFunction { + ALL = 1, + RESIZE = 2, + MOVE = 4, + MINIMIZE = 8, + MAXIMIZE = 16, + CLOSE = 32, +} +export enum WindowAttributesType { + TITLE = 2, + X = 4, + Y = 8, + CURSOR = 16, + VISUAL = 32, + WMCLASS = 64, + NOREDIR = 128, + TYPE_HINT = 256, +} +export enum WindowHints { + POS = 1, + MIN_SIZE = 2, + MAX_SIZE = 4, + BASE_SIZE = 8, + ASPECT = 16, + RESIZE_INC = 32, + WIN_GRAVITY = 64, + USER_POS = 128, + USER_SIZE = 256, +} +export enum WindowState { + WITHDRAWN = 1, + ICONIFIED = 2, + MAXIMIZED = 4, + STICKY = 8, + FULLSCREEN = 16, + ABOVE = 32, + BELOW = 64, + FOCUSED = 128, + TILED = 256, + TOP_TILED = 512, + TOP_RESIZABLE = 1024, + RIGHT_TILED = 2048, + RIGHT_RESIZABLE = 4096, + BOTTOM_TILED = 8192, + BOTTOM_RESIZABLE = 16384, + LEFT_TILED = 32768, + LEFT_RESIZABLE = 65536, +} +export module AppLaunchContext { + export interface ConstructorProperties extends Gio.AppLaunchContext.ConstructorProperties { + [key: string]: any; + display: Display; + } +} +export class AppLaunchContext extends Gio.AppLaunchContext { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + display: Display; + // Constructors + static ["new"](): AppLaunchContext; + static ["new"](...args: never[]): never; + // Members + set_desktop(desktop: number): void; + set_display(display: Display): void; + set_icon(icon: Gio.Icon | null): void; + set_icon_name(icon_name: string | null): void; + set_screen(screen: Screen): void; + set_timestamp(timestamp: number): void; +} +export module Cursor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + cursor_type: CursorType; + display: Display; + } +} +export abstract class Cursor extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + cursor_type: CursorType; + display: Display; + // Constructors + static ["new"](cursor_type: CursorType): Cursor; + static new_for_display(display: Display, cursor_type: CursorType): Cursor; + static new_from_name(display: Display, name: string): Cursor; + static new_from_pixbuf(display: Display, pixbuf: GdkPixbuf.Pixbuf, x: number, y: number): Cursor; + static new_from_surface(display: Display, surface: cairo.Surface, x: number, y: number): Cursor; + // Members + get_cursor_type(): CursorType; + get_display(): Display; + get_image(): GdkPixbuf.Pixbuf | null; + get_surface(): [cairo.Surface | null, number | null, number | null]; + ref(): Cursor; + ref(...args: never[]): never; + unref(): void; +} +export module Device { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + associated_device: Device; + axes: AxisFlags; + device_manager: DeviceManager; + display: Display; + has_cursor: boolean; + input_mode: InputMode; + input_source: InputSource; + n_axes: number; + name: string; + num_touches: number; + product_id: string; + seat: Seat; + tool: DeviceTool; + type: DeviceType; + vendor_id: string; + } +} +export abstract class Device extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + associated_device: Device; + axes: AxisFlags; + device_manager: DeviceManager; + display: Display; + has_cursor: boolean; + input_mode: InputMode; + input_source: InputSource; + n_axes: number; + name: string; + num_touches: number; + product_id: string; + seat: Seat; + tool: DeviceTool; + type: DeviceType; + vendor_id: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + connect(signal: 'tool-changed', callback: (_source: this, tool: DeviceTool) => void): number; + connect_after(signal: 'tool-changed', callback: (_source: this, tool: DeviceTool) => void): number; + emit(signal: 'tool-changed', tool: DeviceTool): void; + // Members + get_associated_device(): Device | null; + get_axes(): AxisFlags; + get_axis_use(index_: number): AxisUse; + get_device_type(): DeviceType; + get_display(): Display; + get_has_cursor(): boolean; + get_key(index_: number): [boolean, number, ModifierType]; + get_last_event_window(): Window | null; + get_mode(): InputMode; + get_n_axes(): number; + get_n_keys(): number; + get_name(): string; + get_position(): [Screen | null, number | null, number | null]; + get_position_double(): [Screen | null, number | null, number | null]; + get_product_id(): string | null; + get_seat(): Seat; + get_source(): InputSource; + get_vendor_id(): string | null; + get_window_at_position(): [Window | null, number | null, number | null]; + get_window_at_position_double(): [Window | null, number | null, number | null]; + grab(window: Window, grab_ownership: GrabOwnership, owner_events: boolean, event_mask: EventMask, cursor: Cursor | null, time_: number): GrabStatus; + list_axes(): GLib.List; + list_slave_devices(): GLib.List | null; + set_axis_use(index_: number, use: AxisUse): void; + set_key(index_: number, keyval: number, modifiers: ModifierType): void; + set_mode(mode: InputMode): boolean; + ungrab(time_: number): void; + warp(screen: Screen, x: number, y: number): void; + static grab_info_libgtk_only(display: Display, device: Device): [boolean, Window, boolean]; +} +export module DeviceManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + display: Display; + } +} +export abstract class DeviceManager extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + display: Display; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'device-added', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'device-added', callback: (_source: this, device: Device) => void): number; + emit(signal: 'device-added', device: Device): void; + connect(signal: 'device-changed', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'device-changed', callback: (_source: this, device: Device) => void): number; + emit(signal: 'device-changed', device: Device): void; + connect(signal: 'device-removed', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'device-removed', callback: (_source: this, device: Device) => void): number; + emit(signal: 'device-removed', device: Device): void; + // Members + get_client_pointer(): Device; + get_display(): Display | null; + list_devices(type: DeviceType): GLib.List; +} +export module DeviceTool { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + axes: AxisFlags; + hardware_id: number; + serial: number; + tool_type: DeviceToolType; + } +} +export class DeviceTool extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + axes: AxisFlags; + hardware_id: number; + serial: number; + tool_type: DeviceToolType; + // Members + get_hardware_id(): number; + get_serial(): number; + get_tool_type(): DeviceToolType; +} +export module Display { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Display extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'closed', callback: (_source: this, is_error: boolean) => void): number; + connect_after(signal: 'closed', callback: (_source: this, is_error: boolean) => void): number; + emit(signal: 'closed', is_error: boolean): void; + connect(signal: 'monitor-added', callback: (_source: this, monitor: Monitor) => void): number; + connect_after(signal: 'monitor-added', callback: (_source: this, monitor: Monitor) => void): number; + emit(signal: 'monitor-added', monitor: Monitor): void; + connect(signal: 'monitor-removed', callback: (_source: this, monitor: Monitor) => void): number; + connect_after(signal: 'monitor-removed', callback: (_source: this, monitor: Monitor) => void): number; + emit(signal: 'monitor-removed', monitor: Monitor): void; + connect(signal: 'opened', callback: (_source: this) => void): number; + connect_after(signal: 'opened', callback: (_source: this) => void): number; + emit(signal: 'opened'): void; + connect(signal: 'seat-added', callback: (_source: this, seat: Seat) => void): number; + connect_after(signal: 'seat-added', callback: (_source: this, seat: Seat) => void): number; + emit(signal: 'seat-added', seat: Seat): void; + connect(signal: 'seat-removed', callback: (_source: this, seat: Seat) => void): number; + connect_after(signal: 'seat-removed', callback: (_source: this, seat: Seat) => void): number; + emit(signal: 'seat-removed', seat: Seat): void; + // Members + beep(): void; + close(): void; + device_is_grabbed(device: Device): boolean; + flush(): void; + get_app_launch_context(): AppLaunchContext; + get_default_cursor_size(): number; + get_default_group(): Window; + get_default_screen(): Screen; + get_default_seat(): Seat; + get_device_manager(): DeviceManager | null; + get_event(): Event | null; + get_maximal_cursor_size(): [number, number]; + get_monitor(monitor_num: number): Monitor | null; + get_monitor_at_point(x: number, y: number): Monitor; + get_monitor_at_window(window: Window): Monitor; + get_n_monitors(): number; + get_n_screens(): number; + get_name(): string; + get_pointer(): [Screen | null, number | null, number | null, ModifierType | null]; + get_primary_monitor(): Monitor | null; + get_screen(screen_num: number): Screen; + get_window_at_pointer(): [Window | null, number | null, number | null]; + has_pending(): boolean; + is_closed(): boolean; + keyboard_ungrab(time_: number): void; + list_devices(): GLib.List; + list_seats(): GLib.List; + notify_startup_complete(startup_id: string): void; + peek_event(): Event | null; + pointer_is_grabbed(): boolean; + pointer_ungrab(time_: number): void; + put_event(event: Event): void; + request_selection_notification(selection: Atom): boolean; + set_double_click_distance(distance: number): void; + set_double_click_time(msec: number): void; + store_clipboard(clipboard_window: Window, time_: number, targets: Atom[] | null): void; + supports_clipboard_persistence(): boolean; + supports_composite(): boolean; + supports_cursor_alpha(): boolean; + supports_cursor_color(): boolean; + supports_input_shapes(): boolean; + supports_selection_notification(): boolean; + supports_shapes(): boolean; + sync(): void; + warp_pointer(screen: Screen, x: number, y: number): void; + static get_default(): Display | null; + static open(display_name: string): Display | null; + static open_default_libgtk_only(): Display | null; +} +export module DisplayManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + default_display: Display; + } +} +export class DisplayManager extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + default_display: Display; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'display-opened', callback: (_source: this, display: Display) => void): number; + connect_after(signal: 'display-opened', callback: (_source: this, display: Display) => void): number; + emit(signal: 'display-opened', display: Display): void; + // Members + get_default_display(): Display | null; + list_displays(): string[]; + open_display(name: string): Display | null; + set_default_display(display: Display): void; + static get(): DisplayManager; +} +export module DragContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class DragContext extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'action-changed', callback: (_source: this, action: DragAction) => void): number; + connect_after(signal: 'action-changed', callback: (_source: this, action: DragAction) => void): number; + emit(signal: 'action-changed', action: DragAction): void; + connect(signal: 'cancel', callback: (_source: this, reason: DragCancelReason) => void): number; + connect_after(signal: 'cancel', callback: (_source: this, reason: DragCancelReason) => void): number; + emit(signal: 'cancel', reason: DragCancelReason): void; + connect(signal: 'dnd-finished', callback: (_source: this) => void): number; + connect_after(signal: 'dnd-finished', callback: (_source: this) => void): number; + emit(signal: 'dnd-finished'): void; + connect(signal: 'drop-performed', callback: (_source: this, time: number) => void): number; + connect_after(signal: 'drop-performed', callback: (_source: this, time: number) => void): number; + emit(signal: 'drop-performed', time: number): void; + // Members + get_actions(): DragAction; + get_dest_window(): Window; + get_device(): Device; + get_drag_window(): Window | null; + get_protocol(): DragProtocol; + get_selected_action(): DragAction; + get_source_window(): Window; + get_suggested_action(): DragAction; + list_targets(): GLib.List; + manage_dnd(ipc_window: Window, actions: DragAction): boolean; + set_device(device: Device): void; + set_hotspot(hot_x: number, hot_y: number): void; +} +export module DrawingContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + clip: cairo.Region; + window: Window; + } +} +export class DrawingContext extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + clip: cairo.Region; + window: Window; + // Members + get_cairo_context(): cairo.Context; + get_clip(): cairo.Region | null; + get_window(): Window; + is_valid(): boolean; +} +export module FrameClock { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class FrameClock extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'after-paint', callback: (_source: this) => void): number; + connect_after(signal: 'after-paint', callback: (_source: this) => void): number; + emit(signal: 'after-paint'): void; + connect(signal: 'before-paint', callback: (_source: this) => void): number; + connect_after(signal: 'before-paint', callback: (_source: this) => void): number; + emit(signal: 'before-paint'): void; + connect(signal: 'flush-events', callback: (_source: this) => void): number; + connect_after(signal: 'flush-events', callback: (_source: this) => void): number; + emit(signal: 'flush-events'): void; + connect(signal: 'layout', callback: (_source: this) => void): number; + connect_after(signal: 'layout', callback: (_source: this) => void): number; + emit(signal: 'layout'): void; + connect(signal: 'paint', callback: (_source: this) => void): number; + connect_after(signal: 'paint', callback: (_source: this) => void): number; + emit(signal: 'paint'): void; + connect(signal: 'resume-events', callback: (_source: this) => void): number; + connect_after(signal: 'resume-events', callback: (_source: this) => void): number; + emit(signal: 'resume-events'): void; + connect(signal: 'update', callback: (_source: this) => void): number; + connect_after(signal: 'update', callback: (_source: this) => void): number; + emit(signal: 'update'): void; + // Members + begin_updating(): void; + end_updating(): void; + get_current_timings(): FrameTimings | null; + get_frame_counter(): number; + get_frame_time(): number; + get_history_start(): number; + get_refresh_info(base_time: number): [number | null, number]; + get_timings(frame_counter: number): FrameTimings | null; + request_phase(phase: FrameClockPhase): void; +} +export module GLContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + display: Display; + shared_context: GLContext; + window: Window; + } +} +export abstract class GLContext extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + display: Display; + shared_context: GLContext; + window: Window; + // Members + get_debug_enabled(): boolean; + get_display(): Display | null; + get_forward_compatible(): boolean; + get_required_version(): [number | null, number | null]; + get_shared_context(): GLContext | null; + get_use_es(): boolean; + get_version(): [number, number]; + get_window(): Window | null; + is_legacy(): boolean; + make_current(): void; + realize(): boolean; + set_debug_enabled(enabled: boolean): void; + set_forward_compatible(compatible: boolean): void; + set_required_version(major: number, minor: number): void; + set_use_es(use_es: number): void; + static clear_current(): void; + static get_current(): GLContext | null; +} +export module Keymap { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Keymap extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'direction-changed', callback: (_source: this) => void): number; + connect_after(signal: 'direction-changed', callback: (_source: this) => void): number; + emit(signal: 'direction-changed'): void; + connect(signal: 'keys-changed', callback: (_source: this) => void): number; + connect_after(signal: 'keys-changed', callback: (_source: this) => void): number; + emit(signal: 'keys-changed'): void; + connect(signal: 'state-changed', callback: (_source: this) => void): number; + connect_after(signal: 'state-changed', callback: (_source: this) => void): number; + emit(signal: 'state-changed'): void; + // Members + add_virtual_modifiers(state: ModifierType): ModifierType; + get_caps_lock_state(): boolean; + get_direction(): Pango.Direction; + get_entries_for_keycode(hardware_keycode: number): [boolean, KeymapKey[] | null, number[] | null]; + get_entries_for_keyval(keyval: number): [boolean, KeymapKey[]]; + get_modifier_mask(intent: ModifierIntent): ModifierType; + get_modifier_state(): number; + get_num_lock_state(): boolean; + get_scroll_lock_state(): boolean; + have_bidi_layouts(): boolean; + lookup_key(key: KeymapKey): number; + map_virtual_modifiers(state: ModifierType): [boolean, ModifierType]; + translate_keyboard_state(hardware_keycode: number, state: ModifierType, group: number): [boolean, number | null, number | null, number | null, ModifierType | null]; + static get_default(): Keymap; + static get_for_display(display: Display): Keymap; +} +export module Monitor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + display: Display; + geometry: Rectangle; + height_mm: number; + manufacturer: string; + model: string; + refresh_rate: number; + scale_factor: number; + subpixel_layout: SubpixelLayout; + width_mm: number; + workarea: Rectangle; + } +} +export class Monitor extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + display: Display; + geometry: Rectangle; + height_mm: number; + manufacturer: string; + model: string; + refresh_rate: number; + scale_factor: number; + subpixel_layout: SubpixelLayout; + width_mm: number; + workarea: Rectangle; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'invalidate', callback: (_source: this) => void): number; + connect_after(signal: 'invalidate', callback: (_source: this) => void): number; + emit(signal: 'invalidate'): void; + // Members + get_display(): Display; + get_geometry(): Rectangle; + get_height_mm(): number; + get_manufacturer(): string | null; + get_model(): string | null; + get_refresh_rate(): number; + get_scale_factor(): number; + get_subpixel_layout(): SubpixelLayout; + get_width_mm(): number; + get_workarea(): Rectangle; + is_primary(): boolean; +} +export module Screen { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + font_options: any; + resolution: number; + } +} +export class Screen extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + font_options: any; + resolution: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'composited-changed', callback: (_source: this) => void): number; + connect_after(signal: 'composited-changed', callback: (_source: this) => void): number; + emit(signal: 'composited-changed'): void; + connect(signal: 'monitors-changed', callback: (_source: this) => void): number; + connect_after(signal: 'monitors-changed', callback: (_source: this) => void): number; + emit(signal: 'monitors-changed'): void; + connect(signal: 'size-changed', callback: (_source: this) => void): number; + connect_after(signal: 'size-changed', callback: (_source: this) => void): number; + emit(signal: 'size-changed'): void; + // Members + get_active_window(): Window | null; + get_display(): Display; + get_font_options(): cairo.FontOptions | null; + get_height(): number; + get_height_mm(): number; + get_monitor_at_point(x: number, y: number): number; + get_monitor_at_window(window: Window): number; + get_monitor_geometry(monitor_num: number): Rectangle | null; + get_monitor_height_mm(monitor_num: number): number; + get_monitor_plug_name(monitor_num: number): string | null; + get_monitor_scale_factor(monitor_num: number): number; + get_monitor_width_mm(monitor_num: number): number; + get_monitor_workarea(monitor_num: number): Rectangle | null; + get_n_monitors(): number; + get_number(): number; + get_primary_monitor(): number; + get_resolution(): number; + get_rgba_visual(): Visual | null; + get_root_window(): Window; + get_setting(name: string, value: GObject.Value): boolean; + get_system_visual(): Visual; + get_toplevel_windows(): GLib.List; + get_width(): number; + get_width_mm(): number; + get_window_stack(): GLib.List | null; + is_composited(): boolean; + list_visuals(): GLib.List; + make_display_name(): string; + set_font_options(options: cairo.FontOptions | null): void; + set_resolution(dpi: number): void; + static get_default(): Screen | null; + static height(): number; + static height_mm(): number; + static width(): number; + static width_mm(): number; +} +export module Seat { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + display: Display; + } +} +export abstract class Seat extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + display: Display; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'device-added', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'device-added', callback: (_source: this, device: Device) => void): number; + emit(signal: 'device-added', device: Device): void; + connect(signal: 'device-removed', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'device-removed', callback: (_source: this, device: Device) => void): number; + emit(signal: 'device-removed', device: Device): void; + connect(signal: 'tool-added', callback: (_source: this, tool: DeviceTool) => void): number; + connect_after(signal: 'tool-added', callback: (_source: this, tool: DeviceTool) => void): number; + emit(signal: 'tool-added', tool: DeviceTool): void; + connect(signal: 'tool-removed', callback: (_source: this, tool: DeviceTool) => void): number; + connect_after(signal: 'tool-removed', callback: (_source: this, tool: DeviceTool) => void): number; + emit(signal: 'tool-removed', tool: DeviceTool): void; + // Members + get_capabilities(): SeatCapabilities; + get_display(): Display; + get_keyboard(): Device | null; + get_pointer(): Device | null; + get_slaves(capabilities: SeatCapabilities): GLib.List; + grab(window: Window, capabilities: SeatCapabilities, owner_events: boolean, cursor: Cursor | null, event: Event | null, prepare_func: SeatGrabPrepareFunc | null, prepare_func_data: any | null): GrabStatus; + ungrab(): void; +} +export module Visual { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Visual extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + get_bits_per_rgb(): number; + get_blue_pixel_details(): [number | null, number | null, number | null]; + get_byte_order(): ByteOrder; + get_colormap_size(): number; + get_depth(): number; + get_green_pixel_details(): [number | null, number | null, number | null]; + get_red_pixel_details(): [number | null, number | null, number | null]; + get_screen(): Screen; + get_visual_type(): VisualType; + static get_best(): Visual; + static get_best_depth(): number; + static get_best_type(): VisualType; + static get_best_with_both(depth: number, visual_type: VisualType): Visual | null; + static get_best_with_depth(depth: number): Visual; + static get_best_with_type(visual_type: VisualType): Visual; + static get_system(): Visual; +} +export module Window { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + cursor: Cursor; + } +} +export abstract class Window extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + cursor: Cursor; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'create-surface', callback: (_source: this, width: number, height: number) => cairo.Surface): number; + connect_after(signal: 'create-surface', callback: (_source: this, width: number, height: number) => cairo.Surface): number; + emit(signal: 'create-surface', width: number, height: number): void; + connect(signal: 'from-embedder', callback: (_source: this, embedder_x: number, embedder_y: number, offscreen_x: number, offscreen_y: number) => void): number; + connect_after(signal: 'from-embedder', callback: (_source: this, embedder_x: number, embedder_y: number, offscreen_x: number, offscreen_y: number) => void): number; + emit(signal: 'from-embedder', embedder_x: number, embedder_y: number, offscreen_x: number, offscreen_y: number): void; + connect(signal: 'moved-to-rect', callback: (_source: this, flipped_rect: any | null, final_rect: any | null, flipped_x: boolean, flipped_y: boolean) => void): number; + connect_after(signal: 'moved-to-rect', callback: (_source: this, flipped_rect: any | null, final_rect: any | null, flipped_x: boolean, flipped_y: boolean) => void): number; + emit(signal: 'moved-to-rect', flipped_rect: any | null, final_rect: any | null, flipped_x: boolean, flipped_y: boolean): void; + connect(signal: 'pick-embedded-child', callback: (_source: this, x: number, y: number) => Window | null): number; + connect_after(signal: 'pick-embedded-child', callback: (_source: this, x: number, y: number) => Window | null): number; + emit(signal: 'pick-embedded-child', x: number, y: number): void; + connect(signal: 'to-embedder', callback: (_source: this, offscreen_x: number, offscreen_y: number, embedder_x: number, embedder_y: number) => void): number; + connect_after(signal: 'to-embedder', callback: (_source: this, offscreen_x: number, offscreen_y: number, embedder_x: number, embedder_y: number) => void): number; + emit(signal: 'to-embedder', offscreen_x: number, offscreen_y: number, embedder_x: number, embedder_y: number): void; + // Constructors + static ["new"](parent: Window | null, attributes: WindowAttr, attributes_mask: WindowAttributesType): Window; + // Members + beep(): void; + begin_draw_frame(region: cairo.Region): DrawingContext; + begin_move_drag(button: number, root_x: number, root_y: number, timestamp: number): void; + begin_move_drag_for_device(device: Device, button: number, root_x: number, root_y: number, timestamp: number): void; + begin_paint_rect(rectangle: Rectangle): void; + begin_paint_region(region: cairo.Region): void; + begin_resize_drag(edge: WindowEdge, button: number, root_x: number, root_y: number, timestamp: number): void; + begin_resize_drag_for_device(edge: WindowEdge, device: Device, button: number, root_x: number, root_y: number, timestamp: number): void; + configure_finished(): void; + coords_from_parent(parent_x: number, parent_y: number): [number | null, number | null]; + coords_to_parent(x: number, y: number): [number | null, number | null]; + create_gl_context(): GLContext; + create_similar_image_surface(format: number, width: number, height: number, scale: number): cairo.Surface; + create_similar_surface(content: cairo.Content, width: number, height: number): cairo.Surface; + deiconify(): void; + destroy(): void; + destroy_notify(): void; + enable_synchronized_configure(): void; + end_draw_frame(context: DrawingContext): void; + end_paint(): void; + ensure_native(): boolean; + flush(): void; + focus(timestamp: number): void; + freeze_toplevel_updates_libgtk_only(): void; + freeze_updates(): void; + fullscreen(): void; + fullscreen_on_monitor(monitor: number): void; + geometry_changed(): void; + get_accept_focus(): boolean; + get_background_pattern(): cairo.Pattern | null; + get_children(): GLib.List; + get_children_with_user_data(): GLib.List; + get_clip_region(): cairo.Region; + get_composited(): boolean; + get_cursor(): Cursor | null; + get_decorations(): [boolean, WMDecoration]; + get_device_cursor(device: Device): Cursor | null; + get_device_events(device: Device): EventMask; + get_device_position(device: Device): [Window | null, number | null, number | null, ModifierType | null]; + get_device_position_double(device: Device): [Window | null, number | null, number | null, ModifierType | null]; + get_display(): Display; + get_drag_protocol(): [DragProtocol, Window | null]; + get_effective_parent(): Window; + get_effective_toplevel(): Window; + get_event_compression(): boolean; + get_events(): EventMask; + get_focus_on_map(): boolean; + get_frame_clock(): FrameClock; + get_frame_extents(): Rectangle; + get_fullscreen_mode(): FullscreenMode; + get_geometry(): [number | null, number | null, number | null, number | null]; + get_group(): Window; + get_height(): number; + get_modal_hint(): boolean; + get_origin(): [number, number | null, number | null]; + get_parent(): Window; + get_pass_through(): boolean; + get_pointer(): [Window | null, number | null, number | null, ModifierType | null]; + get_position(): [number | null, number | null]; + get_root_coords(x: number, y: number): [number, number]; + get_root_origin(): [number, number]; + get_scale_factor(): number; + get_screen(): Screen; + get_source_events(source: InputSource): EventMask; + get_state(): WindowState; + get_support_multidevice(): boolean; + get_toplevel(): Window; + get_type_hint(): WindowTypeHint; + get_update_area(): cairo.Region; + get_user_data(): any | null; + get_visible_region(): cairo.Region; + get_visual(): Visual; + get_width(): number; + get_window_type(): WindowType; + has_native(): boolean; + hide(): void; + iconify(): void; + input_shape_combine_region(shape_region: cairo.Region, offset_x: number, offset_y: number): void; + invalidate_maybe_recurse(region: cairo.Region, child_func: WindowChildFunc | null): void; + invalidate_rect(rect: Rectangle | null, invalidate_children: boolean): void; + invalidate_region(region: cairo.Region, invalidate_children: boolean): void; + is_destroyed(): boolean; + is_input_only(): boolean; + is_shaped(): boolean; + is_viewable(): boolean; + is_visible(): boolean; + lower(): void; + mark_paint_from_clip(cr: cairo.Context): void; + maximize(): void; + merge_child_input_shapes(): void; + merge_child_shapes(): void; + move(x: number, y: number): void; + move_region(region: cairo.Region, dx: number, dy: number): void; + move_resize(x: number, y: number, width: number, height: number): void; + move_to_rect(rect: Rectangle, rect_anchor: Gravity, window_anchor: Gravity, anchor_hints: AnchorHints, rect_anchor_dx: number, rect_anchor_dy: number): void; + peek_children(): GLib.List; + process_updates(update_children: boolean): void; + raise(): void; + register_dnd(): void; + reparent(new_parent: Window, x: number, y: number): void; + resize(width: number, height: number): void; + restack(sibling: Window | null, above: boolean): void; + scroll(dx: number, dy: number): void; + set_accept_focus(accept_focus: boolean): void; + set_background(color: Color): void; + set_background_pattern(pattern: cairo.Pattern | null): void; + set_background_rgba(rgba: RGBA): void; + set_child_input_shapes(): void; + set_child_shapes(): void; + set_composited(composited: boolean): void; + set_cursor(cursor: Cursor | null): void; + set_decorations(decorations: WMDecoration): void; + set_device_cursor(device: Device, cursor: Cursor): void; + set_device_events(device: Device, event_mask: EventMask): void; + set_event_compression(event_compression: boolean): void; + set_events(event_mask: EventMask): void; + set_focus_on_map(focus_on_map: boolean): void; + set_fullscreen_mode(mode: FullscreenMode): void; + set_functions(functions: WMFunction): void; + set_geometry_hints(geometry: Geometry, geom_mask: WindowHints): void; + set_group(leader: Window | null): void; + set_icon_list(pixbufs: GLib.List): void; + set_icon_name(name: string | null): void; + set_keep_above(setting: boolean): void; + set_keep_below(setting: boolean): void; + set_modal_hint(modal: boolean): void; + set_opacity(opacity: number): void; + set_opaque_region(region: cairo.Region | null): void; + set_override_redirect(override_redirect: boolean): void; + set_pass_through(pass_through: boolean): void; + set_role(role: string): void; + set_shadow_width(left: number, right: number, top: number, bottom: number): void; + set_skip_pager_hint(skips_pager: boolean): void; + set_skip_taskbar_hint(skips_taskbar: boolean): void; + set_source_events(source: InputSource, event_mask: EventMask): void; + set_startup_id(startup_id: string): void; + set_static_gravities(use_static: boolean): boolean; + set_support_multidevice(support_multidevice: boolean): void; + set_title(title: string): void; + set_transient_for(parent: Window): void; + set_type_hint(hint: WindowTypeHint): void; + set_urgency_hint(urgent: boolean): void; + set_user_data(): void; + shape_combine_region(shape_region: cairo.Region | null, offset_x: number, offset_y: number): void; + show(): void; + show_unraised(): void; + show_window_menu(event: Event): boolean; + stick(): void; + thaw_toplevel_updates_libgtk_only(): void; + thaw_updates(): void; + unfullscreen(): void; + unmaximize(): void; + unstick(): void; + withdraw(): void; + vfunc_create_surface(width: number, height: number): cairo.Surface; + vfunc_from_embedder(embedder_x: number, embedder_y: number, offscreen_x: number, offscreen_y: number): void; + vfunc_to_embedder(offscreen_x: number, offscreen_y: number, embedder_x: number, embedder_y: number): void; + static at_pointer(): [Window, number | null, number | null]; + static constrain_size(geometry: Geometry, flags: WindowHints, width: number, height: number): [number, number]; + static process_all_updates(): void; + static set_debug_updates(setting: boolean): void; +} +export class Atom { + constructor(copy: Atom); + // Members + name(): string; + static intern(atom_name: string, only_if_exists: boolean): Atom; + static intern_static_string(atom_name: string): Atom; +} +export class Color { + constructor(copy: Color); + // Fields + pixel: number; + red: number; + green: number; + blue: number; + // Members + copy(): Color; + equal(colorb: Color): boolean; + free(): void; + hash(): number; + to_string(): string; + static parse(spec: string): [boolean, Color]; +} +export class EventAny { + constructor(copy: EventAny); + // Fields + type: EventType; + window: Window; + send_event: number; +} +export class EventButton { + constructor(copy: EventButton); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + x: number; + y: number; + axes: number; + state: ModifierType; + button: number; + device: Device; + x_root: number; + y_root: number; +} +export class EventConfigure { + constructor(copy: EventConfigure); + // Fields + type: EventType; + window: Window; + send_event: number; + x: number; + y: number; + width: number; + height: number; +} +export class EventCrossing { + constructor(copy: EventCrossing); + // Fields + type: EventType; + window: Window; + send_event: number; + subwindow: Window; + time: number; + x: number; + y: number; + x_root: number; + y_root: number; + mode: CrossingMode; + detail: NotifyType; + focus: boolean; + state: ModifierType; +} +export class EventDND { + constructor(copy: EventDND); + // Fields + type: EventType; + window: Window; + send_event: number; + context: DragContext; + time: number; + x_root: number; + y_root: number; +} +export class EventExpose { + constructor(copy: EventExpose); + // Fields + type: EventType; + window: Window; + send_event: number; + area: Rectangle; + region: cairo.Region; + count: number; +} +export class EventFocus { + constructor(copy: EventFocus); + // Fields + type: EventType; + window: Window; + send_event: number; + "in": number; +} +export class EventGrabBroken { + constructor(copy: EventGrabBroken); + // Fields + type: EventType; + window: Window; + send_event: number; + keyboard: boolean; + implicit: boolean; + grab_window: Window; +} +export class EventKey { + constructor(copy: EventKey); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + state: ModifierType; + keyval: number; + length: number; + string: string; + hardware_keycode: number; + group: number; + is_modifier: number; +} +export class EventMotion { + constructor(copy: EventMotion); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + x: number; + y: number; + axes: number; + state: ModifierType; + is_hint: number; + device: Device; + x_root: number; + y_root: number; +} +export class EventOwnerChange { + constructor(copy: EventOwnerChange); + // Fields + type: EventType; + window: Window; + send_event: number; + owner: Window; + reason: OwnerChange; + selection: Atom; + time: number; + selection_time: number; +} +export class EventPadAxis { + constructor(copy: EventPadAxis); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + group: number; + index: number; + mode: number; + value: number; +} +export class EventPadButton { + constructor(copy: EventPadButton); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + group: number; + button: number; + mode: number; +} +export class EventPadGroupMode { + constructor(copy: EventPadGroupMode); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + group: number; + mode: number; +} +export class EventProperty { + constructor(copy: EventProperty); + // Fields + type: EventType; + window: Window; + send_event: number; + atom: Atom; + time: number; + state: PropertyState; +} +export class EventProximity { + constructor(copy: EventProximity); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + device: Device; +} +export class EventScroll { + constructor(copy: EventScroll); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + x: number; + y: number; + state: ModifierType; + direction: ScrollDirection; + device: Device; + x_root: number; + y_root: number; + delta_x: number; + delta_y: number; + is_stop: number; +} +export class EventSelection { + constructor(copy: EventSelection); + // Fields + type: EventType; + window: Window; + send_event: number; + selection: Atom; + target: Atom; + property: Atom; + time: number; + requestor: Window; +} +export class EventSequence { + constructor(copy: EventSequence); +} +export class EventSetting { + constructor(copy: EventSetting); + // Fields + type: EventType; + window: Window; + send_event: number; + action: SettingAction; + name: string; +} +export class EventTouch { + constructor(copy: EventTouch); + // Fields + type: EventType; + window: Window; + send_event: number; + time: number; + x: number; + y: number; + axes: number; + state: ModifierType; + sequence: EventSequence; + emulating_pointer: boolean; + device: Device; + x_root: number; + y_root: number; +} +export class EventTouchpadPinch { + constructor(copy: EventTouchpadPinch); + // Fields + type: EventType; + window: Window; + send_event: number; + phase: number; + n_fingers: number; + time: number; + x: number; + y: number; + dx: number; + dy: number; + angle_delta: number; + scale: number; + x_root: number; + y_root: number; + state: ModifierType; +} +export class EventTouchpadSwipe { + constructor(copy: EventTouchpadSwipe); + // Fields + type: EventType; + window: Window; + send_event: number; + phase: number; + n_fingers: number; + time: number; + x: number; + y: number; + dx: number; + dy: number; + x_root: number; + y_root: number; + state: ModifierType; +} +export class EventVisibility { + constructor(copy: EventVisibility); + // Fields + type: EventType; + window: Window; + send_event: number; + state: VisibilityState; +} +export class EventWindowState { + constructor(copy: EventWindowState); + // Fields + type: EventType; + window: Window; + send_event: number; + changed_mask: WindowState; + new_window_state: WindowState; +} +export class FrameClockPrivate { + constructor(copy: FrameClockPrivate); +} +export class FrameTimings { + constructor(copy: FrameTimings); + // Members + get_complete(): boolean; + get_frame_counter(): number; + get_frame_time(): number; + get_predicted_presentation_time(): number; + get_presentation_time(): number; + get_refresh_interval(): number; + ref(): FrameTimings; + unref(): void; +} +export class Geometry { + constructor(copy: Geometry); + // Fields + min_width: number; + min_height: number; + max_width: number; + max_height: number; + base_width: number; + base_height: number; + width_inc: number; + height_inc: number; + min_aspect: number; + max_aspect: number; + win_gravity: Gravity; +} +export class KeymapKey { + constructor(copy: KeymapKey); + // Fields + keycode: number; + group: number; + level: number; +} +export class Point { + constructor(copy: Point); + // Fields + x: number; + y: number; +} +export class RGBA { + constructor(copy: RGBA); + // Fields + red: number; + green: number; + blue: number; + alpha: number; + // Members + copy(): RGBA; + equal(p2: RGBA): boolean; + free(): void; + hash(): number; + parse(spec: string): boolean; + to_string(): string; +} +export class Rectangle { + constructor(copy: Rectangle); + // Fields + x: number; + y: number; + width: number; + height: number; + // Members + equal(rect2: Rectangle): boolean; + intersect(src2: Rectangle): [boolean, Rectangle | null]; + union(src2: Rectangle): Rectangle; +} +export class TimeCoord { + constructor(copy: TimeCoord); + // Fields + time: number; + axes: number[]; +} +export class WindowAttr { + constructor(copy: WindowAttr); + // Fields + title: string; + event_mask: number; + x: number; + y: number; + width: number; + height: number; + wclass: WindowWindowClass; + visual: Visual; + window_type: WindowType; + cursor: Cursor; + wmclass_name: string; + wmclass_class: string; + override_redirect: boolean; + type_hint: WindowTypeHint; +} +export class WindowRedirect { + constructor(copy: WindowRedirect); +} +export class Event { + constructor(type: EventType); + constructor(copy: Event); + // Fields + type: EventType; + any: EventAny; + expose: EventExpose; + visibility: EventVisibility; + motion: EventMotion; + button: EventButton; + touch: EventTouch; + scroll: EventScroll; + key: EventKey; + crossing: EventCrossing; + focus_change: EventFocus; + configure: EventConfigure; + property: EventProperty; + selection: EventSelection; + owner_change: EventOwnerChange; + proximity: EventProximity; + dnd: EventDND; + window_state: EventWindowState; + setting: EventSetting; + grab_broken: EventGrabBroken; + touchpad_swipe: EventTouchpadSwipe; + touchpad_pinch: EventTouchpadPinch; + pad_button: EventPadButton; + pad_axis: EventPadAxis; + pad_group_mode: EventPadGroupMode; + // Constructors + static ["new"](type: EventType): Event; + // Members + _get_angle(event2: Event): [boolean, number]; + _get_center(event2: Event): [boolean, number, number]; + _get_distance(event2: Event): [boolean, number]; + copy(): Event; + free(): void; + get_axis(axis_use: AxisUse): [boolean, number]; + get_button(): [boolean, number]; + get_click_count(): [boolean, number]; + get_coords(): [boolean, number | null, number | null]; + get_device(): Device | null; + get_device_tool(): DeviceTool; + get_event_sequence(): EventSequence; + get_event_type(): EventType; + get_keycode(): [boolean, number]; + get_keyval(): [boolean, number]; + get_pointer_emulated(): boolean; + get_root_coords(): [boolean, number | null, number | null]; + get_scancode(): number; + get_screen(): Screen; + get_scroll_deltas(): [boolean, number, number]; + get_scroll_direction(): [boolean, ScrollDirection]; + get_seat(): Seat; + get_source_device(): Device | null; + get_state(): [boolean, ModifierType]; + get_time(): number; + get_window(): Window; + is_scroll_stop_event(): boolean; + put(): void; + set_device(device: Device): void; + set_device_tool(tool: DeviceTool | null): void; + set_screen(screen: Screen): void; + set_source_device(device: Device): void; + triggers_context_menu(): boolean; + static get(): Event | null; + static handler_set(func: EventFunc, data: any | null, notify: GLib.DestroyNotify): void; + static peek(): Event | null; + static request_motions(event: EventMotion): void; +} +export interface DevicePad { + // Members + get_feature_group(feature: DevicePadFeature, feature_idx: number): number; + get_group_n_modes(group_idx: number): number; + get_n_features(feature: DevicePadFeature): number; + get_n_groups(): number; +} + +export type XEvent = void; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gdkpixbuf.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/gdkpixbuf.d.ts new file mode 100644 index 0000000..7758abd --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/gdkpixbuf.d.ts @@ -0,0 +1,278 @@ + + +/** + * GdkPixbuf + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as GModule from "gmodule"; +type GType = object; + +export const PIXBUF_FEATURES_H: number; + +export const PIXBUF_MAJOR: number; + +export const PIXBUF_MICRO: number; + +export const PIXBUF_MINOR: number; + +export const PIXBUF_VERSION: string; + +export function pixbuf_error_quark(): GLib.Quark; + +export type PixbufDestroyNotify = (pixels: number[], data: any | null) => void; + +export type PixbufSaveFunc = (buf: number[], data: any | null) => boolean; +export enum Colorspace { + RGB = 0, +} +export enum InterpType { + NEAREST = 0, + TILES = 1, + BILINEAR = 2, + HYPER = 3, +} +export enum PixbufAlphaMode { + BILEVEL = 0, + FULL = 1, +} +export class PixbufError extends GLib.Error { + constructor(copy: PixbufError); + // Properties + static CORRUPT_IMAGE: number; + static INSUFFICIENT_MEMORY: number; + static BAD_OPTION: number; + static UNKNOWN_TYPE: number; + static UNSUPPORTED_OPERATION: number; + static FAILED: number; + static INCOMPLETE_ANIMATION: number; + // Members + quark(): GLib.Quark; +} +export enum PixbufRotation { + NONE = 0, + COUNTERCLOCKWISE = 90, + UPSIDEDOWN = 180, + CLOCKWISE = 270, +} +export module Pixbuf { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + bits_per_sample: number; + colorspace: Colorspace; + has_alpha: boolean; + height: number; + n_channels: number; + pixel_bytes: GLib.Bytes; + pixels: any; + rowstride: number; + width: number; + } +} +export class Pixbuf extends GObject.Object implements Gio.Icon, Gio.LoadableIcon { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + bits_per_sample: number; + colorspace: Colorspace; + has_alpha: boolean; + height: number; + n_channels: number; + pixel_bytes: GLib.Bytes; + pixels: any; + rowstride: number; + width: number; + // Constructors + static ["new"](colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number): Pixbuf; + static new_from_bytes(data: GLib.Bytes, colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number, rowstride: number): Pixbuf; + static new_from_data(data: number[], colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number, rowstride: number, destroy_fn: PixbufDestroyNotify | null, destroy_fn_data: any | null): Pixbuf; + static new_from_file(filename: string): Pixbuf; + static new_from_file_at_scale(filename: string, width: number, height: number, preserve_aspect_ratio: boolean): Pixbuf; + static new_from_file_at_size(filename: string, width: number, height: number): Pixbuf; + static new_from_inline(data: number[], copy_pixels: boolean): Pixbuf; + static new_from_resource(resource_path: string): Pixbuf; + static new_from_resource_at_scale(resource_path: string, width: number, height: number, preserve_aspect_ratio: boolean): Pixbuf; + static new_from_stream(stream: Gio.InputStream, cancellable: Gio.Cancellable | null): Pixbuf; + static new_from_stream_at_scale(stream: Gio.InputStream, width: number, height: number, preserve_aspect_ratio: boolean, cancellable: Gio.Cancellable | null): Pixbuf; + static new_from_stream_finish(async_result: Gio.AsyncResult): Pixbuf; + static new_from_xpm_data(data: string[]): Pixbuf; + // Members + add_alpha(substitute_color: boolean, r: number, g: number, b: number): Pixbuf; + apply_embedded_orientation(): Pixbuf; + composite(dest: Pixbuf, dest_x: number, dest_y: number, dest_width: number, dest_height: number, offset_x: number, offset_y: number, scale_x: number, scale_y: number, interp_type: InterpType, overall_alpha: number): void; + composite_color(dest: Pixbuf, dest_x: number, dest_y: number, dest_width: number, dest_height: number, offset_x: number, offset_y: number, scale_x: number, scale_y: number, interp_type: InterpType, overall_alpha: number, check_x: number, check_y: number, check_size: number, color1: number, color2: number): void; + composite_color_simple(dest_width: number, dest_height: number, interp_type: InterpType, overall_alpha: number, check_size: number, color1: number, color2: number): Pixbuf | null; + copy(): Pixbuf | null; + copy_area(src_x: number, src_y: number, width: number, height: number, dest_pixbuf: Pixbuf, dest_x: number, dest_y: number): void; + copy_options(dest_pixbuf: Pixbuf): boolean; + fill(pixel: number): void; + flip(horizontal: boolean): Pixbuf | null; + get_bits_per_sample(): number; + get_byte_length(): number; + get_colorspace(): Colorspace; + get_has_alpha(): boolean; + get_height(): number; + get_n_channels(): number; + get_option(key: string): string; + get_options(): GLib.HashTable; + get_pixels(): number[]; + get_pixels_with_length(): [number[], number]; + get_rowstride(): number; + get_width(): number; + new_subpixbuf(src_x: number, src_y: number, width: number, height: number): Pixbuf; + read_pixel_bytes(): GLib.Bytes; + read_pixels(): number; + remove_option(key: string): boolean; + rotate_simple(angle: PixbufRotation): Pixbuf | null; + saturate_and_pixelate(dest: Pixbuf, saturation: number, pixelate: boolean): void; + save_to_bufferv(type: string, option_keys: string[], option_values: string[]): [boolean, number[]]; + save_to_callbackv(save_func: PixbufSaveFunc, type: string, option_keys: string[], option_values: string[]): boolean; + save_to_streamv(stream: Gio.OutputStream, type: string, option_keys: string[], option_values: string[], cancellable: Gio.Cancellable | null): boolean; + save_to_streamv_async(stream: Gio.OutputStream, type: string, option_keys: string[], option_values: string[], cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + savev(filename: string, type: string, option_keys: string[], option_values: string[]): boolean; + scale(dest: Pixbuf, dest_x: number, dest_y: number, dest_width: number, dest_height: number, offset_x: number, offset_y: number, scale_x: number, scale_y: number, interp_type: InterpType): void; + scale_simple(dest_width: number, dest_height: number, interp_type: InterpType): Pixbuf | null; + set_option(key: string, value: string): boolean; + static calculate_rowstride(colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number): number; + static get_file_info(filename: string): [PixbufFormat | null, number | null, number | null]; + static get_file_info_async(filename: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static get_file_info_finish(async_result: Gio.AsyncResult): [PixbufFormat, number, number]; + static get_formats(): string[]; + static init_modules(path: string): boolean; + static new_from_stream_async(stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static new_from_stream_at_scale_async(stream: Gio.InputStream, width: number, height: number, preserve_aspect_ratio: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static save_to_stream_finish(async_result: Gio.AsyncResult): boolean; + // Implemented Members + equal(icon2: Gio.Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Gio.Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; + load(size: number, cancellable: Gio.Cancellable | null): [Gio.InputStream, string | null]; + load_async(size: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + load_finish(res: Gio.AsyncResult): [Gio.InputStream, string | null]; + vfunc_load(size: number, cancellable: Gio.Cancellable | null): [Gio.InputStream, string | null]; + vfunc_load_async(size: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_load_finish(res: Gio.AsyncResult): [Gio.InputStream, string | null]; +} +export module PixbufAnimation { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class PixbufAnimation extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static new_from_file(filename: string): PixbufAnimation; + static new_from_resource(resource_path: string): PixbufAnimation; + static new_from_stream(stream: Gio.InputStream, cancellable: Gio.Cancellable | null): PixbufAnimation; + static new_from_stream_finish(async_result: Gio.AsyncResult): PixbufAnimation; + // Members + get_height(): number; + get_iter(start_time: GLib.TimeVal | null): PixbufAnimationIter; + get_static_image(): Pixbuf; + get_width(): number; + is_static_image(): boolean; + static new_from_stream_async(stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; +} +export module PixbufAnimationIter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class PixbufAnimationIter extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + advance(current_time: GLib.TimeVal | null): boolean; + get_delay_time(): number; + get_pixbuf(): Pixbuf; + on_currently_loading_frame(): boolean; +} +export module PixbufLoader { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class PixbufLoader extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'area-prepared', callback: (_source: this) => void): number; + connect_after(signal: 'area-prepared', callback: (_source: this) => void): number; + emit(signal: 'area-prepared'): void; + connect(signal: 'area-updated', callback: (_source: this, x: number, y: number, width: number, height: number) => void): number; + connect_after(signal: 'area-updated', callback: (_source: this, x: number, y: number, width: number, height: number) => void): number; + emit(signal: 'area-updated', x: number, y: number, width: number, height: number): void; + connect(signal: 'closed', callback: (_source: this) => void): number; + connect_after(signal: 'closed', callback: (_source: this) => void): number; + emit(signal: 'closed'): void; + connect(signal: 'size-prepared', callback: (_source: this, width: number, height: number) => void): number; + connect_after(signal: 'size-prepared', callback: (_source: this, width: number, height: number) => void): number; + emit(signal: 'size-prepared', width: number, height: number): void; + // Constructors + static ["new"](): PixbufLoader; + static new_with_mime_type(mime_type: string): PixbufLoader; + static new_with_type(image_type: string): PixbufLoader; + // Members + close(): boolean; + get_animation(): PixbufAnimation; + get_format(): PixbufFormat | null; + get_pixbuf(): Pixbuf; + set_size(width: number, height: number): void; + write(buf: number[]): boolean; + write_bytes(buffer: GLib.Bytes): boolean; + vfunc_area_prepared(): void; + vfunc_area_updated(x: number, y: number, width: number, height: number): void; + vfunc_closed(): void; + vfunc_size_prepared(width: number, height: number): void; +} +export module PixbufSimpleAnim { + export interface ConstructorProperties extends PixbufAnimation.ConstructorProperties { + [key: string]: any; + loop: boolean; + } +} +export class PixbufSimpleAnim extends PixbufAnimation { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + loop: boolean; + // Constructors + static ["new"](width: number, height: number, rate: number): PixbufSimpleAnim; + // Members + add_frame(pixbuf: Pixbuf): void; + get_loop(): boolean; + set_loop(loop: boolean): void; +} +export module PixbufSimpleAnimIter { + export interface ConstructorProperties extends PixbufAnimationIter.ConstructorProperties { + [key: string]: any; + } +} +export class PixbufSimpleAnimIter extends PixbufAnimationIter { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export class PixbufFormat { + constructor(copy: PixbufFormat); + // Members + copy(): PixbufFormat; + free(): void; + get_description(): string; + get_extensions(): string[]; + get_license(): string; + get_mime_types(): string[]; + get_name(): string; + is_disabled(): boolean; + is_save_option_supported(option_key: string): boolean; + is_scalable(): boolean; + is_writable(): boolean; + set_disabled(disabled: boolean): void; +} \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gio.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/gio.d.ts new file mode 100644 index 0000000..07e6580 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/gio.d.ts @@ -0,0 +1,6132 @@ + + +/** + * Gio + */ +import * as GObject from "gobject"; +import * as GLib from "glib"; +type GType = object; + +export const DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME: string; + +export const DRIVE_IDENTIFIER_KIND_UNIX_DEVICE: string; + +export const FILE_ATTRIBUTE_ACCESS_CAN_DELETE: string; + +export const FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: string; + +export const FILE_ATTRIBUTE_ACCESS_CAN_READ: string; + +export const FILE_ATTRIBUTE_ACCESS_CAN_RENAME: string; + +export const FILE_ATTRIBUTE_ACCESS_CAN_TRASH: string; + +export const FILE_ATTRIBUTE_ACCESS_CAN_WRITE: string; + +export const FILE_ATTRIBUTE_DOS_IS_ARCHIVE: string; + +export const FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT: string; + +export const FILE_ATTRIBUTE_DOS_IS_SYSTEM: string; + +export const FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG: string; + +export const FILE_ATTRIBUTE_ETAG_VALUE: string; + +export const FILE_ATTRIBUTE_FILESYSTEM_FREE: string; + +export const FILE_ATTRIBUTE_FILESYSTEM_READONLY: string; + +export const FILE_ATTRIBUTE_FILESYSTEM_REMOTE: string; + +export const FILE_ATTRIBUTE_FILESYSTEM_SIZE: string; + +export const FILE_ATTRIBUTE_FILESYSTEM_TYPE: string; + +export const FILE_ATTRIBUTE_FILESYSTEM_USED: string; + +export const FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: string; + +export const FILE_ATTRIBUTE_GVFS_BACKEND: string; + +export const FILE_ATTRIBUTE_ID_FILE: string; + +export const FILE_ATTRIBUTE_ID_FILESYSTEM: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_CAN_START: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: string; + +export const FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE: string; + +export const FILE_ATTRIBUTE_OWNER_GROUP: string; + +export const FILE_ATTRIBUTE_OWNER_USER: string; + +export const FILE_ATTRIBUTE_OWNER_USER_REAL: string; + +export const FILE_ATTRIBUTE_PREVIEW_ICON: string; + +export const FILE_ATTRIBUTE_RECENT_MODIFIED: string; + +export const FILE_ATTRIBUTE_SELINUX_CONTEXT: string; + +export const FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE: string; + +export const FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: string; + +export const FILE_ATTRIBUTE_STANDARD_COPY_NAME: string; + +export const FILE_ATTRIBUTE_STANDARD_DESCRIPTION: string; + +export const FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: string; + +export const FILE_ATTRIBUTE_STANDARD_EDIT_NAME: string; + +export const FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: string; + +export const FILE_ATTRIBUTE_STANDARD_ICON: string; + +export const FILE_ATTRIBUTE_STANDARD_IS_BACKUP: string; + +export const FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: string; + +export const FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: string; + +export const FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: string; + +export const FILE_ATTRIBUTE_STANDARD_IS_VOLATILE: string; + +export const FILE_ATTRIBUTE_STANDARD_NAME: string; + +export const FILE_ATTRIBUTE_STANDARD_SIZE: string; + +export const FILE_ATTRIBUTE_STANDARD_SORT_ORDER: string; + +export const FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON: string; + +export const FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: string; + +export const FILE_ATTRIBUTE_STANDARD_TARGET_URI: string; + +export const FILE_ATTRIBUTE_STANDARD_TYPE: string; + +export const FILE_ATTRIBUTE_THUMBNAILING_FAILED: string; + +export const FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: string; + +export const FILE_ATTRIBUTE_THUMBNAIL_PATH: string; + +export const FILE_ATTRIBUTE_TIME_ACCESS: string; + +export const FILE_ATTRIBUTE_TIME_ACCESS_USEC: string; + +export const FILE_ATTRIBUTE_TIME_CHANGED: string; + +export const FILE_ATTRIBUTE_TIME_CHANGED_USEC: string; + +export const FILE_ATTRIBUTE_TIME_CREATED: string; + +export const FILE_ATTRIBUTE_TIME_CREATED_USEC: string; + +export const FILE_ATTRIBUTE_TIME_MODIFIED: string; + +export const FILE_ATTRIBUTE_TIME_MODIFIED_USEC: string; + +export const FILE_ATTRIBUTE_TRASH_DELETION_DATE: string; + +export const FILE_ATTRIBUTE_TRASH_ITEM_COUNT: string; + +export const FILE_ATTRIBUTE_TRASH_ORIG_PATH: string; + +export const FILE_ATTRIBUTE_UNIX_BLOCKS: string; + +export const FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: string; + +export const FILE_ATTRIBUTE_UNIX_DEVICE: string; + +export const FILE_ATTRIBUTE_UNIX_GID: string; + +export const FILE_ATTRIBUTE_UNIX_INODE: string; + +export const FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: string; + +export const FILE_ATTRIBUTE_UNIX_MODE: string; + +export const FILE_ATTRIBUTE_UNIX_NLINK: string; + +export const FILE_ATTRIBUTE_UNIX_RDEV: string; + +export const FILE_ATTRIBUTE_UNIX_UID: string; + +export const MENU_ATTRIBUTE_ACTION: string; + +export const MENU_ATTRIBUTE_ACTION_NAMESPACE: string; + +export const MENU_ATTRIBUTE_ICON: string; + +export const MENU_ATTRIBUTE_LABEL: string; + +export const MENU_ATTRIBUTE_TARGET: string; + +export const MENU_LINK_SECTION: string; + +export const MENU_LINK_SUBMENU: string; + +export const NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: string; + +export const NETWORK_MONITOR_EXTENSION_POINT_NAME: string; + +export const PROXY_EXTENSION_POINT_NAME: string; + +export const PROXY_RESOLVER_EXTENSION_POINT_NAME: string; + +export const SETTINGS_BACKEND_EXTENSION_POINT_NAME: string; + +export const TLS_BACKEND_EXTENSION_POINT_NAME: string; + +export const TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT: string; + +export const TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER: string; + +export const VFS_EXTENSION_POINT_NAME: string; + +export const VOLUME_IDENTIFIER_KIND_CLASS: string; + +export const VOLUME_IDENTIFIER_KIND_HAL_UDI: string; + +export const VOLUME_IDENTIFIER_KIND_LABEL: string; + +export const VOLUME_IDENTIFIER_KIND_NFS_MOUNT: string; + +export const VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: string; + +export const VOLUME_IDENTIFIER_KIND_UUID: string; + +export const VOLUME_MONITOR_EXTENSION_POINT_NAME: string; + +export function action_name_is_valid(action_name: string): boolean; + +export function action_parse_detailed_name(detailed_name: string): [boolean, string, GLib.Variant]; + +export function action_print_detailed_name(action_name: string, target_value: GLib.Variant | null): string; + +export function app_info_create_from_commandline(commandline: string, application_name: string | null, flags: AppInfoCreateFlags): AppInfo; + +export function app_info_get_all(): GLib.List; + +export function app_info_get_all_for_type(content_type: string): GLib.List; + +export function app_info_get_default_for_type(content_type: string, must_support_uris: boolean): AppInfo; + +export function app_info_get_default_for_uri_scheme(uri_scheme: string): AppInfo; + +export function app_info_get_fallback_for_type(content_type: string): GLib.List; + +export function app_info_get_recommended_for_type(content_type: string): GLib.List; + +export function app_info_launch_default_for_uri(uri: string, context: AppLaunchContext | null): boolean; + +export function app_info_launch_default_for_uri_async(uri: string, context: AppLaunchContext | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + +export function app_info_launch_default_for_uri_finish(result: AsyncResult): boolean; + +export function app_info_reset_type_associations(content_type: string): void; + +export function async_initable_newv_async(object_type: GType, n_parameters: number, parameters: GObject.Parameter, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + +export function bus_get(bus_type: BusType, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + +export function bus_get_finish(res: AsyncResult): DBusConnection; + +export function bus_get_sync(bus_type: BusType, cancellable: Cancellable | null): DBusConnection; + +export function bus_own_name_on_connection(connection: DBusConnection, name: string, flags: BusNameOwnerFlags, name_acquired_closure: GObject.Closure | null, name_lost_closure: GObject.Closure | null): number; + +export function bus_own_name(bus_type: BusType, name: string, flags: BusNameOwnerFlags, bus_acquired_closure: GObject.Closure | null, name_acquired_closure: GObject.Closure | null, name_lost_closure: GObject.Closure | null): number; + +export function bus_unown_name(owner_id: number): void; + +export function bus_unwatch_name(watcher_id: number): void; + +export function bus_watch_name_on_connection(connection: DBusConnection, name: string, flags: BusNameWatcherFlags, name_appeared_closure: GObject.Closure | null, name_vanished_closure: GObject.Closure | null): number; + +export function bus_watch_name(bus_type: BusType, name: string, flags: BusNameWatcherFlags, name_appeared_closure: GObject.Closure | null, name_vanished_closure: GObject.Closure | null): number; + +export function content_type_can_be_executable(type: string): boolean; + +export function content_type_equals(type1: string, type2: string): boolean; + +export function content_type_from_mime_type(mime_type: string): string | null; + +export function content_type_get_description(type: string): string; + +export function content_type_get_generic_icon_name(type: string): string | null; + +export function content_type_get_icon(type: string): Icon; + +export function content_type_get_mime_dirs(): string[]; + +export function content_type_get_mime_type(type: string): string | null; + +export function content_type_get_symbolic_icon(type: string): Icon; + +export function content_type_guess(filename: string | null, data: number[] | null): [string, boolean | null]; + +export function content_type_guess_for_tree(root: File): string[]; + +export function content_type_is_a(type: string, supertype: string): boolean; + +export function content_type_is_mime_type(type: string, mime_type: string): boolean; + +export function content_type_is_unknown(type: string): boolean; + +export function content_type_set_mime_dirs(dirs: string[] | null): void; + +export function content_types_get_registered(): GLib.List; + +export function dbus_address_escape_value(string: string): string; + +export function dbus_address_get_for_bus_sync(bus_type: BusType, cancellable: Cancellable | null): string; + +export function dbus_address_get_stream(address: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + +export function dbus_address_get_stream_finish(res: AsyncResult): [IOStream, string | null]; + +export function dbus_address_get_stream_sync(address: string, cancellable: Cancellable | null): [IOStream, string | null]; + +export function dbus_annotation_info_lookup(annotations: DBusAnnotationInfo[] | null, name: string): string; + +export function dbus_error_encode_gerror(error: GLib.Error): string; + +export function dbus_error_get_remote_error(error: GLib.Error): string; + +export function dbus_error_is_remote_error(error: GLib.Error): boolean; + +export function dbus_error_new_for_dbus_error(dbus_error_name: string, dbus_error_message: string): GLib.Error; + +export function dbus_error_quark(): GLib.Quark; + +export function dbus_error_register_error(error_domain: GLib.Quark, error_code: number, dbus_error_name: string): boolean; + +export function dbus_error_register_error_domain(error_domain_quark_name: string, quark_volatile: number, entries: DBusErrorEntry[]): void; + +export function dbus_error_strip_remote_error(error: GLib.Error): boolean; + +export function dbus_error_unregister_error(error_domain: GLib.Quark, error_code: number, dbus_error_name: string): boolean; + +export function dbus_generate_guid(): string; + +export function dbus_gvalue_to_gvariant(gvalue: GObject.Value, type: GLib.VariantType): GLib.Variant; + +export function dbus_gvariant_to_gvalue(value: GLib.Variant): GObject.Value; + +export function dbus_is_address(string: string): boolean; + +export function dbus_is_guid(string: string): boolean; + +export function dbus_is_interface_name(string: string): boolean; + +export function dbus_is_member_name(string: string): boolean; + +export function dbus_is_name(string: string): boolean; + +export function dbus_is_supported_address(string: string): boolean; + +export function dbus_is_unique_name(string: string): boolean; + +export function dtls_client_connection_new(base_socket: DatagramBased, server_identity: SocketConnectable | null): DtlsClientConnection; + +export function dtls_server_connection_new(base_socket: DatagramBased, certificate: TlsCertificate | null): DtlsServerConnection; + +export function file_new_for_commandline_arg(arg: string): File; + +export function file_new_for_commandline_arg_and_cwd(arg: string, cwd: string): File; + +export function file_new_for_path(path: string): File; + +export function file_new_for_uri(uri: string): File; + +export function file_new_tmp(tmpl: string | null): [File, FileIOStream]; + +export function file_parse_name(parse_name: string): File; + +export function icon_deserialize(value: GLib.Variant): Icon; + +export function icon_hash(icon: any): number; + +export function icon_new_for_string(str: string): Icon; + +export function initable_newv(object_type: GType, parameters: GObject.Parameter[], cancellable: Cancellable | null): GObject.Object; + +export function io_error_from_errno(err_no: number): IOErrorEnum; + +export function io_error_quark(): GLib.Quark; + +export function io_extension_point_implement(extension_point_name: string, type: GType, extension_name: string, priority: number): IOExtension; + +export function io_extension_point_lookup(name: string): IOExtensionPoint; + +export function io_extension_point_register(name: string): IOExtensionPoint; + +export function io_modules_load_all_in_directory(dirname: string): GLib.List; + +export function io_modules_load_all_in_directory_with_scope(dirname: string, scope: IOModuleScope): GLib.List; + +export function io_modules_scan_all_in_directory(dirname: string): void; + +export function io_modules_scan_all_in_directory_with_scope(dirname: string, scope: IOModuleScope): void; + +export function io_scheduler_cancel_all_jobs(): void; + +export function io_scheduler_push_job(job_func: IOSchedulerJobFunc, notify: GLib.DestroyNotify | null, io_priority: number, cancellable: Cancellable | null): void; + +export function keyfile_settings_backend_new(filename: string, root_path: string, root_group: string | null): SettingsBackend; + +export function memory_settings_backend_new(): SettingsBackend; + +export function network_monitor_get_default(): NetworkMonitor; + +export function networking_init(): void; + +export function null_settings_backend_new(): SettingsBackend; + +export function pollable_source_new(pollable_stream: GObject.Object): GLib.Source; + +export function pollable_source_new_full(pollable_stream: GObject.Object, child_source: GLib.Source | null, cancellable: Cancellable | null): GLib.Source; + +export function pollable_stream_read(stream: InputStream, buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; + +export function pollable_stream_write(stream: OutputStream, buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; + +export function pollable_stream_write_all(stream: OutputStream, buffer: number[], blocking: boolean, cancellable: Cancellable | null): [boolean, number]; + +export function proxy_get_default_for_protocol(protocol: string): Proxy; + +export function proxy_resolver_get_default(): ProxyResolver; + +export function resolver_error_quark(): GLib.Quark; + +export function resource_error_quark(): GLib.Quark; + +export function resource_load(filename: string): Resource; + +export function resources_enumerate_children(path: string, lookup_flags: ResourceLookupFlags): string[]; + +export function resources_get_info(path: string, lookup_flags: ResourceLookupFlags): [boolean, number | null, number | null]; + +export function resources_lookup_data(path: string, lookup_flags: ResourceLookupFlags): GLib.Bytes; + +export function resources_open_stream(path: string, lookup_flags: ResourceLookupFlags): InputStream; + +export function resources_register(resource: Resource): void; + +export function resources_unregister(resource: Resource): void; + +export function settings_schema_source_get_default(): SettingsSchemaSource | null; + +export function simple_async_report_gerror_in_idle(object: GObject.Object | null, callback: AsyncReadyCallback | null, error: GLib.Error): void; + +export function tls_backend_get_default(): TlsBackend; + +export function tls_client_connection_new(base_io_stream: IOStream, server_identity: SocketConnectable | null): TlsClientConnection; + +export function tls_error_quark(): GLib.Quark; + +export function tls_file_database_new(anchors: string): TlsFileDatabase; + +export function tls_server_connection_new(base_io_stream: IOStream, certificate: TlsCertificate | null): TlsServerConnection; + +export function unix_is_mount_path_system_internal(mount_path: string): boolean; + +export function unix_is_system_device_path(device_path: string): boolean; + +export function unix_is_system_fs_type(fs_type: string): boolean; + +export function unix_mount_at(mount_path: string): [UnixMountEntry, number | null]; + +export function unix_mount_compare(mount1: UnixMountEntry, mount2: UnixMountEntry): number; + +export function unix_mount_copy(mount_entry: UnixMountEntry): UnixMountEntry; + +export function unix_mount_for(file_path: string): [UnixMountEntry, number | null]; + +export function unix_mount_free(mount_entry: UnixMountEntry): void; + +export function unix_mount_get_device_path(mount_entry: UnixMountEntry): string; + +export function unix_mount_get_fs_type(mount_entry: UnixMountEntry): string; + +export function unix_mount_get_mount_path(mount_entry: UnixMountEntry): string; + +export function unix_mount_get_options(mount_entry: UnixMountEntry): string | null; + +export function unix_mount_get_root_path(mount_entry: UnixMountEntry): string | null; + +export function unix_mount_guess_can_eject(mount_entry: UnixMountEntry): boolean; + +export function unix_mount_guess_icon(mount_entry: UnixMountEntry): Icon; + +export function unix_mount_guess_name(mount_entry: UnixMountEntry): string; + +export function unix_mount_guess_should_display(mount_entry: UnixMountEntry): boolean; + +export function unix_mount_guess_symbolic_icon(mount_entry: UnixMountEntry): Icon; + +export function unix_mount_is_readonly(mount_entry: UnixMountEntry): boolean; + +export function unix_mount_is_system_internal(mount_entry: UnixMountEntry): boolean; + +export function unix_mount_points_changed_since(time: number): boolean; + +export function unix_mount_points_get(): [GLib.List, number | null]; + +export function unix_mounts_changed_since(time: number): boolean; + +export function unix_mounts_get(): [GLib.List, number | null]; + +export type AsyncReadyCallback = (source_object: GObject.Object | null, res: AsyncResult) => void; + +export type BusAcquiredCallback = (connection: DBusConnection, name: string) => void; + +export type BusNameAcquiredCallback = (connection: DBusConnection, name: string) => void; + +export type BusNameAppearedCallback = (connection: DBusConnection, name: string, name_owner: string) => void; + +export type BusNameLostCallback = (connection: DBusConnection, name: string) => void; + +export type BusNameVanishedCallback = (connection: DBusConnection, name: string) => void; + +export type CancellableSourceFunc = (cancellable: Cancellable | null) => boolean; + +export type DBusInterfaceGetPropertyFunc = (connection: DBusConnection, sender: string, object_path: string, interface_name: string, property_name: string, error: GLib.Error) => GLib.Variant; + +export type DBusInterfaceMethodCallFunc = (connection: DBusConnection, sender: string, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant, invocation: DBusMethodInvocation) => void; + +export type DBusInterfaceSetPropertyFunc = (connection: DBusConnection, sender: string, object_path: string, interface_name: string, property_name: string, value: GLib.Variant, error: GLib.Error) => boolean; + +export type DBusMessageFilterFunction = (connection: DBusConnection, message: DBusMessage, incoming: boolean) => DBusMessage | null; + +export type DBusProxyTypeFunc = (manager: DBusObjectManagerClient, object_path: string, interface_name: string | null) => GType; + +export type DBusSignalCallback = (connection: DBusConnection, sender_name: string, object_path: string, interface_name: string, signal_name: string, parameters: GLib.Variant) => void; + +export type DBusSubtreeDispatchFunc = (connection: DBusConnection, sender: string, object_path: string, interface_name: string, node: string, out_user_data: any) => DBusInterfaceVTable; + +export type DBusSubtreeIntrospectFunc = (connection: DBusConnection, sender: string, object_path: string, node: string) => DBusInterfaceInfo; + +export type DatagramBasedSourceFunc = (datagram_based: DatagramBased, condition: GLib.IOCondition) => boolean; + +export type DesktopAppLaunchCallback = (appinfo: DesktopAppInfo, pid: GLib.Pid) => void; + +export type FileMeasureProgressCallback = (reporting: boolean, current_size: number, num_dirs: number, num_files: number) => void; + +export type FileProgressCallback = (current_num_bytes: number, total_num_bytes: number) => void; + +export type FileReadMoreCallback = (file_contents: string, file_size: number, callback_data: any | null) => boolean; + +export type IOSchedulerJobFunc = (job: IOSchedulerJob, cancellable: Cancellable | null) => boolean; + +export type PollableSourceFunc = (pollable_stream: GObject.Object) => boolean; + +export type ReallocFunc = (data: any | null, size: number) => any | null; + +export type SettingsBindGetMapping = (value: GObject.Value, variant: GLib.Variant) => boolean; + +export type SettingsBindSetMapping = (value: GObject.Value, expected_type: GLib.VariantType) => GLib.Variant; + +export type SettingsGetMapping = (value: GLib.Variant) => boolean; + +export type SimpleAsyncThreadFunc = (res: SimpleAsyncResult, object: GObject.Object, cancellable: Cancellable | null) => void; + +export type SocketSourceFunc = (socket: Socket, condition: GLib.IOCondition) => boolean; + +export type TaskThreadFunc = (task: Task, source_object: GObject.Object, task_data: any | null, cancellable: Cancellable | null) => void; + +export type VfsFileLookupFunc = (vfs: Vfs, identifier: string) => File; +export enum BusType { + STARTER = -1, + NONE = 0, + SYSTEM = 1, + SESSION = 2, +} +export enum ConverterResult { + ERROR = 0, + CONVERTED = 1, + FINISHED = 2, + FLUSHED = 3, +} +export enum CredentialsType { + INVALID = 0, + LINUX_UCRED = 1, + FREEBSD_CMSGCRED = 2, + OPENBSD_SOCKPEERCRED = 3, + SOLARIS_UCRED = 4, + NETBSD_UNPCBID = 5, +} +export class DBusError extends GLib.Error { + constructor(copy: DBusError); + // Properties + static FAILED: number; + static NO_MEMORY: number; + static SERVICE_UNKNOWN: number; + static NAME_HAS_NO_OWNER: number; + static NO_REPLY: number; + static IO_ERROR: number; + static BAD_ADDRESS: number; + static NOT_SUPPORTED: number; + static LIMITS_EXCEEDED: number; + static ACCESS_DENIED: number; + static AUTH_FAILED: number; + static NO_SERVER: number; + static TIMEOUT: number; + static NO_NETWORK: number; + static ADDRESS_IN_USE: number; + static DISCONNECTED: number; + static INVALID_ARGS: number; + static FILE_NOT_FOUND: number; + static FILE_EXISTS: number; + static UNKNOWN_METHOD: number; + static TIMED_OUT: number; + static MATCH_RULE_NOT_FOUND: number; + static MATCH_RULE_INVALID: number; + static SPAWN_EXEC_FAILED: number; + static SPAWN_FORK_FAILED: number; + static SPAWN_CHILD_EXITED: number; + static SPAWN_CHILD_SIGNALED: number; + static SPAWN_FAILED: number; + static SPAWN_SETUP_FAILED: number; + static SPAWN_CONFIG_INVALID: number; + static SPAWN_SERVICE_INVALID: number; + static SPAWN_SERVICE_NOT_FOUND: number; + static SPAWN_PERMISSIONS_INVALID: number; + static SPAWN_FILE_INVALID: number; + static SPAWN_NO_MEMORY: number; + static UNIX_PROCESS_ID_UNKNOWN: number; + static INVALID_SIGNATURE: number; + static INVALID_FILE_CONTENT: number; + static SELINUX_SECURITY_CONTEXT_UNKNOWN: number; + static ADT_AUDIT_DATA_UNKNOWN: number; + static OBJECT_PATH_IN_USE: number; + static UNKNOWN_OBJECT: number; + static UNKNOWN_INTERFACE: number; + static UNKNOWN_PROPERTY: number; + static PROPERTY_READ_ONLY: number; + // Members + encode_gerror(error: GLib.Error): string; + get_remote_error(error: GLib.Error): string; + is_remote_error(error: GLib.Error): boolean; + new_for_dbus_error(dbus_error_name: string, dbus_error_message: string): GLib.Error; + quark(): GLib.Quark; + register_error(error_domain: GLib.Quark, error_code: number, dbus_error_name: string): boolean; + register_error_domain(error_domain_quark_name: string, quark_volatile: number, entries: DBusErrorEntry[]): void; + set_dbus_error(error: GLib.Error, dbus_error_name: string, dbus_error_message: string, format: string | null, ___: any[]): void; + set_dbus_error_valist(error: GLib.Error, dbus_error_name: string, dbus_error_message: string, format: string | null, var_args: any): void; + strip_remote_error(error: GLib.Error): boolean; + unregister_error(error_domain: GLib.Quark, error_code: number, dbus_error_name: string): boolean; +} +export enum DBusMessageByteOrder { + BIG_ENDIAN = 66, + LITTLE_ENDIAN = 108, +} +export enum DBusMessageHeaderField { + INVALID = 0, + PATH = 1, + INTERFACE = 2, + MEMBER = 3, + ERROR_NAME = 4, + REPLY_SERIAL = 5, + DESTINATION = 6, + SENDER = 7, + SIGNATURE = 8, + NUM_UNIX_FDS = 9, +} +export enum DBusMessageType { + INVALID = 0, + METHOD_CALL = 1, + METHOD_RETURN = 2, + ERROR = 3, + SIGNAL = 4, +} +export enum DataStreamByteOrder { + BIG_ENDIAN = 0, + LITTLE_ENDIAN = 1, + HOST_ENDIAN = 2, +} +export enum DataStreamNewlineType { + LF = 0, + CR = 1, + CR_LF = 2, + ANY = 3, +} +export enum DriveStartStopType { + UNKNOWN = 0, + SHUTDOWN = 1, + NETWORK = 2, + MULTIDISK = 3, + PASSWORD = 4, +} +export enum EmblemOrigin { + UNKNOWN = 0, + DEVICE = 1, + LIVEMETADATA = 2, + TAG = 3, +} +export enum FileAttributeStatus { + UNSET = 0, + SET = 1, + ERROR_SETTING = 2, +} +export enum FileAttributeType { + INVALID = 0, + STRING = 1, + BYTE_STRING = 2, + BOOLEAN = 3, + UINT32 = 4, + INT32 = 5, + UINT64 = 6, + INT64 = 7, + OBJECT = 8, + STRINGV = 9, +} +export enum FileMonitorEvent { + CHANGED = 0, + CHANGES_DONE_HINT = 1, + DELETED = 2, + CREATED = 3, + ATTRIBUTE_CHANGED = 4, + PRE_UNMOUNT = 5, + UNMOUNTED = 6, + MOVED = 7, + RENAMED = 8, + MOVED_IN = 9, + MOVED_OUT = 10, +} +export enum FileType { + UNKNOWN = 0, + REGULAR = 1, + DIRECTORY = 2, + SYMBOLIC_LINK = 3, + SPECIAL = 4, + SHORTCUT = 5, + MOUNTABLE = 6, +} +export enum FilesystemPreviewType { + IF_ALWAYS = 0, + IF_LOCAL = 1, + NEVER = 2, +} +export class IOErrorEnum extends GLib.Error { + constructor(copy: IOErrorEnum); + // Properties + static FAILED: number; + static NOT_FOUND: number; + static EXISTS: number; + static IS_DIRECTORY: number; + static NOT_DIRECTORY: number; + static NOT_EMPTY: number; + static NOT_REGULAR_FILE: number; + static NOT_SYMBOLIC_LINK: number; + static NOT_MOUNTABLE_FILE: number; + static FILENAME_TOO_LONG: number; + static INVALID_FILENAME: number; + static TOO_MANY_LINKS: number; + static NO_SPACE: number; + static INVALID_ARGUMENT: number; + static PERMISSION_DENIED: number; + static NOT_SUPPORTED: number; + static NOT_MOUNTED: number; + static ALREADY_MOUNTED: number; + static CLOSED: number; + static CANCELLED: number; + static PENDING: number; + static READ_ONLY: number; + static CANT_CREATE_BACKUP: number; + static WRONG_ETAG: number; + static TIMED_OUT: number; + static WOULD_RECURSE: number; + static BUSY: number; + static WOULD_BLOCK: number; + static HOST_NOT_FOUND: number; + static WOULD_MERGE: number; + static FAILED_HANDLED: number; + static TOO_MANY_OPEN_FILES: number; + static NOT_INITIALIZED: number; + static ADDRESS_IN_USE: number; + static PARTIAL_INPUT: number; + static INVALID_DATA: number; + static DBUS_ERROR: number; + static HOST_UNREACHABLE: number; + static NETWORK_UNREACHABLE: number; + static CONNECTION_REFUSED: number; + static PROXY_FAILED: number; + static PROXY_AUTH_FAILED: number; + static PROXY_NEED_AUTH: number; + static PROXY_NOT_ALLOWED: number; + static BROKEN_PIPE: number; + static CONNECTION_CLOSED: number; + static NOT_CONNECTED: number; + static MESSAGE_TOO_LARGE: number; +} +export enum IOModuleScopeFlags { + NONE = 0, + BLOCK_DUPLICATES = 1, +} +export enum MountOperationResult { + HANDLED = 0, + ABORTED = 1, + UNHANDLED = 2, +} +export enum NetworkConnectivity { + LOCAL = 1, + LIMITED = 2, + PORTAL = 3, + FULL = 4, +} +export enum NotificationPriority { + NORMAL = 0, + LOW = 1, + HIGH = 2, + URGENT = 3, +} +export enum PasswordSave { + NEVER = 0, + FOR_SESSION = 1, + PERMANENTLY = 2, +} +export enum PollableReturn { + FAILED = 0, + OK = 1, + WOULD_BLOCK = -27, +} +export class ResolverError extends GLib.Error { + constructor(copy: ResolverError); + // Properties + static NOT_FOUND: number; + static TEMPORARY_FAILURE: number; + static INTERNAL: number; + // Members + quark(): GLib.Quark; +} +export enum ResolverRecordType { + SRV = 1, + MX = 2, + TXT = 3, + SOA = 4, + NS = 5, +} +export class ResourceError extends GLib.Error { + constructor(copy: ResourceError); + // Properties + static NOT_FOUND: number; + static INTERNAL: number; + // Members + quark(): GLib.Quark; +} +export enum SocketClientEvent { + RESOLVING = 0, + RESOLVED = 1, + CONNECTING = 2, + CONNECTED = 3, + PROXY_NEGOTIATING = 4, + PROXY_NEGOTIATED = 5, + TLS_HANDSHAKING = 6, + TLS_HANDSHAKED = 7, + COMPLETE = 8, +} +export enum SocketFamily { + INVALID = 0, + UNIX = 1, + IPV4 = 2, + IPV6 = 10, +} +export enum SocketListenerEvent { + BINDING = 0, + BOUND = 1, + LISTENING = 2, + LISTENED = 3, +} +export enum SocketProtocol { + UNKNOWN = -1, + DEFAULT = 0, + TCP = 6, + UDP = 17, + SCTP = 132, +} +export enum SocketType { + INVALID = 0, + STREAM = 1, + DATAGRAM = 2, + SEQPACKET = 3, +} +export enum TlsAuthenticationMode { + NONE = 0, + REQUESTED = 1, + REQUIRED = 2, +} +export enum TlsCertificateRequestFlags { + NONE = 0, +} +export enum TlsDatabaseLookupFlags { + NONE = 0, + KEYPAIR = 1, +} +export class TlsError extends GLib.Error { + constructor(copy: TlsError); + // Properties + static UNAVAILABLE: number; + static MISC: number; + static BAD_CERTIFICATE: number; + static NOT_TLS: number; + static HANDSHAKE: number; + static CERTIFICATE_REQUIRED: number; + static EOF: number; + static INAPPROPRIATE_FALLBACK: number; + // Members + quark(): GLib.Quark; +} +export enum TlsInteractionResult { + UNHANDLED = 0, + HANDLED = 1, + FAILED = 2, +} +export enum TlsRehandshakeMode { + NEVER = 0, + SAFELY = 1, + UNSAFELY = 2, +} +export enum UnixSocketAddressType { + INVALID = 0, + ANONYMOUS = 1, + PATH = 2, + ABSTRACT = 3, + ABSTRACT_PADDED = 4, +} +export enum ZlibCompressorFormat { + ZLIB = 0, + GZIP = 1, + RAW = 2, +} +export enum AppInfoCreateFlags { + NONE = 0, + NEEDS_TERMINAL = 1, + SUPPORTS_URIS = 2, + SUPPORTS_STARTUP_NOTIFICATION = 4, +} +export enum ApplicationFlags { + FLAGS_NONE = 0, + IS_SERVICE = 1, + IS_LAUNCHER = 2, + HANDLES_OPEN = 4, + HANDLES_COMMAND_LINE = 8, + SEND_ENVIRONMENT = 16, + NON_UNIQUE = 32, + CAN_OVERRIDE_APP_ID = 64, + ALLOW_REPLACEMENT = 128, + REPLACE = 256, +} +export enum AskPasswordFlags { + NEED_PASSWORD = 1, + NEED_USERNAME = 2, + NEED_DOMAIN = 4, + SAVING_SUPPORTED = 8, + ANONYMOUS_SUPPORTED = 16, + TCRYPT = 32, +} +export enum BusNameOwnerFlags { + NONE = 0, + ALLOW_REPLACEMENT = 1, + REPLACE = 2, + DO_NOT_QUEUE = 4, +} +export enum BusNameWatcherFlags { + NONE = 0, + AUTO_START = 1, +} +export enum ConverterFlags { + NONE = 0, + INPUT_AT_END = 1, + FLUSH = 2, +} +export enum DBusCallFlags { + NONE = 0, + NO_AUTO_START = 1, + ALLOW_INTERACTIVE_AUTHORIZATION = 2, +} +export enum DBusCapabilityFlags { + NONE = 0, + UNIX_FD_PASSING = 1, +} +export enum DBusConnectionFlags { + NONE = 0, + AUTHENTICATION_CLIENT = 1, + AUTHENTICATION_SERVER = 2, + AUTHENTICATION_ALLOW_ANONYMOUS = 4, + MESSAGE_BUS_CONNECTION = 8, + DELAY_MESSAGE_PROCESSING = 16, +} +export enum DBusInterfaceSkeletonFlags { + NONE = 0, + HANDLE_METHOD_INVOCATIONS_IN_THREAD = 1, +} +export enum DBusMessageFlags { + NONE = 0, + NO_REPLY_EXPECTED = 1, + NO_AUTO_START = 2, + ALLOW_INTERACTIVE_AUTHORIZATION = 4, +} +export enum DBusObjectManagerClientFlags { + NONE = 0, + DO_NOT_AUTO_START = 1, +} +export enum DBusPropertyInfoFlags { + NONE = 0, + READABLE = 1, + WRITABLE = 2, +} +export enum DBusProxyFlags { + NONE = 0, + DO_NOT_LOAD_PROPERTIES = 1, + DO_NOT_CONNECT_SIGNALS = 2, + DO_NOT_AUTO_START = 4, + GET_INVALIDATED_PROPERTIES = 8, + DO_NOT_AUTO_START_AT_CONSTRUCTION = 16, +} +export enum DBusSendMessageFlags { + NONE = 0, + PRESERVE_SERIAL = 1, +} +export enum DBusServerFlags { + NONE = 0, + RUN_IN_THREAD = 1, + AUTHENTICATION_ALLOW_ANONYMOUS = 2, +} +export enum DBusSignalFlags { + NONE = 0, + NO_MATCH_RULE = 1, + MATCH_ARG0_NAMESPACE = 2, + MATCH_ARG0_PATH = 4, +} +export enum DBusSubtreeFlags { + NONE = 0, + DISPATCH_TO_UNENUMERATED_NODES = 1, +} +export enum DriveStartFlags { + NONE = 0, +} +export enum FileAttributeInfoFlags { + NONE = 0, + COPY_WITH_FILE = 1, + COPY_WHEN_MOVED = 2, +} +export enum FileCopyFlags { + NONE = 0, + OVERWRITE = 1, + BACKUP = 2, + NOFOLLOW_SYMLINKS = 4, + ALL_METADATA = 8, + NO_FALLBACK_FOR_MOVE = 16, + TARGET_DEFAULT_PERMS = 32, +} +export enum FileCreateFlags { + NONE = 0, + PRIVATE = 1, + REPLACE_DESTINATION = 2, +} +export enum FileMeasureFlags { + NONE = 0, + REPORT_ANY_ERROR = 2, + APPARENT_SIZE = 4, + NO_XDEV = 8, +} +export enum FileMonitorFlags { + NONE = 0, + WATCH_MOUNTS = 1, + SEND_MOVED = 2, + WATCH_HARD_LINKS = 4, + WATCH_MOVES = 8, +} +export enum FileQueryInfoFlags { + NONE = 0, + NOFOLLOW_SYMLINKS = 1, +} +export enum IOStreamSpliceFlags { + NONE = 0, + CLOSE_STREAM1 = 1, + CLOSE_STREAM2 = 2, + WAIT_FOR_BOTH = 4, +} +export enum MountMountFlags { + NONE = 0, +} +export enum MountUnmountFlags { + NONE = 0, + FORCE = 1, +} +export enum OutputStreamSpliceFlags { + NONE = 0, + CLOSE_SOURCE = 1, + CLOSE_TARGET = 2, +} +export enum ResolverNameLookupFlags { + DEFAULT = 0, + IPV4_ONLY = 1, + IPV6_ONLY = 2, +} +export enum ResourceFlags { + NONE = 0, + COMPRESSED = 1, +} +export enum ResourceLookupFlags { + NONE = 0, +} +export enum SettingsBindFlags { + DEFAULT = 0, + GET = 1, + SET = 2, + NO_SENSITIVITY = 4, + GET_NO_CHANGES = 8, + INVERT_BOOLEAN = 16, +} +export enum SocketMsgFlags { + NONE = 0, + OOB = 1, + PEEK = 2, + DONTROUTE = 4, +} +export enum SubprocessFlags { + NONE = 0, + STDIN_PIPE = 1, + STDIN_INHERIT = 2, + STDOUT_PIPE = 4, + STDOUT_SILENCE = 8, + STDERR_PIPE = 16, + STDERR_SILENCE = 32, + STDERR_MERGE = 64, + INHERIT_FDS = 128, +} +export enum TestDBusFlags { + NONE = 0, +} +export enum TlsCertificateFlags { + UNKNOWN_CA = 1, + BAD_IDENTITY = 2, + NOT_ACTIVATED = 4, + EXPIRED = 8, + REVOKED = 16, + INSECURE = 32, + GENERIC_ERROR = 64, + VALIDATE_ALL = 127, +} +export enum TlsDatabaseVerifyFlags { + NONE = 0, +} +export enum TlsPasswordFlags { + NONE = 0, + RETRY = 2, + MANY_TRIES = 4, + FINAL_TRY = 8, +} +export module AppInfoMonitor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class AppInfoMonitor extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + // Members + static get(): AppInfoMonitor; +} +export module AppLaunchContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class AppLaunchContext extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'launch-failed', callback: (_source: this, startup_notify_id: string) => void): number; + connect_after(signal: 'launch-failed', callback: (_source: this, startup_notify_id: string) => void): number; + emit(signal: 'launch-failed', startup_notify_id: string): void; + connect(signal: 'launched', callback: (_source: this, info: AppInfo, platform_data: GLib.Variant) => void): number; + connect_after(signal: 'launched', callback: (_source: this, info: AppInfo, platform_data: GLib.Variant) => void): number; + emit(signal: 'launched', info: AppInfo, platform_data: GLib.Variant): void; + // Constructors + static ["new"](): AppLaunchContext; + // Members + get_display(info: AppInfo, files: GLib.List): string; + get_environment(): string[]; + get_startup_notify_id(info: AppInfo, files: GLib.List): string; + launch_failed(startup_notify_id: string): void; + setenv(variable: string, value: string): void; + unsetenv(variable: string): void; + vfunc_get_display(info: AppInfo, files: GLib.List): string; + vfunc_get_startup_notify_id(info: AppInfo, files: GLib.List): string; + vfunc_launch_failed(startup_notify_id: string): void; + vfunc_launched(info: AppInfo, platform_data: GLib.Variant): void; +} +export module Application { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + action_group: ActionGroup; + application_id: string; + flags: ApplicationFlags; + inactivity_timeout: number; + is_busy: boolean; + is_registered: boolean; + is_remote: boolean; + resource_base_path: string; + } +} +export class Application extends GObject.Object implements ActionGroup, ActionMap { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + action_group: ActionGroup; + application_id: string; + flags: ApplicationFlags; + inactivity_timeout: number; + is_busy: boolean; + is_registered: boolean; + is_remote: boolean; + resource_base_path: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'command-line', callback: (_source: this, command_line: ApplicationCommandLine) => number): number; + connect_after(signal: 'command-line', callback: (_source: this, command_line: ApplicationCommandLine) => number): number; + emit(signal: 'command-line', command_line: ApplicationCommandLine): void; + connect(signal: 'handle-local-options', callback: (_source: this, options: GLib.VariantDict) => number): number; + connect_after(signal: 'handle-local-options', callback: (_source: this, options: GLib.VariantDict) => number): number; + emit(signal: 'handle-local-options', options: GLib.VariantDict): void; + connect(signal: 'name-lost', callback: (_source: this) => boolean): number; + connect_after(signal: 'name-lost', callback: (_source: this) => boolean): number; + emit(signal: 'name-lost'): void; + connect(signal: 'open', callback: (_source: this, files: File[], n_files: number, hint: string) => void): number; + connect_after(signal: 'open', callback: (_source: this, files: File[], n_files: number, hint: string) => void): number; + emit(signal: 'open', files: File[], n_files: number, hint: string): void; + connect(signal: 'shutdown', callback: (_source: this) => void): number; + connect_after(signal: 'shutdown', callback: (_source: this) => void): number; + emit(signal: 'shutdown'): void; + connect(signal: 'startup', callback: (_source: this) => void): number; + connect_after(signal: 'startup', callback: (_source: this) => void): number; + emit(signal: 'startup'): void; + // Constructors + static ["new"](application_id: string | null, flags: ApplicationFlags): Application; + // Members + activate(): void; + add_main_option(long_name: string, short_name: number, flags: GLib.OptionFlags, arg: GLib.OptionArg, description: string, arg_description: string | null): void; + add_main_option_entries(entries: GLib.OptionEntry[]): void; + add_option_group(group: GLib.OptionGroup): void; + bind_busy_property(object: GObject.Object, property: string): void; + get_application_id(): string; + get_dbus_connection(): DBusConnection; + get_dbus_object_path(): string; + get_flags(): ApplicationFlags; + get_inactivity_timeout(): number; + get_is_busy(): boolean; + get_is_registered(): boolean; + get_is_remote(): boolean; + get_resource_base_path(): string | null; + hold(): void; + mark_busy(): void; + open(files: File[], hint: string): void; + quit(): void; + register(cancellable: Cancellable | null): boolean; + release(): void; + run(argv: string[] | null): number; + send_notification(id: string | null, notification: Notification): void; + set_action_group(action_group: ActionGroup | null): void; + set_application_id(application_id: string | null): void; + set_default(): void; + set_flags(flags: ApplicationFlags): void; + set_inactivity_timeout(inactivity_timeout: number): void; + set_option_context_description(description: string | null): void; + set_option_context_parameter_string(parameter_string: string | null): void; + set_option_context_summary(summary: string | null): void; + set_resource_base_path(resource_path: string | null): void; + unbind_busy_property(object: GObject.Object, property: string): void; + unmark_busy(): void; + withdraw_notification(id: string): void; + vfunc_activate(): void; + vfunc_add_platform_data(builder: GLib.VariantBuilder): void; + vfunc_after_emit(platform_data: GLib.Variant): void; + vfunc_before_emit(platform_data: GLib.Variant): void; + vfunc_command_line(command_line: ApplicationCommandLine): number; + vfunc_dbus_register(connection: DBusConnection, object_path: string): boolean; + vfunc_dbus_unregister(connection: DBusConnection, object_path: string): void; + vfunc_handle_local_options(options: GLib.VariantDict): number; + vfunc_local_command_line(_arguments: string[]): [boolean, string[], number]; + vfunc_name_lost(): boolean; + vfunc_open(files: File[], hint: string): void; + vfunc_quit_mainloop(): void; + vfunc_run_mainloop(): void; + vfunc_shutdown(): void; + vfunc_startup(): void; + static get_default(): Application; + static id_is_valid(application_id: string): boolean; + // Implemented Members + action_added(action_name: string): void; + action_enabled_changed(action_name: string, enabled: boolean): void; + action_removed(action_name: string): void; + action_state_changed(action_name: string, state: GLib.Variant): void; + activate_action(action_name: string, parameter: GLib.Variant | null): void; + change_action_state(action_name: string, value: GLib.Variant): void; + get_action_enabled(action_name: string): boolean; + get_action_parameter_type(action_name: string): GLib.VariantType | null; + get_action_state(action_name: string): GLib.Variant | null; + get_action_state_hint(action_name: string): GLib.Variant | null; + get_action_state_type(action_name: string): GLib.VariantType | null; + has_action(action_name: string): boolean; + list_actions(): string[]; + query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + vfunc_action_added(action_name: string): void; + vfunc_action_enabled_changed(action_name: string, enabled: boolean): void; + vfunc_action_removed(action_name: string): void; + vfunc_action_state_changed(action_name: string, state: GLib.Variant): void; + vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void; + vfunc_change_action_state(action_name: string, value: GLib.Variant): void; + vfunc_get_action_enabled(action_name: string): boolean; + vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null; + vfunc_get_action_state(action_name: string): GLib.Variant | null; + vfunc_get_action_state_hint(action_name: string): GLib.Variant | null; + vfunc_get_action_state_type(action_name: string): GLib.VariantType | null; + vfunc_has_action(action_name: string): boolean; + vfunc_list_actions(): string[]; + vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + add_action(action: Action): void; + add_action_entries(entries: ActionEntry[]): void; + lookup_action(action_name: string): Action; + remove_action(action_name: string): void; + vfunc_add_action(action: Action): void; + vfunc_lookup_action(action_name: string): Action; + vfunc_remove_action(action_name: string): void; +} +export module ApplicationCommandLine { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + "arguments": GLib.Variant; + is_remote: boolean; + options: GLib.Variant; + platform_data: GLib.Variant; + } +} +export class ApplicationCommandLine extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + "arguments": GLib.Variant; + is_remote: boolean; + options: GLib.Variant; + platform_data: GLib.Variant; + // Members + create_file_for_arg(arg: string): File; + get_arguments(): [string[], number | null]; + get_cwd(): string | null; + get_environ(): string[]; + get_exit_status(): number; + get_is_remote(): boolean; + get_options_dict(): GLib.VariantDict; + get_platform_data(): GLib.Variant | null; + get_stdin(): InputStream; + getenv(name: string): string; + set_exit_status(exit_status: number): void; + vfunc_get_stdin(): InputStream; + vfunc_print_literal(message: string): void; + vfunc_printerr_literal(message: string): void; +} +export module BufferedInputStream { + export interface ConstructorProperties extends FilterInputStream.ConstructorProperties { + [key: string]: any; + buffer_size: number; + } +} +export class BufferedInputStream extends FilterInputStream implements Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + buffer_size: number; + // Constructors + static ["new"](base_stream: InputStream): BufferedInputStream; + static new_sized(base_stream: InputStream, size: number): BufferedInputStream; + // Members + fill(count: number, cancellable: Cancellable | null): number; + fill_async(count: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + fill_finish(result: AsyncResult): number; + get_available(): number; + get_buffer_size(): number; + peek(buffer: number[], offset: number): number; + peek_buffer(): [number[], number]; + read_byte(cancellable: Cancellable | null): number; + set_buffer_size(size: number): void; + vfunc_fill(count: number, cancellable: Cancellable | null): number; + vfunc_fill_async(count: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_fill_finish(result: AsyncResult): number; + // Implemented Members + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; +} +export module BufferedOutputStream { + export interface ConstructorProperties extends FilterOutputStream.ConstructorProperties { + [key: string]: any; + auto_grow: boolean; + buffer_size: number; + } +} +export class BufferedOutputStream extends FilterOutputStream implements Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + auto_grow: boolean; + buffer_size: number; + // Fields + priv: BufferedOutputStreamPrivate; + // Constructors + static ["new"](base_stream: OutputStream): BufferedOutputStream; + static new_sized(base_stream: OutputStream, size: number): BufferedOutputStream; + // Members + get_auto_grow(): boolean; + get_buffer_size(): number; + set_auto_grow(auto_grow: boolean): void; + set_buffer_size(size: number): void; + // Implemented Members + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; +} +export module BytesIcon { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + bytes: GLib.Bytes; + } +} +export class BytesIcon extends GObject.Object implements Icon, LoadableIcon { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + bytes: GLib.Bytes; + // Constructors + static ["new"](bytes: GLib.Bytes): BytesIcon; + // Members + get_bytes(): GLib.Bytes; + // Implemented Members + equal(icon2: Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; + load(size: number, cancellable: Cancellable | null): [InputStream, string | null]; + load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + load_finish(res: AsyncResult): [InputStream, string | null]; + vfunc_load(size: number, cancellable: Cancellable | null): [InputStream, string | null]; + vfunc_load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_load_finish(res: AsyncResult): [InputStream, string | null]; +} +export module Cancellable { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Cancellable extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect_after(signal: 'cancelled', callback: (_source: this) => void): number; + emit(signal: 'cancelled'): void; + // Constructors + static ["new"](): Cancellable; + // Members + cancel(): void; + connect(callback: GObject.Callback, data: any | null, data_destroy_func: GLib.DestroyNotify | null): number; + connect(...args: never[]): never; + disconnect(handler_id: number): void; + disconnect(...args: never[]): never; + get_fd(): number; + is_cancelled(): boolean; + make_pollfd(pollfd: GLib.PollFD): boolean; + pop_current(): void; + push_current(): void; + release_fd(): void; + reset(): void; + set_error_if_cancelled(): boolean; + vfunc_cancelled(): void; + static get_current(): Cancellable | null; +} +export module CharsetConverter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + from_charset: string; + to_charset: string; + use_fallback: boolean; + } +} +export class CharsetConverter extends GObject.Object implements Converter, Initable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + from_charset: string; + to_charset: string; + use_fallback: boolean; + // Constructors + static ["new"](to_charset: string, from_charset: string): CharsetConverter; + // Members + get_num_fallbacks(): number; + get_use_fallback(): boolean; + set_use_fallback(use_fallback: boolean): void; + // Implemented Members + convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + reset(): void; + vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_reset(): void; + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; +} +export module ConverterInputStream { + export interface ConstructorProperties extends FilterInputStream.ConstructorProperties { + [key: string]: any; + converter: Converter; + } +} +export class ConverterInputStream extends FilterInputStream implements PollableInputStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + converter: Converter; + // Constructors + static ["new"](base_stream: InputStream, converter: Converter): ConverterInputStream; + // Members + get_converter(): Converter; + // Implemented Members + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_readable(): boolean; + read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_readable(): boolean; + vfunc_read_nonblocking(buffer: number[] | null): number; +} +export module ConverterOutputStream { + export interface ConstructorProperties extends FilterOutputStream.ConstructorProperties { + [key: string]: any; + converter: Converter; + } +} +export class ConverterOutputStream extends FilterOutputStream implements PollableOutputStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + converter: Converter; + // Constructors + static ["new"](base_stream: OutputStream, converter: Converter): ConverterOutputStream; + // Members + get_converter(): Converter; + // Implemented Members + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_writable(): boolean; + write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_writable(): boolean; + vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; +} +export module Credentials { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Credentials extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): Credentials; + // Members + get_unix_pid(): number; + get_unix_user(): number; + is_same_user(other_credentials: Credentials): boolean; + set_native(native_type: CredentialsType, _native: any): void; + set_unix_user(uid: number): boolean; + to_string(): string; +} +export module DBusActionGroup { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class DBusActionGroup extends GObject.Object implements ActionGroup, RemoteActionGroup { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + static get(connection: DBusConnection, bus_name: string | null, object_path: string): DBusActionGroup; + // Implemented Members + action_added(action_name: string): void; + action_enabled_changed(action_name: string, enabled: boolean): void; + action_removed(action_name: string): void; + action_state_changed(action_name: string, state: GLib.Variant): void; + activate_action(action_name: string, parameter: GLib.Variant | null): void; + change_action_state(action_name: string, value: GLib.Variant): void; + get_action_enabled(action_name: string): boolean; + get_action_parameter_type(action_name: string): GLib.VariantType | null; + get_action_state(action_name: string): GLib.Variant | null; + get_action_state_hint(action_name: string): GLib.Variant | null; + get_action_state_type(action_name: string): GLib.VariantType | null; + has_action(action_name: string): boolean; + list_actions(): string[]; + query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + vfunc_action_added(action_name: string): void; + vfunc_action_enabled_changed(action_name: string, enabled: boolean): void; + vfunc_action_removed(action_name: string): void; + vfunc_action_state_changed(action_name: string, state: GLib.Variant): void; + vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void; + vfunc_change_action_state(action_name: string, value: GLib.Variant): void; + vfunc_get_action_enabled(action_name: string): boolean; + vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null; + vfunc_get_action_state(action_name: string): GLib.Variant | null; + vfunc_get_action_state_hint(action_name: string): GLib.Variant | null; + vfunc_get_action_state_type(action_name: string): GLib.VariantType | null; + vfunc_has_action(action_name: string): boolean; + vfunc_list_actions(): string[]; + vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + activate_action_full(action_name: string, parameter: GLib.Variant | null, platform_data: GLib.Variant): void; + change_action_state_full(action_name: string, value: GLib.Variant, platform_data: GLib.Variant): void; + vfunc_activate_action_full(action_name: string, parameter: GLib.Variant | null, platform_data: GLib.Variant): void; + vfunc_change_action_state_full(action_name: string, value: GLib.Variant, platform_data: GLib.Variant): void; +} +export module DBusAuthObserver { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class DBusAuthObserver extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'allow-mechanism', callback: (_source: this, mechanism: string) => boolean): number; + connect_after(signal: 'allow-mechanism', callback: (_source: this, mechanism: string) => boolean): number; + emit(signal: 'allow-mechanism', mechanism: string): void; + connect(signal: 'authorize-authenticated-peer', callback: (_source: this, stream: IOStream, credentials: Credentials | null) => boolean): number; + connect_after(signal: 'authorize-authenticated-peer', callback: (_source: this, stream: IOStream, credentials: Credentials | null) => boolean): number; + emit(signal: 'authorize-authenticated-peer', stream: IOStream, credentials: Credentials | null): void; + // Constructors + static ["new"](): DBusAuthObserver; + // Members + allow_mechanism(mechanism: string): boolean; + authorize_authenticated_peer(stream: IOStream, credentials: Credentials | null): boolean; +} +export module DBusConnection { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + address: string; + authentication_observer: DBusAuthObserver; + capabilities: DBusCapabilityFlags; + closed: boolean; + exit_on_close: boolean; + flags: DBusConnectionFlags; + guid: string; + stream: IOStream; + unique_name: string; + } +} +export class DBusConnection extends GObject.Object implements AsyncInitable, Initable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + address: string; + authentication_observer: DBusAuthObserver; + capabilities: DBusCapabilityFlags; + closed: boolean; + exit_on_close: boolean; + flags: DBusConnectionFlags; + guid: string; + stream: IOStream; + unique_name: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'closed', callback: (_source: this, remote_peer_vanished: boolean, error: GLib.Error | null) => void): number; + connect_after(signal: 'closed', callback: (_source: this, remote_peer_vanished: boolean, error: GLib.Error | null) => void): number; + emit(signal: 'closed', remote_peer_vanished: boolean, error: GLib.Error | null): void; + // Constructors + static new_finish(res: AsyncResult): DBusConnection; + static new_finish(...args: never[]): never; + static new_for_address_finish(res: AsyncResult): DBusConnection; + static new_for_address_sync(address: string, flags: DBusConnectionFlags, observer: DBusAuthObserver | null, cancellable: Cancellable | null): DBusConnection; + static new_sync(stream: IOStream, guid: string | null, flags: DBusConnectionFlags, observer: DBusAuthObserver | null, cancellable: Cancellable | null): DBusConnection; + // Members + add_filter(filter_function: DBusMessageFilterFunction, user_data_free_func: GLib.DestroyNotify): number; + call(bus_name: string | null, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant | null, reply_type: GLib.VariantType | null, flags: DBusCallFlags, timeout_msec: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + call_finish(res: AsyncResult): GLib.Variant; + call_sync(bus_name: string | null, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant | null, reply_type: GLib.VariantType | null, flags: DBusCallFlags, timeout_msec: number, cancellable: Cancellable | null): GLib.Variant; + call_with_unix_fd_list(bus_name: string | null, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant | null, reply_type: GLib.VariantType | null, flags: DBusCallFlags, timeout_msec: number, fd_list: UnixFDList | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + call_with_unix_fd_list_finish(res: AsyncResult): [GLib.Variant, UnixFDList | null]; + call_with_unix_fd_list_sync(bus_name: string | null, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant | null, reply_type: GLib.VariantType | null, flags: DBusCallFlags, timeout_msec: number, fd_list: UnixFDList | null, cancellable: Cancellable | null): [GLib.Variant, UnixFDList | null]; + close(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + close_finish(res: AsyncResult): boolean; + close_sync(cancellable: Cancellable | null): boolean; + emit_signal(destination_bus_name: string | null, object_path: string, interface_name: string, signal_name: string, parameters: GLib.Variant | null): boolean; + export_action_group(object_path: string, action_group: ActionGroup): number; + export_menu_model(object_path: string, menu: MenuModel): number; + flush(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + flush_finish(res: AsyncResult): boolean; + flush_sync(cancellable: Cancellable | null): boolean; + get_capabilities(): DBusCapabilityFlags; + get_exit_on_close(): boolean; + get_flags(): DBusConnectionFlags; + get_guid(): string; + get_last_serial(): number; + get_peer_credentials(): Credentials | null; + get_stream(): IOStream; + get_unique_name(): string | null; + is_closed(): boolean; + register_object(object_path: string, interface_info: DBusInterfaceInfo, vtable: DBusInterfaceVTable | null, user_data_free_func: GLib.DestroyNotify): number; + register_object_with_closures(object_path: string, interface_info: DBusInterfaceInfo, method_call_closure: GObject.Closure | null, get_property_closure: GObject.Closure | null, set_property_closure: GObject.Closure | null): number; + register_subtree(object_path: string, vtable: DBusSubtreeVTable, flags: DBusSubtreeFlags, user_data_free_func: GLib.DestroyNotify): number; + remove_filter(filter_id: number): void; + send_message(message: DBusMessage, flags: DBusSendMessageFlags): [boolean, number | null]; + send_message_with_reply(message: DBusMessage, flags: DBusSendMessageFlags, timeout_msec: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): number | null; + send_message_with_reply_finish(res: AsyncResult): DBusMessage; + send_message_with_reply_sync(message: DBusMessage, flags: DBusSendMessageFlags, timeout_msec: number, cancellable: Cancellable | null): [DBusMessage, number | null]; + set_exit_on_close(exit_on_close: boolean): void; + signal_subscribe(sender: string | null, interface_name: string | null, member: string | null, object_path: string | null, arg0: string | null, flags: DBusSignalFlags, callback: DBusSignalCallback, user_data_free_func: GLib.DestroyNotify | null): number; + signal_unsubscribe(subscription_id: number): void; + start_message_processing(): void; + unexport_action_group(export_id: number): void; + unexport_menu_model(export_id: number): void; + unregister_object(registration_id: number): boolean; + unregister_subtree(registration_id: number): boolean; + static new(stream: IOStream, guid: string | null, flags: DBusConnectionFlags, observer: DBusAuthObserver | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + static new_for_address(address: string, flags: DBusConnectionFlags, observer: DBusAuthObserver | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + // Implemented Members + init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + init_finish(res: AsyncResult): boolean; + new_finish(res: AsyncResult): GObject.Object; + vfunc_init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_init_finish(res: AsyncResult): boolean; + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; +} +export module DBusInterfaceSkeleton { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + g_flags: DBusInterfaceSkeletonFlags; + } +} +export abstract class DBusInterfaceSkeleton extends GObject.Object implements DBusInterface { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + g_flags: DBusInterfaceSkeletonFlags; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'g-authorize-method', callback: (_source: this, invocation: DBusMethodInvocation) => boolean): number; + connect_after(signal: 'g-authorize-method', callback: (_source: this, invocation: DBusMethodInvocation) => boolean): number; + emit(signal: 'g-authorize-method', invocation: DBusMethodInvocation): void; + // Members + ["export"](connection: DBusConnection, object_path: string): boolean; + flush(): void; + get_connection(): DBusConnection; + get_connections(): GLib.List; + get_flags(): DBusInterfaceSkeletonFlags; + get_info(): DBusInterfaceInfo; + get_object_path(): string; + get_properties(): GLib.Variant; + has_connection(connection: DBusConnection): boolean; + set_flags(flags: DBusInterfaceSkeletonFlags): void; + unexport(): void; + unexport_from_connection(connection: DBusConnection): void; + vfunc_flush(): void; + vfunc_g_authorize_method(invocation: DBusMethodInvocation): boolean; + vfunc_get_info(): DBusInterfaceInfo; + vfunc_get_properties(): GLib.Variant; + // Implemented Members + dup_object(): DBusObject; + set_object(object: DBusObject | null): void; + vfunc_dup_object(): DBusObject; + vfunc_set_object(object: DBusObject | null): void; +} +export module DBusMenuModel { + export interface ConstructorProperties extends MenuModel.ConstructorProperties { + [key: string]: any; + } +} +export class DBusMenuModel extends MenuModel { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + static get(connection: DBusConnection, bus_name: string | null, object_path: string): DBusMenuModel; +} +export module DBusMessage { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + locked: boolean; + } +} +export class DBusMessage extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + locked: boolean; + // Constructors + static ["new"](): DBusMessage; + static new_from_blob(blob: number[], capabilities: DBusCapabilityFlags): DBusMessage; + static new_method_call(name: string | null, path: string, interface_: string | null, method: string): DBusMessage; + static new_signal(path: string, interface_: string, signal: string): DBusMessage; + // Members + copy(): DBusMessage; + get_arg0(): string; + get_body(): GLib.Variant; + get_byte_order(): DBusMessageByteOrder; + get_destination(): string; + get_error_name(): string; + get_flags(): DBusMessageFlags; + get_header(header_field: DBusMessageHeaderField): GLib.Variant | null; + get_header_fields(): number[]; + get_interface(): string; + get_locked(): boolean; + get_member(): string; + get_message_type(): DBusMessageType; + get_num_unix_fds(): number; + get_path(): string; + get_reply_serial(): number; + get_sender(): string; + get_serial(): number; + get_signature(): string; + get_unix_fd_list(): UnixFDList; + lock(): void; + new_method_error_literal(error_name: string, error_message: string): DBusMessage; + new_method_reply(): DBusMessage; + print(indent: number): string; + set_body(body: GLib.Variant): void; + set_byte_order(byte_order: DBusMessageByteOrder): void; + set_destination(value: string): void; + set_error_name(value: string): void; + set_flags(flags: DBusMessageFlags): void; + set_header(header_field: DBusMessageHeaderField, value: GLib.Variant | null): void; + set_interface(value: string): void; + set_member(value: string): void; + set_message_type(type: DBusMessageType): void; + set_num_unix_fds(value: number): void; + set_path(value: string): void; + set_reply_serial(value: number): void; + set_sender(value: string): void; + set_serial(serial: number): void; + set_signature(value: string): void; + set_unix_fd_list(fd_list: UnixFDList | null): void; + to_blob(capabilities: DBusCapabilityFlags): [number[], number]; + to_gerror(): boolean; + static bytes_needed(blob: number[]): number; +} +export module DBusMethodInvocation { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class DBusMethodInvocation extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + get_connection(): DBusConnection; + get_interface_name(): string; + get_message(): DBusMessage; + get_method_info(): DBusMethodInfo; + get_method_name(): string; + get_object_path(): string; + get_parameters(): GLib.Variant; + get_property_info(): DBusPropertyInfo; + get_sender(): string; + return_dbus_error(error_name: string, error_message: string): void; + return_error_literal(domain: GLib.Quark, code: number, message: string): void; + return_gerror(error: GLib.Error): void; + return_value(parameters: GLib.Variant | null): void; + return_value_with_unix_fd_list(parameters: GLib.Variant | null, fd_list: UnixFDList | null): void; +} +export module DBusObjectManagerClient { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class DBusObjectManagerClient extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static new_finish(res: AsyncResult): DBusObjectManagerClient; + static new_for_bus_finish(res: AsyncResult): DBusObjectManagerClient; + static new_for_bus_sync(bus_type: BusType, flags: DBusObjectManagerClientFlags, name: string, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_user_data: any | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null): DBusObjectManagerClient; + static new_sync(connection: DBusConnection, flags: DBusObjectManagerClientFlags, name: string | null, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_user_data: any | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null): DBusObjectManagerClient; +} +export module DBusObjectManagerServer { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + connection: DBusConnection; + object_path: string; + } +} +export class DBusObjectManagerServer extends GObject.Object implements DBusObjectManager { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + connection: DBusConnection; + object_path: string; + // Constructors + static ["new"](object_path: string): DBusObjectManagerServer; + // Members + ["export"](object: DBusObjectSkeleton): void; + export_uniquely(object: DBusObjectSkeleton): void; + get_connection(): DBusConnection; + is_exported(object: DBusObjectSkeleton): boolean; + set_connection(connection: DBusConnection | null): void; + unexport(object_path: string): boolean; + // Implemented Members + get_interface(object_path: string, interface_name: string): DBusInterface; + get_object(object_path: string): DBusObject; + get_object_path(): string; + get_objects(): GLib.List; + vfunc_get_interface(object_path: string, interface_name: string): DBusInterface; + vfunc_get_object(object_path: string): DBusObject; + vfunc_get_object_path(): string; + vfunc_get_objects(): GLib.List; + vfunc_interface_added(object: DBusObject, interface_: DBusInterface): void; + vfunc_interface_removed(object: DBusObject, interface_: DBusInterface): void; + vfunc_object_added(object: DBusObject): void; + vfunc_object_removed(object: DBusObject): void; +} +export module DBusObjectProxy { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + g_connection: DBusConnection; + g_object_path: string; + } +} +export class DBusObjectProxy extends GObject.Object implements DBusObject { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + g_connection: DBusConnection; + g_object_path: string; + // Constructors + static ["new"](connection: DBusConnection, object_path: string): DBusObjectProxy; + // Members + get_connection(): DBusConnection; + // Implemented Members + get_interface(interface_name: string): DBusInterface; + get_interfaces(): GLib.List; + get_object_path(): string; + vfunc_get_interface(interface_name: string): DBusInterface; + vfunc_get_interfaces(): GLib.List; + vfunc_get_object_path(): string; + vfunc_interface_added(interface_: DBusInterface): void; + vfunc_interface_removed(interface_: DBusInterface): void; +} +export module DBusObjectSkeleton { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + g_object_path: string; + } +} +export class DBusObjectSkeleton extends GObject.Object implements DBusObject { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + g_object_path: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'authorize-method', callback: (_source: this, _interface: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) => boolean): number; + connect_after(signal: 'authorize-method', callback: (_source: this, _interface: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) => boolean): number; + emit(signal: 'authorize-method', _interface: DBusInterfaceSkeleton, invocation: DBusMethodInvocation): void; + // Constructors + static ["new"](object_path: string): DBusObjectSkeleton; + // Members + add_interface(interface_: DBusInterfaceSkeleton): void; + flush(): void; + remove_interface(interface_: DBusInterfaceSkeleton): void; + remove_interface_by_name(interface_name: string): void; + set_object_path(object_path: string): void; + vfunc_authorize_method(interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation): boolean; + // Implemented Members + get_interface(interface_name: string): DBusInterface; + get_interfaces(): GLib.List; + get_object_path(): string; + vfunc_get_interface(interface_name: string): DBusInterface; + vfunc_get_interfaces(): GLib.List; + vfunc_get_object_path(): string; + vfunc_interface_added(interface_: DBusInterface): void; + vfunc_interface_removed(interface_: DBusInterface): void; +} +export module DBusProxy { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class DBusProxy extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static new_finish(res: AsyncResult): DBusProxy; + static new_for_bus_finish(res: AsyncResult): DBusProxy; + static new_for_bus_sync(bus_type: BusType, flags: DBusProxyFlags, info: DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Cancellable | null): DBusProxy; + static new_sync(connection: DBusConnection, flags: DBusProxyFlags, info: DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Cancellable | null): DBusProxy; +} +export module DBusServer { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + active: boolean; + address: string; + authentication_observer: DBusAuthObserver; + client_address: string; + flags: DBusServerFlags; + guid: string; + } +} +export class DBusServer extends GObject.Object implements Initable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + active: boolean; + address: string; + authentication_observer: DBusAuthObserver; + client_address: string; + flags: DBusServerFlags; + guid: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'new-connection', callback: (_source: this, connection: DBusConnection) => boolean): number; + connect_after(signal: 'new-connection', callback: (_source: this, connection: DBusConnection) => boolean): number; + emit(signal: 'new-connection', connection: DBusConnection): void; + // Constructors + static new_sync(address: string, flags: DBusServerFlags, guid: string, observer: DBusAuthObserver | null, cancellable: Cancellable | null): DBusServer; + // Members + get_client_address(): string; + get_flags(): DBusServerFlags; + get_guid(): string; + is_active(): boolean; + start(): void; + stop(): void; + // Implemented Members + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; +} +export module DataInputStream { + export interface ConstructorProperties extends BufferedInputStream.ConstructorProperties { + [key: string]: any; + byte_order: DataStreamByteOrder; + newline_type: DataStreamNewlineType; + } +} +export class DataInputStream extends BufferedInputStream implements Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + byte_order: DataStreamByteOrder; + newline_type: DataStreamNewlineType; + // Constructors + static ["new"](base_stream: InputStream): DataInputStream; + static ["new"](...args: never[]): never; + // Members + get_byte_order(): DataStreamByteOrder; + get_newline_type(): DataStreamNewlineType; + read_byte(cancellable: Cancellable | null): number; + read_byte(...args: never[]): never; + read_int16(cancellable: Cancellable | null): number; + read_int32(cancellable: Cancellable | null): number; + read_int64(cancellable: Cancellable | null): number; + read_line(cancellable: Cancellable | null): [number[] | null, number | null]; + read_line_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_line_finish(result: AsyncResult): [number[] | null, number | null]; + read_line_finish_utf8(result: AsyncResult): [string | null, number | null]; + read_line_utf8(cancellable: Cancellable | null): [string | null, number | null]; + read_uint16(cancellable: Cancellable | null): number; + read_uint32(cancellable: Cancellable | null): number; + read_uint64(cancellable: Cancellable | null): number; + read_until(stop_chars: string, cancellable: Cancellable | null): [string, number | null]; + read_until_async(stop_chars: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_until_finish(result: AsyncResult): [string, number | null]; + read_upto(stop_chars: string, stop_chars_len: number, cancellable: Cancellable | null): [string, number | null]; + read_upto_async(stop_chars: string, stop_chars_len: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_upto_finish(result: AsyncResult): [string, number | null]; + set_byte_order(order: DataStreamByteOrder): void; + set_newline_type(type: DataStreamNewlineType): void; +} +export module DataOutputStream { + export interface ConstructorProperties extends FilterOutputStream.ConstructorProperties { + [key: string]: any; + byte_order: DataStreamByteOrder; + } +} +export class DataOutputStream extends FilterOutputStream implements Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + byte_order: DataStreamByteOrder; + // Constructors + static ["new"](base_stream: OutputStream): DataOutputStream; + // Members + get_byte_order(): DataStreamByteOrder; + put_byte(data: number, cancellable: Cancellable | null): boolean; + put_int16(data: number, cancellable: Cancellable | null): boolean; + put_int32(data: number, cancellable: Cancellable | null): boolean; + put_int64(data: number, cancellable: Cancellable | null): boolean; + put_string(str: string, cancellable: Cancellable | null): boolean; + put_uint16(data: number, cancellable: Cancellable | null): boolean; + put_uint32(data: number, cancellable: Cancellable | null): boolean; + put_uint64(data: number, cancellable: Cancellable | null): boolean; + set_byte_order(order: DataStreamByteOrder): void; + // Implemented Members + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; +} +export module DesktopAppInfo { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + filename: string; + } +} +export class DesktopAppInfo extends GObject.Object implements AppInfo { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + filename: string; + // Constructors + static ["new"](desktop_id: string): DesktopAppInfo; + static new_from_filename(filename: string): DesktopAppInfo; + static new_from_keyfile(key_file: GLib.KeyFile): DesktopAppInfo; + // Members + get_action_name(action_name: string): string; + get_boolean(key: string): boolean; + get_categories(): string; + get_filename(): string; + get_generic_name(): string; + get_is_hidden(): boolean; + get_keywords(): string[]; + get_locale_string(key: string): string | null; + get_nodisplay(): boolean; + get_show_in(desktop_env: string | null): boolean; + get_startup_wm_class(): string; + get_string(key: string): string; + get_string_list(key: string): [string[], number | null]; + has_key(key: string): boolean; + launch_action(action_name: string, launch_context: AppLaunchContext | null): void; + launch_uris_as_manager(uris: GLib.List, launch_context: AppLaunchContext | null, spawn_flags: GLib.SpawnFlags, user_setup: GLib.SpawnChildSetupFunc | null, user_setup_data: any | null, pid_callback: DesktopAppLaunchCallback | null, pid_callback_data: any | null): boolean; + launch_uris_as_manager_with_fds(uris: GLib.List, launch_context: AppLaunchContext | null, spawn_flags: GLib.SpawnFlags, user_setup: GLib.SpawnChildSetupFunc | null, user_setup_data: any | null, pid_callback: DesktopAppLaunchCallback | null, pid_callback_data: any | null, stdin_fd: number, stdout_fd: number, stderr_fd: number): boolean; + list_actions(): string[]; + static get_implementations(_interface: string): GLib.List; + static search(search_string: string): string[][]; + static set_desktop_env(desktop_env: string): void; + // Implemented Members + add_supports_type(content_type: string): boolean; + can_delete(): boolean; + can_remove_supports_type(): boolean; + ["delete"](): boolean; + dup(): AppInfo; + equal(appinfo2: AppInfo): boolean; + get_commandline(): string; + get_description(): string; + get_display_name(): string; + get_executable(): string; + get_icon(): Icon; + get_id(): string; + get_name(): string; + get_supported_types(): string[]; + launch(files: GLib.List | null, context: AppLaunchContext | null): boolean; + launch_uris(uris: GLib.List | null, context: AppLaunchContext | null): boolean; + launch_uris_async(uris: GLib.List | null, context: AppLaunchContext | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + launch_uris_finish(result: AsyncResult): boolean; + remove_supports_type(content_type: string): boolean; + set_as_default_for_extension(extension: string): boolean; + set_as_default_for_type(content_type: string): boolean; + set_as_last_used_for_type(content_type: string): boolean; + should_show(): boolean; + supports_files(): boolean; + supports_uris(): boolean; + vfunc_add_supports_type(content_type: string): boolean; + vfunc_can_delete(): boolean; + vfunc_can_remove_supports_type(): boolean; + vfunc_do_delete(): boolean; + vfunc_dup(): this; + vfunc_equal(appinfo2: AppInfo): boolean; + vfunc_get_commandline(): string; + vfunc_get_description(): string; + vfunc_get_display_name(): string; + vfunc_get_executable(): string; + vfunc_get_icon(): Icon; + vfunc_get_id(): string; + vfunc_get_name(): string; + vfunc_get_supported_types(): string[]; + vfunc_launch(files: GLib.List | null, context: AppLaunchContext | null): boolean; + vfunc_launch_uris(uris: GLib.List | null, context: AppLaunchContext | null): boolean; + vfunc_launch_uris_async(uris: GLib.List | null, context: AppLaunchContext | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_launch_uris_finish(result: AsyncResult): boolean; + vfunc_remove_supports_type(content_type: string): boolean; + vfunc_set_as_default_for_extension(extension: string): boolean; + vfunc_set_as_default_for_type(content_type: string): boolean; + vfunc_set_as_last_used_for_type(content_type: string): boolean; + vfunc_should_show(): boolean; + vfunc_supports_files(): boolean; + vfunc_supports_uris(): boolean; +} +export module Emblem { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + icon: GObject.Object; + origin: EmblemOrigin; + } +} +export class Emblem extends GObject.Object implements Icon { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + icon: GObject.Object; + origin: EmblemOrigin; + // Constructors + static ["new"](icon: Icon): Emblem; + static new_with_origin(icon: Icon, origin: EmblemOrigin): Emblem; + // Members + get_icon(): Icon; + get_origin(): EmblemOrigin; + // Implemented Members + equal(icon2: Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; +} +export module EmblemedIcon { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + gicon: Icon; + } +} +export class EmblemedIcon extends GObject.Object implements Icon { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + gicon: Icon; + // Constructors + static ["new"](icon: Icon, emblem: Emblem | null): EmblemedIcon; + // Members + add_emblem(emblem: Emblem): void; + clear_emblems(): void; + get_emblems(): GLib.List; + get_icon(): Icon; + // Implemented Members + equal(icon2: Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; +} +export module FileEnumerator { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + container: File; + } +} +export class FileEnumerator extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + container: File; + // Members + close(cancellable: Cancellable | null): boolean; + close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + close_finish(result: AsyncResult): boolean; + get_child(info: FileInfo): File; + get_container(): File; + has_pending(): boolean; + is_closed(): boolean; + iterate(cancellable: Cancellable | null): [boolean, FileInfo | null, File | null]; + next_file(cancellable: Cancellable | null): FileInfo | null; + next_files_async(num_files: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + next_files_finish(result: AsyncResult): GLib.List; + set_pending(pending: boolean): void; + vfunc_close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_close_finish(result: AsyncResult): boolean; + vfunc_close_fn(cancellable: Cancellable | null): boolean; + vfunc_next_file(cancellable: Cancellable | null): FileInfo | null; + vfunc_next_files_async(num_files: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_next_files_finish(result: AsyncResult): GLib.List; +} +export module FileIOStream { + export interface ConstructorProperties extends IOStream.ConstructorProperties { + [key: string]: any; + } +} +export class FileIOStream extends IOStream implements Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + get_etag(): string; + query_info(attributes: string, cancellable: Cancellable | null): FileInfo; + query_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + query_info_finish(result: AsyncResult): FileInfo; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_get_etag(): string; + vfunc_query_info(attributes: string, cancellable: Cancellable | null): FileInfo; + vfunc_query_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_query_info_finish(result: AsyncResult): FileInfo; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(size: number, cancellable: Cancellable | null): boolean; + // Implemented Members + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; +} +export module FileIcon { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + file: File; + } +} +export class FileIcon extends GObject.Object implements Icon, LoadableIcon { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + file: File; + // Constructors + static ["new"](file: File): FileIcon; + // Members + get_file(): File; + // Implemented Members + equal(icon2: Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; + load(size: number, cancellable: Cancellable | null): [InputStream, string | null]; + load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + load_finish(res: AsyncResult): [InputStream, string | null]; + vfunc_load(size: number, cancellable: Cancellable | null): [InputStream, string | null]; + vfunc_load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_load_finish(res: AsyncResult): [InputStream, string | null]; +} +export module FileInfo { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class FileInfo extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): FileInfo; + // Members + clear_status(): void; + copy_into(dest_info: FileInfo): void; + dup(): FileInfo; + get_attribute_as_string(attribute: string): string; + get_attribute_boolean(attribute: string): boolean; + get_attribute_byte_string(attribute: string): string; + get_attribute_data(attribute: string): [boolean, FileAttributeType | null, any | null, FileAttributeStatus | null]; + get_attribute_int32(attribute: string): number; + get_attribute_int64(attribute: string): number; + get_attribute_object(attribute: string): GObject.Object; + get_attribute_status(attribute: string): FileAttributeStatus; + get_attribute_string(attribute: string): string; + get_attribute_stringv(attribute: string): string[]; + get_attribute_type(attribute: string): FileAttributeType; + get_attribute_uint32(attribute: string): number; + get_attribute_uint64(attribute: string): number; + get_content_type(): string; + get_deletion_date(): GLib.DateTime; + get_display_name(): string; + get_edit_name(): string; + get_etag(): string; + get_file_type(): FileType; + get_icon(): Icon; + get_is_backup(): boolean; + get_is_hidden(): boolean; + get_is_symlink(): boolean; + get_modification_time(): GLib.TimeVal; + get_name(): string; + get_size(): number; + get_sort_order(): number; + get_symbolic_icon(): Icon; + get_symlink_target(): string; + has_attribute(attribute: string): boolean; + has_namespace(name_space: string): boolean; + list_attributes(name_space: string | null): string[] | null; + remove_attribute(attribute: string): void; + set_attribute(attribute: string, type: FileAttributeType, value_p: any): void; + set_attribute_boolean(attribute: string, attr_value: boolean): void; + set_attribute_byte_string(attribute: string, attr_value: string): void; + set_attribute_int32(attribute: string, attr_value: number): void; + set_attribute_int64(attribute: string, attr_value: number): void; + set_attribute_mask(mask: FileAttributeMatcher): void; + set_attribute_object(attribute: string, attr_value: GObject.Object): void; + set_attribute_status(attribute: string, status: FileAttributeStatus): boolean; + set_attribute_string(attribute: string, attr_value: string): void; + set_attribute_stringv(attribute: string, attr_value: string[]): void; + set_attribute_uint32(attribute: string, attr_value: number): void; + set_attribute_uint64(attribute: string, attr_value: number): void; + set_content_type(content_type: string): void; + set_display_name(display_name: string): void; + set_edit_name(edit_name: string): void; + set_file_type(type: FileType): void; + set_icon(icon: Icon): void; + set_is_hidden(is_hidden: boolean): void; + set_is_symlink(is_symlink: boolean): void; + set_modification_time(mtime: GLib.TimeVal): void; + set_name(name: string): void; + set_size(size: number): void; + set_sort_order(sort_order: number): void; + set_symbolic_icon(icon: Icon): void; + set_symlink_target(symlink_target: string): void; + unset_attribute_mask(): void; +} +export module FileInputStream { + export interface ConstructorProperties extends InputStream.ConstructorProperties { + [key: string]: any; + } +} +export class FileInputStream extends InputStream implements Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + query_info(attributes: string, cancellable: Cancellable | null): FileInfo; + query_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + query_info_finish(result: AsyncResult): FileInfo; + vfunc_can_seek(): boolean; + vfunc_query_info(attributes: string, cancellable: Cancellable | null): FileInfo; + vfunc_query_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_query_info_finish(result: AsyncResult): FileInfo; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + // Implemented Members + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; + vfunc_can_truncate(): boolean; + vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; +} +export module FileMonitor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + cancelled: boolean; + rate_limit: number; + } +} +export abstract class FileMonitor extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + cancelled: boolean; + rate_limit: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this, file: File, other_file: File | null, event_type: FileMonitorEvent) => void): number; + connect_after(signal: 'changed', callback: (_source: this, file: File, other_file: File | null, event_type: FileMonitorEvent) => void): number; + emit(signal: 'changed', file: File, other_file: File | null, event_type: FileMonitorEvent): void; + // Members + cancel(): boolean; + emit_event(child: File, other_file: File, event_type: FileMonitorEvent): void; + is_cancelled(): boolean; + set_rate_limit(limit_msecs: number): void; + vfunc_cancel(): boolean; + vfunc_changed(file: File, other_file: File, event_type: FileMonitorEvent): void; +} +export module FileOutputStream { + export interface ConstructorProperties extends OutputStream.ConstructorProperties { + [key: string]: any; + } +} +export class FileOutputStream extends OutputStream implements Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + get_etag(): string; + query_info(attributes: string, cancellable: Cancellable | null): FileInfo; + query_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + query_info_finish(result: AsyncResult): FileInfo; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_get_etag(): string; + vfunc_query_info(attributes: string, cancellable: Cancellable | null): FileInfo; + vfunc_query_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_query_info_finish(result: AsyncResult): FileInfo; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(size: number, cancellable: Cancellable | null): boolean; + // Implemented Members + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; +} +export module FilenameCompleter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class FilenameCompleter extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'got-completion-data', callback: (_source: this) => void): number; + connect_after(signal: 'got-completion-data', callback: (_source: this) => void): number; + emit(signal: 'got-completion-data'): void; + // Constructors + static ["new"](): FilenameCompleter; + // Members + get_completion_suffix(initial_text: string): string; + get_completions(initial_text: string): string[]; + set_dirs_only(dirs_only: boolean): void; + vfunc_got_completion_data(): void; +} +export module FilterInputStream { + export interface ConstructorProperties extends InputStream.ConstructorProperties { + [key: string]: any; + base_stream: InputStream; + close_base_stream: boolean; + } +} +export abstract class FilterInputStream extends InputStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + base_stream: InputStream; + close_base_stream: boolean; + // Members + get_base_stream(): InputStream; + get_close_base_stream(): boolean; + set_close_base_stream(close_base: boolean): void; +} +export module FilterOutputStream { + export interface ConstructorProperties extends OutputStream.ConstructorProperties { + [key: string]: any; + base_stream: OutputStream; + close_base_stream: boolean; + } +} +export abstract class FilterOutputStream extends OutputStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + base_stream: OutputStream; + close_base_stream: boolean; + // Members + get_base_stream(): OutputStream; + get_close_base_stream(): boolean; + set_close_base_stream(close_base: boolean): void; +} +export module IOModule { + export interface ConstructorProperties extends GObject.TypeModule.ConstructorProperties { + [key: string]: any; + } +} +export class IOModule extends GObject.TypeModule implements GObject.TypePlugin { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](filename: string): IOModule; + // Members + load(): void; + unload(): void; + static query(): string[]; + // Implemented Members + complete_interface_info(instance_type: GType, interface_type: GType, info: GObject.InterfaceInfo): void; + complete_type_info(g_type: GType, info: GObject.TypeInfo, value_table: GObject.TypeValueTable): void; + unuse(): void; + use(): void; + use(...args: never[]): never; +} +export module IOStream { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + closed: boolean; + input_stream: InputStream; + output_stream: OutputStream; + } +} +export abstract class IOStream extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + closed: boolean; + input_stream: InputStream; + output_stream: OutputStream; + // Members + clear_pending(): void; + close(cancellable: Cancellable | null): boolean; + close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + close_finish(result: AsyncResult): boolean; + get_input_stream(): InputStream; + get_output_stream(): OutputStream; + has_pending(): boolean; + is_closed(): boolean; + set_pending(): boolean; + splice_async(stream2: IOStream, flags: IOStreamSpliceFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_close_finish(result: AsyncResult): boolean; + vfunc_close_fn(cancellable: Cancellable | null): boolean; + vfunc_get_input_stream(): InputStream; + vfunc_get_output_stream(): OutputStream; + static splice_finish(result: AsyncResult): boolean; +} +export module InetAddress { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + bytes: any; + family: SocketFamily; + is_any: boolean; + is_link_local: boolean; + is_loopback: boolean; + is_mc_global: boolean; + is_mc_link_local: boolean; + is_mc_node_local: boolean; + is_mc_org_local: boolean; + is_mc_site_local: boolean; + is_multicast: boolean; + is_site_local: boolean; + } +} +export class InetAddress extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + bytes: any; + family: SocketFamily; + is_any: boolean; + is_link_local: boolean; + is_loopback: boolean; + is_mc_global: boolean; + is_mc_link_local: boolean; + is_mc_node_local: boolean; + is_mc_org_local: boolean; + is_mc_site_local: boolean; + is_multicast: boolean; + is_site_local: boolean; + // Constructors + static new_any(family: SocketFamily): InetAddress; + static new_from_bytes(bytes: number[], family: SocketFamily): InetAddress; + static new_from_string(string: string): InetAddress; + static new_loopback(family: SocketFamily): InetAddress; + // Members + equal(other_address: InetAddress): boolean; + get_family(): SocketFamily; + get_is_any(): boolean; + get_is_link_local(): boolean; + get_is_loopback(): boolean; + get_is_mc_global(): boolean; + get_is_mc_link_local(): boolean; + get_is_mc_node_local(): boolean; + get_is_mc_org_local(): boolean; + get_is_mc_site_local(): boolean; + get_is_multicast(): boolean; + get_is_site_local(): boolean; + get_native_size(): number; + to_string(): string; + vfunc_to_string(): string; +} +export module InetAddressMask { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + address: InetAddress; + family: SocketFamily; + length: number; + } +} +export class InetAddressMask extends GObject.Object implements Initable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + address: InetAddress; + family: SocketFamily; + length: number; + // Constructors + static ["new"](addr: InetAddress, length: number): InetAddressMask; + static new_from_string(mask_string: string): InetAddressMask; + // Members + equal(mask2: InetAddressMask): boolean; + get_address(): InetAddress; + get_family(): SocketFamily; + get_length(): number; + matches(address: InetAddress): boolean; + to_string(): string; + // Implemented Members + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; +} +export module InetSocketAddress { + export interface ConstructorProperties extends SocketAddress.ConstructorProperties { + [key: string]: any; + address: InetAddress; + flowinfo: number; + port: number; + scope_id: number; + } +} +export class InetSocketAddress extends SocketAddress implements SocketConnectable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + address: InetAddress; + flowinfo: number; + port: number; + scope_id: number; + // Constructors + static ["new"](address: InetAddress, port: number): InetSocketAddress; + static new_from_string(address: string, port: number): InetSocketAddress; + // Members + get_address(): InetAddress; + get_flowinfo(): number; + get_port(): number; + get_scope_id(): number; +} +export module InputStream { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class InputStream extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + clear_pending(): void; + close(cancellable: Cancellable | null): boolean; + close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + close_finish(result: AsyncResult): boolean; + has_pending(): boolean; + is_closed(): boolean; + read(buffer: number[], cancellable: Cancellable | null): number; + read_all(buffer: number[], cancellable: Cancellable | null): [boolean, number]; + read_all_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_all_finish(result: AsyncResult): [boolean, number]; + read_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_bytes(count: number, cancellable: Cancellable | null): GLib.Bytes; + read_bytes_async(count: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_bytes_finish(result: AsyncResult): GLib.Bytes; + read_finish(result: AsyncResult): number; + set_pending(): boolean; + skip(count: number, cancellable: Cancellable | null): number; + skip_async(count: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + skip_finish(result: AsyncResult): number; + vfunc_close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_close_finish(result: AsyncResult): boolean; + vfunc_close_fn(cancellable: Cancellable | null): boolean; + vfunc_read_async(buffer: number[] | null, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_read_finish(result: AsyncResult): number; + vfunc_read_fn(buffer: any | null, count: number, cancellable: Cancellable | null): number; + vfunc_skip(count: number, cancellable: Cancellable | null): number; + vfunc_skip_async(count: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_skip_finish(result: AsyncResult): number; +} +export module ListStore { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + item_type: GType; + } +} +export class ListStore extends GObject.Object implements ListModel { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + item_type: GType; + // Constructors + static ["new"](item_type: GType): ListStore; + // Members + append(item: GObject.Object): void; + insert(position: number, item: GObject.Object): void; + insert_sorted(item: GObject.Object, compare_func: GLib.CompareDataFunc): number; + remove(position: number): void; + remove_all(): void; + sort(compare_func: GLib.CompareDataFunc): void; + splice(position: number, n_removals: number, additions: GObject.Object[]): void; + // Implemented Members + get_item_type(): GType; + get_n_items(): number; + get_object(position: number): GObject.Object | null; + items_changed(position: number, removed: number, added: number): void; + vfunc_get_item(position: number): GObject.Object | null; + vfunc_get_item_type(): GType; + vfunc_get_n_items(): number; +} +export module MemoryInputStream { + export interface ConstructorProperties extends InputStream.ConstructorProperties { + [key: string]: any; + } +} +export class MemoryInputStream extends InputStream implements PollableInputStream, Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): MemoryInputStream; + static new_from_bytes(bytes: GLib.Bytes): MemoryInputStream; + static new_from_data(data: number[], destroy: GLib.DestroyNotify | null): MemoryInputStream; + // Members + add_bytes(bytes: GLib.Bytes): void; + add_data(data: number[], destroy: GLib.DestroyNotify | null): void; + // Implemented Members + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_readable(): boolean; + read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_readable(): boolean; + vfunc_read_nonblocking(buffer: number[] | null): number; + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; +} +export module MemoryOutputStream { + export interface ConstructorProperties extends OutputStream.ConstructorProperties { + [key: string]: any; + data: any; + data_size: number; + size: number; + } +} +export class MemoryOutputStream extends OutputStream implements PollableOutputStream, Seekable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + data: any; + data_size: number; + size: number; + // Constructors + static new_resizable(): MemoryOutputStream; + // Members + get_data(): any | null; + get_data(...args: never[]): never; + get_data_size(): number; + get_size(): number; + steal_as_bytes(): GLib.Bytes; + steal_data(): any | null; + steal_data(...args: never[]): never; + // Implemented Members + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_writable(): boolean; + write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_writable(): boolean; + vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; +} +export module Menu { + export interface ConstructorProperties extends MenuModel.ConstructorProperties { + [key: string]: any; + } +} +export class Menu extends MenuModel { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): Menu; + // Members + append(label: string | null, detailed_action: string | null): void; + append_item(item: MenuItem): void; + append_section(label: string | null, section: MenuModel): void; + append_submenu(label: string | null, submenu: MenuModel): void; + freeze(): void; + insert(position: number, label: string | null, detailed_action: string | null): void; + insert_item(position: number, item: MenuItem): void; + insert_section(position: number, label: string | null, section: MenuModel): void; + insert_submenu(position: number, label: string | null, submenu: MenuModel): void; + prepend(label: string | null, detailed_action: string | null): void; + prepend_item(item: MenuItem): void; + prepend_section(label: string | null, section: MenuModel): void; + prepend_submenu(label: string | null, submenu: MenuModel): void; + remove(position: number): void; + remove_all(): void; +} +export module MenuAttributeIter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class MenuAttributeIter extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: MenuAttributeIterPrivate; + // Members + get_name(): string; + get_next(): [boolean, string | null, GLib.Variant | null]; + get_value(): GLib.Variant; + next(): boolean; + vfunc_get_next(): [boolean, string | null, GLib.Variant | null]; +} +export module MenuItem { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class MenuItem extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](label: string | null, detailed_action: string | null): MenuItem; + static new_from_model(model: MenuModel, item_index: number): MenuItem; + static new_section(label: string | null, section: MenuModel): MenuItem; + static new_submenu(label: string | null, submenu: MenuModel): MenuItem; + // Members + get_attribute_value(attribute: string, expected_type: GLib.VariantType | null): GLib.Variant; + get_link(link: string): MenuModel; + set_action_and_target_value(action: string | null, target_value: GLib.Variant | null): void; + set_attribute_value(attribute: string, value: GLib.Variant | null): void; + set_detailed_action(detailed_action: string): void; + set_icon(icon: Icon): void; + set_label(label: string | null): void; + set_link(link: string, model: MenuModel | null): void; + set_section(section: MenuModel | null): void; + set_submenu(submenu: MenuModel | null): void; +} +export module MenuLinkIter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class MenuLinkIter extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: MenuLinkIterPrivate; + // Members + get_name(): string; + get_next(): [boolean, string | null, MenuModel | null]; + get_value(): MenuModel; + next(): boolean; + vfunc_get_next(): [boolean, string | null, MenuModel | null]; +} +export module MenuModel { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class MenuModel extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: MenuModelPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'items-changed', callback: (_source: this, position: number, removed: number, added: number) => void): number; + connect_after(signal: 'items-changed', callback: (_source: this, position: number, removed: number, added: number) => void): number; + emit(signal: 'items-changed', position: number, removed: number, added: number): void; + // Members + get_item_attribute_value(item_index: number, attribute: string, expected_type: GLib.VariantType | null): GLib.Variant; + get_item_link(item_index: number, link: string): MenuModel; + get_n_items(): number; + is_mutable(): boolean; + items_changed(position: number, removed: number, added: number): void; + iterate_item_attributes(item_index: number): MenuAttributeIter; + iterate_item_links(item_index: number): MenuLinkIter; + vfunc_get_item_attribute_value(item_index: number, attribute: string, expected_type: GLib.VariantType | null): GLib.Variant; + vfunc_get_item_attributes(item_index: number): GLib.HashTable; + vfunc_get_item_link(item_index: number, link: string): this; + vfunc_get_item_links(item_index: number): GLib.HashTable; + vfunc_get_n_items(): number; + vfunc_is_mutable(): boolean; + vfunc_iterate_item_attributes(item_index: number): MenuAttributeIter; + vfunc_iterate_item_links(item_index: number): MenuLinkIter; +} +export module MountOperation { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class MountOperation extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): MountOperation; +} +export module NativeVolumeMonitor { + export interface ConstructorProperties extends VolumeMonitor.ConstructorProperties { + [key: string]: any; + } +} +export abstract class NativeVolumeMonitor extends VolumeMonitor { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export module NetworkAddress { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + hostname: string; + port: number; + scheme: string; + } +} +export class NetworkAddress extends GObject.Object implements SocketConnectable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + hostname: string; + port: number; + scheme: string; + // Constructors + static ["new"](hostname: string, port: number): NetworkAddress; + static new_loopback(port: number): NetworkAddress; + // Members + get_hostname(): string; + get_port(): number; + get_scheme(): string; + static parse(host_and_port: string, default_port: number): NetworkAddress; + static parse_uri(uri: string, default_port: number): NetworkAddress; + // Implemented Members + enumerate(): SocketAddressEnumerator; + proxy_enumerate(): SocketAddressEnumerator; + to_string(): string; + vfunc_enumerate(): SocketAddressEnumerator; + vfunc_proxy_enumerate(): SocketAddressEnumerator; + vfunc_to_string(): string; +} +export module NetworkService { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + domain: string; + protocol: string; + scheme: string; + service: string; + } +} +export class NetworkService extends GObject.Object implements SocketConnectable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + domain: string; + protocol: string; + scheme: string; + service: string; + // Constructors + static ["new"](service: string, protocol: string, domain: string): NetworkService; + // Members + get_domain(): string; + get_protocol(): string; + get_scheme(): string; + get_service(): string; + set_scheme(scheme: string): void; + // Implemented Members + enumerate(): SocketAddressEnumerator; + proxy_enumerate(): SocketAddressEnumerator; + to_string(): string; + vfunc_enumerate(): SocketAddressEnumerator; + vfunc_proxy_enumerate(): SocketAddressEnumerator; + vfunc_to_string(): string; +} +export module Notification { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Notification extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](title: string): Notification; + // Members + add_button(label: string, detailed_action: string): void; + add_button_with_target_value(label: string, action: string, target: GLib.Variant | null): void; + set_body(body: string | null): void; + set_default_action(detailed_action: string): void; + set_default_action_and_target_value(action: string, target: GLib.Variant | null): void; + set_icon(icon: Icon): void; + set_priority(priority: NotificationPriority): void; + set_title(title: string): void; + set_urgent(urgent: boolean): void; +} +export module OutputStream { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class OutputStream extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + clear_pending(): void; + close(cancellable: Cancellable | null): boolean; + close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + close_finish(result: AsyncResult): boolean; + flush(cancellable: Cancellable | null): boolean; + flush_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + flush_finish(result: AsyncResult): boolean; + has_pending(): boolean; + is_closed(): boolean; + is_closing(): boolean; + set_pending(): boolean; + splice(source: InputStream, flags: OutputStreamSpliceFlags, cancellable: Cancellable | null): number; + splice_async(source: InputStream, flags: OutputStreamSpliceFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + splice_finish(result: AsyncResult): number; + write(buffer: number[], cancellable: Cancellable | null): number; + write_all(buffer: number[], cancellable: Cancellable | null): [boolean, number | null]; + write_all_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + write_all_finish(result: AsyncResult): [boolean, number | null]; + write_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + write_bytes(bytes: GLib.Bytes, cancellable: Cancellable | null): number; + write_bytes_async(bytes: GLib.Bytes, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + write_bytes_finish(result: AsyncResult): number; + write_finish(result: AsyncResult): number; + writev(vectors: OutputVector[], cancellable: Cancellable | null): [boolean, number | null]; + writev_all(vectors: OutputVector[], cancellable: Cancellable | null): [boolean, number | null]; + writev_all_async(vectors: OutputVector[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + writev_all_finish(result: AsyncResult): [boolean, number | null]; + writev_async(vectors: OutputVector[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + writev_finish(result: AsyncResult): [boolean, number | null]; + vfunc_close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_close_finish(result: AsyncResult): boolean; + vfunc_close_fn(cancellable: Cancellable | null): boolean; + vfunc_flush(cancellable: Cancellable | null): boolean; + vfunc_flush_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_flush_finish(result: AsyncResult): boolean; + vfunc_splice(source: InputStream, flags: OutputStreamSpliceFlags, cancellable: Cancellable | null): number; + vfunc_splice_async(source: InputStream, flags: OutputStreamSpliceFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_splice_finish(result: AsyncResult): number; + vfunc_write_async(buffer: number[] | null, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_write_finish(result: AsyncResult): number; + vfunc_write_fn(buffer: number[] | null, cancellable: Cancellable | null): number; + vfunc_writev_async(vectors: OutputVector[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_writev_finish(result: AsyncResult): [boolean, number | null]; + vfunc_writev_fn(vectors: OutputVector[], cancellable: Cancellable | null): [boolean, number | null]; +} +export module Permission { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + allowed: boolean; + can_acquire: boolean; + can_release: boolean; + } +} +export abstract class Permission extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + allowed: boolean; + can_acquire: boolean; + can_release: boolean; + // Members + acquire(cancellable: Cancellable | null): boolean; + acquire_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + acquire_finish(result: AsyncResult): boolean; + get_allowed(): boolean; + get_can_acquire(): boolean; + get_can_release(): boolean; + impl_update(allowed: boolean, can_acquire: boolean, can_release: boolean): void; + release(cancellable: Cancellable | null): boolean; + release_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + release_finish(result: AsyncResult): boolean; + vfunc_acquire(cancellable: Cancellable | null): boolean; + vfunc_acquire_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_acquire_finish(result: AsyncResult): boolean; + vfunc_release(cancellable: Cancellable | null): boolean; + vfunc_release_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_release_finish(result: AsyncResult): boolean; +} +export module PropertyAction { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + enabled: boolean; + invert_boolean: boolean; + name: string; + object: GObject.Object; + parameter_type: GLib.VariantType; + property_name: string; + state: GLib.Variant; + state_type: GLib.VariantType; + } +} +export class PropertyAction extends GObject.Object implements Action { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + enabled: boolean; + invert_boolean: boolean; + name: string; + object: GObject.Object; + parameter_type: GLib.VariantType; + property_name: string; + state: GLib.Variant; + state_type: GLib.VariantType; + // Constructors + static ["new"](name: string, object: GObject.Object, property_name: string): PropertyAction; + // Implemented Members + activate(parameter: GLib.Variant | null): void; + change_state(value: GLib.Variant): void; + get_enabled(): boolean; + get_name(): string; + get_parameter_type(): GLib.VariantType | null; + get_state(): GLib.Variant; + get_state_hint(): GLib.Variant | null; + get_state_type(): GLib.VariantType | null; + vfunc_activate(parameter: GLib.Variant | null): void; + vfunc_change_state(value: GLib.Variant): void; + vfunc_get_enabled(): boolean; + vfunc_get_name(): string; + vfunc_get_parameter_type(): GLib.VariantType | null; + vfunc_get_state(): GLib.Variant; + vfunc_get_state_hint(): GLib.Variant | null; + vfunc_get_state_type(): GLib.VariantType | null; +} +export module ProxyAddress { + export interface ConstructorProperties extends InetSocketAddress.ConstructorProperties { + [key: string]: any; + destination_hostname: string; + destination_port: number; + destination_protocol: string; + password: string; + protocol: string; + uri: string; + username: string; + } +} +export class ProxyAddress extends InetSocketAddress implements SocketConnectable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + destination_hostname: string; + destination_port: number; + destination_protocol: string; + password: string; + protocol: string; + uri: string; + username: string; + // Constructors + static ["new"](inetaddr: InetAddress, port: number, protocol: string, dest_hostname: string, dest_port: number, username: string | null, password: string | null): ProxyAddress; + static ["new"](...args: never[]): never; + // Members + get_destination_hostname(): string; + get_destination_port(): number; + get_destination_protocol(): string; + get_password(): string; + get_protocol(): string; + get_uri(): string; + get_username(): string; +} +export module ProxyAddressEnumerator { + export interface ConstructorProperties extends SocketAddressEnumerator.ConstructorProperties { + [key: string]: any; + connectable: SocketConnectable; + default_port: number; + proxy_resolver: ProxyResolver; + uri: string; + } +} +export class ProxyAddressEnumerator extends SocketAddressEnumerator { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + connectable: SocketConnectable; + default_port: number; + proxy_resolver: ProxyResolver; + uri: string; +} +export module Resolver { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Resolver extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: ResolverPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'reload', callback: (_source: this) => void): number; + connect_after(signal: 'reload', callback: (_source: this) => void): number; + emit(signal: 'reload'): void; + // Members + lookup_by_address(address: InetAddress, cancellable: Cancellable | null): string; + lookup_by_address_async(address: InetAddress, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_by_address_finish(result: AsyncResult): string; + lookup_by_name(hostname: string, cancellable: Cancellable | null): GLib.List; + lookup_by_name_async(hostname: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_by_name_finish(result: AsyncResult): GLib.List; + lookup_by_name_with_flags(hostname: string, flags: ResolverNameLookupFlags, cancellable: Cancellable | null): GLib.List; + lookup_by_name_with_flags_async(hostname: string, flags: ResolverNameLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_by_name_with_flags_finish(result: AsyncResult): GLib.List; + lookup_records(rrname: string, record_type: ResolverRecordType, cancellable: Cancellable | null): GLib.List; + lookup_records_async(rrname: string, record_type: ResolverRecordType, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_records_finish(result: AsyncResult): GLib.List; + lookup_service(service: string, protocol: string, domain: string, cancellable: Cancellable | null): GLib.List; + lookup_service_async(service: string, protocol: string, domain: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_service_finish(result: AsyncResult): GLib.List; + set_default(): void; + vfunc_lookup_by_address(address: InetAddress, cancellable: Cancellable | null): string; + vfunc_lookup_by_address_async(address: InetAddress, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_by_address_finish(result: AsyncResult): string; + vfunc_lookup_by_name(hostname: string, cancellable: Cancellable | null): GLib.List; + vfunc_lookup_by_name_async(hostname: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_by_name_finish(result: AsyncResult): GLib.List; + vfunc_lookup_by_name_with_flags(hostname: string, flags: ResolverNameLookupFlags, cancellable: Cancellable | null): GLib.List; + vfunc_lookup_by_name_with_flags_async(hostname: string, flags: ResolverNameLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_by_name_with_flags_finish(result: AsyncResult): GLib.List; + vfunc_lookup_records(rrname: string, record_type: ResolverRecordType, cancellable: Cancellable | null): GLib.List; + vfunc_lookup_records_async(rrname: string, record_type: ResolverRecordType, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_records_finish(result: AsyncResult): GLib.List; + vfunc_lookup_service_async(rrname: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_service_finish(result: AsyncResult): GLib.List; + vfunc_reload(): void; + static get_default(): Resolver; +} +export module Settings { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + backend: SettingsBackend; + delay_apply: boolean; + has_unapplied: boolean; + path: string; + schema: string; + schema_id: string; + settings_schema: SettingsSchema; + } +} +export class Settings extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + backend: SettingsBackend; + delay_apply: boolean; + has_unapplied: boolean; + path: string; + schema: string; + schema_id: string; + settings_schema: SettingsSchema; + // Fields + priv: SettingsPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'change-event', callback: (_source: this, keys: GLib.Quark[] | null, n_keys: number) => boolean): number; + connect_after(signal: 'change-event', callback: (_source: this, keys: GLib.Quark[] | null, n_keys: number) => boolean): number; + emit(signal: 'change-event', keys: GLib.Quark[] | null, n_keys: number): void; + connect(signal: 'changed', callback: (_source: this, key: string) => void): number; + connect_after(signal: 'changed', callback: (_source: this, key: string) => void): number; + emit(signal: 'changed', key: string): void; + connect(signal: 'writable-change-event', callback: (_source: this, key: number) => boolean): number; + connect_after(signal: 'writable-change-event', callback: (_source: this, key: number) => boolean): number; + emit(signal: 'writable-change-event', key: number): void; + connect(signal: 'writable-changed', callback: (_source: this, key: string) => void): number; + connect_after(signal: 'writable-changed', callback: (_source: this, key: string) => void): number; + emit(signal: 'writable-changed', key: string): void; + // Constructors + static ["new"](schema_id: string): Settings; + static new_full(schema: SettingsSchema, backend: SettingsBackend | null, path: string | null): Settings; + static new_with_backend(schema_id: string, backend: SettingsBackend): Settings; + static new_with_backend_and_path(schema_id: string, backend: SettingsBackend, path: string): Settings; + static new_with_path(schema_id: string, path: string): Settings; + // Members + apply(): void; + bind(key: string, object: GObject.Object, property: string, flags: SettingsBindFlags): void; + bind_writable(key: string, object: GObject.Object, property: string, inverted: boolean): void; + create_action(key: string): Action; + delay(): void; + get_boolean(key: string): boolean; + get_child(name: string): Settings; + get_default_value(key: string): GLib.Variant | null; + get_double(key: string): number; + get_enum(key: string): number; + get_flags(key: string): number; + get_has_unapplied(): boolean; + get_int(key: string): number; + get_int64(key: string): number; + get_mapped(key: string, mapping: SettingsGetMapping): any | null; + get_range(key: string): GLib.Variant; + get_string(key: string): string; + get_strv(key: string): string[]; + get_uint(key: string): number; + get_uint64(key: string): number; + get_user_value(key: string): GLib.Variant | null; + get_value(key: string): GLib.Variant; + is_writable(name: string): boolean; + list_children(): string[]; + list_keys(): string[]; + range_check(key: string, value: GLib.Variant): boolean; + reset(key: string): void; + revert(): void; + set_boolean(key: string, value: boolean): boolean; + set_double(key: string, value: number): boolean; + set_enum(key: string, value: number): boolean; + set_flags(key: string, value: number): boolean; + set_int(key: string, value: number): boolean; + set_int64(key: string, value: number): boolean; + set_string(key: string, value: string): boolean; + set_strv(key: string, value: string[] | null): boolean; + set_uint(key: string, value: number): boolean; + set_uint64(key: string, value: number): boolean; + set_value(key: string, value: GLib.Variant): boolean; + vfunc_change_event(keys: GLib.Quark, n_keys: number): boolean; + vfunc_changed(key: string): void; + vfunc_writable_change_event(key: GLib.Quark): boolean; + vfunc_writable_changed(key: string): void; + static list_relocatable_schemas(): string[]; + static list_schemas(): string[]; + static sync(): void; + static unbind(object: GObject.Object, property: string): void; +} +export module SettingsBackend { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class SettingsBackend extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + changed(key: string, origin_tag: any | null): void; + changed_tree(tree: GLib.Tree, origin_tag: any | null): void; + keys_changed(path: string, items: string[], origin_tag: any | null): void; + path_changed(path: string, origin_tag: any | null): void; + path_writable_changed(path: string): void; + writable_changed(key: string): void; + vfunc_get_writable(key: string): boolean; + vfunc_read(key: string, expected_type: GLib.VariantType, default_value: boolean): GLib.Variant; + vfunc_read_user_value(key: string, expected_type: GLib.VariantType): GLib.Variant; + vfunc_reset(key: string, origin_tag: any | null): void; + vfunc_subscribe(name: string): void; + vfunc_sync(): void; + vfunc_unsubscribe(name: string): void; + vfunc_write(key: string, value: GLib.Variant, origin_tag: any | null): boolean; + vfunc_write_tree(tree: GLib.Tree, origin_tag: any | null): boolean; + static flatten_tree(tree: GLib.Tree): [string, string[], GLib.Variant[] | null]; + static get_default(): SettingsBackend; +} +export module SimpleAction { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + enabled: boolean; + name: string; + parameter_type: GLib.VariantType; + state: GLib.Variant; + state_type: GLib.VariantType; + } +} +export class SimpleAction extends GObject.Object implements Action { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + enabled: boolean; + name: string; + parameter_type: GLib.VariantType; + state: GLib.Variant; + state_type: GLib.VariantType; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this, parameter: GLib.Variant | null) => void): number; + connect_after(signal: 'activate', callback: (_source: this, parameter: GLib.Variant | null) => void): number; + emit(signal: 'activate', parameter: GLib.Variant | null): void; + connect(signal: 'change-state', callback: (_source: this, value: GLib.Variant | null) => void): number; + connect_after(signal: 'change-state', callback: (_source: this, value: GLib.Variant | null) => void): number; + emit(signal: 'change-state', value: GLib.Variant | null): void; + // Constructors + static ["new"](name: string, parameter_type: GLib.VariantType | null): SimpleAction; + static new_stateful(name: string, parameter_type: GLib.VariantType | null, state: GLib.Variant): SimpleAction; + // Members + set_enabled(enabled: boolean): void; + set_state(value: GLib.Variant): void; + set_state_hint(state_hint: GLib.Variant | null): void; + // Implemented Members + activate(parameter: GLib.Variant | null): void; + change_state(value: GLib.Variant): void; + get_enabled(): boolean; + get_name(): string; + get_parameter_type(): GLib.VariantType | null; + get_state(): GLib.Variant; + get_state_hint(): GLib.Variant | null; + get_state_type(): GLib.VariantType | null; + vfunc_activate(parameter: GLib.Variant | null): void; + vfunc_change_state(value: GLib.Variant): void; + vfunc_get_enabled(): boolean; + vfunc_get_name(): string; + vfunc_get_parameter_type(): GLib.VariantType | null; + vfunc_get_state(): GLib.Variant; + vfunc_get_state_hint(): GLib.Variant | null; + vfunc_get_state_type(): GLib.VariantType | null; +} +export module SimpleActionGroup { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class SimpleActionGroup extends GObject.Object implements ActionGroup, ActionMap { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): SimpleActionGroup; + // Members + add_entries(entries: ActionEntry[]): void; + insert(action: Action): void; + lookup(action_name: string): Action; + remove(action_name: string): void; + // Implemented Members + action_added(action_name: string): void; + action_enabled_changed(action_name: string, enabled: boolean): void; + action_removed(action_name: string): void; + action_state_changed(action_name: string, state: GLib.Variant): void; + activate_action(action_name: string, parameter: GLib.Variant | null): void; + change_action_state(action_name: string, value: GLib.Variant): void; + get_action_enabled(action_name: string): boolean; + get_action_parameter_type(action_name: string): GLib.VariantType | null; + get_action_state(action_name: string): GLib.Variant | null; + get_action_state_hint(action_name: string): GLib.Variant | null; + get_action_state_type(action_name: string): GLib.VariantType | null; + has_action(action_name: string): boolean; + list_actions(): string[]; + query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + vfunc_action_added(action_name: string): void; + vfunc_action_enabled_changed(action_name: string, enabled: boolean): void; + vfunc_action_removed(action_name: string): void; + vfunc_action_state_changed(action_name: string, state: GLib.Variant): void; + vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void; + vfunc_change_action_state(action_name: string, value: GLib.Variant): void; + vfunc_get_action_enabled(action_name: string): boolean; + vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null; + vfunc_get_action_state(action_name: string): GLib.Variant | null; + vfunc_get_action_state_hint(action_name: string): GLib.Variant | null; + vfunc_get_action_state_type(action_name: string): GLib.VariantType | null; + vfunc_has_action(action_name: string): boolean; + vfunc_list_actions(): string[]; + vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + add_action(action: Action): void; + add_action_entries(entries: ActionEntry[]): void; + lookup_action(action_name: string): Action; + remove_action(action_name: string): void; + vfunc_add_action(action: Action): void; + vfunc_lookup_action(action_name: string): Action; + vfunc_remove_action(action_name: string): void; +} +export module SimpleAsyncResult { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class SimpleAsyncResult extends GObject.Object implements AsyncResult { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](source_object: GObject.Object | null, callback: AsyncReadyCallback | null, source_tag: any | null): SimpleAsyncResult; + static new_from_error(source_object: GObject.Object | null, callback: AsyncReadyCallback | null, error: GLib.Error): SimpleAsyncResult; + // Members + complete(): void; + complete_in_idle(): void; + get_op_res_gboolean(): boolean; + get_op_res_gssize(): number; + propagate_error(): boolean; + set_check_cancellable(check_cancellable: Cancellable | null): void; + set_from_error(error: GLib.Error): void; + set_handle_cancellation(handle_cancellation: boolean): void; + set_op_res_gboolean(op_res: boolean): void; + set_op_res_gssize(op_res: number): void; + static is_valid(result: AsyncResult, source: GObject.Object | null, source_tag: any | null): boolean; + // Implemented Members + get_source_object(): GObject.Object | null; + get_user_data(): any | null; + is_tagged(source_tag: any | null): boolean; + legacy_propagate_error(): boolean; + vfunc_get_source_object(): GObject.Object | null; + vfunc_get_user_data(): any | null; + vfunc_is_tagged(source_tag: any | null): boolean; +} +export module SimpleIOStream { + export interface ConstructorProperties extends IOStream.ConstructorProperties { + [key: string]: any; + input_stream: InputStream; + output_stream: OutputStream; + } +} +export class SimpleIOStream extends IOStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + input_stream: InputStream; + output_stream: OutputStream; + // Constructors + static ["new"](input_stream: InputStream, output_stream: OutputStream): SimpleIOStream; +} +export module SimplePermission { + export interface ConstructorProperties extends Permission.ConstructorProperties { + [key: string]: any; + } +} +export class SimplePermission extends Permission { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](allowed: boolean): SimplePermission; +} +export module SimpleProxyResolver { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + default_proxy: string; + } +} +export class SimpleProxyResolver extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + default_proxy: string; +} +export module Socket { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + blocking: boolean; + broadcast: boolean; + family: SocketFamily; + fd: number; + keepalive: boolean; + listen_backlog: number; + local_address: SocketAddress; + multicast_loopback: boolean; + multicast_ttl: number; + protocol: SocketProtocol; + remote_address: SocketAddress; + timeout: number; + ttl: number; + type: SocketType; + } +} +export class Socket extends GObject.Object implements DatagramBased, Initable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + blocking: boolean; + broadcast: boolean; + family: SocketFamily; + fd: number; + keepalive: boolean; + listen_backlog: number; + local_address: SocketAddress; + multicast_loopback: boolean; + multicast_ttl: number; + protocol: SocketProtocol; + remote_address: SocketAddress; + timeout: number; + ttl: number; + type: SocketType; + // Fields + priv: SocketPrivate; + // Constructors + static ["new"](family: SocketFamily, type: SocketType, protocol: SocketProtocol): Socket; + static new_from_fd(fd: number): Socket; + // Members + accept(cancellable: Cancellable | null): Socket; + bind(address: SocketAddress, allow_reuse: boolean): boolean; + check_connect_result(): boolean; + close(): boolean; + condition_check(condition: GLib.IOCondition): GLib.IOCondition; + condition_timed_wait(condition: GLib.IOCondition, timeout_us: number, cancellable: Cancellable | null): boolean; + condition_wait(condition: GLib.IOCondition, cancellable: Cancellable | null): boolean; + condition_wait(...args: never[]): never; + connect(address: SocketAddress, cancellable: Cancellable | null): boolean; + connect(...args: never[]): never; + connection_factory_create_connection(): SocketConnection; + get_available_bytes(): number; + get_blocking(): boolean; + get_broadcast(): boolean; + get_credentials(): Credentials; + get_family(): SocketFamily; + get_fd(): number; + get_keepalive(): boolean; + get_listen_backlog(): number; + get_local_address(): SocketAddress; + get_multicast_loopback(): boolean; + get_multicast_ttl(): number; + get_option(level: number, optname: number): [boolean, number]; + get_protocol(): SocketProtocol; + get_remote_address(): SocketAddress; + get_socket_type(): SocketType; + get_timeout(): number; + get_ttl(): number; + is_closed(): boolean; + is_connected(): boolean; + join_multicast_group(group: InetAddress, source_specific: boolean, iface: string | null): boolean; + join_multicast_group_ssm(group: InetAddress, source_specific: InetAddress | null, iface: string | null): boolean; + leave_multicast_group(group: InetAddress, source_specific: boolean, iface: string | null): boolean; + leave_multicast_group_ssm(group: InetAddress, source_specific: InetAddress | null, iface: string | null): boolean; + listen(): boolean; + receive(buffer: number[], cancellable: Cancellable | null): number; + receive_from(buffer: number[], cancellable: Cancellable | null): [number, SocketAddress | null]; + receive_message(vectors: InputVector[], flags: SocketMsgFlags, cancellable: Cancellable | null): [number, SocketAddress | null, SocketControlMessage[] | null, SocketMsgFlags]; + receive_messages(messages: InputMessage[], flags: SocketMsgFlags, cancellable: Cancellable | null): number; + receive_messages(...args: never[]): never; + receive_with_blocking(buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; + send(buffer: number[], cancellable: Cancellable | null): number; + send_message(address: SocketAddress | null, vectors: OutputVector[], messages: SocketControlMessage[] | null, flags: SocketMsgFlags, cancellable: Cancellable | null): number; + send_message_with_timeout(address: SocketAddress | null, vectors: OutputVector[], messages: SocketControlMessage[] | null, flags: SocketMsgFlags, timeout_us: number, cancellable: Cancellable | null): [PollableReturn, number | null]; + send_messages(messages: OutputMessage[], flags: SocketMsgFlags, cancellable: Cancellable | null): number; + send_messages(...args: never[]): never; + send_to(address: SocketAddress | null, buffer: number[], cancellable: Cancellable | null): number; + send_with_blocking(buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; + set_blocking(blocking: boolean): void; + set_broadcast(broadcast: boolean): void; + set_keepalive(keepalive: boolean): void; + set_listen_backlog(backlog: number): void; + set_multicast_loopback(loopback: boolean): void; + set_multicast_ttl(ttl: number): void; + set_option(level: number, optname: number, value: number): boolean; + set_timeout(timeout: number): void; + set_ttl(ttl: number): void; + shutdown(shutdown_read: boolean, shutdown_write: boolean): boolean; + speaks_ipv4(): boolean; + // Implemented Members + create_source(condition: GLib.IOCondition, cancellable: Cancellable | null): GLib.Source; + vfunc_condition_check(condition: GLib.IOCondition): GLib.IOCondition; + vfunc_condition_wait(condition: GLib.IOCondition, timeout: number, cancellable: Cancellable | null): boolean; + vfunc_create_source(condition: GLib.IOCondition, cancellable: Cancellable | null): GLib.Source; + vfunc_receive_messages(messages: InputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; + vfunc_send_messages(messages: OutputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; +} +export module SocketAddress { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + family: SocketFamily; + } +} +export abstract class SocketAddress extends GObject.Object implements SocketConnectable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + family: SocketFamily; + // Constructors + static new_from_native(_native: any, len: number): SocketAddress; + // Members + get_family(): SocketFamily; + get_native_size(): number; + to_native(dest: any | null, destlen: number): boolean; + vfunc_get_family(): SocketFamily; + vfunc_get_native_size(): number; + vfunc_to_native(dest: any | null, destlen: number): boolean; + // Implemented Members + enumerate(): SocketAddressEnumerator; + proxy_enumerate(): SocketAddressEnumerator; + to_string(): string; + vfunc_enumerate(): SocketAddressEnumerator; + vfunc_proxy_enumerate(): SocketAddressEnumerator; + vfunc_to_string(): string; +} +export module SocketAddressEnumerator { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class SocketAddressEnumerator extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + next(cancellable: Cancellable | null): SocketAddress; + next_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + next_finish(result: AsyncResult): SocketAddress; + vfunc_next(cancellable: Cancellable | null): SocketAddress; + vfunc_next_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_next_finish(result: AsyncResult): SocketAddress; +} +export module SocketClient { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + enable_proxy: boolean; + family: SocketFamily; + local_address: SocketAddress; + protocol: SocketProtocol; + proxy_resolver: ProxyResolver; + timeout: number; + tls: boolean; + tls_validation_flags: TlsCertificateFlags; + type: SocketType; + } +} +export class SocketClient extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + enable_proxy: boolean; + family: SocketFamily; + local_address: SocketAddress; + protocol: SocketProtocol; + proxy_resolver: ProxyResolver; + timeout: number; + tls: boolean; + tls_validation_flags: TlsCertificateFlags; + type: SocketType; + // Fields + priv: SocketClientPrivate; + // Signals + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect_after(signal: 'event', callback: (_source: this, event: SocketClientEvent, connectable: SocketConnectable, connection: IOStream | null) => void): number; + emit(signal: 'event', event: SocketClientEvent, connectable: SocketConnectable, connection: IOStream | null): void; + // Constructors + static ["new"](): SocketClient; + // Members + add_application_proxy(protocol: string): void; + connect(connectable: SocketConnectable, cancellable: Cancellable | null): SocketConnection; + connect(...args: never[]): never; + connect_async(connectable: SocketConnectable, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + connect_finish(result: AsyncResult): SocketConnection; + connect_to_host(host_and_port: string, default_port: number, cancellable: Cancellable | null): SocketConnection; + connect_to_host_async(host_and_port: string, default_port: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + connect_to_host_finish(result: AsyncResult): SocketConnection; + connect_to_service(domain: string, service: string, cancellable: Cancellable | null): SocketConnection; + connect_to_service_async(domain: string, service: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + connect_to_service_finish(result: AsyncResult): SocketConnection; + connect_to_uri(uri: string, default_port: number, cancellable: Cancellable | null): SocketConnection; + connect_to_uri_async(uri: string, default_port: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + connect_to_uri_finish(result: AsyncResult): SocketConnection; + get_enable_proxy(): boolean; + get_family(): SocketFamily; + get_local_address(): SocketAddress; + get_protocol(): SocketProtocol; + get_proxy_resolver(): ProxyResolver; + get_socket_type(): SocketType; + get_timeout(): number; + get_tls(): boolean; + get_tls_validation_flags(): TlsCertificateFlags; + set_enable_proxy(enable: boolean): void; + set_family(family: SocketFamily): void; + set_local_address(address: SocketAddress | null): void; + set_protocol(protocol: SocketProtocol): void; + set_proxy_resolver(proxy_resolver: ProxyResolver | null): void; + set_socket_type(type: SocketType): void; + set_timeout(timeout: number): void; + set_tls(tls: boolean): void; + set_tls_validation_flags(flags: TlsCertificateFlags): void; + vfunc_event(event: SocketClientEvent, connectable: SocketConnectable, connection: IOStream): void; +} +export module SocketConnection { + export interface ConstructorProperties extends IOStream.ConstructorProperties { + [key: string]: any; + socket: Socket; + } +} +export class SocketConnection extends IOStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + socket: Socket; + // Fields + priv: SocketConnectionPrivate; + // Members + connect(address: SocketAddress, cancellable: Cancellable | null): boolean; + connect(...args: never[]): never; + connect_async(address: SocketAddress, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + connect_finish(result: AsyncResult): boolean; + get_local_address(): SocketAddress; + get_remote_address(): SocketAddress; + get_socket(): Socket; + is_connected(): boolean; + static factory_lookup_type(family: SocketFamily, type: SocketType, protocol_id: number): GType; + static factory_register_type(g_type: GType, family: SocketFamily, type: SocketType, protocol: number): void; +} +export module SocketControlMessage { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class SocketControlMessage extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: SocketControlMessagePrivate; + // Members + get_level(): number; + get_msg_type(): number; + get_size(): number; + serialize(data: any): void; + vfunc_get_level(): number; + vfunc_get_size(): number; + vfunc_get_type(): number; + vfunc_serialize(data: any): void; + static deserialize(level: number, type: number, data: number[]): SocketControlMessage; +} +export module SocketListener { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + listen_backlog: number; + } +} +export class SocketListener extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + listen_backlog: number; + // Fields + priv: SocketListenerPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'event', callback: (_source: this, event: SocketListenerEvent, socket: Socket) => void): number; + connect_after(signal: 'event', callback: (_source: this, event: SocketListenerEvent, socket: Socket) => void): number; + emit(signal: 'event', event: SocketListenerEvent, socket: Socket): void; + // Constructors + static ["new"](): SocketListener; + // Members + accept(cancellable: Cancellable | null): [SocketConnection, GObject.Object | null]; + accept_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + accept_finish(result: AsyncResult): [SocketConnection, GObject.Object | null]; + accept_socket(cancellable: Cancellable | null): [Socket, GObject.Object | null]; + accept_socket_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + accept_socket_finish(result: AsyncResult): [Socket, GObject.Object | null]; + add_address(address: SocketAddress, type: SocketType, protocol: SocketProtocol, source_object: GObject.Object | null): [boolean, SocketAddress | null]; + add_any_inet_port(source_object: GObject.Object | null): number; + add_inet_port(port: number, source_object: GObject.Object | null): boolean; + add_socket(socket: Socket, source_object: GObject.Object | null): boolean; + close(): void; + set_backlog(listen_backlog: number): void; + vfunc_changed(): void; + vfunc_event(event: SocketListenerEvent, socket: Socket): void; +} +export module SocketService { + export interface ConstructorProperties extends SocketListener.ConstructorProperties { + [key: string]: any; + active: boolean; + } +} +export class SocketService extends SocketListener { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + active: boolean; + // Fields + priv: SocketServicePrivate | any; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'incoming', callback: (_source: this, connection: SocketConnection, source_object: GObject.Object | null) => boolean): number; + connect_after(signal: 'incoming', callback: (_source: this, connection: SocketConnection, source_object: GObject.Object | null) => boolean): number; + emit(signal: 'incoming', connection: SocketConnection, source_object: GObject.Object | null): void; + // Constructors + static ["new"](): SocketService; + static ["new"](...args: never[]): never; + // Members + is_active(): boolean; + start(): void; + stop(): void; + vfunc_incoming(connection: SocketConnection, source_object: GObject.Object): boolean; +} +export module Subprocess { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Subprocess extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static newv(argv: string[], flags: SubprocessFlags): Subprocess; + static newv(...args: never[]): never; +} +export module SubprocessLauncher { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + flags: SubprocessFlags; + } +} +export class SubprocessLauncher extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + flags: SubprocessFlags; + // Constructors + static ["new"](flags: SubprocessFlags): SubprocessLauncher; + // Members + getenv(variable: string): string; + set_cwd(cwd: string): void; + set_environ(env: string[]): void; + set_flags(flags: SubprocessFlags): void; + set_stderr_file_path(path: string | null): void; + set_stdin_file_path(path: string): void; + set_stdout_file_path(path: string | null): void; + setenv(variable: string, value: string, overwrite: boolean): void; + spawnv(argv: string[]): Subprocess; + take_fd(source_fd: number, target_fd: number): void; + take_stderr_fd(fd: number): void; + take_stdin_fd(fd: number): void; + take_stdout_fd(fd: number): void; + unsetenv(variable: string): void; +} +export module Task { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + completed: boolean; + } +} +export class Task extends GObject.Object implements AsyncResult { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + completed: boolean; + // Constructors + static ["new"](source_object: GObject.Object | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null, callback_data: any | null): Task; + // Members + get_cancellable(): Cancellable; + get_check_cancellable(): boolean; + get_completed(): boolean; + get_context(): GLib.MainContext; + get_name(): string | null; + get_priority(): number; + get_return_on_cancel(): boolean; + get_source_object(): GObject.Object | null; + get_source_tag(): any | null; + get_task_data(): any | null; + had_error(): boolean; + propagate_boolean(): boolean; + propagate_int(): number; + propagate_pointer(): any | null; + return_boolean(result: boolean): void; + return_error(error: GLib.Error): void; + return_error_if_cancelled(): boolean; + return_int(result: number): void; + return_pointer(result: any | null, result_destroy: GLib.DestroyNotify | null): void; + set_check_cancellable(check_cancellable: boolean): void; + set_name(name: string | null): void; + set_priority(priority: number): void; + set_return_on_cancel(return_on_cancel: boolean): boolean; + set_source_tag(source_tag: any | null): void; + set_task_data(task_data: any | null, task_data_destroy: GLib.DestroyNotify | null): void; + static is_valid(result: AsyncResult, source_object: GObject.Object | null): boolean; + static report_error(source_object: GObject.Object | null, callback: AsyncReadyCallback | null, callback_data: any | null, source_tag: any | null, error: GLib.Error): void; + // Implemented Members + get_user_data(): any | null; + is_tagged(source_tag: any | null): boolean; + legacy_propagate_error(): boolean; + vfunc_get_source_object(): GObject.Object | null; + vfunc_get_user_data(): any | null; + vfunc_is_tagged(source_tag: any | null): boolean; +} +export module TcpConnection { + export interface ConstructorProperties extends SocketConnection.ConstructorProperties { + [key: string]: any; + graceful_disconnect: boolean; + } +} +export class TcpConnection extends SocketConnection { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + graceful_disconnect: boolean; + // Fields + priv: TcpConnectionPrivate | any; + // Members + get_graceful_disconnect(): boolean; + set_graceful_disconnect(graceful_disconnect: boolean): void; +} +export module TcpWrapperConnection { + export interface ConstructorProperties extends TcpConnection.ConstructorProperties { + [key: string]: any; + base_io_stream: IOStream; + } +} +export class TcpWrapperConnection extends TcpConnection { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + base_io_stream: IOStream; + // Fields + priv: TcpWrapperConnectionPrivate | any; + // Constructors + static ["new"](base_io_stream: IOStream, socket: Socket): TcpWrapperConnection; + // Members + get_base_io_stream(): IOStream; +} +export module TestDBus { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + flags: TestDBusFlags; + } +} +export class TestDBus extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + flags: TestDBusFlags; + // Constructors + static ["new"](flags: TestDBusFlags): TestDBus; + // Members + add_service_dir(path: string): void; + down(): void; + get_bus_address(): string | null; + get_flags(): TestDBusFlags; + stop(): void; + up(): void; + static unset(): void; +} +export module ThemedIcon { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + name: string; + } +} +export class ThemedIcon extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + name: string; + // Constructors + static ["new"](iconname: string): ThemedIcon; + static new_from_names(iconnames: string[]): ThemedIcon; + static new_with_default_fallbacks(iconname: string): ThemedIcon; +} +export module ThreadedSocketService { + export interface ConstructorProperties extends SocketService.ConstructorProperties { + [key: string]: any; + max_threads: number; + } +} +export class ThreadedSocketService extends SocketService { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + max_threads: number; + // Fields + priv: ThreadedSocketServicePrivate | any; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'run', callback: (_source: this, connection: SocketConnection, source_object: GObject.Object) => boolean): number; + connect_after(signal: 'run', callback: (_source: this, connection: SocketConnection, source_object: GObject.Object) => boolean): number; + emit(signal: 'run', connection: SocketConnection, source_object: GObject.Object): void; + // Constructors + static ["new"](max_threads: number): ThreadedSocketService; + static ["new"](...args: never[]): never; + // Members + vfunc_run(connection: SocketConnection, source_object: GObject.Object): boolean; +} +export module TlsCertificate { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + certificate: number[]; + certificate_pem: string; + issuer: TlsCertificate; + private_key: number[]; + private_key_pem: string; + } +} +export abstract class TlsCertificate extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + certificate: number[]; + certificate_pem: string; + issuer: TlsCertificate; + private_key: number[]; + private_key_pem: string; + // Fields + priv: TlsCertificatePrivate; + // Constructors + static new_from_file(file: string): TlsCertificate; + static new_from_files(cert_file: string, key_file: string): TlsCertificate; + static new_from_pem(data: string, length: number): TlsCertificate; + // Members + get_issuer(): TlsCertificate; + is_same(cert_two: TlsCertificate): boolean; + verify(identity: SocketConnectable | null, trusted_ca: TlsCertificate | null): TlsCertificateFlags; + vfunc_verify(identity: SocketConnectable | null, trusted_ca: TlsCertificate | null): TlsCertificateFlags; + static list_new_from_file(file: string): GLib.List; +} +export module TlsConnection { + export interface ConstructorProperties extends IOStream.ConstructorProperties { + [key: string]: any; + } +} +export abstract class TlsConnection extends IOStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'accept-certificate', callback: (_source: this, peer_cert: TlsCertificate, errors: TlsCertificateFlags) => boolean): number; + connect_after(signal: 'accept-certificate', callback: (_source: this, peer_cert: TlsCertificate, errors: TlsCertificateFlags) => boolean): number; + emit(signal: 'accept-certificate', peer_cert: TlsCertificate, errors: TlsCertificateFlags): void; +} +export module TlsDatabase { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class TlsDatabase extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: TlsDatabasePrivate; + // Members + create_certificate_handle(certificate: TlsCertificate): string | null; + lookup_certificate_for_handle(handle: string, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): TlsCertificate | null; + lookup_certificate_for_handle_async(handle: string, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_certificate_for_handle_finish(result: AsyncResult): TlsCertificate; + lookup_certificate_issuer(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): TlsCertificate; + lookup_certificate_issuer_async(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_certificate_issuer_finish(result: AsyncResult): TlsCertificate; + lookup_certificates_issued_by(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): GLib.List; + lookup_certificates_issued_by_async(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_certificates_issued_by_finish(result: AsyncResult): GLib.List; + verify_chain(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null): TlsCertificateFlags; + verify_chain_async(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + verify_chain_finish(result: AsyncResult): TlsCertificateFlags; + vfunc_create_certificate_handle(certificate: TlsCertificate): string | null; + vfunc_lookup_certificate_for_handle(handle: string, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): TlsCertificate | null; + vfunc_lookup_certificate_for_handle_async(handle: string, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_certificate_for_handle_finish(result: AsyncResult): TlsCertificate; + vfunc_lookup_certificate_issuer(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): TlsCertificate; + vfunc_lookup_certificate_issuer_async(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_certificate_issuer_finish(result: AsyncResult): TlsCertificate; + vfunc_lookup_certificates_issued_by(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): GLib.List; + vfunc_lookup_certificates_issued_by_async(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_certificates_issued_by_finish(result: AsyncResult): GLib.List; + vfunc_verify_chain(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null): TlsCertificateFlags; + vfunc_verify_chain_async(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_verify_chain_finish(result: AsyncResult): TlsCertificateFlags; +} +export module TlsInteraction { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class TlsInteraction extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + ask_password(password: TlsPassword, cancellable: Cancellable | null): TlsInteractionResult; + ask_password_async(password: TlsPassword, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + ask_password_finish(result: AsyncResult): TlsInteractionResult; + invoke_ask_password(password: TlsPassword, cancellable: Cancellable | null): TlsInteractionResult; + invoke_request_certificate(connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: Cancellable | null): TlsInteractionResult; + request_certificate(connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: Cancellable | null): TlsInteractionResult; + request_certificate_async(connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + request_certificate_finish(result: AsyncResult): TlsInteractionResult; + vfunc_ask_password(password: TlsPassword, cancellable: Cancellable | null): TlsInteractionResult; + vfunc_ask_password_async(password: TlsPassword, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_ask_password_finish(result: AsyncResult): TlsInteractionResult; + vfunc_request_certificate(connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: Cancellable | null): TlsInteractionResult; + vfunc_request_certificate_async(connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_request_certificate_finish(result: AsyncResult): TlsInteractionResult; +} +export module TlsPassword { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + description: string; + flags: TlsPasswordFlags; + warning: string; + } +} +export class TlsPassword extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + description: string; + flags: TlsPasswordFlags; + warning: string; + // Fields + priv: TlsPasswordPrivate; + // Constructors + static ["new"](flags: TlsPasswordFlags, description: string): TlsPassword; + // Members + get_description(): string; + get_flags(): TlsPasswordFlags; + get_value(length: number | null): number; + get_warning(): string; + set_description(description: string): void; + set_flags(flags: TlsPasswordFlags): void; + set_value(value: number[]): void; + set_value_full(value: number[], destroy: GLib.DestroyNotify | null): void; + set_warning(warning: string): void; + vfunc_get_default_warning(): string; + vfunc_get_value(length: number | null): number; + vfunc_set_value(value: number[], destroy: GLib.DestroyNotify | null): void; +} +export module UnixConnection { + export interface ConstructorProperties extends SocketConnection.ConstructorProperties { + [key: string]: any; + } +} +export class UnixConnection extends SocketConnection { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: UnixConnectionPrivate | any; + // Members + receive_credentials(cancellable: Cancellable | null): Credentials; + receive_credentials_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + receive_credentials_finish(result: AsyncResult): Credentials; + receive_fd(cancellable: Cancellable | null): number; + send_credentials(cancellable: Cancellable | null): boolean; + send_credentials_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + send_credentials_finish(result: AsyncResult): boolean; + send_fd(fd: number, cancellable: Cancellable | null): boolean; +} +export module UnixCredentialsMessage { + export interface ConstructorProperties extends SocketControlMessage.ConstructorProperties { + [key: string]: any; + credentials: Credentials; + } +} +export class UnixCredentialsMessage extends SocketControlMessage { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + credentials: Credentials; + // Fields + priv: UnixCredentialsMessagePrivate | any; + // Constructors + static ["new"](): UnixCredentialsMessage; + static new_with_credentials(credentials: Credentials): UnixCredentialsMessage; + // Members + get_credentials(): Credentials; + static is_supported(): boolean; +} +export module UnixFDList { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class UnixFDList extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + priv: UnixFDListPrivate; + // Constructors + static ["new"](): UnixFDList; + static new_from_array(fds: number[]): UnixFDList; + // Members + append(fd: number): number; + get(index_: number): number; + get_length(): number; + peek_fds(): [number[], number | null]; + steal_fds(): [number[], number | null]; +} +export module UnixFDMessage { + export interface ConstructorProperties extends SocketControlMessage.ConstructorProperties { + [key: string]: any; + fd_list: UnixFDList; + } +} +export class UnixFDMessage extends SocketControlMessage { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + fd_list: UnixFDList; + // Fields + priv: UnixFDMessagePrivate | any; + // Constructors + static ["new"](): UnixFDMessage; + static new_with_fd_list(fd_list: UnixFDList): UnixFDMessage; + // Members + append_fd(fd: number): boolean; + get_fd_list(): UnixFDList; + steal_fds(): [number[], number | null]; +} +export module UnixInputStream { + export interface ConstructorProperties extends InputStream.ConstructorProperties { + [key: string]: any; + close_fd: boolean; + fd: number; + } +} +export class UnixInputStream extends InputStream implements FileDescriptorBased, PollableInputStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + close_fd: boolean; + fd: number; + // Constructors + static ["new"](fd: number, close_fd: boolean): UnixInputStream; + // Members + get_close_fd(): boolean; + get_fd(): number; + set_close_fd(close_fd: boolean): void; + // Implemented Members + vfunc_get_fd(): number; + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_readable(): boolean; + read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_readable(): boolean; + vfunc_read_nonblocking(buffer: number[] | null): number; +} +export module UnixMountMonitor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class UnixMountMonitor extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'mountpoints-changed', callback: (_source: this) => void): number; + connect_after(signal: 'mountpoints-changed', callback: (_source: this) => void): number; + emit(signal: 'mountpoints-changed'): void; + connect(signal: 'mounts-changed', callback: (_source: this) => void): number; + connect_after(signal: 'mounts-changed', callback: (_source: this) => void): number; + emit(signal: 'mounts-changed'): void; + // Constructors + static ["new"](): UnixMountMonitor; + // Members + set_rate_limit(limit_msec: number): void; + static get(): UnixMountMonitor; +} +export module UnixOutputStream { + export interface ConstructorProperties extends OutputStream.ConstructorProperties { + [key: string]: any; + close_fd: boolean; + fd: number; + } +} +export class UnixOutputStream extends OutputStream implements FileDescriptorBased, PollableOutputStream { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + close_fd: boolean; + fd: number; + // Constructors + static ["new"](fd: number, close_fd: boolean): UnixOutputStream; + // Members + get_close_fd(): boolean; + get_fd(): number; + set_close_fd(close_fd: boolean): void; + // Implemented Members + vfunc_get_fd(): number; + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_writable(): boolean; + write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_writable(): boolean; + vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; +} +export module UnixSocketAddress { + export interface ConstructorProperties extends SocketAddress.ConstructorProperties { + [key: string]: any; + "abstract": boolean; + address_type: UnixSocketAddressType; + path: string; + path_as_array: number[]; + } +} +export class UnixSocketAddress extends SocketAddress implements SocketConnectable { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + "abstract": boolean; + address_type: UnixSocketAddressType; + path: string; + path_as_array: number[]; + // Constructors + static ["new"](path: string): UnixSocketAddress; + static new_abstract(path: number[]): UnixSocketAddress; + static new_with_type(path: number[], type: UnixSocketAddressType): UnixSocketAddress; + // Members + get_address_type(): UnixSocketAddressType; + get_is_abstract(): boolean; + get_path(): string; + get_path_len(): number; + static abstract_names_supported(): boolean; +} +export module Vfs { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Vfs extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + get_file_for_path(path: string): File; + get_file_for_uri(uri: string): File; + get_supported_uri_schemes(): string[]; + is_active(): boolean; + parse_name(parse_name: string): File; + register_uri_scheme(scheme: string, uri_func: VfsFileLookupFunc | null, uri_data: any | null, uri_destroy: GLib.DestroyNotify | null, parse_name_func: VfsFileLookupFunc | null, parse_name_data: any | null, parse_name_destroy: GLib.DestroyNotify | null): boolean; + unregister_uri_scheme(scheme: string): boolean; + vfunc_add_writable_namespaces(list: FileAttributeInfoList): void; + vfunc_get_file_for_path(path: string): File; + vfunc_get_file_for_uri(uri: string): File; + vfunc_get_supported_uri_schemes(): string[]; + vfunc_is_active(): boolean; + vfunc_local_file_add_info(filename: string, device: number, attribute_matcher: FileAttributeMatcher, info: FileInfo, cancellable: Cancellable | null, extra_data: any | null, free_extra_data: GLib.DestroyNotify): void; + vfunc_local_file_moved(source: string, dest: string): void; + vfunc_local_file_removed(filename: string): void; + vfunc_local_file_set_attributes(filename: string, info: FileInfo, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + vfunc_parse_name(parse_name: string): File; + static get_default(): Vfs; + static get_local(): Vfs; +} +export module VolumeMonitor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class VolumeMonitor extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'drive-changed', callback: (_source: this, drive: Drive) => void): number; + connect_after(signal: 'drive-changed', callback: (_source: this, drive: Drive) => void): number; + emit(signal: 'drive-changed', drive: Drive): void; + connect(signal: 'drive-connected', callback: (_source: this, drive: Drive) => void): number; + connect_after(signal: 'drive-connected', callback: (_source: this, drive: Drive) => void): number; + emit(signal: 'drive-connected', drive: Drive): void; + connect(signal: 'drive-disconnected', callback: (_source: this, drive: Drive) => void): number; + connect_after(signal: 'drive-disconnected', callback: (_source: this, drive: Drive) => void): number; + emit(signal: 'drive-disconnected', drive: Drive): void; + connect(signal: 'drive-eject-button', callback: (_source: this, drive: Drive) => void): number; + connect_after(signal: 'drive-eject-button', callback: (_source: this, drive: Drive) => void): number; + emit(signal: 'drive-eject-button', drive: Drive): void; + connect(signal: 'drive-stop-button', callback: (_source: this, drive: Drive) => void): number; + connect_after(signal: 'drive-stop-button', callback: (_source: this, drive: Drive) => void): number; + emit(signal: 'drive-stop-button', drive: Drive): void; + connect(signal: 'mount-added', callback: (_source: this, mount: Mount) => void): number; + connect_after(signal: 'mount-added', callback: (_source: this, mount: Mount) => void): number; + emit(signal: 'mount-added', mount: Mount): void; + connect(signal: 'mount-changed', callback: (_source: this, mount: Mount) => void): number; + connect_after(signal: 'mount-changed', callback: (_source: this, mount: Mount) => void): number; + emit(signal: 'mount-changed', mount: Mount): void; + connect(signal: 'mount-pre-unmount', callback: (_source: this, mount: Mount) => void): number; + connect_after(signal: 'mount-pre-unmount', callback: (_source: this, mount: Mount) => void): number; + emit(signal: 'mount-pre-unmount', mount: Mount): void; + connect(signal: 'mount-removed', callback: (_source: this, mount: Mount) => void): number; + connect_after(signal: 'mount-removed', callback: (_source: this, mount: Mount) => void): number; + emit(signal: 'mount-removed', mount: Mount): void; + connect(signal: 'volume-added', callback: (_source: this, volume: Volume) => void): number; + connect_after(signal: 'volume-added', callback: (_source: this, volume: Volume) => void): number; + emit(signal: 'volume-added', volume: Volume): void; + connect(signal: 'volume-changed', callback: (_source: this, volume: Volume) => void): number; + connect_after(signal: 'volume-changed', callback: (_source: this, volume: Volume) => void): number; + emit(signal: 'volume-changed', volume: Volume): void; + connect(signal: 'volume-removed', callback: (_source: this, volume: Volume) => void): number; + connect_after(signal: 'volume-removed', callback: (_source: this, volume: Volume) => void): number; + emit(signal: 'volume-removed', volume: Volume): void; + // Members + get_connected_drives(): GLib.List; + get_mount_for_uuid(uuid: string): Mount; + get_mounts(): GLib.List; + get_volume_for_uuid(uuid: string): Volume; + get_volumes(): GLib.List; + vfunc_drive_changed(drive: Drive): void; + vfunc_drive_connected(drive: Drive): void; + vfunc_drive_disconnected(drive: Drive): void; + vfunc_drive_eject_button(drive: Drive): void; + vfunc_drive_stop_button(drive: Drive): void; + vfunc_get_connected_drives(): GLib.List; + vfunc_get_mount_for_uuid(uuid: string): Mount; + vfunc_get_mounts(): GLib.List; + vfunc_get_volume_for_uuid(uuid: string): Volume; + vfunc_get_volumes(): GLib.List; + vfunc_mount_added(mount: Mount): void; + vfunc_mount_changed(mount: Mount): void; + vfunc_mount_pre_unmount(mount: Mount): void; + vfunc_mount_removed(mount: Mount): void; + vfunc_volume_added(volume: Volume): void; + vfunc_volume_changed(volume: Volume): void; + vfunc_volume_removed(volume: Volume): void; + static adopt_orphan_mount(mount: Mount): Volume; + static get(): VolumeMonitor; +} +export module ZlibCompressor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + file_info: FileInfo; + format: ZlibCompressorFormat; + level: number; + } +} +export class ZlibCompressor extends GObject.Object implements Converter { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + file_info: FileInfo; + format: ZlibCompressorFormat; + level: number; + // Constructors + static ["new"](format: ZlibCompressorFormat, level: number): ZlibCompressor; + // Members + get_file_info(): FileInfo; + set_file_info(file_info: FileInfo | null): void; + // Implemented Members + convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + reset(): void; + vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_reset(): void; +} +export module ZlibDecompressor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + file_info: FileInfo; + format: ZlibCompressorFormat; + } +} +export class ZlibDecompressor extends GObject.Object implements Converter { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + file_info: FileInfo; + format: ZlibCompressorFormat; + // Constructors + static ["new"](format: ZlibCompressorFormat): ZlibDecompressor; + // Members + get_file_info(): FileInfo; + // Implemented Members + convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + reset(): void; + vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_reset(): void; +} +export class ActionEntry { + constructor(copy: ActionEntry); + // Fields + name: string; + parameter_type: string; + state: string; + padding: number[]; +} +export class AppLaunchContextPrivate { + constructor(copy: AppLaunchContextPrivate); +} +export class ApplicationCommandLinePrivate { + constructor(copy: ApplicationCommandLinePrivate); +} +export class ApplicationPrivate { + constructor(copy: ApplicationPrivate); +} +export class BufferedInputStreamPrivate { + constructor(copy: BufferedInputStreamPrivate); +} +export class BufferedOutputStreamPrivate { + constructor(copy: BufferedOutputStreamPrivate); +} +export class CancellablePrivate { + constructor(copy: CancellablePrivate); +} +export class ConverterInputStreamPrivate { + constructor(copy: ConverterInputStreamPrivate); +} +export class ConverterOutputStreamPrivate { + constructor(copy: ConverterOutputStreamPrivate); +} +export class DBusAnnotationInfo { + constructor(copy: DBusAnnotationInfo); + // Fields + ref_count: number; + key: string; + value: string; + annotations: DBusAnnotationInfo[]; + // Members + ref(): DBusAnnotationInfo; + unref(): void; + static lookup(annotations: DBusAnnotationInfo[] | null, name: string): string; +} +export class DBusArgInfo { + constructor(copy: DBusArgInfo); + // Fields + ref_count: number; + name: string; + signature: string; + annotations: DBusAnnotationInfo[]; + // Members + ref(): DBusArgInfo; + unref(): void; +} +export class DBusErrorEntry { + constructor(copy: DBusErrorEntry); + // Fields + error_code: number; + dbus_error_name: string; +} +export class DBusInterfaceInfo { + constructor(copy: DBusInterfaceInfo); + // Fields + ref_count: number; + name: string; + methods: DBusMethodInfo[]; + signals: DBusSignalInfo[]; + properties: DBusPropertyInfo[]; + annotations: DBusAnnotationInfo[]; + // Members + cache_build(): void; + cache_release(): void; + generate_xml(indent: number, string_builder: GLib.String): void; + lookup_method(name: string): DBusMethodInfo; + lookup_property(name: string): DBusPropertyInfo; + lookup_signal(name: string): DBusSignalInfo; + ref(): DBusInterfaceInfo; + unref(): void; + static new_for_xml(info: string): DBusInterfaceInfo; +} +export class DBusInterfaceSkeletonPrivate { + constructor(copy: DBusInterfaceSkeletonPrivate); +} +export class DBusInterfaceVTable { + constructor(copy: DBusInterfaceVTable); + // Fields + method_call: DBusInterfaceMethodCallFunc; + get_property: DBusInterfaceGetPropertyFunc; + set_property: DBusInterfaceSetPropertyFunc; + padding: any[]; +} +export class DBusMethodInfo { + constructor(copy: DBusMethodInfo); + // Fields + ref_count: number; + name: string; + in_args: DBusArgInfo[]; + out_args: DBusArgInfo[]; + annotations: DBusAnnotationInfo[]; + // Members + ref(): DBusMethodInfo; + unref(): void; +} +export class DBusNodeInfo { + constructor(xml_data: string); + constructor(copy: DBusNodeInfo); + // Fields + ref_count: number; + path: string; + interfaces: DBusInterfaceInfo[]; + nodes: DBusNodeInfo[]; + annotations: DBusAnnotationInfo[]; + // Constructors + static new_for_xml(xml_data: string): DBusNodeInfo; + // Members + generate_xml(indent: number, string_builder: GLib.String): void; + lookup_interface(name: string): DBusInterfaceInfo; + ref(): DBusNodeInfo; + unref(): void; + static new_for_xml(info: string): DBusNodeInfo; +} +export class DBusObjectManagerClientPrivate { + constructor(copy: DBusObjectManagerClientPrivate); +} +export class DBusObjectManagerServerPrivate { + constructor(copy: DBusObjectManagerServerPrivate); +} +export class DBusObjectProxyPrivate { + constructor(copy: DBusObjectProxyPrivate); +} +export class DBusObjectSkeletonPrivate { + constructor(copy: DBusObjectSkeletonPrivate); +} +export class DBusPropertyInfo { + constructor(copy: DBusPropertyInfo); + // Fields + ref_count: number; + name: string; + signature: string; + flags: DBusPropertyInfoFlags; + annotations: DBusAnnotationInfo[]; + // Members + ref(): DBusPropertyInfo; + unref(): void; +} +export class DBusProxyPrivate { + constructor(copy: DBusProxyPrivate); +} +export class DBusSignalInfo { + constructor(copy: DBusSignalInfo); + // Fields + ref_count: number; + name: string; + args: DBusArgInfo[]; + annotations: DBusAnnotationInfo[]; + // Members + ref(): DBusSignalInfo; + unref(): void; +} +export class DBusSubtreeVTable { + constructor(copy: DBusSubtreeVTable); + // Fields + introspect: DBusSubtreeIntrospectFunc; + dispatch: DBusSubtreeDispatchFunc; + padding: any[]; +} +export class DataInputStreamPrivate { + constructor(copy: DataInputStreamPrivate); +} +export class DataOutputStreamPrivate { + constructor(copy: DataOutputStreamPrivate); +} +export class EmblemedIconPrivate { + constructor(copy: EmblemedIconPrivate); +} +export class FileAttributeInfo { + constructor(copy: FileAttributeInfo); + // Fields + name: string; + type: FileAttributeType; + flags: FileAttributeInfoFlags; +} +export class FileAttributeInfoList { + constructor(); + constructor(copy: FileAttributeInfoList); + // Fields + infos: FileAttributeInfo; + n_infos: number; + // Constructors + static ["new"](): FileAttributeInfoList; + // Members + add(name: string, type: FileAttributeType, flags: FileAttributeInfoFlags): void; + dup(): FileAttributeInfoList; + lookup(name: string): FileAttributeInfo; + ref(): FileAttributeInfoList; + unref(): void; +} +export class FileAttributeMatcher { + constructor(attributes: string); + constructor(copy: FileAttributeMatcher); + // Constructors + static ["new"](attributes: string): FileAttributeMatcher; + // Members + enumerate_namespace(ns: string): boolean; + enumerate_next(): string; + matches(attribute: string): boolean; + matches_only(attribute: string): boolean; + ref(): FileAttributeMatcher; + subtract(subtract: FileAttributeMatcher): FileAttributeMatcher; + to_string(): string; + unref(): void; +} +export class FileEnumeratorPrivate { + constructor(copy: FileEnumeratorPrivate); +} +export class FileIOStreamPrivate { + constructor(copy: FileIOStreamPrivate); +} +export class FileInputStreamPrivate { + constructor(copy: FileInputStreamPrivate); +} +export class FileMonitorPrivate { + constructor(copy: FileMonitorPrivate); +} +export class FileOutputStreamPrivate { + constructor(copy: FileOutputStreamPrivate); +} +export class IOExtension { + constructor(copy: IOExtension); + // Members + get_name(): string; + get_priority(): number; + get_type(): GType; +} +export class IOExtensionPoint { + constructor(copy: IOExtensionPoint); + // Members + get_extension_by_name(name: string): IOExtension; + get_extensions(): GLib.List; + get_required_type(): GType; + set_required_type(type: GType): void; + static implement(extension_point_name: string, type: GType, extension_name: string, priority: number): IOExtension; + static lookup(name: string): IOExtensionPoint; + static register(name: string): IOExtensionPoint; +} +export class IOModuleScope { + constructor(copy: IOModuleScope); + // Members + block(basename: string): void; + free(): void; +} +export class IOSchedulerJob { + constructor(copy: IOSchedulerJob); + // Members + send_to_mainloop(func: GLib.SourceFunc, notify: GLib.DestroyNotify | null): boolean; + send_to_mainloop_async(func: GLib.SourceFunc, notify: GLib.DestroyNotify | null): void; +} +export class IOStreamAdapter { + constructor(copy: IOStreamAdapter); +} +export class IOStreamPrivate { + constructor(copy: IOStreamPrivate); +} +export class InetAddressMaskPrivate { + constructor(copy: InetAddressMaskPrivate); +} +export class InetAddressPrivate { + constructor(copy: InetAddressPrivate); +} +export class InetSocketAddressPrivate { + constructor(copy: InetSocketAddressPrivate); +} +export class InputMessage { + constructor(copy: InputMessage); + // Fields + address: SocketAddress; + vectors: InputVector[]; + num_vectors: number; + bytes_received: number; + flags: number; + control_messages: SocketControlMessage[]; + num_control_messages: number; +} +export class InputStreamPrivate { + constructor(copy: InputStreamPrivate); +} +export class InputVector { + constructor(copy: InputVector); + // Fields + buffer: any; + size: number; +} +export class MemoryInputStreamPrivate { + constructor(copy: MemoryInputStreamPrivate); +} +export class MemoryOutputStreamPrivate { + constructor(copy: MemoryOutputStreamPrivate); +} +export class MenuAttributeIterPrivate { + constructor(copy: MenuAttributeIterPrivate); +} +export class MenuLinkIterPrivate { + constructor(copy: MenuLinkIterPrivate); +} +export class MenuModelPrivate { + constructor(copy: MenuModelPrivate); +} +export class MountOperationPrivate { + constructor(copy: MountOperationPrivate); +} +export class NativeSocketAddress { + constructor(copy: NativeSocketAddress); +} +export class NetworkAddressPrivate { + constructor(copy: NetworkAddressPrivate); +} +export class NetworkServicePrivate { + constructor(copy: NetworkServicePrivate); +} +export class OutputMessage { + constructor(copy: OutputMessage); + // Fields + address: SocketAddress; + vectors: OutputVector; + num_vectors: number; + bytes_sent: number; + control_messages: SocketControlMessage[]; + num_control_messages: number; +} +export class OutputStreamPrivate { + constructor(copy: OutputStreamPrivate); +} +export class OutputVector { + constructor(copy: OutputVector); + // Fields + buffer: any; + size: number; +} +export class PermissionPrivate { + constructor(copy: PermissionPrivate); +} +export class ProxyAddressEnumeratorPrivate { + constructor(copy: ProxyAddressEnumeratorPrivate); +} +export class ProxyAddressPrivate { + constructor(copy: ProxyAddressPrivate); +} +export class ResolverPrivate { + constructor(copy: ResolverPrivate); +} +export class Resource { + constructor(data: GLib.Bytes); + constructor(copy: Resource); + // Constructors + static new_from_data(data: GLib.Bytes): Resource; + // Members + _register(): void; + _unregister(): void; + enumerate_children(path: string, lookup_flags: ResourceLookupFlags): string[]; + get_info(path: string, lookup_flags: ResourceLookupFlags): [boolean, number | null, number | null]; + lookup_data(path: string, lookup_flags: ResourceLookupFlags): GLib.Bytes; + open_stream(path: string, lookup_flags: ResourceLookupFlags): InputStream; + ref(): Resource; + unref(): void; + static load(filename: string): Resource; +} +export class SettingsBackendPrivate { + constructor(copy: SettingsBackendPrivate); +} +export class SettingsPrivate { + constructor(copy: SettingsPrivate); +} +export class SettingsSchema { + constructor(copy: SettingsSchema); + // Members + get_id(): string; + get_key(name: string): SettingsSchemaKey; + get_path(): string; + has_key(name: string): boolean; + list_children(): string[]; + list_keys(): string[]; + ref(): SettingsSchema; + unref(): void; +} +export class SettingsSchemaKey { + constructor(copy: SettingsSchemaKey); + // Members + get_default_value(): GLib.Variant; + get_description(): string; + get_name(): string; + get_range(): GLib.Variant; + get_summary(): string; + get_value_type(): GLib.VariantType; + range_check(value: GLib.Variant): boolean; + ref(): SettingsSchemaKey; + unref(): void; +} +export class SettingsSchemaSource { + constructor(directory: string, parent: SettingsSchemaSource | null, trusted: boolean); + constructor(copy: SettingsSchemaSource); + // Constructors + static new_from_directory(directory: string, parent: SettingsSchemaSource | null, trusted: boolean): SettingsSchemaSource; + // Members + list_schemas(recursive: boolean): [string[], string[]]; + lookup(schema_id: string, recursive: boolean): SettingsSchema | null; + ref(): SettingsSchemaSource; + unref(): void; + static get_default(): SettingsSchemaSource | null; +} +export class SimpleActionGroupPrivate { + constructor(copy: SimpleActionGroupPrivate); +} +export class SimpleProxyResolverPrivate { + constructor(copy: SimpleProxyResolverPrivate); +} +export class SocketClientPrivate { + constructor(copy: SocketClientPrivate); +} +export class SocketConnectionPrivate { + constructor(copy: SocketConnectionPrivate); +} +export class SocketControlMessagePrivate { + constructor(copy: SocketControlMessagePrivate); +} +export class SocketListenerPrivate { + constructor(copy: SocketListenerPrivate); +} +export class SocketPrivate { + constructor(copy: SocketPrivate); +} +export class SocketServicePrivate { + constructor(copy: SocketServicePrivate); +} +export class SrvTarget { + constructor(hostname: string, port: number, priority: number, weight: number); + constructor(copy: SrvTarget); + // Constructors + static ["new"](hostname: string, port: number, priority: number, weight: number): SrvTarget; + // Members + copy(): SrvTarget; + free(): void; + get_hostname(): string; + get_port(): number; + get_priority(): number; + get_weight(): number; +} +export class StaticResource { + constructor(copy: StaticResource); + // Fields + data: number; + data_len: number; + resource: Resource; + next: StaticResource; + padding: any; + // Members + fini(): void; + get_resource(): Resource; + init(): void; +} +export class TcpConnectionPrivate { + constructor(copy: TcpConnectionPrivate); +} +export class TcpWrapperConnectionPrivate { + constructor(copy: TcpWrapperConnectionPrivate); +} +export class ThreadedSocketServicePrivate { + constructor(copy: ThreadedSocketServicePrivate); +} +export class TlsCertificatePrivate { + constructor(copy: TlsCertificatePrivate); +} +export class TlsConnectionPrivate { + constructor(copy: TlsConnectionPrivate); +} +export class TlsDatabasePrivate { + constructor(copy: TlsDatabasePrivate); +} +export class TlsInteractionPrivate { + constructor(copy: TlsInteractionPrivate); +} +export class TlsPasswordPrivate { + constructor(copy: TlsPasswordPrivate); +} +export class UnixConnectionPrivate { + constructor(copy: UnixConnectionPrivate); +} +export class UnixCredentialsMessagePrivate { + constructor(copy: UnixCredentialsMessagePrivate); +} +export class UnixFDListPrivate { + constructor(copy: UnixFDListPrivate); +} +export class UnixFDMessagePrivate { + constructor(copy: UnixFDMessagePrivate); +} +export class UnixInputStreamPrivate { + constructor(copy: UnixInputStreamPrivate); +} +export class UnixMountEntry { + constructor(copy: UnixMountEntry); +} +export class UnixMountPoint { + constructor(copy: UnixMountPoint); + // Members + compare(mount2: UnixMountPoint): number; + copy(): UnixMountPoint; + free(): void; + get_device_path(): string; + get_fs_type(): string; + get_mount_path(): string; + get_options(): string; + guess_can_eject(): boolean; + guess_icon(): Icon; + guess_name(): string; + guess_symbolic_icon(): Icon; + is_loopback(): boolean; + is_readonly(): boolean; + is_user_mountable(): boolean; +} +export class UnixOutputStreamPrivate { + constructor(copy: UnixOutputStreamPrivate); +} +export class UnixSocketAddressPrivate { + constructor(copy: UnixSocketAddressPrivate); +} +export interface ActionNamespace { + name_is_valid(action_name: string): boolean; + parse_detailed_name(detailed_name: string): [boolean, string, GLib.Variant]; + print_detailed_name(action_name: string, target_value: GLib.Variant | null): string; +} +export interface Action { + // Properties + enabled: boolean; + name: string; + parameter_type: GLib.VariantType; + state: GLib.Variant; + state_type: GLib.VariantType; + // Members + activate(parameter: GLib.Variant | null): void; + change_state(value: GLib.Variant): void; + get_enabled(): boolean; + get_name(): string; + get_parameter_type(): GLib.VariantType | null; + get_state(): GLib.Variant; + get_state_hint(): GLib.Variant | null; + get_state_type(): GLib.VariantType | null; + vfunc_activate(parameter: GLib.Variant | null): void; + vfunc_change_state(value: GLib.Variant): void; + vfunc_get_enabled(): boolean; + vfunc_get_name(): string; + vfunc_get_parameter_type(): GLib.VariantType | null; + vfunc_get_state(): GLib.Variant; + vfunc_get_state_hint(): GLib.Variant | null; + vfunc_get_state_type(): GLib.VariantType | null; +} + +export const Action: ActionNamespace; +export interface ActionGroup { + // Members + action_added(action_name: string): void; + action_enabled_changed(action_name: string, enabled: boolean): void; + action_removed(action_name: string): void; + action_state_changed(action_name: string, state: GLib.Variant): void; + activate_action(action_name: string, parameter: GLib.Variant | null): void; + change_action_state(action_name: string, value: GLib.Variant): void; + get_action_enabled(action_name: string): boolean; + get_action_parameter_type(action_name: string): GLib.VariantType | null; + get_action_state(action_name: string): GLib.Variant | null; + get_action_state_hint(action_name: string): GLib.Variant | null; + get_action_state_type(action_name: string): GLib.VariantType | null; + has_action(action_name: string): boolean; + list_actions(): string[]; + query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + vfunc_action_added(action_name: string): void; + vfunc_action_enabled_changed(action_name: string, enabled: boolean): void; + vfunc_action_removed(action_name: string): void; + vfunc_action_state_changed(action_name: string, state: GLib.Variant): void; + vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void; + vfunc_change_action_state(action_name: string, value: GLib.Variant): void; + vfunc_get_action_enabled(action_name: string): boolean; + vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null; + vfunc_get_action_state(action_name: string): GLib.Variant | null; + vfunc_get_action_state_hint(action_name: string): GLib.Variant | null; + vfunc_get_action_state_type(action_name: string): GLib.VariantType | null; + vfunc_has_action(action_name: string): boolean; + vfunc_list_actions(): string[]; + vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; +} +export interface ActionMap { + // Members + add_action(action: Action): void; + add_action_entries(entries: ActionEntry[]): void; + lookup_action(action_name: string): Action; + remove_action(action_name: string): void; + vfunc_add_action(action: Action): void; + vfunc_lookup_action(action_name: string): Action; + vfunc_remove_action(action_name: string): void; +} +export interface AppInfoNamespace { + create_from_commandline(commandline: string, application_name: string | null, flags: AppInfoCreateFlags): AppInfo; + get_all(): GLib.List; + get_all_for_type(content_type: string): GLib.List; + get_default_for_type(content_type: string, must_support_uris: boolean): AppInfo; + get_default_for_uri_scheme(uri_scheme: string): AppInfo; + get_fallback_for_type(content_type: string): GLib.List; + get_recommended_for_type(content_type: string): GLib.List; + launch_default_for_uri(uri: string, context: AppLaunchContext | null): boolean; + launch_default_for_uri_async(uri: string, context: AppLaunchContext | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + launch_default_for_uri_finish(result: AsyncResult): boolean; + reset_type_associations(content_type: string): void; +} +export interface AppInfo { + // Members + add_supports_type(content_type: string): boolean; + can_delete(): boolean; + can_remove_supports_type(): boolean; + ["delete"](): boolean; + dup(): AppInfo; + equal(appinfo2: AppInfo): boolean; + get_commandline(): string; + get_description(): string; + get_display_name(): string; + get_executable(): string; + get_icon(): Icon; + get_id(): string; + get_name(): string; + get_supported_types(): string[]; + launch(files: GLib.List | null, context: AppLaunchContext | null): boolean; + launch_uris(uris: GLib.List | null, context: AppLaunchContext | null): boolean; + launch_uris_async(uris: GLib.List | null, context: AppLaunchContext | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + launch_uris_finish(result: AsyncResult): boolean; + remove_supports_type(content_type: string): boolean; + set_as_default_for_extension(extension: string): boolean; + set_as_default_for_type(content_type: string): boolean; + set_as_last_used_for_type(content_type: string): boolean; + should_show(): boolean; + supports_files(): boolean; + supports_uris(): boolean; + vfunc_add_supports_type(content_type: string): boolean; + vfunc_can_delete(): boolean; + vfunc_can_remove_supports_type(): boolean; + vfunc_do_delete(): boolean; + vfunc_dup(): this; + vfunc_equal(appinfo2: AppInfo): boolean; + vfunc_get_commandline(): string; + vfunc_get_description(): string; + vfunc_get_display_name(): string; + vfunc_get_executable(): string; + vfunc_get_icon(): Icon; + vfunc_get_id(): string; + vfunc_get_name(): string; + vfunc_get_supported_types(): string[]; + vfunc_launch(files: GLib.List | null, context: AppLaunchContext | null): boolean; + vfunc_launch_uris(uris: GLib.List | null, context: AppLaunchContext | null): boolean; + vfunc_launch_uris_async(uris: GLib.List | null, context: AppLaunchContext | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_launch_uris_finish(result: AsyncResult): boolean; + vfunc_remove_supports_type(content_type: string): boolean; + vfunc_set_as_default_for_extension(extension: string): boolean; + vfunc_set_as_default_for_type(content_type: string): boolean; + vfunc_set_as_last_used_for_type(content_type: string): boolean; + vfunc_should_show(): boolean; + vfunc_supports_files(): boolean; + vfunc_supports_uris(): boolean; +} + +export const AppInfo: AppInfoNamespace; +export interface AsyncInitableNamespace { + newv_async(object_type: GType, n_parameters: number, parameters: GObject.Parameter, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; +} +export interface AsyncInitable { + // Members + init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + init_finish(res: AsyncResult): boolean; + new_finish(res: AsyncResult): GObject.Object; + vfunc_init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_init_finish(res: AsyncResult): boolean; +} + +export const AsyncInitable: AsyncInitableNamespace; +export interface AsyncResult { + // Members + get_source_object(): GObject.Object | null; + get_user_data(): any | null; + is_tagged(source_tag: any | null): boolean; + legacy_propagate_error(): boolean; + vfunc_get_source_object(): GObject.Object | null; + vfunc_get_user_data(): any | null; + vfunc_is_tagged(source_tag: any | null): boolean; +} +export interface Converter { + // Members + convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + reset(): void; + vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_reset(): void; +} +export interface DBusInterface { + // Members + dup_object(): DBusObject; + get_info(): DBusInterfaceInfo; + set_object(object: DBusObject | null): void; + vfunc_dup_object(): DBusObject; + vfunc_get_info(): DBusInterfaceInfo; + vfunc_set_object(object: DBusObject | null): void; +} +export interface DBusObject { + // Members + get_interface(interface_name: string): DBusInterface; + get_interfaces(): GLib.List; + get_object_path(): string; + vfunc_get_interface(interface_name: string): DBusInterface; + vfunc_get_interfaces(): GLib.List; + vfunc_get_object_path(): string; + vfunc_interface_added(interface_: DBusInterface): void; + vfunc_interface_removed(interface_: DBusInterface): void; +} +export interface DBusObjectManager { + // Members + get_interface(object_path: string, interface_name: string): DBusInterface; + get_object(object_path: string): DBusObject; + get_object_path(): string; + get_objects(): GLib.List; + vfunc_get_interface(object_path: string, interface_name: string): DBusInterface; + vfunc_get_object(object_path: string): DBusObject; + vfunc_get_object_path(): string; + vfunc_get_objects(): GLib.List; + vfunc_interface_added(object: DBusObject, interface_: DBusInterface): void; + vfunc_interface_removed(object: DBusObject, interface_: DBusInterface): void; + vfunc_object_added(object: DBusObject): void; + vfunc_object_removed(object: DBusObject): void; +} +export interface DatagramBased { + // Members + condition_check(condition: GLib.IOCondition): GLib.IOCondition; + condition_wait(condition: GLib.IOCondition, timeout: number, cancellable: Cancellable | null): boolean; + create_source(condition: GLib.IOCondition, cancellable: Cancellable | null): GLib.Source; + receive_messages(messages: InputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; + send_messages(messages: OutputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; + vfunc_condition_check(condition: GLib.IOCondition): GLib.IOCondition; + vfunc_condition_wait(condition: GLib.IOCondition, timeout: number, cancellable: Cancellable | null): boolean; + vfunc_create_source(condition: GLib.IOCondition, cancellable: Cancellable | null): GLib.Source; + vfunc_receive_messages(messages: InputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; + vfunc_send_messages(messages: OutputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; +} +export interface DesktopAppInfoLookup { + // Members + get_default_for_uri_scheme(uri_scheme: string): AppInfo; + vfunc_get_default_for_uri_scheme(uri_scheme: string): AppInfo; +} +export interface Drive { + // Members + can_eject(): boolean; + can_poll_for_media(): boolean; + can_start(): boolean; + can_start_degraded(): boolean; + can_stop(): boolean; + eject(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_finish(result: AsyncResult): boolean; + eject_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_with_operation_finish(result: AsyncResult): boolean; + enumerate_identifiers(): string[]; + get_icon(): Icon; + get_identifier(kind: string): string | null; + get_name(): string; + get_sort_key(): string | null; + get_start_stop_type(): DriveStartStopType; + get_symbolic_icon(): Icon; + get_volumes(): GLib.List; + has_media(): boolean; + has_volumes(): boolean; + is_media_check_automatic(): boolean; + is_media_removable(): boolean; + is_removable(): boolean; + poll_for_media(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + poll_for_media_finish(result: AsyncResult): boolean; + start(flags: DriveStartFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + start_finish(result: AsyncResult): boolean; + stop(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + stop_finish(result: AsyncResult): boolean; + vfunc_can_eject(): boolean; + vfunc_can_poll_for_media(): boolean; + vfunc_can_start(): boolean; + vfunc_can_start_degraded(): boolean; + vfunc_can_stop(): boolean; + vfunc_changed(): void; + vfunc_disconnected(): void; + vfunc_eject(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_button(): void; + vfunc_eject_finish(result: AsyncResult): boolean; + vfunc_eject_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_with_operation_finish(result: AsyncResult): boolean; + vfunc_enumerate_identifiers(): string[]; + vfunc_get_icon(): Icon; + vfunc_get_identifier(kind: string): string | null; + vfunc_get_name(): string; + vfunc_get_sort_key(): string | null; + vfunc_get_start_stop_type(): DriveStartStopType; + vfunc_get_symbolic_icon(): Icon; + vfunc_get_volumes(): GLib.List; + vfunc_has_media(): boolean; + vfunc_has_volumes(): boolean; + vfunc_is_media_check_automatic(): boolean; + vfunc_is_media_removable(): boolean; + vfunc_is_removable(): boolean; + vfunc_poll_for_media(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_poll_for_media_finish(result: AsyncResult): boolean; + vfunc_start(flags: DriveStartFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_start_finish(result: AsyncResult): boolean; + vfunc_stop(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_stop_button(): void; + vfunc_stop_finish(result: AsyncResult): boolean; +} +export interface DtlsClientConnectionNamespace { + ["new"](base_socket: DatagramBased, server_identity: SocketConnectable | null): DtlsClientConnection; +} +export interface DtlsClientConnection { + // Properties + accepted_cas: GLib.List; + server_identity: SocketConnectable; + validation_flags: TlsCertificateFlags; + // Members + get_accepted_cas(): GLib.List; + get_server_identity(): SocketConnectable; + get_validation_flags(): TlsCertificateFlags; + set_server_identity(identity: SocketConnectable): void; + set_validation_flags(flags: TlsCertificateFlags): void; +} + +export const DtlsClientConnection: DtlsClientConnectionNamespace; +export interface DtlsConnection { +} +export interface DtlsServerConnectionNamespace { + ["new"](base_socket: DatagramBased, certificate: TlsCertificate | null): DtlsServerConnection; +} +export interface DtlsServerConnection { + // Properties + authentication_mode: TlsAuthenticationMode; +} + +export const DtlsServerConnection: DtlsServerConnectionNamespace; +export interface FileNamespace { + new_for_commandline_arg(arg: string): File; + new_for_commandline_arg_and_cwd(arg: string, cwd: string): File; + new_for_path(path: string): File; + new_for_uri(uri: string): File; + new_tmp(tmpl: string | null): [File, FileIOStream]; + parse_name(parse_name: string): File; +} +export interface File { + // Members + append_to(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; + append_to_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + append_to_finish(res: AsyncResult): FileOutputStream; + copy(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; + copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null, callback: AsyncReadyCallback | null): void; + copy_attributes(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null): boolean; + copy_finish(res: AsyncResult): boolean; + create(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; + create_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + create_finish(res: AsyncResult): FileOutputStream; + create_readwrite(flags: FileCreateFlags, cancellable: Cancellable | null): FileIOStream; + create_readwrite_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + create_readwrite_finish(res: AsyncResult): FileIOStream; + ["delete"](cancellable: Cancellable | null): boolean; + delete_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + delete_finish(result: AsyncResult): boolean; + dup(): File; + eject_mountable(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_mountable_finish(result: AsyncResult): boolean; + eject_mountable_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_mountable_with_operation_finish(result: AsyncResult): boolean; + enumerate_children(attributes: string, flags: FileQueryInfoFlags, cancellable: Cancellable | null): FileEnumerator; + enumerate_children_async(attributes: string, flags: FileQueryInfoFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + enumerate_children_finish(res: AsyncResult): FileEnumerator; + equal(file2: File): boolean; + find_enclosing_mount(cancellable: Cancellable | null): Mount; + find_enclosing_mount_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + find_enclosing_mount_finish(res: AsyncResult): Mount; + get_basename(): string | null; + get_child(name: string): File; + get_child_for_display_name(display_name: string): File; + get_parent(): File | null; + get_parse_name(): string; + get_path(): string | null; + get_relative_path(descendant: File): string | null; + get_uri(): string; + get_uri_scheme(): string; + has_parent(parent: File | null): boolean; + has_prefix(prefix: File): boolean; + has_uri_scheme(uri_scheme: string): boolean; + hash(): number; + is_native(): boolean; + load_bytes(cancellable: Cancellable | null): [GLib.Bytes, string | null]; + load_bytes_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + load_bytes_finish(result: AsyncResult): [GLib.Bytes, string | null]; + load_contents(cancellable: Cancellable | null): [boolean, number[], string | null]; + load_contents_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + load_contents_finish(res: AsyncResult): [boolean, number[], string | null]; + load_partial_contents_finish(res: AsyncResult): [boolean, number[], string | null]; + make_directory(cancellable: Cancellable | null): boolean; + make_directory_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + make_directory_finish(result: AsyncResult): boolean; + make_directory_with_parents(cancellable: Cancellable | null): boolean; + make_symbolic_link(symlink_value: string, cancellable: Cancellable | null): boolean; + measure_disk_usage_finish(result: AsyncResult): [boolean, number | null, number | null, number | null]; + monitor(flags: FileMonitorFlags, cancellable: Cancellable | null): FileMonitor; + monitor_directory(flags: FileMonitorFlags, cancellable: Cancellable | null): FileMonitor; + monitor_file(flags: FileMonitorFlags, cancellable: Cancellable | null): FileMonitor; + mount_enclosing_volume(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + mount_enclosing_volume_finish(result: AsyncResult): boolean; + mount_mountable(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + mount_mountable_finish(result: AsyncResult): File; + move(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; + open_readwrite(cancellable: Cancellable | null): FileIOStream; + open_readwrite_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + open_readwrite_finish(res: AsyncResult): FileIOStream; + peek_path(): string | null; + poll_mountable(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + poll_mountable_finish(result: AsyncResult): boolean; + query_default_handler(cancellable: Cancellable | null): AppInfo; + query_default_handler_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + query_default_handler_finish(result: AsyncResult): AppInfo; + query_exists(cancellable: Cancellable | null): boolean; + query_file_type(flags: FileQueryInfoFlags, cancellable: Cancellable | null): FileType; + query_filesystem_info(attributes: string, cancellable: Cancellable | null): FileInfo; + query_filesystem_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + query_filesystem_info_finish(res: AsyncResult): FileInfo; + query_info(attributes: string, flags: FileQueryInfoFlags, cancellable: Cancellable | null): FileInfo; + query_info_async(attributes: string, flags: FileQueryInfoFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + query_info_finish(res: AsyncResult): FileInfo; + query_settable_attributes(cancellable: Cancellable | null): FileAttributeInfoList; + query_writable_namespaces(cancellable: Cancellable | null): FileAttributeInfoList; + read(cancellable: Cancellable | null): FileInputStream; + read_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_finish(res: AsyncResult): FileInputStream; + replace(etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; + replace_async(etag: string | null, make_backup: boolean, flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + replace_contents(contents: number[], etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): [boolean, string | null]; + replace_contents_async(contents: number[], etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + replace_contents_bytes_async(contents: GLib.Bytes, etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + replace_contents_finish(res: AsyncResult): [boolean, string | null]; + replace_finish(res: AsyncResult): FileOutputStream; + replace_readwrite(etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): FileIOStream; + replace_readwrite_async(etag: string | null, make_backup: boolean, flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + replace_readwrite_finish(res: AsyncResult): FileIOStream; + resolve_relative_path(relative_path: string): File; + set_attribute(attribute: string, type: FileAttributeType, value_p: any | null, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_attribute_byte_string(attribute: string, value: string, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_attribute_int32(attribute: string, value: number, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_attribute_int64(attribute: string, value: number, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_attribute_string(attribute: string, value: string, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_attribute_uint32(attribute: string, value: number, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_attribute_uint64(attribute: string, value: number, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_attributes_async(info: FileInfo, flags: FileQueryInfoFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + set_attributes_finish(result: AsyncResult): [boolean, FileInfo]; + set_attributes_from_info(info: FileInfo, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + set_display_name(display_name: string, cancellable: Cancellable | null): File; + set_display_name_async(display_name: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + set_display_name_finish(res: AsyncResult): File; + start_mountable(flags: DriveStartFlags, start_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + start_mountable_finish(result: AsyncResult): boolean; + stop_mountable(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + stop_mountable_finish(result: AsyncResult): boolean; + supports_thread_contexts(): boolean; + trash(cancellable: Cancellable | null): boolean; + trash_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + trash_finish(result: AsyncResult): boolean; + unmount_mountable(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + unmount_mountable_finish(result: AsyncResult): boolean; + unmount_mountable_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + unmount_mountable_with_operation_finish(result: AsyncResult): boolean; + vfunc_append_to(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; + vfunc_append_to_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_append_to_finish(res: AsyncResult): FileOutputStream; + vfunc_copy(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; + vfunc_copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null, callback: AsyncReadyCallback | null): void; + vfunc_copy_finish(res: AsyncResult): boolean; + vfunc_create(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; + vfunc_create_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_create_finish(res: AsyncResult): FileOutputStream; + vfunc_create_readwrite(flags: FileCreateFlags, cancellable: Cancellable | null): FileIOStream; + vfunc_create_readwrite_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_create_readwrite_finish(res: AsyncResult): FileIOStream; + vfunc_delete_file(cancellable: Cancellable | null): boolean; + vfunc_delete_file_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_delete_file_finish(result: AsyncResult): boolean; + vfunc_dup(): this; + vfunc_eject_mountable(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_mountable_finish(result: AsyncResult): boolean; + vfunc_eject_mountable_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_mountable_with_operation_finish(result: AsyncResult): boolean; + vfunc_enumerate_children(attributes: string, flags: FileQueryInfoFlags, cancellable: Cancellable | null): FileEnumerator; + vfunc_enumerate_children_async(attributes: string, flags: FileQueryInfoFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_enumerate_children_finish(res: AsyncResult): FileEnumerator; + vfunc_equal(file2: File): boolean; + vfunc_find_enclosing_mount(cancellable: Cancellable | null): Mount; + vfunc_find_enclosing_mount_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_find_enclosing_mount_finish(res: AsyncResult): Mount; + vfunc_get_basename(): string; + vfunc_get_child_for_display_name(display_name: string): this; + vfunc_get_parent(): this; + vfunc_get_parse_name(): string; + vfunc_get_path(): string; + vfunc_get_relative_path(descendant: File): string; + vfunc_get_uri(): string; + vfunc_get_uri_scheme(): string; + vfunc_has_uri_scheme(uri_scheme: string): boolean; + vfunc_hash(): number; + vfunc_is_native(): boolean; + vfunc_make_directory(cancellable: Cancellable | null): boolean; + vfunc_make_directory_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_make_directory_finish(result: AsyncResult): boolean; + vfunc_make_symbolic_link(symlink_value: string, cancellable: Cancellable | null): boolean; + vfunc_measure_disk_usage_finish(result: AsyncResult): [boolean, number | null, number | null, number | null]; + vfunc_monitor_dir(flags: FileMonitorFlags, cancellable: Cancellable | null): FileMonitor; + vfunc_monitor_file(flags: FileMonitorFlags, cancellable: Cancellable | null): FileMonitor; + vfunc_mount_enclosing_volume(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_mount_enclosing_volume_finish(result: AsyncResult): boolean; + vfunc_mount_mountable(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_mount_mountable_finish(result: AsyncResult): this; + vfunc_move(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; + vfunc_open_readwrite(cancellable: Cancellable | null): FileIOStream; + vfunc_open_readwrite_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_open_readwrite_finish(res: AsyncResult): FileIOStream; + vfunc_poll_mountable(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_poll_mountable_finish(result: AsyncResult): boolean; + vfunc_prefix_matches(file: File): boolean; + vfunc_query_filesystem_info(attributes: string, cancellable: Cancellable | null): FileInfo; + vfunc_query_filesystem_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_query_filesystem_info_finish(res: AsyncResult): FileInfo; + vfunc_query_info(attributes: string, flags: FileQueryInfoFlags, cancellable: Cancellable | null): FileInfo; + vfunc_query_info_async(attributes: string, flags: FileQueryInfoFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_query_info_finish(res: AsyncResult): FileInfo; + vfunc_query_settable_attributes(cancellable: Cancellable | null): FileAttributeInfoList; + vfunc_query_writable_namespaces(cancellable: Cancellable | null): FileAttributeInfoList; + vfunc_read_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_read_finish(res: AsyncResult): FileInputStream; + vfunc_read_fn(cancellable: Cancellable | null): FileInputStream; + vfunc_replace(etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; + vfunc_replace_async(etag: string | null, make_backup: boolean, flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_replace_finish(res: AsyncResult): FileOutputStream; + vfunc_replace_readwrite(etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): FileIOStream; + vfunc_replace_readwrite_async(etag: string | null, make_backup: boolean, flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_replace_readwrite_finish(res: AsyncResult): FileIOStream; + vfunc_resolve_relative_path(relative_path: string): this; + vfunc_set_attribute(attribute: string, type: FileAttributeType, value_p: any | null, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + vfunc_set_attributes_async(info: FileInfo, flags: FileQueryInfoFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_set_attributes_finish(result: AsyncResult): [boolean, FileInfo]; + vfunc_set_attributes_from_info(info: FileInfo, flags: FileQueryInfoFlags, cancellable: Cancellable | null): boolean; + vfunc_set_display_name(display_name: string, cancellable: Cancellable | null): this; + vfunc_set_display_name_async(display_name: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_set_display_name_finish(res: AsyncResult): this; + vfunc_start_mountable(flags: DriveStartFlags, start_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_start_mountable_finish(result: AsyncResult): boolean; + vfunc_stop_mountable(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_stop_mountable_finish(result: AsyncResult): boolean; + vfunc_trash(cancellable: Cancellable | null): boolean; + vfunc_trash_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_trash_finish(result: AsyncResult): boolean; + vfunc_unmount_mountable(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_unmount_mountable_finish(result: AsyncResult): boolean; + vfunc_unmount_mountable_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_unmount_mountable_with_operation_finish(result: AsyncResult): boolean; +} + +export const File: FileNamespace; +export interface FileDescriptorBased { + // Members + get_fd(): number; + vfunc_get_fd(): number; +} +export interface IconNamespace { + deserialize(value: GLib.Variant): Icon; + hash(icon: any): number; + new_for_string(str: string): Icon; +} +export interface Icon { + // Members + equal(icon2: Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; +} + +export const Icon: IconNamespace; +export interface Initable { + // Members + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; +} +export interface ListModel { + // Members + get_item_type(): GType; + get_n_items(): number; + get_object(position: number): GObject.Object | null; + items_changed(position: number, removed: number, added: number): void; + vfunc_get_item(position: number): GObject.Object | null; + vfunc_get_item_type(): GType; + vfunc_get_n_items(): number; +} +export interface LoadableIcon { + // Members + load(size: number, cancellable: Cancellable | null): [InputStream, string | null]; + load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + load_finish(res: AsyncResult): [InputStream, string | null]; + vfunc_load(size: number, cancellable: Cancellable | null): [InputStream, string | null]; + vfunc_load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_load_finish(res: AsyncResult): [InputStream, string | null]; +} +export interface Mount { + // Members + can_eject(): boolean; + can_unmount(): boolean; + eject(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_finish(result: AsyncResult): boolean; + eject_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_with_operation_finish(result: AsyncResult): boolean; + get_default_location(): File; + get_drive(): Drive | null; + get_icon(): Icon; + get_name(): string; + get_root(): File; + get_sort_key(): string | null; + get_symbolic_icon(): Icon; + get_uuid(): string | null; + get_volume(): Volume | null; + guess_content_type(force_rescan: boolean, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + guess_content_type_finish(result: AsyncResult): string[]; + guess_content_type_sync(force_rescan: boolean, cancellable: Cancellable | null): string[]; + is_shadowed(): boolean; + remount(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + remount_finish(result: AsyncResult): boolean; + shadow(): void; + unmount(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + unmount_finish(result: AsyncResult): boolean; + unmount_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + unmount_with_operation_finish(result: AsyncResult): boolean; + unshadow(): void; + vfunc_can_eject(): boolean; + vfunc_can_unmount(): boolean; + vfunc_changed(): void; + vfunc_eject(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_finish(result: AsyncResult): boolean; + vfunc_eject_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_with_operation_finish(result: AsyncResult): boolean; + vfunc_get_default_location(): File; + vfunc_get_drive(): Drive | null; + vfunc_get_icon(): Icon; + vfunc_get_name(): string; + vfunc_get_root(): File; + vfunc_get_sort_key(): string | null; + vfunc_get_symbolic_icon(): Icon; + vfunc_get_uuid(): string | null; + vfunc_get_volume(): Volume | null; + vfunc_guess_content_type(force_rescan: boolean, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_guess_content_type_finish(result: AsyncResult): string[]; + vfunc_guess_content_type_sync(force_rescan: boolean, cancellable: Cancellable | null): string[]; + vfunc_pre_unmount(): void; + vfunc_remount(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_remount_finish(result: AsyncResult): boolean; + vfunc_unmount(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_unmount_finish(result: AsyncResult): boolean; + vfunc_unmount_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_unmount_with_operation_finish(result: AsyncResult): boolean; + vfunc_unmounted(): void; +} +export interface NetworkMonitorNamespace { + get_default(): NetworkMonitor; +} +export interface NetworkMonitor { + // Properties + connectivity: NetworkConnectivity; + network_available: boolean; + network_metered: boolean; + // Members + can_reach(connectable: SocketConnectable, cancellable: Cancellable | null): boolean; + can_reach_async(connectable: SocketConnectable, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + can_reach_finish(result: AsyncResult): boolean; + get_connectivity(): NetworkConnectivity; + get_network_available(): boolean; + get_network_metered(): boolean; + vfunc_can_reach(connectable: SocketConnectable, cancellable: Cancellable | null): boolean; + vfunc_can_reach_async(connectable: SocketConnectable, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_can_reach_finish(result: AsyncResult): boolean; + vfunc_network_changed(network_available: boolean): void; +} + +export const NetworkMonitor: NetworkMonitorNamespace; +export interface PollableInputStream { + // Members + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_readable(): boolean; + read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_readable(): boolean; + vfunc_read_nonblocking(buffer: number[] | null): number; +} +export interface PollableOutputStream { + // Members + can_poll(): boolean; + create_source(cancellable: Cancellable | null): GLib.Source; + is_writable(): boolean; + write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; + vfunc_can_poll(): boolean; + vfunc_create_source(cancellable: Cancellable | null): GLib.Source; + vfunc_is_writable(): boolean; + vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; +} +export interface ProxyNamespace { + get_default_for_protocol(protocol: string): Proxy; +} +export interface Proxy { + // Members + connect(connection: IOStream, proxy_address: ProxyAddress, cancellable: Cancellable | null): IOStream; + connect_async(connection: IOStream, proxy_address: ProxyAddress, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + connect_finish(result: AsyncResult): IOStream; + supports_hostname(): boolean; + vfunc_connect(connection: IOStream, proxy_address: ProxyAddress, cancellable: Cancellable | null): IOStream; + vfunc_connect_async(connection: IOStream, proxy_address: ProxyAddress, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_connect_finish(result: AsyncResult): IOStream; + vfunc_supports_hostname(): boolean; +} + +export const Proxy: ProxyNamespace; +export interface ProxyResolverNamespace { + get_default(): ProxyResolver; +} +export interface ProxyResolver { + // Members + is_supported(): boolean; + lookup(uri: string, cancellable: Cancellable | null): string[]; + lookup_async(uri: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_finish(result: AsyncResult): string[]; + vfunc_is_supported(): boolean; + vfunc_lookup(uri: string, cancellable: Cancellable | null): string[]; + vfunc_lookup_async(uri: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_finish(result: AsyncResult): string[]; +} + +export const ProxyResolver: ProxyResolverNamespace; +export interface RemoteActionGroup { + // Members + activate_action_full(action_name: string, parameter: GLib.Variant | null, platform_data: GLib.Variant): void; + change_action_state_full(action_name: string, value: GLib.Variant, platform_data: GLib.Variant): void; + vfunc_activate_action_full(action_name: string, parameter: GLib.Variant | null, platform_data: GLib.Variant): void; + vfunc_change_action_state_full(action_name: string, value: GLib.Variant, platform_data: GLib.Variant): void; +} +export interface Seekable { + // Members + can_seek(): boolean; + can_truncate(): boolean; + seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + tell(): number; + truncate(offset: number, cancellable: Cancellable | null): boolean; + vfunc_can_seek(): boolean; + vfunc_can_truncate(): boolean; + vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; + vfunc_tell(): number; + vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; +} +export interface SocketConnectable { + // Members + enumerate(): SocketAddressEnumerator; + proxy_enumerate(): SocketAddressEnumerator; + to_string(): string; + vfunc_enumerate(): SocketAddressEnumerator; + vfunc_proxy_enumerate(): SocketAddressEnumerator; + vfunc_to_string(): string; +} +export interface TlsBackendNamespace { + get_default(): TlsBackend; +} +export interface TlsBackend { + // Members + get_certificate_type(): GType; + get_client_connection_type(): GType; + get_default_database(): TlsDatabase; + get_dtls_client_connection_type(): GType; + get_dtls_server_connection_type(): GType; + get_file_database_type(): GType; + get_server_connection_type(): GType; + set_default_database(database: TlsDatabase | null): void; + supports_dtls(): boolean; + supports_tls(): boolean; + vfunc_get_default_database(): TlsDatabase; + vfunc_supports_dtls(): boolean; + vfunc_supports_tls(): boolean; +} + +export const TlsBackend: TlsBackendNamespace; +export interface TlsClientConnectionNamespace { + ["new"](base_io_stream: IOStream, server_identity: SocketConnectable | null): TlsClientConnection; +} +export interface TlsClientConnection { + // Properties + accepted_cas: GLib.List; + server_identity: SocketConnectable; + use_ssl3: boolean; + validation_flags: TlsCertificateFlags; + // Members + copy_session_state(source: TlsClientConnection): void; + get_accepted_cas(): GLib.List; + get_server_identity(): SocketConnectable; + get_use_ssl3(): boolean; + get_validation_flags(): TlsCertificateFlags; + set_server_identity(identity: SocketConnectable): void; + set_use_ssl3(use_ssl3: boolean): void; + set_validation_flags(flags: TlsCertificateFlags): void; + vfunc_copy_session_state(source: TlsClientConnection): void; +} + +export const TlsClientConnection: TlsClientConnectionNamespace; +export interface TlsFileDatabaseNamespace { + ["new"](anchors: string): TlsFileDatabase; +} +export interface TlsFileDatabase { + // Properties + anchors: string; +} + +export const TlsFileDatabase: TlsFileDatabaseNamespace; +export interface TlsServerConnectionNamespace { + ["new"](base_io_stream: IOStream, certificate: TlsCertificate | null): TlsServerConnection; +} +export interface TlsServerConnection { + // Properties + authentication_mode: TlsAuthenticationMode; +} + +export const TlsServerConnection: TlsServerConnectionNamespace; +export interface Volume { + // Members + can_eject(): boolean; + can_mount(): boolean; + eject(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_finish(result: AsyncResult): boolean; + eject_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + eject_with_operation_finish(result: AsyncResult): boolean; + enumerate_identifiers(): string[]; + get_activation_root(): File | null; + get_drive(): Drive | null; + get_icon(): Icon; + get_identifier(kind: string): string | null; + get_mount(): Mount | null; + get_name(): string; + get_sort_key(): string | null; + get_symbolic_icon(): Icon; + get_uuid(): string | null; + mount(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + mount_finish(result: AsyncResult): boolean; + should_automount(): boolean; + vfunc_can_eject(): boolean; + vfunc_can_mount(): boolean; + vfunc_changed(): void; + vfunc_eject(flags: MountUnmountFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_finish(result: AsyncResult): boolean; + vfunc_eject_with_operation(flags: MountUnmountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_eject_with_operation_finish(result: AsyncResult): boolean; + vfunc_enumerate_identifiers(): string[]; + vfunc_get_activation_root(): File | null; + vfunc_get_drive(): Drive | null; + vfunc_get_icon(): Icon; + vfunc_get_identifier(kind: string): string | null; + vfunc_get_mount(): Mount | null; + vfunc_get_name(): string; + vfunc_get_sort_key(): string | null; + vfunc_get_symbolic_icon(): Icon; + vfunc_get_uuid(): string | null; + vfunc_mount_finish(result: AsyncResult): boolean; + vfunc_mount_fn(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_removed(): void; + vfunc_should_automount(): boolean; +} +export interface SettingsSchema { + _realGetKey: typeof SettingsSchema.prototype.get_key; +} + +export interface Settings { + _realInit: Function; + _keys: string[]; + _children: string[]; + _realMethods: typeof Settings.prototype; +} + +export interface DBus { + readonly session: DBusConnection; + readonly system: DBusConnection; + + // Namespace some functions + get: typeof bus_get; + get_finish: typeof bus_get_finish; + get_sync: typeof bus_get_sync; + + own_name: typeof bus_own_name; + own_name_on_connection: typeof bus_own_name_on_connection; + unown_name: typeof bus_unown_name; + + watch_name: typeof bus_watch_name; + watch_name_on_connection: typeof bus_watch_name_on_connection; + unwatch_name: typeof bus_unwatch_name; +} + +export let DBus: DBus; + +export interface DBusConnection { + watch_name(name, flags, appeared, vanished): ReturnType; + unwatch_name(id): ReturnType; + own_name(name, flags, acquired, lost): ReturnType; + unown_name(id): ReturnType; +} + +export interface DBusProxy { + connectSignal(); + disconnectSignal(); +} + +export module DBusProxy { + function makeProxyWrapper(); +} + +export interface DBusExportedObject { + wrapJSObject(); +} + +export let DBusExportedObject: DBusExportedObject; + +export interface ListStore { + [Symbol.iterator]: () => IterableIterator; +} + +export function _promisify(); + +export let _LocalFilePrototype: File; diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/glib.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/glib.d.ts new file mode 100644 index 0000000..9257746 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/glib.d.ts @@ -0,0 +1,3578 @@ + + +/** + * GLib + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +type GType = object; + +export const ANALYZER_ANALYZING: number; + +export const ASCII_DTOSTR_BUF_SIZE: number; + +export const BIG_ENDIAN: number; + +export const CSET_A_2_Z: string; + +export const CSET_DIGITS: string; + +export const CSET_a_2_z: string; + +export const DATALIST_FLAGS_MASK: number; + +export const DATE_BAD_DAY: number; + +export const DATE_BAD_JULIAN: number; + +export const DATE_BAD_YEAR: number; + +export const DIR_SEPARATOR: number; + +export const DIR_SEPARATOR_S: string; + +export const E: number; + +export const GINT16_FORMAT: string; + +export const GINT16_MODIFIER: string; + +export const GINT32_FORMAT: string; + +export const GINT32_MODIFIER: string; + +export const GINT64_FORMAT: string; + +export const GINT64_MODIFIER: string; + +export const GINTPTR_FORMAT: string; + +export const GINTPTR_MODIFIER: string; + +export const GNUC_FUNCTION: string; + +export const GNUC_PRETTY_FUNCTION: string; + +export const GSIZE_FORMAT: string; + +export const GSIZE_MODIFIER: string; + +export const GSSIZE_FORMAT: string; + +export const GSSIZE_MODIFIER: string; + +export const GUINT16_FORMAT: string; + +export const GUINT32_FORMAT: string; + +export const GUINT64_FORMAT: string; + +export const GUINTPTR_FORMAT: string; + +export const HAVE_GINT64: number; + +export const HAVE_GNUC_VARARGS: number; + +export const HAVE_GNUC_VISIBILITY: number; + +export const HAVE_GROWING_STACK: number; + +export const HAVE_ISO_VARARGS: number; + +export const HOOK_FLAG_USER_SHIFT: number; + +export const IEEE754_DOUBLE_BIAS: number; + +export const IEEE754_FLOAT_BIAS: number; + +export const KEY_FILE_DESKTOP_GROUP: string; + +export const KEY_FILE_DESKTOP_KEY_ACTIONS: string; + +export const KEY_FILE_DESKTOP_KEY_CATEGORIES: string; + +export const KEY_FILE_DESKTOP_KEY_COMMENT: string; + +export const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string; + +export const KEY_FILE_DESKTOP_KEY_EXEC: string; + +export const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string; + +export const KEY_FILE_DESKTOP_KEY_HIDDEN: string; + +export const KEY_FILE_DESKTOP_KEY_ICON: string; + +export const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string; + +export const KEY_FILE_DESKTOP_KEY_NAME: string; + +export const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string; + +export const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string; + +export const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string; + +export const KEY_FILE_DESKTOP_KEY_PATH: string; + +export const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string; + +export const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string; + +export const KEY_FILE_DESKTOP_KEY_TERMINAL: string; + +export const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string; + +export const KEY_FILE_DESKTOP_KEY_TYPE: string; + +export const KEY_FILE_DESKTOP_KEY_URL: string; + +export const KEY_FILE_DESKTOP_KEY_VERSION: string; + +export const KEY_FILE_DESKTOP_TYPE_APPLICATION: string; + +export const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string; + +export const KEY_FILE_DESKTOP_TYPE_LINK: string; + +export const LITTLE_ENDIAN: number; + +export const LN10: number; + +export const LN2: number; + +export const LOG_2_BASE_10: number; + +export const LOG_DOMAIN: number; + +export const LOG_FATAL_MASK: number; + +export const LOG_LEVEL_USER_SHIFT: number; + +export const MAJOR_VERSION: number; + +export const MAXINT16: number; + +export const MAXINT32: number; + +export const MAXINT64: number; + +export const MAXINT8: number; + +export const MAXUINT16: number; + +export const MAXUINT32: number; + +export const MAXUINT64: number; + +export const MAXUINT8: number; + +export const MICRO_VERSION: number; + +export const MININT16: number; + +export const MININT32: number; + +export const MININT64: number; + +export const MININT8: number; + +export const MINOR_VERSION: number; + +export const MODULE_SUFFIX: string; + +export const OPTION_REMAINING: string; + +export const PDP_ENDIAN: number; + +export const PI: number; + +export const PID_FORMAT: string; + +export const PI_2: number; + +export const PI_4: number; + +export const POLLFD_FORMAT: string; + +export const PRIORITY_DEFAULT: number; + +export const PRIORITY_DEFAULT_IDLE: number; + +export const PRIORITY_HIGH: number; + +export const PRIORITY_HIGH_IDLE: number; + +export const PRIORITY_LOW: number; + +export const SEARCHPATH_SEPARATOR: number; + +export const SEARCHPATH_SEPARATOR_S: string; + +export const SIZEOF_LONG: number; + +export const SIZEOF_SIZE_T: number; + +export const SIZEOF_SSIZE_T: number; + +export const SIZEOF_VOID_P: number; + +export const SOURCE_CONTINUE: boolean; + +export const SOURCE_REMOVE: boolean; + +export const SQRT2: number; + +export const STR_DELIMITERS: string; + +export const SYSDEF_AF_INET: number; + +export const SYSDEF_AF_INET6: number; + +export const SYSDEF_AF_UNIX: number; + +export const SYSDEF_MSG_DONTROUTE: number; + +export const SYSDEF_MSG_OOB: number; + +export const SYSDEF_MSG_PEEK: number; + +export const TEST_OPTION_ISOLATE_DIRS: string; + +export const TIME_SPAN_DAY: number; + +export const TIME_SPAN_HOUR: number; + +export const TIME_SPAN_MILLISECOND: number; + +export const TIME_SPAN_MINUTE: number; + +export const TIME_SPAN_SECOND: number; + +export const UNICHAR_MAX_DECOMPOSITION_LENGTH: number; + +export const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string; + +export const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string; + +export const USEC_PER_SEC: number; + +export const VA_COPY_AS_ARRAY: number; + +export const VERSION_MIN_REQUIRED: number; + +export const WIN32_MSG_HANDLE: number; + +export function access(filename: string, mode: number): number; + +export function ascii_digit_value(c: number): number; + +export function ascii_dtostr(buffer: string, buf_len: number, d: number): string; + +export function ascii_formatd(buffer: string, buf_len: number, format: string, d: number): string; + +export function ascii_strcasecmp(s1: string, s2: string): number; + +export function ascii_strdown(str: string, len: number): string; + +export function ascii_string_to_signed(str: string, base: number, min: number, max: number): [boolean, number | null]; + +export function ascii_string_to_unsigned(str: string, base: number, min: number, max: number): [boolean, number | null]; + +export function ascii_strncasecmp(s1: string, s2: string, n: number): number; + +export function ascii_strtod(nptr: string): [number, string | null]; + +export function ascii_strtoll(nptr: string, base: number): [number, string | null]; + +export function ascii_strtoull(nptr: string, base: number): [number, string | null]; + +export function ascii_strup(str: string, len: number): string; + +export function ascii_tolower(c: number): number; + +export function ascii_toupper(c: number): number; + +export function ascii_xdigit_value(c: number): number; + +export function assert_warning(log_domain: string, file: string, line: number, pretty_function: string, expression: string): void; + +export function assertion_message(domain: string, file: string, line: number, func: string, message: string): void; + +export function assertion_message_cmpstr(domain: string, file: string, line: number, func: string, expr: string, arg1: string, cmp: string, arg2: string): void; + +export function assertion_message_error(domain: string, file: string, line: number, func: string, expr: string, error: Error, error_domain: Quark, error_code: number): void; + +export function atexit(func: VoidFunc): void; + +export function atomic_int_add(atomic: number, val: number): number; + +export function atomic_int_and(atomic: number, val: number): number; + +export function atomic_int_compare_and_exchange(atomic: number, oldval: number, newval: number): boolean; + +export function atomic_int_dec_and_test(atomic: number): boolean; + +export function atomic_int_exchange_and_add(atomic: number, val: number): number; + +export function atomic_int_get(atomic: number): number; + +export function atomic_int_inc(atomic: number): void; + +export function atomic_int_or(atomic: number, val: number): number; + +export function atomic_int_set(atomic: number, newval: number): void; + +export function atomic_int_xor(atomic: number, val: number): number; + +export function atomic_pointer_add(atomic: any, val: number): number; + +export function atomic_pointer_and(atomic: any, val: number): number; + +export function atomic_pointer_compare_and_exchange(atomic: any, oldval: any | null, newval: any | null): boolean; + +export function atomic_pointer_get(atomic: any): any | null; + +export function atomic_pointer_or(atomic: any, val: number): number; + +export function atomic_pointer_set(atomic: any, newval: any | null): void; + +export function atomic_pointer_xor(atomic: any, val: number): number; + +export function atomic_rc_box_acquire(mem_block: any): any; + +export function atomic_rc_box_alloc(block_size: number): any; + +export function atomic_rc_box_alloc0(block_size: number): any; + +export function atomic_rc_box_dup(block_size: number, mem_block: any): any; + +export function atomic_rc_box_get_size(mem_block: any): number; + +export function atomic_rc_box_release(mem_block: any): void; + +export function atomic_rc_box_release_full(mem_block: any, clear_func: DestroyNotify): void; + +export function atomic_ref_count_compare(arc: number, val: number): boolean; + +export function atomic_ref_count_dec(arc: number): boolean; + +export function atomic_ref_count_inc(arc: number): void; + +export function atomic_ref_count_init(arc: number): void; + +export function base64_decode(text: string): [number[], number]; + +export function base64_decode_inplace(text: number[]): [number, number[]]; + +export function base64_encode(data: number[] | null): string; + +export function base64_encode_close(break_lines: boolean, state: number, save: number): [number, number[], number, number]; + +export function base64_encode_step(_in: number[], break_lines: boolean, state: number, save: number): [number, number[], number, number]; + +export function basename(file_name: string): string; + +export function bit_lock(address: number, lock_bit: number): void; + +export function bit_nth_lsf(mask: number, nth_bit: number): number; + +export function bit_nth_msf(mask: number, nth_bit: number): number; + +export function bit_storage(number: number): number; + +export function bit_trylock(address: number, lock_bit: number): boolean; + +export function bit_unlock(address: number, lock_bit: number): void; + +export function bookmark_file_error_quark(): Quark; + +export function build_filenamev(args: string[]): string; + +export function build_pathv(separator: string, args: string[]): string; + +export function byte_array_free(array: number[], free_segment: boolean): number; + +export function byte_array_free_to_bytes(array: number[]): Bytes; + +export function byte_array_new(): number[]; + +export function byte_array_new_take(data: number[]): number[]; + +export function byte_array_unref(array: number[]): void; + +export function canonicalize_filename(filename: string, relative_to: string | null): string; + +export function chdir(path: string): number; + +export function check_version(required_major: number, required_minor: number, required_micro: number): string; + +export function checksum_type_get_length(checksum_type: ChecksumType): number; + +export function child_watch_add(priority: number, pid: Pid, _function: ChildWatchFunc, data: any | null, notify: DestroyNotify | null): number; + +export function child_watch_source_new(pid: Pid): Source; + +export function clear_error(): void; + +export function close(fd: number): boolean; + +export function compute_checksum_for_bytes(checksum_type: ChecksumType, data: Bytes): string; + +export function compute_checksum_for_data(checksum_type: ChecksumType, data: number[]): string; + +export function compute_checksum_for_string(checksum_type: ChecksumType, str: string, length: number): string; + +export function compute_hmac_for_bytes(digest_type: ChecksumType, key: Bytes, data: Bytes): string; + +export function compute_hmac_for_data(digest_type: ChecksumType, key: number[], data: number[]): string; + +export function compute_hmac_for_string(digest_type: ChecksumType, key: number[], str: string, length: number): string; + +export function convert(str: number[], to_codeset: string, from_codeset: string): [number[], number | null, number | null]; + +export function convert_error_quark(): Quark; + +export function convert_with_fallback(str: number[], to_codeset: string, from_codeset: string, fallback: string): [number[], number | null, number | null]; + +export function datalist_foreach(datalist: Data, func: DataForeachFunc): void; + +export function datalist_get_data(datalist: Data, key: string): any | null; + +export function datalist_get_flags(datalist: Data): number; + +export function datalist_id_get_data(datalist: Data, key_id: Quark): any | null; + +export function datalist_set_flags(datalist: Data, flags: number): void; + +export function datalist_unset_flags(datalist: Data, flags: number): void; + +export function dataset_destroy(dataset_location: any): void; + +export function dataset_foreach(dataset_location: any, func: DataForeachFunc): void; + +export function dataset_id_get_data(dataset_location: any, key_id: Quark): any | null; + +export function date_get_days_in_month(month: DateMonth, year: DateYear): number; + +export function date_get_monday_weeks_in_year(year: DateYear): number; + +export function date_get_sunday_weeks_in_year(year: DateYear): number; + +export function date_is_leap_year(year: DateYear): boolean; + +export function date_strftime(s: string, slen: number, format: string, date: Date): number; + +export function date_time_compare(dt1: any, dt2: any): number; + +export function date_time_equal(dt1: any, dt2: any): boolean; + +export function date_time_hash(datetime: any): number; + +export function date_valid_day(day: DateDay): boolean; + +export function date_valid_dmy(day: DateDay, month: DateMonth, year: DateYear): boolean; + +export function date_valid_julian(julian_date: number): boolean; + +export function date_valid_month(month: DateMonth): boolean; + +export function date_valid_weekday(weekday: DateWeekday): boolean; + +export function date_valid_year(year: DateYear): boolean; + +export function dcgettext(domain: string | null, msgid: string, category: number): string; + +export function dgettext(domain: string | null, msgid: string): string; + +export function dir_make_tmp(tmpl: string | null): string; + +export function direct_equal(v1: any | null, v2: any | null): boolean; + +export function direct_hash(v: any | null): number; + +export function dngettext(domain: string | null, msgid: string, msgid_plural: string, n: number): string; + +export function double_equal(v1: any, v2: any): boolean; + +export function double_hash(v: any): number; + +export function dpgettext(domain: string | null, msgctxtid: string, msgidoffset: number): string; + +export function dpgettext2(domain: string | null, context: string, msgid: string): string; + +export function environ_getenv(envp: string[] | null, variable: string): string; + +export function environ_setenv(envp: string[] | null, variable: string, value: string, overwrite: boolean): string[]; + +export function environ_unsetenv(envp: string[] | null, variable: string): string[]; + +export function file_error_from_errno(err_no: number): FileError; + +export function file_error_quark(): Quark; + +export function file_get_contents(filename: string): [boolean, number[]]; + +export function file_open_tmp(tmpl: string | null): [number, string]; + +export function file_read_link(filename: string): string; + +export function file_set_contents(filename: string, contents: number[]): boolean; + +export function file_test(filename: string, test: FileTest): boolean; + +export function filename_display_basename(filename: string): string; + +export function filename_display_name(filename: string): string; + +export function filename_from_uri(uri: string): [string, string | null]; + +export function filename_from_utf8(utf8string: string, len: number): [string, number | null, number | null]; + +export function filename_to_uri(filename: string, hostname: string | null): string; + +export function filename_to_utf8(opsysstring: string, len: number): [string, number | null, number | null]; + +export function find_program_in_path(program: string): string; + +export function format_size(size: number): string; + +export function format_size_for_display(size: number): string; + +export function format_size_full(size: number, flags: FormatSizeFlags): string; + +export function free(mem: any | null): void; + +export function get_application_name(): string; + +export function get_charset(): [boolean, string | null]; + +export function get_codeset(): string; + +export function get_current_dir(): string; + +export function get_current_time(result: TimeVal): void; + +export function get_environ(): string[]; + +export function get_filename_charsets(): [boolean, string[]]; + +export function get_home_dir(): string; + +export function get_host_name(): string; + +export function get_language_names(): string[]; + +export function get_language_names_with_category(category_name: string): string[]; + +export function get_locale_variants(locale: string): string[]; + +export function get_monotonic_time(): number; + +export function get_num_processors(): number; + +export function get_prgname(): string; + +export function get_real_name(): string; + +export function get_real_time(): number; + +export function get_system_config_dirs(): string[]; + +export function get_system_data_dirs(): string[]; + +export function get_tmp_dir(): string; + +export function get_user_cache_dir(): string; + +export function get_user_config_dir(): string; + +export function get_user_data_dir(): string; + +export function get_user_name(): string; + +export function get_user_runtime_dir(): string; + +export function get_user_special_dir(directory: UserDirectory): string; + +export function getenv(variable: string): string; + +export function hash_table_add(hash_table: HashTable, key: any | null): boolean; + +export function hash_table_contains(hash_table: HashTable, key: any | null): boolean; + +export function hash_table_destroy(hash_table: HashTable): void; + +export function hash_table_insert(hash_table: HashTable, key: any | null, value: any | null): boolean; + +export function hash_table_lookup(hash_table: HashTable, key: any | null): any | null; + +export function hash_table_lookup_extended(hash_table: HashTable, lookup_key: any | null): [boolean, any | null, any | null]; + +export function hash_table_remove(hash_table: HashTable, key: any | null): boolean; + +export function hash_table_remove_all(hash_table: HashTable): void; + +export function hash_table_replace(hash_table: HashTable, key: any | null, value: any | null): boolean; + +export function hash_table_size(hash_table: HashTable): number; + +export function hash_table_steal(hash_table: HashTable, key: any | null): boolean; + +export function hash_table_steal_all(hash_table: HashTable): void; + +export function hash_table_steal_extended(hash_table: HashTable, lookup_key: any | null): [boolean, any | null, any | null]; + +export function hash_table_unref(hash_table: HashTable): void; + +export function hook_destroy(hook_list: HookList, hook_id: number): boolean; + +export function hook_destroy_link(hook_list: HookList, hook: Hook): void; + +export function hook_free(hook_list: HookList, hook: Hook): void; + +export function hook_insert_before(hook_list: HookList, sibling: Hook | null, hook: Hook): void; + +export function hook_prepend(hook_list: HookList, hook: Hook): void; + +export function hook_unref(hook_list: HookList, hook: Hook): void; + +export function hostname_is_ascii_encoded(hostname: string): boolean; + +export function hostname_is_ip_address(hostname: string): boolean; + +export function hostname_is_non_ascii(hostname: string): boolean; + +export function hostname_to_ascii(hostname: string): string; + +export function hostname_to_unicode(hostname: string): string; + +export function idle_add(priority: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): number; + +export function idle_remove_by_data(data: any | null): boolean; + +export function idle_source_new(): Source; + +export function int64_equal(v1: any, v2: any): boolean; + +export function int64_hash(v: any): number; + +export function int_equal(v1: any, v2: any): boolean; + +export function int_hash(v: any): number; + +export function intern_static_string(string: string | null): string; + +export function intern_string(string: string | null): string; + +export function io_add_watch(channel: IOChannel, priority: number, condition: IOCondition, func: IOFunc, notify: DestroyNotify): number; + +export function io_channel_error_from_errno(en: number): IOChannelError; + +export function io_channel_error_quark(): Quark; + +export function io_create_watch(channel: IOChannel, condition: IOCondition): Source; + +export function key_file_error_quark(): Quark; + +export function listenv(): string[]; + +export function locale_from_utf8(utf8string: string, len: number): [number[], number | null, number | null]; + +export function locale_to_utf8(opsysstring: number[]): [string, number | null, number | null]; + +export function log_default_handler(log_domain: string | null, log_level: LogLevelFlags, message: string | null, unused_data: any | null): void; + +export function log_remove_handler(log_domain: string, handler_id: number): void; + +export function log_set_always_fatal(fatal_mask: LogLevelFlags): LogLevelFlags; + +export function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags): LogLevelFlags; + +export function log_set_handler(log_domain: string | null, log_levels: LogLevelFlags, log_func: LogFunc, destroy: DestroyNotify): number; + +export function log_set_writer_func(func: LogWriterFunc | null, user_data_free: DestroyNotify): void; + +export function log_structured_array(log_level: LogLevelFlags, fields: LogField[]): void; + +export function log_variant(log_domain: string | null, log_level: LogLevelFlags, fields: Variant): void; + +export function log_writer_default(log_level: LogLevelFlags, fields: LogField[]): LogWriterOutput; + +export function log_writer_format_fields(log_level: LogLevelFlags, fields: LogField[], use_color: boolean): string; + +export function log_writer_is_journald(output_fd: number): boolean; + +export function log_writer_journald(log_level: LogLevelFlags, fields: LogField[]): LogWriterOutput; + +export function log_writer_standard_streams(log_level: LogLevelFlags, fields: LogField[]): LogWriterOutput; + +export function log_writer_supports_color(output_fd: number): boolean; + +export function main_context_default(): MainContext; + +export function main_context_get_thread_default(): MainContext; + +export function main_context_ref_thread_default(): MainContext; + +export function main_current_source(): Source; + +export function main_depth(): number; + +export function malloc(n_bytes: number): any | null; + +export function malloc0(n_bytes: number): any | null; + +export function malloc0_n(n_blocks: number, n_block_bytes: number): any | null; + +export function malloc_n(n_blocks: number, n_block_bytes: number): any | null; + +export function markup_error_quark(): Quark; + +export function markup_escape_text(text: string, length: number): string; + +export function mem_is_system_malloc(): boolean; + +export function mem_profile(): void; + +export function mem_set_vtable(vtable: MemVTable): void; + +export function memdup(mem: any | null, byte_size: number): any | null; + +export function mkdir_with_parents(pathname: string, mode: number): number; + +export function nullify_pointer(nullify_location: any): void; + +export function number_parser_error_quark(): Quark; + +export function on_error_query(prg_name: string): void; + +export function on_error_stack_trace(prg_name: string): void; + +export function once_init_enter(location: any): boolean; + +export function once_init_leave(location: any, result: number): void; + +export function option_error_quark(): Quark; + +export function parse_debug_string(string: string | null, keys: DebugKey[]): number; + +export function path_get_basename(file_name: string): string; + +export function path_get_dirname(file_name: string): string; + +export function path_is_absolute(file_name: string): boolean; + +export function path_skip_root(file_name: string): string | null; + +export function pattern_match(pspec: PatternSpec, string_length: number, string: string, string_reversed: string | null): boolean; + +export function pattern_match_simple(pattern: string, string: string): boolean; + +export function pattern_match_string(pspec: PatternSpec, string: string): boolean; + +export function pointer_bit_lock(address: any, lock_bit: number): void; + +export function pointer_bit_trylock(address: any, lock_bit: number): boolean; + +export function pointer_bit_unlock(address: any, lock_bit: number): void; + +export function poll(fds: PollFD, nfds: number, timeout: number): number; + +export function propagate_error(src: Error): Error | null; + +export function quark_from_static_string(string: string | null): Quark; + +export function quark_from_string(string: string | null): Quark; + +export function quark_to_string(quark: Quark): string; + +export function quark_try_string(string: string | null): Quark; + +export function random_double(): number; + +export function random_double_range(begin: number, end: number): number; + +export function random_int(): number; + +export function random_int_range(begin: number, end: number): number; + +export function random_set_seed(seed: number): void; + +export function rc_box_acquire(mem_block: any): any; + +export function rc_box_alloc(block_size: number): any; + +export function rc_box_alloc0(block_size: number): any; + +export function rc_box_dup(block_size: number, mem_block: any): any; + +export function rc_box_get_size(mem_block: any): number; + +export function rc_box_release(mem_block: any): void; + +export function rc_box_release_full(mem_block: any, clear_func: DestroyNotify): void; + +export function realloc(mem: any | null, n_bytes: number): any | null; + +export function realloc_n(mem: any | null, n_blocks: number, n_block_bytes: number): any | null; + +export function ref_count_compare(rc: number, val: number): boolean; + +export function ref_count_dec(rc: number): boolean; + +export function ref_count_inc(rc: number): void; + +export function ref_count_init(rc: number): void; + +export function ref_string_acquire(str: string): string; + +export function ref_string_length(str: string): number; + +export function ref_string_new(str: string): string; + +export function ref_string_new_intern(str: string): string; + +export function ref_string_new_len(str: string, len: number): string; + +export function ref_string_release(str: string): void; + +export function regex_check_replacement(replacement: string): [boolean, boolean | null]; + +export function regex_error_quark(): Quark; + +export function regex_escape_nul(string: string, length: number): string; + +export function regex_escape_string(string: string[]): string; + +export function regex_match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean; + +export function regex_split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]; + +export function reload_user_special_dirs_cache(): void; + +export function rmdir(filename: string): number; + +export function sequence_get(iter: SequenceIter): any | null; + +export function sequence_insert_before(iter: SequenceIter, data: any | null): SequenceIter; + +export function sequence_move(src: SequenceIter, dest: SequenceIter): void; + +export function sequence_move_range(dest: SequenceIter, begin: SequenceIter, end: SequenceIter): void; + +export function sequence_range_get_midpoint(begin: SequenceIter, end: SequenceIter): SequenceIter; + +export function sequence_remove(iter: SequenceIter): void; + +export function sequence_remove_range(begin: SequenceIter, end: SequenceIter): void; + +export function sequence_set(iter: SequenceIter, data: any | null): void; + +export function sequence_swap(a: SequenceIter, b: SequenceIter): void; + +export function set_application_name(application_name: string): void; + +export function set_error_literal(domain: Quark, code: number, message: string): Error | null; + +export function set_prgname(prgname: string): void; + +export function setenv(variable: string, value: string, overwrite: boolean): boolean; + +export function shell_error_quark(): Quark; + +export function shell_parse_argv(command_line: string): [boolean, string[] | null]; + +export function shell_quote(unquoted_string: string): string; + +export function shell_unquote(quoted_string: string): string; + +export function slice_alloc(block_size: number): any | null; + +export function slice_alloc0(block_size: number): any | null; + +export function slice_copy(block_size: number, mem_block: any | null): any | null; + +export function slice_free1(block_size: number, mem_block: any | null): void; + +export function slice_free_chain_with_offset(block_size: number, mem_chain: any | null, next_offset: number): void; + +export function slice_get_config(ckey: SliceConfig): number; + +export function slice_get_config_state(ckey: SliceConfig, address: number, n_values: number): number; + +export function slice_set_config(ckey: SliceConfig, value: number): void; + +export function source_remove(tag: number): boolean; + +export function source_remove_by_funcs_user_data(funcs: SourceFuncs): boolean; + +export function source_remove_by_user_data(): boolean; + +export function source_set_name_by_id(tag: number, name: string): void; + +export function spaced_primes_closest(num: number): number; + +export function spawn_async(working_directory: string | null, argv: string[], envp: string[] | null, flags: SpawnFlags, child_setup: SpawnChildSetupFunc | null): [boolean, Pid | null]; + +export function spawn_async_with_fds(working_directory: string | null, argv: string[], envp: string[] | null, flags: SpawnFlags, child_setup: SpawnChildSetupFunc | null, stdin_fd: number, stdout_fd: number, stderr_fd: number): [boolean, Pid | null]; + +export function spawn_async_with_pipes(working_directory: string | null, argv: string[], envp: string[] | null, flags: SpawnFlags, child_setup: SpawnChildSetupFunc | null): [boolean, Pid | null, number | null, number | null, number | null]; + +export function spawn_check_exit_status(exit_status: number): boolean; + +export function spawn_close_pid(pid: Pid): void; + +export function spawn_command_line_async(command_line: string): boolean; + +export function spawn_command_line_sync(command_line: string): [boolean, number[] | null, number[] | null, number | null]; + +export function spawn_error_quark(): Quark; + +export function spawn_exit_error_quark(): Quark; + +export function spawn_sync(working_directory: string | null, argv: string[], envp: string[] | null, flags: SpawnFlags, child_setup: SpawnChildSetupFunc | null): [boolean, number[] | null, number[] | null, number | null]; + +export function stpcpy(dest: string, src: string): string; + +export function str_equal(v1: any, v2: any): boolean; + +export function str_has_prefix(str: string, prefix: string): boolean; + +export function str_has_suffix(str: string, suffix: string): boolean; + +export function str_hash(v: any): number; + +export function str_is_ascii(str: string): boolean; + +export function str_match_string(search_term: string, potential_hit: string, accept_alternates: boolean): boolean; + +export function str_to_ascii(str: string, from_locale: string | null): string; + +export function str_tokenize_and_fold(string: string, translit_locale: string | null): [string[], string[]]; + +export function strcanon(string: string, valid_chars: string, substitutor: number): string; + +export function strcasecmp(s1: string, s2: string): number; + +export function strchomp(string: string): string; + +export function strchug(string: string): string; + +export function strcmp0(str1: string | null, str2: string | null): number; + +export function strcompress(source: string): string; + +export function strdelimit(string: string, delimiters: string | null, new_delimiter: number): string; + +export function strdown(string: string): string; + +export function strdup(str: string | null): string; + +export function strerror(errnum: number): string; + +export function strescape(source: string, exceptions: string | null): string; + +export function strfreev(str_array: string | null): void; + +export function string_new(init: string | null): String; + +export function string_new_len(init: string, len: number): String; + +export function string_sized_new(dfl_size: number): String; + +export function strip_context(msgid: string, msgval: string): string; + +export function strjoinv(separator: string | null, str_array: string): string; + +export function strlcat(dest: string, src: string, dest_size: number): number; + +export function strlcpy(dest: string, src: string, dest_size: number): number; + +export function strncasecmp(s1: string, s2: string, n: number): number; + +export function strndup(str: string, n: number): string; + +export function strnfill(length: number, fill_char: number): string; + +export function strreverse(string: string): string; + +export function strrstr(haystack: string, needle: string): string; + +export function strrstr_len(haystack: string, haystack_len: number, needle: string): string; + +export function strsignal(signum: number): string; + +export function strstr_len(haystack: string, haystack_len: number, needle: string): string; + +export function strtod(nptr: string): [number, string | null]; + +export function strup(string: string): string; + +export function strv_contains(strv: string, str: string): boolean; + +export function strv_equal(strv1: string, strv2: string): boolean; + +export function strv_get_type(): GType; + +export function strv_length(str_array: string): number; + +export function test_add_data_func(testpath: string, test_data: any | null, test_func: TestDataFunc): void; + +export function test_add_data_func_full(testpath: string, test_data: any | null, test_func: TestDataFunc, data_free_func: DestroyNotify): void; + +export function test_add_func(testpath: string, test_func: TestFunc): void; + +export function test_assert_expected_messages_internal(domain: string, file: string, line: number, func: string): void; + +export function test_bug(bug_uri_snippet: string): void; + +export function test_bug_base(uri_pattern: string): void; + +export function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string): void; + +export function test_fail(): void; + +export function test_failed(): boolean; + +export function test_get_dir(file_type: TestFileType): string; + +export function test_incomplete(msg: string | null): void; + +export function test_log_type_name(log_type: TestLogType): string; + +export function test_queue_destroy(destroy_func: DestroyNotify, destroy_data: any | null): void; + +export function test_queue_free(gfree_pointer: any | null): void; + +export function test_rand_double(): number; + +export function test_rand_double_range(range_start: number, range_end: number): number; + +export function test_rand_int(): number; + +export function test_rand_int_range(begin: number, end: number): number; + +export function test_run(): number; + +export function test_run_suite(suite: TestSuite): number; + +export function test_set_nonfatal_assertions(): void; + +export function test_skip(msg: string | null): void; + +export function test_subprocess(): boolean; + +export function test_timer_elapsed(): number; + +export function test_timer_last(): number; + +export function test_timer_start(): void; + +export function test_trap_assertions(domain: string, file: string, line: number, func: string, assertion_flags: number, pattern: string): void; + +export function test_trap_fork(usec_timeout: number, test_trap_flags: TestTrapFlags): boolean; + +export function test_trap_has_passed(): boolean; + +export function test_trap_reached_timeout(): boolean; + +export function test_trap_subprocess(test_path: string | null, usec_timeout: number, test_flags: TestSubprocessFlags): void; + +export function thread_error_quark(): Quark; + +export function thread_exit(retval: any | null): void; + +export function thread_pool_get_max_idle_time(): number; + +export function thread_pool_get_max_unused_threads(): number; + +export function thread_pool_get_num_unused_threads(): number; + +export function thread_pool_set_max_idle_time(interval: number): void; + +export function thread_pool_set_max_unused_threads(max_threads: number): void; + +export function thread_pool_stop_unused_threads(): void; + +export function thread_self(): Thread; + +export function thread_yield(): void; + +export function time_val_from_iso8601(iso_date: string): [boolean, TimeVal]; + +export function timeout_add(priority: number, interval: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): number; + +export function timeout_add_seconds(priority: number, interval: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): number; + +export function timeout_source_new(interval: number): Source; + +export function timeout_source_new_seconds(interval: number): Source; + +export function trash_stack_height(stack_p: TrashStack): number; + +export function trash_stack_peek(stack_p: TrashStack): any | null; + +export function trash_stack_pop(stack_p: TrashStack): any | null; + +export function trash_stack_push(stack_p: TrashStack, data_p: any): void; + +export function try_malloc(n_bytes: number): any | null; + +export function try_malloc0(n_bytes: number): any | null; + +export function try_malloc0_n(n_blocks: number, n_block_bytes: number): any | null; + +export function try_malloc_n(n_blocks: number, n_block_bytes: number): any | null; + +export function try_realloc(mem: any | null, n_bytes: number): any | null; + +export function try_realloc_n(mem: any | null, n_blocks: number, n_block_bytes: number): any | null; + +export function ucs4_to_utf16(str: number, len: number): [number, number | null, number | null]; + +export function ucs4_to_utf8(str: number, len: number): [string, number | null, number | null]; + +export function unichar_break_type(c: number): UnicodeBreakType; + +export function unichar_combining_class(uc: number): number; + +export function unichar_compose(a: number, b: number, ch: number): boolean; + +export function unichar_decompose(ch: number, a: number, b: number): boolean; + +export function unichar_digit_value(c: number): number; + +export function unichar_fully_decompose(ch: number, compat: boolean, result: number | null, result_len: number): number; + +export function unichar_get_mirror_char(ch: number, mirrored_ch: number): boolean; + +export function unichar_get_script(ch: number): UnicodeScript; + +export function unichar_isalnum(c: number): boolean; + +export function unichar_isalpha(c: number): boolean; + +export function unichar_iscntrl(c: number): boolean; + +export function unichar_isdefined(c: number): boolean; + +export function unichar_isdigit(c: number): boolean; + +export function unichar_isgraph(c: number): boolean; + +export function unichar_islower(c: number): boolean; + +export function unichar_ismark(c: number): boolean; + +export function unichar_isprint(c: number): boolean; + +export function unichar_ispunct(c: number): boolean; + +export function unichar_isspace(c: number): boolean; + +export function unichar_istitle(c: number): boolean; + +export function unichar_isupper(c: number): boolean; + +export function unichar_iswide(c: number): boolean; + +export function unichar_iswide_cjk(c: number): boolean; + +export function unichar_isxdigit(c: number): boolean; + +export function unichar_iszerowidth(c: number): boolean; + +export function unichar_to_utf8(c: number): [number, string | null]; + +export function unichar_tolower(c: number): number; + +export function unichar_totitle(c: number): number; + +export function unichar_toupper(c: number): number; + +export function unichar_type(c: number): UnicodeType; + +export function unichar_validate(ch: number): boolean; + +export function unichar_xdigit_value(c: number): number; + +export function unicode_canonical_decomposition(ch: number, result_len: number): number; + +export function unicode_canonical_ordering(string: number, len: number): void; + +export function unicode_script_from_iso15924(iso15924: number): UnicodeScript; + +export function unicode_script_to_iso15924(script: UnicodeScript): number; + +export function unix_error_quark(): Quark; + +export function unix_fd_add_full(priority: number, fd: number, condition: IOCondition, _function: UnixFDSourceFunc, notify: DestroyNotify): number; + +export function unix_fd_source_new(fd: number, condition: IOCondition): Source; + +export function unix_open_pipe(fds: number, flags: number): boolean; + +export function unix_set_fd_nonblocking(fd: number, nonblock: boolean): boolean; + +export function unix_signal_add(priority: number, signum: number, handler: SourceFunc, notify: DestroyNotify): number; + +export function unix_signal_source_new(signum: number): Source; + +export function unlink(filename: string): number; + +export function unsetenv(variable: string): void; + +export function uri_escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string; + +export function uri_list_extract_uris(uri_list: string): string[]; + +export function uri_parse_scheme(uri: string): string; + +export function uri_unescape_segment(escaped_string: string | null, escaped_string_end: string | null, illegal_characters: string | null): string; + +export function uri_unescape_string(escaped_string: string, illegal_characters: string | null): string; + +export function usleep(microseconds: number): void; + +export function utf16_to_ucs4(str: number, len: number): [number, number | null, number | null]; + +export function utf16_to_utf8(str: number, len: number): [string, number | null, number | null]; + +export function utf8_casefold(str: string, len: number): string; + +export function utf8_collate(str1: string, str2: string): number; + +export function utf8_collate_key(str: string, len: number): string; + +export function utf8_collate_key_for_filename(str: string, len: number): string; + +export function utf8_find_next_char(p: string, end: string | null): string | null; + +export function utf8_find_prev_char(str: string, p: string): string; + +export function utf8_get_char(p: string): number; + +export function utf8_get_char_validated(p: string, max_len: number): number; + +export function utf8_make_valid(str: string, len: number): string; + +export function utf8_normalize(str: string, len: number, mode: NormalizeMode): string; + +export function utf8_offset_to_pointer(str: string, offset: number): string; + +export function utf8_pointer_to_offset(str: string, pos: string): number; + +export function utf8_prev_char(p: string): string; + +export function utf8_strchr(p: string, len: number, c: number): string; + +export function utf8_strdown(str: string, len: number): string; + +export function utf8_strlen(p: string, max: number): number; + +export function utf8_strncpy(dest: string, src: string, n: number): string; + +export function utf8_strrchr(p: string, len: number, c: number): string; + +export function utf8_strreverse(str: string, len: number): string; + +export function utf8_strup(str: string, len: number): string; + +export function utf8_substring(str: string, start_pos: number, end_pos: number): string; + +export function utf8_to_ucs4(str: string, len: number): [number, number | null, number | null]; + +export function utf8_to_ucs4_fast(str: string, len: number): [number, number | null]; + +export function utf8_to_utf16(str: string, len: number): [number, number | null, number | null]; + +export function utf8_validate(str: number[]): [boolean, string | null]; + +export function utf8_validate_len(str: number[]): [boolean, string | null]; + +export function uuid_string_is_valid(str: string): boolean; + +export function uuid_string_random(): string; + +export function variant_get_gtype(): GType; + +export function variant_is_object_path(string: string): boolean; + +export function variant_is_signature(string: string): boolean; + +export function variant_parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant; + +export function variant_parse_error_print_context(error: Error, source_str: string): string; + +export function variant_parse_error_quark(): Quark; + +export function variant_parser_get_error_quark(): Quark; + +export function variant_type_checked_(arg0: string): VariantType; + +export function variant_type_string_get_depth_(type_string: string): number; + +export function variant_type_string_is_valid(type_string: string): boolean; + +export function variant_type_string_scan(string: string, limit: string | null): [boolean, string | null]; + +export type ChildWatchFunc = (pid: Pid, status: number) => void; + +export type ClearHandleFunc = (handle_id: number) => void; + +export type CompareDataFunc = (a: any | null, b: any | null) => number; + +export type CompareFunc = (a: any | null, b: any | null) => number; + +export type CopyFunc = (src: any, data: any | null) => any; + +export type DataForeachFunc = (key_id: Quark, data: any | null) => void; + +export type DestroyNotify = (data: any | null) => void; + +export type DuplicateFunc = (data: any | null) => any | null; + +export type EqualFunc = (a: any | null, b: any | null) => boolean; + +export type FreeFunc = (data: any | null) => void; + +export type Func = (data: any | null) => void; + +export type HFunc = (key: any | null, value: any | null) => void; + +export type HRFunc = (key: any | null, value: any | null) => boolean; + +export type HashFunc = (key: any | null) => number; + +export type HookCheckFunc = (data: any | null) => boolean; + +export type HookCheckMarshaller = (hook: Hook, marshal_data: any | null) => boolean; + +export type HookCompareFunc = (new_hook: Hook, sibling: Hook) => number; + +export type HookFinalizeFunc = (hook_list: HookList, hook: Hook) => void; + +export type HookFindFunc = (hook: Hook, data: any | null) => boolean; + +export type HookFunc = (data: any | null) => void; + +export type HookMarshaller = (hook: Hook, marshal_data: any | null) => void; + +export type IOFunc = (source: IOChannel, condition: IOCondition, data: any | null) => boolean; + +export type LogFunc = (log_domain: string, log_level: LogLevelFlags, message: string) => void; + +export type LogWriterFunc = (log_level: LogLevelFlags, fields: LogField[]) => LogWriterOutput; + +export type NodeForeachFunc = (node: Node, data: any | null) => void; + +export type NodeTraverseFunc = (node: Node, data: any | null) => boolean; + +export type OptionArgFunc = (option_name: string, value: string, data: any | null) => boolean; + +export type OptionErrorFunc = (context: OptionContext, group: OptionGroup, data: any | null) => void; + +export type OptionParseFunc = (context: OptionContext, group: OptionGroup, data: any | null) => boolean; + +export type PollFunc = (ufds: PollFD, nfsd: number, timeout_: number) => number; + +export type PrintFunc = (string: string) => void; + +export type RegexEvalCallback = (match_info: MatchInfo, result: String) => boolean; + +export type ScannerMsgFunc = (scanner: Scanner, message: string, error: boolean) => void; + +export type SequenceIterCompareFunc = (a: SequenceIter, b: SequenceIter, data: any | null) => number; + +export type SourceDummyMarshal = () => void; + +export type SourceFunc = () => boolean; + +export type SpawnChildSetupFunc = () => void; + +export type TestDataFunc = () => void; + +export type TestFixtureFunc = (fixture: any) => void; + +export type TestFunc = () => void; + +export type TestLogFatalFunc = (log_domain: string, log_level: LogLevelFlags, message: string) => boolean; + +export type ThreadFunc = (data: any | null) => any | null; + +export type TranslateFunc = (str: string, data: any | null) => string; + +export type TraverseFunc = (key: any | null, value: any | null, data: any | null) => boolean; + +export type UnixFDSourceFunc = (fd: number, condition: IOCondition) => boolean; + +export type VoidFunc = () => void; +export class BookmarkFileError extends Error { + constructor(copy: BookmarkFileError); + // Properties + static INVALID_URI: number; + static INVALID_VALUE: number; + static APP_NOT_REGISTERED: number; + static URI_NOT_FOUND: number; + static READ: number; + static UNKNOWN_ENCODING: number; + static WRITE: number; + static FILE_NOT_FOUND: number; +} +export enum ChecksumType { + MD5 = 0, + SHA1 = 1, + SHA256 = 2, + SHA512 = 3, + SHA384 = 4, +} +export class ConvertError extends Error { + constructor(copy: ConvertError); + // Properties + static NO_CONVERSION: number; + static ILLEGAL_SEQUENCE: number; + static FAILED: number; + static PARTIAL_INPUT: number; + static BAD_URI: number; + static NOT_ABSOLUTE_PATH: number; + static NO_MEMORY: number; + static EMBEDDED_NUL: number; +} +export enum DateDMY { + DAY = 0, + MONTH = 1, + YEAR = 2, +} +export enum DateMonth { + BAD_MONTH = 0, + JANUARY = 1, + FEBRUARY = 2, + MARCH = 3, + APRIL = 4, + MAY = 5, + JUNE = 6, + JULY = 7, + AUGUST = 8, + SEPTEMBER = 9, + OCTOBER = 10, + NOVEMBER = 11, + DECEMBER = 12, +} +export enum DateWeekday { + BAD_WEEKDAY = 0, + MONDAY = 1, + TUESDAY = 2, + WEDNESDAY = 3, + THURSDAY = 4, + FRIDAY = 5, + SATURDAY = 6, + SUNDAY = 7, +} +export enum ErrorType { + UNKNOWN = 0, + UNEXP_EOF = 1, + UNEXP_EOF_IN_STRING = 2, + UNEXP_EOF_IN_COMMENT = 3, + NON_DIGIT_IN_CONST = 4, + DIGIT_RADIX = 5, + FLOAT_RADIX = 6, + FLOAT_MALFORMED = 7, +} +export class FileError extends Error { + constructor(copy: FileError); + // Properties + static EXIST: number; + static ISDIR: number; + static ACCES: number; + static NAMETOOLONG: number; + static NOENT: number; + static NOTDIR: number; + static NXIO: number; + static NODEV: number; + static ROFS: number; + static TXTBSY: number; + static FAULT: number; + static LOOP: number; + static NOSPC: number; + static NOMEM: number; + static MFILE: number; + static NFILE: number; + static BADF: number; + static INVAL: number; + static PIPE: number; + static AGAIN: number; + static INTR: number; + static IO: number; + static PERM: number; + static NOSYS: number; + static FAILED: number; +} +export class IOChannelError extends Error { + constructor(copy: IOChannelError); + // Properties + static FBIG: number; + static INVAL: number; + static IO: number; + static ISDIR: number; + static NOSPC: number; + static NXIO: number; + static OVERFLOW: number; + static PIPE: number; + static FAILED: number; +} +export enum IOError { + NONE = 0, + AGAIN = 1, + INVAL = 2, + UNKNOWN = 3, +} +export enum IOStatus { + ERROR = 0, + NORMAL = 1, + EOF = 2, + AGAIN = 3, +} +export class KeyFileError extends Error { + constructor(copy: KeyFileError); + // Properties + static UNKNOWN_ENCODING: number; + static PARSE: number; + static NOT_FOUND: number; + static KEY_NOT_FOUND: number; + static GROUP_NOT_FOUND: number; + static INVALID_VALUE: number; +} +export enum LogWriterOutput { + HANDLED = 1, + UNHANDLED = 0, +} +export class MarkupError extends Error { + constructor(copy: MarkupError); + // Properties + static BAD_UTF8: number; + static EMPTY: number; + static PARSE: number; + static UNKNOWN_ELEMENT: number; + static UNKNOWN_ATTRIBUTE: number; + static INVALID_CONTENT: number; + static MISSING_ATTRIBUTE: number; +} +export enum NormalizeMode { + DEFAULT = 0, + NFD = 0, + DEFAULT_COMPOSE = 1, + NFC = 1, + ALL = 2, + NFKD = 2, + ALL_COMPOSE = 3, + NFKC = 3, +} +export class NumberParserError extends Error { + constructor(copy: NumberParserError); + // Properties + static INVALID: number; + static OUT_OF_BOUNDS: number; +} +export enum OnceStatus { + NOTCALLED = 0, + PROGRESS = 1, + READY = 2, +} +export enum OptionArg { + NONE = 0, + STRING = 1, + INT = 2, + CALLBACK = 3, + FILENAME = 4, + STRING_ARRAY = 5, + FILENAME_ARRAY = 6, + DOUBLE = 7, + INT64 = 8, +} +export class OptionError extends Error { + constructor(copy: OptionError); + // Properties + static UNKNOWN_OPTION: number; + static BAD_VALUE: number; + static FAILED: number; +} +export class RegexError extends Error { + constructor(copy: RegexError); + // Properties + static COMPILE: number; + static OPTIMIZE: number; + static REPLACE: number; + static MATCH: number; + static INTERNAL: number; + static STRAY_BACKSLASH: number; + static MISSING_CONTROL_CHAR: number; + static UNRECOGNIZED_ESCAPE: number; + static QUANTIFIERS_OUT_OF_ORDER: number; + static QUANTIFIER_TOO_BIG: number; + static UNTERMINATED_CHARACTER_CLASS: number; + static INVALID_ESCAPE_IN_CHARACTER_CLASS: number; + static RANGE_OUT_OF_ORDER: number; + static NOTHING_TO_REPEAT: number; + static UNRECOGNIZED_CHARACTER: number; + static POSIX_NAMED_CLASS_OUTSIDE_CLASS: number; + static UNMATCHED_PARENTHESIS: number; + static INEXISTENT_SUBPATTERN_REFERENCE: number; + static UNTERMINATED_COMMENT: number; + static EXPRESSION_TOO_LARGE: number; + static MEMORY_ERROR: number; + static VARIABLE_LENGTH_LOOKBEHIND: number; + static MALFORMED_CONDITION: number; + static TOO_MANY_CONDITIONAL_BRANCHES: number; + static ASSERTION_EXPECTED: number; + static UNKNOWN_POSIX_CLASS_NAME: number; + static POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED: number; + static HEX_CODE_TOO_LARGE: number; + static INVALID_CONDITION: number; + static SINGLE_BYTE_MATCH_IN_LOOKBEHIND: number; + static INFINITE_LOOP: number; + static MISSING_SUBPATTERN_NAME_TERMINATOR: number; + static DUPLICATE_SUBPATTERN_NAME: number; + static MALFORMED_PROPERTY: number; + static UNKNOWN_PROPERTY: number; + static SUBPATTERN_NAME_TOO_LONG: number; + static TOO_MANY_SUBPATTERNS: number; + static INVALID_OCTAL_VALUE: number; + static TOO_MANY_BRANCHES_IN_DEFINE: number; + static DEFINE_REPETION: number; + static INCONSISTENT_NEWLINE_OPTIONS: number; + static MISSING_BACK_REFERENCE: number; + static INVALID_RELATIVE_REFERENCE: number; + static BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN: number; + static UNKNOWN_BACKTRACKING_CONTROL_VERB: number; + static NUMBER_TOO_BIG: number; + static MISSING_SUBPATTERN_NAME: number; + static MISSING_DIGIT: number; + static INVALID_DATA_CHARACTER: number; + static EXTRA_SUBPATTERN_NAME: number; + static BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED: number; + static INVALID_CONTROL_CHAR: number; + static MISSING_NAME: number; + static NOT_SUPPORTED_IN_CLASS: number; + static TOO_MANY_FORWARD_REFERENCES: number; + static NAME_TOO_LONG: number; + static CHARACTER_VALUE_TOO_LARGE: number; +} +export enum SeekType { + CUR = 0, + SET = 1, + END = 2, +} +export class ShellError extends Error { + constructor(copy: ShellError); + // Properties + static BAD_QUOTING: number; + static EMPTY_STRING: number; + static FAILED: number; +} +export enum SliceConfig { + ALWAYS_MALLOC = 1, + BYPASS_MAGAZINES = 2, + WORKING_SET_MSECS = 3, + COLOR_INCREMENT = 4, + CHUNK_SIZES = 5, + CONTENTION_COUNTER = 6, +} +export class SpawnError extends Error { + constructor(copy: SpawnError); + // Properties + static FORK: number; + static READ: number; + static CHDIR: number; + static ACCES: number; + static PERM: number; + static TOO_BIG: number; + static "2BIG": number; + static NOEXEC: number; + static NAMETOOLONG: number; + static NOENT: number; + static NOMEM: number; + static NOTDIR: number; + static LOOP: number; + static TXTBUSY: number; + static IO: number; + static NFILE: number; + static MFILE: number; + static INVAL: number; + static ISDIR: number; + static LIBBAD: number; + static FAILED: number; +} +export enum TestFileType { + DIST = 0, + BUILT = 1, +} +export enum TestLogType { + NONE = 0, + ERROR = 1, + START_BINARY = 2, + LIST_CASE = 3, + SKIP_CASE = 4, + START_CASE = 5, + STOP_CASE = 6, + MIN_RESULT = 7, + MAX_RESULT = 8, + MESSAGE = 9, + START_SUITE = 10, + STOP_SUITE = 11, +} +export enum TestResult { + SUCCESS = 0, + SKIPPED = 1, + FAILURE = 2, + INCOMPLETE = 3, +} +export class ThreadError extends Error { + constructor(copy: ThreadError); + // Properties + static THREAD_ERROR_AGAIN: number; +} +export enum TimeType { + STANDARD = 0, + DAYLIGHT = 1, + UNIVERSAL = 2, +} +export enum TokenType { + EOF = 0, + LEFT_PAREN = 40, + RIGHT_PAREN = 41, + LEFT_CURLY = 123, + RIGHT_CURLY = 125, + LEFT_BRACE = 91, + RIGHT_BRACE = 93, + EQUAL_SIGN = 61, + COMMA = 44, + NONE = 256, + ERROR = 257, + CHAR = 258, + BINARY = 259, + OCTAL = 260, + INT = 261, + HEX = 262, + FLOAT = 263, + STRING = 264, + SYMBOL = 265, + IDENTIFIER = 266, + IDENTIFIER_NULL = 267, + COMMENT_SINGLE = 268, + COMMENT_MULTI = 269, +} +export enum TraverseType { + IN_ORDER = 0, + PRE_ORDER = 1, + POST_ORDER = 2, + LEVEL_ORDER = 3, +} +export enum UnicodeBreakType { + MANDATORY = 0, + CARRIAGE_RETURN = 1, + LINE_FEED = 2, + COMBINING_MARK = 3, + SURROGATE = 4, + ZERO_WIDTH_SPACE = 5, + INSEPARABLE = 6, + NON_BREAKING_GLUE = 7, + CONTINGENT = 8, + SPACE = 9, + AFTER = 10, + BEFORE = 11, + BEFORE_AND_AFTER = 12, + HYPHEN = 13, + NON_STARTER = 14, + OPEN_PUNCTUATION = 15, + CLOSE_PUNCTUATION = 16, + QUOTATION = 17, + EXCLAMATION = 18, + IDEOGRAPHIC = 19, + NUMERIC = 20, + INFIX_SEPARATOR = 21, + SYMBOL = 22, + ALPHABETIC = 23, + PREFIX = 24, + POSTFIX = 25, + COMPLEX_CONTEXT = 26, + AMBIGUOUS = 27, + UNKNOWN = 28, + NEXT_LINE = 29, + WORD_JOINER = 30, + HANGUL_L_JAMO = 31, + HANGUL_V_JAMO = 32, + HANGUL_T_JAMO = 33, + HANGUL_LV_SYLLABLE = 34, + HANGUL_LVT_SYLLABLE = 35, + CLOSE_PARANTHESIS = 36, + CONDITIONAL_JAPANESE_STARTER = 37, + HEBREW_LETTER = 38, + REGIONAL_INDICATOR = 39, + EMOJI_BASE = 40, + EMOJI_MODIFIER = 41, + ZERO_WIDTH_JOINER = 42, +} +export enum UnicodeScript { + INVALID_CODE = -1, + COMMON = 0, + INHERITED = 1, + ARABIC = 2, + ARMENIAN = 3, + BENGALI = 4, + BOPOMOFO = 5, + CHEROKEE = 6, + COPTIC = 7, + CYRILLIC = 8, + DESERET = 9, + DEVANAGARI = 10, + ETHIOPIC = 11, + GEORGIAN = 12, + GOTHIC = 13, + GREEK = 14, + GUJARATI = 15, + GURMUKHI = 16, + HAN = 17, + HANGUL = 18, + HEBREW = 19, + HIRAGANA = 20, + KANNADA = 21, + KATAKANA = 22, + KHMER = 23, + LAO = 24, + LATIN = 25, + MALAYALAM = 26, + MONGOLIAN = 27, + MYANMAR = 28, + OGHAM = 29, + OLD_ITALIC = 30, + ORIYA = 31, + RUNIC = 32, + SINHALA = 33, + SYRIAC = 34, + TAMIL = 35, + TELUGU = 36, + THAANA = 37, + THAI = 38, + TIBETAN = 39, + CANADIAN_ABORIGINAL = 40, + YI = 41, + TAGALOG = 42, + HANUNOO = 43, + BUHID = 44, + TAGBANWA = 45, + BRAILLE = 46, + CYPRIOT = 47, + LIMBU = 48, + OSMANYA = 49, + SHAVIAN = 50, + LINEAR_B = 51, + TAI_LE = 52, + UGARITIC = 53, + NEW_TAI_LUE = 54, + BUGINESE = 55, + GLAGOLITIC = 56, + TIFINAGH = 57, + SYLOTI_NAGRI = 58, + OLD_PERSIAN = 59, + KHAROSHTHI = 60, + UNKNOWN = 61, + BALINESE = 62, + CUNEIFORM = 63, + PHOENICIAN = 64, + PHAGS_PA = 65, + NKO = 66, + KAYAH_LI = 67, + LEPCHA = 68, + REJANG = 69, + SUNDANESE = 70, + SAURASHTRA = 71, + CHAM = 72, + OL_CHIKI = 73, + VAI = 74, + CARIAN = 75, + LYCIAN = 76, + LYDIAN = 77, + AVESTAN = 78, + BAMUM = 79, + EGYPTIAN_HIEROGLYPHS = 80, + IMPERIAL_ARAMAIC = 81, + INSCRIPTIONAL_PAHLAVI = 82, + INSCRIPTIONAL_PARTHIAN = 83, + JAVANESE = 84, + KAITHI = 85, + LISU = 86, + MEETEI_MAYEK = 87, + OLD_SOUTH_ARABIAN = 88, + OLD_TURKIC = 89, + SAMARITAN = 90, + TAI_THAM = 91, + TAI_VIET = 92, + BATAK = 93, + BRAHMI = 94, + MANDAIC = 95, + CHAKMA = 96, + MEROITIC_CURSIVE = 97, + MEROITIC_HIEROGLYPHS = 98, + MIAO = 99, + SHARADA = 100, + SORA_SOMPENG = 101, + TAKRI = 102, + BASSA_VAH = 103, + CAUCASIAN_ALBANIAN = 104, + DUPLOYAN = 105, + ELBASAN = 106, + GRANTHA = 107, + KHOJKI = 108, + KHUDAWADI = 109, + LINEAR_A = 110, + MAHAJANI = 111, + MANICHAEAN = 112, + MENDE_KIKAKUI = 113, + MODI = 114, + MRO = 115, + NABATAEAN = 116, + OLD_NORTH_ARABIAN = 117, + OLD_PERMIC = 118, + PAHAWH_HMONG = 119, + PALMYRENE = 120, + PAU_CIN_HAU = 121, + PSALTER_PAHLAVI = 122, + SIDDHAM = 123, + TIRHUTA = 124, + WARANG_CITI = 125, + AHOM = 126, + ANATOLIAN_HIEROGLYPHS = 127, + HATRAN = 128, + MULTANI = 129, + OLD_HUNGARIAN = 130, + SIGNWRITING = 131, + ADLAM = 132, + BHAIKSUKI = 133, + MARCHEN = 134, + NEWA = 135, + OSAGE = 136, + TANGUT = 137, + MASARAM_GONDI = 138, + NUSHU = 139, + SOYOMBO = 140, + ZANABAZAR_SQUARE = 141, + DOGRA = 142, + GUNJALA_GONDI = 143, + HANIFI_ROHINGYA = 144, + MAKASAR = 145, + MEDEFAIDRIN = 146, + OLD_SOGDIAN = 147, + SOGDIAN = 148, +} +export enum UnicodeType { + CONTROL = 0, + FORMAT = 1, + UNASSIGNED = 2, + PRIVATE_USE = 3, + SURROGATE = 4, + LOWERCASE_LETTER = 5, + MODIFIER_LETTER = 6, + OTHER_LETTER = 7, + TITLECASE_LETTER = 8, + UPPERCASE_LETTER = 9, + SPACING_MARK = 10, + ENCLOSING_MARK = 11, + NON_SPACING_MARK = 12, + DECIMAL_NUMBER = 13, + LETTER_NUMBER = 14, + OTHER_NUMBER = 15, + CONNECT_PUNCTUATION = 16, + DASH_PUNCTUATION = 17, + CLOSE_PUNCTUATION = 18, + FINAL_PUNCTUATION = 19, + INITIAL_PUNCTUATION = 20, + OTHER_PUNCTUATION = 21, + OPEN_PUNCTUATION = 22, + CURRENCY_SYMBOL = 23, + MODIFIER_SYMBOL = 24, + MATH_SYMBOL = 25, + OTHER_SYMBOL = 26, + LINE_SEPARATOR = 27, + PARAGRAPH_SEPARATOR = 28, + SPACE_SEPARATOR = 29, +} +export enum UserDirectory { + DIRECTORY_DESKTOP = 0, + DIRECTORY_DOCUMENTS = 1, + DIRECTORY_DOWNLOAD = 2, + DIRECTORY_MUSIC = 3, + DIRECTORY_PICTURES = 4, + DIRECTORY_PUBLIC_SHARE = 5, + DIRECTORY_TEMPLATES = 6, + DIRECTORY_VIDEOS = 7, + N_DIRECTORIES = 8, +} +export enum VariantClass { + BOOLEAN = 98, + BYTE = 121, + INT16 = 110, + UINT16 = 113, + INT32 = 105, + UINT32 = 117, + INT64 = 120, + UINT64 = 116, + HANDLE = 104, + DOUBLE = 100, + STRING = 115, + OBJECT_PATH = 111, + SIGNATURE = 103, + VARIANT = 118, + MAYBE = 109, + ARRAY = 97, + TUPLE = 40, + DICT_ENTRY = 123, +} +export class VariantParseError extends Error { + constructor(copy: VariantParseError); + // Properties + static FAILED: number; + static BASIC_TYPE_EXPECTED: number; + static CANNOT_INFER_TYPE: number; + static DEFINITE_TYPE_EXPECTED: number; + static INPUT_NOT_AT_END: number; + static INVALID_CHARACTER: number; + static INVALID_FORMAT_STRING: number; + static INVALID_OBJECT_PATH: number; + static INVALID_SIGNATURE: number; + static INVALID_TYPE_STRING: number; + static NO_COMMON_TYPE: number; + static NUMBER_OUT_OF_RANGE: number; + static NUMBER_TOO_BIG: number; + static TYPE_ERROR: number; + static UNEXPECTED_TOKEN: number; + static UNKNOWN_KEYWORD: number; + static UNTERMINATED_STRING_CONSTANT: number; + static VALUE_EXPECTED: number; +} +export enum AsciiType { + ALNUM = 1, + ALPHA = 2, + CNTRL = 4, + DIGIT = 8, + GRAPH = 16, + LOWER = 32, + PRINT = 64, + PUNCT = 128, + SPACE = 256, + UPPER = 512, + XDIGIT = 1024, +} +export enum FileTest { + IS_REGULAR = 1, + IS_SYMLINK = 2, + IS_DIR = 4, + IS_EXECUTABLE = 8, + EXISTS = 16, +} +export enum FormatSizeFlags { + DEFAULT = 0, + LONG_FORMAT = 1, + IEC_UNITS = 2, + BITS = 4, +} +export enum HookFlagMask { + ACTIVE = 1, + IN_CALL = 2, + MASK = 15, +} +export enum IOCondition { + IN = 1, + OUT = 4, + PRI = 2, + ERR = 8, + HUP = 16, + NVAL = 32, +} +export enum IOFlags { + APPEND = 1, + NONBLOCK = 2, + IS_READABLE = 4, + IS_WRITABLE = 8, + IS_WRITEABLE = 8, + IS_SEEKABLE = 16, + MASK = 31, + GET_MASK = 31, + SET_MASK = 3, +} +export enum KeyFileFlags { + NONE = 0, + KEEP_COMMENTS = 1, + KEEP_TRANSLATIONS = 2, +} +export enum LogLevelFlags { + FLAG_RECURSION = 1, + FLAG_FATAL = 2, + LEVEL_ERROR = 4, + LEVEL_CRITICAL = 8, + LEVEL_WARNING = 16, + LEVEL_MESSAGE = 32, + LEVEL_INFO = 64, + LEVEL_DEBUG = 128, + LEVEL_MASK = -4, +} +export enum MarkupCollectType { + INVALID = 0, + STRING = 1, + STRDUP = 2, + BOOLEAN = 3, + TRISTATE = 4, + OPTIONAL = 65536, +} +export enum MarkupParseFlags { + DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1, + TREAT_CDATA_AS_TEXT = 2, + PREFIX_ERROR_POSITION = 4, + IGNORE_QUALIFIED = 8, +} +export enum OptionFlags { + NONE = 0, + HIDDEN = 1, + IN_MAIN = 2, + REVERSE = 4, + NO_ARG = 8, + FILENAME = 16, + OPTIONAL_ARG = 32, + NOALIAS = 64, +} +export enum RegexCompileFlags { + CASELESS = 1, + MULTILINE = 2, + DOTALL = 4, + EXTENDED = 8, + ANCHORED = 16, + DOLLAR_ENDONLY = 32, + UNGREEDY = 512, + RAW = 2048, + NO_AUTO_CAPTURE = 4096, + OPTIMIZE = 8192, + FIRSTLINE = 262144, + DUPNAMES = 524288, + NEWLINE_CR = 1048576, + NEWLINE_LF = 2097152, + NEWLINE_CRLF = 3145728, + NEWLINE_ANYCRLF = 5242880, + BSR_ANYCRLF = 8388608, + JAVASCRIPT_COMPAT = 33554432, +} +export enum RegexMatchFlags { + ANCHORED = 16, + NOTBOL = 128, + NOTEOL = 256, + NOTEMPTY = 1024, + PARTIAL = 32768, + NEWLINE_CR = 1048576, + NEWLINE_LF = 2097152, + NEWLINE_CRLF = 3145728, + NEWLINE_ANY = 4194304, + NEWLINE_ANYCRLF = 5242880, + BSR_ANYCRLF = 8388608, + BSR_ANY = 16777216, + PARTIAL_SOFT = 32768, + PARTIAL_HARD = 134217728, + NOTEMPTY_ATSTART = 268435456, +} +export enum SpawnFlags { + DEFAULT = 0, + LEAVE_DESCRIPTORS_OPEN = 1, + DO_NOT_REAP_CHILD = 2, + SEARCH_PATH = 4, + STDOUT_TO_DEV_NULL = 8, + STDERR_TO_DEV_NULL = 16, + CHILD_INHERITS_STDIN = 32, + FILE_AND_ARGV_ZERO = 64, + SEARCH_PATH_FROM_ENVP = 128, + CLOEXEC_PIPES = 256, +} +export enum TestSubprocessFlags { + STDIN = 1, + STDOUT = 2, + STDERR = 4, +} +export enum TestTrapFlags { + SILENCE_STDOUT = 128, + SILENCE_STDERR = 256, + INHERIT_STDIN = 512, +} +export enum TraverseFlags { + LEAVES = 1, + NON_LEAVES = 2, + ALL = 3, + MASK = 3, + LEAFS = 1, + NON_LEAFS = 2, +} +export class Array { + constructor(copy: Array); + // Fields + data: string; + len: number; +} +export class AsyncQueue { + constructor(copy: AsyncQueue); + // Members + length(): number; + length_unlocked(): number; + lock(): void; + pop(): any | null; + pop_unlocked(): any | null; + push(data: any | null): void; + push_front(item: any | null): void; + push_front_unlocked(item: any | null): void; + push_unlocked(data: any | null): void; + ref_unlocked(): void; + remove(item: any | null): boolean; + remove_unlocked(item: any | null): boolean; + timed_pop(end_time: TimeVal): any | null; + timed_pop_unlocked(end_time: TimeVal): any | null; + timeout_pop(timeout: number): any | null; + timeout_pop_unlocked(timeout: number): any | null; + try_pop(): any | null; + try_pop_unlocked(): any | null; + unlock(): void; + unref(): void; + unref_and_unlock(): void; +} +export class BookmarkFile { + constructor(copy: BookmarkFile); + // Members + add_application(uri: string, name: string | null, exec: string | null): void; + add_group(uri: string, group: string): void; + free(): void; + get_added(uri: string): number; + get_app_info(uri: string, name: string): [boolean, string | null, number | null, number | null]; + get_applications(uri: string): [string[], number | null]; + get_description(uri: string): string; + get_groups(uri: string): [string[], number | null]; + get_icon(uri: string): [boolean, string | null, string | null]; + get_is_private(uri: string): boolean; + get_mime_type(uri: string): string; + get_modified(uri: string): number; + get_size(): number; + get_title(uri: string | null): string; + get_uris(): [string[], number | null]; + get_visited(uri: string): number; + has_application(uri: string, name: string): boolean; + has_group(uri: string, group: string): boolean; + has_item(uri: string): boolean; + load_from_data(data: number[]): boolean; + load_from_data_dirs(file: string): [boolean, string | null]; + load_from_file(filename: string): boolean; + move_item(old_uri: string, new_uri: string | null): boolean; + remove_application(uri: string, name: string): boolean; + remove_group(uri: string, group: string): boolean; + remove_item(uri: string): boolean; + set_added(uri: string, added: number): void; + set_app_info(uri: string, name: string, exec: string, count: number, stamp: number): boolean; + set_description(uri: string | null, description: string): void; + set_groups(uri: string, groups: string[] | null): void; + set_icon(uri: string, href: string | null, mime_type: string): void; + set_is_private(uri: string, is_private: boolean): void; + set_mime_type(uri: string, mime_type: string): void; + set_modified(uri: string, modified: number): void; + set_title(uri: string | null, title: string): void; + set_visited(uri: string, visited: number): void; + to_data(): [number[], number | null]; + to_file(filename: string): boolean; + static error_quark(): Quark; +} +export class ByteArray { + constructor(copy: ByteArray); + // Fields + data: number; + len: number; + // Members + static free(array: number[], free_segment: boolean): number; + static free_to_bytes(array: number[]): Bytes; + static new(): number[]; + static new_take(data: number[]): number[]; + static unref(array: number[]): void; +} +export class Bytes { + constructor(data: number[] | null); + constructor(copy: Bytes); + // Constructors + static ["new"](data: number[] | null): Bytes; + static new_take(data: number[] | null): Bytes; + // Members + compare(bytes2: Bytes): number; + equal(bytes2: Bytes): boolean; + get_data(): [number[] | null, number | null]; + get_size(): number; + hash(): number; + new_from_bytes(offset: number, length: number): Bytes; + ref(): Bytes; + unref(): void; + unref_to_array(): number[]; + unref_to_data(): [number[], number]; + toArray(): Uint8Array; +} +export class Checksum { + constructor(checksum_type: ChecksumType); + constructor(copy: Checksum); + // Constructors + static ["new"](checksum_type: ChecksumType): Checksum; + // Members + copy(): Checksum; + free(): void; + get_string(): string; + reset(): void; + update(data: number[]): void; + static type_get_length(checksum_type: ChecksumType): number; +} +export class Cond { + constructor(copy: Cond); + // Fields + p: any; + i: number[]; + // Members + broadcast(): void; + clear(): void; + init(): void; + signal(): void; + wait(mutex: Mutex): void; + wait_until(mutex: Mutex, end_time: number): boolean; +} +export class Data { + constructor(copy: Data); +} +export class Date { + constructor(); + constructor(copy: Date); + // Fields + julian_days: number; + julian: number; + dmy: number; + day: number; + month: number; + year: number; + // Constructors + static ["new"](): Date; + static new_dmy(day: DateDay, month: DateMonth, year: DateYear): Date; + static new_julian(julian_day: number): Date; + // Members + add_days(n_days: number): void; + add_months(n_months: number): void; + add_years(n_years: number): void; + clamp(min_date: Date, max_date: Date): void; + clear(n_dates: number): void; + compare(rhs: Date): number; + copy(): Date; + days_between(date2: Date): number; + free(): void; + get_day(): DateDay; + get_day_of_year(): number; + get_iso8601_week_of_year(): number; + get_julian(): number; + get_monday_week_of_year(): number; + get_month(): DateMonth; + get_sunday_week_of_year(): number; + get_weekday(): DateWeekday; + get_year(): DateYear; + is_first_of_month(): boolean; + is_last_of_month(): boolean; + order(date2: Date): void; + set_day(day: DateDay): void; + set_dmy(day: DateDay, month: DateMonth, y: DateYear): void; + set_julian(julian_date: number): void; + set_month(month: DateMonth): void; + set_parse(str: string): void; + set_time(time_: Time): void; + set_time_t(timet: number): void; + set_time_val(timeval: TimeVal): void; + set_year(year: DateYear): void; + subtract_days(n_days: number): void; + subtract_months(n_months: number): void; + subtract_years(n_years: number): void; + to_struct_tm(tm: any): void; + valid(): boolean; + static get_days_in_month(month: DateMonth, year: DateYear): number; + static get_monday_weeks_in_year(year: DateYear): number; + static get_sunday_weeks_in_year(year: DateYear): number; + static is_leap_year(year: DateYear): boolean; + static strftime(s: string, slen: number, format: string, date: Date): number; + static valid_day(day: DateDay): boolean; + static valid_dmy(day: DateDay, month: DateMonth, year: DateYear): boolean; + static valid_julian(julian_date: number): boolean; + static valid_month(month: DateMonth): boolean; + static valid_weekday(weekday: DateWeekday): boolean; + static valid_year(year: DateYear): boolean; +} +export class DateTime { + constructor(tz: TimeZone, year: number, month: number, day: number, hour: number, minute: number, seconds: number); + constructor(copy: DateTime); + // Constructors + static ["new"](tz: TimeZone, year: number, month: number, day: number, hour: number, minute: number, seconds: number): DateTime; + static new_from_iso8601(text: string, default_tz: TimeZone | null): DateTime; + static new_from_timeval_local(tv: TimeVal): DateTime; + static new_from_timeval_utc(tv: TimeVal): DateTime; + static new_from_unix_local(t: number): DateTime; + static new_from_unix_utc(t: number): DateTime; + static new_local(year: number, month: number, day: number, hour: number, minute: number, seconds: number): DateTime; + static new_now(tz: TimeZone): DateTime; + static new_now_local(): DateTime; + static new_now_utc(): DateTime; + static new_utc(year: number, month: number, day: number, hour: number, minute: number, seconds: number): DateTime; + // Members + add(timespan: TimeSpan): DateTime; + add_days(days: number): DateTime; + add_full(years: number, months: number, days: number, hours: number, minutes: number, seconds: number): DateTime; + add_hours(hours: number): DateTime; + add_minutes(minutes: number): DateTime; + add_months(months: number): DateTime; + add_seconds(seconds: number): DateTime; + add_weeks(weeks: number): DateTime; + add_years(years: number): DateTime; + difference(begin: DateTime): TimeSpan; + format(format: string): string; + get_day_of_month(): number; + get_day_of_week(): number; + get_day_of_year(): number; + get_hour(): number; + get_microsecond(): number; + get_minute(): number; + get_month(): number; + get_second(): number; + get_seconds(): number; + get_timezone(): TimeZone; + get_timezone_abbreviation(): string; + get_utc_offset(): TimeSpan; + get_week_numbering_year(): number; + get_week_of_year(): number; + get_year(): number; + get_ymd(): [number | null, number | null, number | null]; + is_daylight_savings(): boolean; + ref(): DateTime; + to_local(): DateTime; + to_timeval(tv: TimeVal): boolean; + to_timezone(tz: TimeZone): DateTime; + to_unix(): number; + to_utc(): DateTime; + unref(): void; + static compare(dt1: any, dt2: any): number; + static equal(dt1: any, dt2: any): boolean; + static hash(datetime: any): number; +} +export class DebugKey { + constructor(copy: DebugKey); + // Fields + key: string; + value: number; +} +export class Dir { + constructor(copy: Dir); + // Members + close(): void; + read_name(): string; + rewind(): void; + static make_tmp(tmpl: string | null): string; +} +export class Error { + constructor({ message: string, code: number }); + constructor(copy: Error); + // Fields + domain: Quark; + code: number; + message: string; + // Constructors + static new_literal(domain: Quark, code: number, message: string): Error; + // Members + copy(): Error; + free(): void; + matches(domain: Quark, code: number): boolean; +} +export class HashTable { + constructor(copy: HashTable); + // Members + static add(hash_table: HashTable, key: any | null): boolean; + static contains(hash_table: HashTable, key: any | null): boolean; + static destroy(hash_table: HashTable): void; + static insert(hash_table: HashTable, key: any | null, value: any | null): boolean; + static lookup(hash_table: HashTable, key: any | null): any | null; + static lookup_extended(hash_table: HashTable, lookup_key: any | null): [boolean, any | null, any | null]; + static remove(hash_table: HashTable, key: any | null): boolean; + static remove_all(hash_table: HashTable): void; + static replace(hash_table: HashTable, key: any | null, value: any | null): boolean; + static size(hash_table: HashTable): number; + static steal(hash_table: HashTable, key: any | null): boolean; + static steal_all(hash_table: HashTable): void; + static steal_extended(hash_table: HashTable, lookup_key: any | null): [boolean, any | null, any | null]; + static unref(hash_table: HashTable): void; +} +export class HashTableIter { + constructor(copy: HashTableIter); + // Fields + dummy1: any; + dummy2: any; + dummy3: any; + dummy4: number; + dummy5: boolean; + dummy6: any; + // Members + init(hash_table: HashTable): void; + next(): [boolean, any | null, any | null]; + remove(): void; + replace(value: any | null): void; + steal(): void; +} +export class Hmac { + constructor(copy: Hmac); + // Members + get_digest(buffer: number[]): void; + get_string(): string; + unref(): void; + update(data: number[]): void; +} +export class Hook { + constructor(copy: Hook); + // Fields + data: any; + next: Hook; + prev: Hook; + ref_count: number; + hook_id: number; + flags: number; + func: any; + // Members + compare_ids(sibling: Hook): number; + static destroy(hook_list: HookList, hook_id: number): boolean; + static destroy_link(hook_list: HookList, hook: Hook): void; + static free(hook_list: HookList, hook: Hook): void; + static insert_before(hook_list: HookList, sibling: Hook | null, hook: Hook): void; + static prepend(hook_list: HookList, hook: Hook): void; + static unref(hook_list: HookList, hook: Hook): void; +} +export class HookList { + constructor(copy: HookList); + // Fields + seq_id: number; + hook_size: number; + is_setup: number; + hooks: Hook; + dummy3: any; + finalize_hook: HookFinalizeFunc; + dummy: any[]; + // Members + clear(): void; + init(hook_size: number): void; + invoke(may_recurse: boolean): void; + invoke_check(may_recurse: boolean): void; +} +export class IOChannel { + constructor(filename: string, mode: string); + constructor(copy: IOChannel); + // Fields + ref_count: number; + funcs: IOFuncs; + encoding: string; + line_term: string; + line_term_len: number; + buf_size: number; + read_buf: String; + encoded_read_buf: String; + write_buf: String; + partial_write_buf: number[]; + use_buffer: number; + do_encode: number; + close_on_unref: number; + is_readable: number; + is_writeable: number; + is_seekable: number; + reserved1: any; + reserved2: any; + // Constructors + static new_file(filename: string, mode: string): IOChannel; + static unix_new(fd: number): IOChannel; + // Members + close(): void; + flush(): IOStatus; + get_buffer_condition(): IOCondition; + get_buffer_size(): number; + get_buffered(): boolean; + get_close_on_unref(): boolean; + get_encoding(): string; + get_flags(): IOFlags; + get_line_term(length: number): string; + init(): void; + read(buf: string, count: number, bytes_read: number): IOError; + read_chars(): [IOStatus, number[], number | null]; + read_line(): [IOStatus, string, number | null, number | null]; + read_line_string(buffer: String, terminator_pos: number | null): IOStatus; + read_to_end(): [IOStatus, number[]]; + read_unichar(): [IOStatus, number]; + ref(): IOChannel; + seek(offset: number, type: SeekType): IOError; + seek_position(offset: number, type: SeekType): IOStatus; + set_buffer_size(size: number): void; + set_buffered(buffered: boolean): void; + set_close_on_unref(do_close: boolean): void; + set_encoding(encoding: string | null): IOStatus; + set_flags(flags: IOFlags): IOStatus; + set_line_term(line_term: string | null, length: number): void; + shutdown(flush: boolean): IOStatus; + unix_get_fd(): number; + unref(): void; + write(buf: string, count: number, bytes_written: number): IOError; + write_chars(buf: number[], count: number): [IOStatus, number]; + write_unichar(thechar: number): IOStatus; + static error_from_errno(en: number): IOChannelError; + static error_quark(): Quark; +} +export class IOFuncs { + constructor(copy: IOFuncs); +} +export class KeyFile { + constructor(); + constructor(copy: KeyFile); + // Constructors + static ["new"](): KeyFile; + // Members + get_boolean(group_name: string, key: string): boolean; + get_boolean_list(group_name: string, key: string): [boolean[], number]; + get_comment(group_name: string | null, key: string): string; + get_double(group_name: string, key: string): number; + get_double_list(group_name: string, key: string): [number[], number]; + get_groups(): [string[], number | null]; + get_int64(group_name: string, key: string): number; + get_integer(group_name: string, key: string): number; + get_integer_list(group_name: string, key: string): [number[], number]; + get_keys(group_name: string): [string[], number | null]; + get_locale_for_key(group_name: string, key: string, locale: string | null): string | null; + get_locale_string(group_name: string, key: string, locale: string | null): string; + get_locale_string_list(group_name: string, key: string, locale: string | null): [string[], number | null]; + get_start_group(): string; + get_string(group_name: string, key: string): string; + get_string_list(group_name: string, key: string): [string[], number | null]; + get_uint64(group_name: string, key: string): number; + get_value(group_name: string, key: string): string; + has_group(group_name: string): boolean; + load_from_bytes(bytes: Bytes, flags: KeyFileFlags): boolean; + load_from_data(data: string, length: number, flags: KeyFileFlags): boolean; + load_from_data_dirs(file: string, flags: KeyFileFlags): [boolean, string | null]; + load_from_dirs(file: string, search_dirs: string[], flags: KeyFileFlags): [boolean, string | null]; + load_from_file(file: string, flags: KeyFileFlags): boolean; + remove_comment(group_name: string | null, key: string | null): boolean; + remove_group(group_name: string): boolean; + remove_key(group_name: string, key: string): boolean; + save_to_file(filename: string): boolean; + set_boolean(group_name: string, key: string, value: boolean): void; + set_boolean_list(group_name: string, key: string, list: boolean[]): void; + set_comment(group_name: string | null, key: string | null, comment: string): boolean; + set_double(group_name: string, key: string, value: number): void; + set_double_list(group_name: string, key: string, list: number[]): void; + set_int64(group_name: string, key: string, value: number): void; + set_integer(group_name: string, key: string, value: number): void; + set_integer_list(group_name: string, key: string, list: number[]): void; + set_list_separator(separator: number): void; + set_locale_string(group_name: string, key: string, locale: string, string: string): void; + set_locale_string_list(group_name: string, key: string, locale: string, list: string[]): void; + set_string(group_name: string, key: string, string: string): void; + set_string_list(group_name: string, key: string, list: string[]): void; + set_uint64(group_name: string, key: string, value: number): void; + set_value(group_name: string, key: string, value: string): void; + to_data(): [string, number | null]; + unref(): void; + static error_quark(): Quark; +} +export class List { + constructor(copy: List); + // Fields + data: any; + next: List; + prev: List; +} +export class LogField { + constructor(copy: LogField); + // Fields + key: string; + value: any; + length: number; +} +export class MainContext { + constructor(); + constructor(copy: MainContext); + // Constructors + static ["new"](): MainContext; + // Members + acquire(): boolean; + add_poll(fd: PollFD, priority: number): void; + check(max_priority: number, fds: PollFD[]): boolean; + dispatch(): void; + find_source_by_funcs_user_data(funcs: SourceFuncs): Source; + find_source_by_id(source_id: number): Source; + find_source_by_user_data(): Source; + invoke_full(priority: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): void; + is_owner(): boolean; + iteration(may_block: boolean): boolean; + pending(): boolean; + pop_thread_default(): void; + prepare(priority: number): boolean; + push_thread_default(): void; + query(max_priority: number): [number, number, PollFD[]]; + ref(): MainContext; + release(): void; + remove_poll(fd: PollFD): void; + unref(): void; + wait(cond: Cond, mutex: Mutex): boolean; + wakeup(): void; + static default(): MainContext; + static get_thread_default(): MainContext; + static ref_thread_default(): MainContext; +} +export class MainLoop { + constructor(context: MainContext | null, is_running: boolean); + constructor(copy: MainLoop); + // Constructors + static ["new"](context: MainContext | null, is_running: boolean): MainLoop; + // Members + get_context(): MainContext; + is_running(): boolean; + quit(): void; + ref(): MainLoop; + run(): void; + unref(): void; +} +export class MappedFile { + constructor(filename: string, writable: boolean); + constructor(copy: MappedFile); + // Constructors + static ["new"](filename: string, writable: boolean): MappedFile; + static new_from_fd(fd: number, writable: boolean): MappedFile; + // Members + free(): void; + get_bytes(): Bytes; + get_contents(): string; + get_length(): number; + ref(): MappedFile; + unref(): void; +} +export class MarkupParseContext { + constructor(parser: MarkupParser, flags: MarkupParseFlags, user_data_dnotify: DestroyNotify); + constructor(copy: MarkupParseContext); + // Constructors + static ["new"](parser: MarkupParser, flags: MarkupParseFlags, user_data_dnotify: DestroyNotify): MarkupParseContext; + // Members + end_parse(): boolean; + free(): void; + get_element(): string; + get_position(line_number: number | null, char_number: number | null): void; + get_user_data(): any | null; + parse(text: string, text_len: number): boolean; + pop(): any | null; + push(parser: MarkupParser): void; + ref(): MarkupParseContext; + unref(): void; +} +export class MarkupParser { + constructor(copy: MarkupParser); +} +export class MatchInfo { + constructor(copy: MatchInfo); + // Members + expand_references(string_to_expand: string): string | null; + fetch(match_num: number): string | null; + fetch_all(): string[]; + fetch_named(name: string): string | null; + fetch_named_pos(name: string): [boolean, number | null, number | null]; + fetch_pos(match_num: number): [boolean, number | null, number | null]; + free(): void; + get_match_count(): number; + get_regex(): Regex; + get_string(): string; + is_partial_match(): boolean; + matches(): boolean; + next(): boolean; + ref(): MatchInfo; + unref(): void; +} +export class MemVTable { + constructor(copy: MemVTable); +} +export class Node { + constructor(copy: Node); + // Fields + data: any; + next: Node; + prev: Node; + children: Node; + // Members + child_index(data: any | null): number; + child_position(child: Node): number; + depth(): number; + destroy(): void; + is_ancestor(descendant: Node): boolean; + max_height(): number; + n_children(): number; + n_nodes(flags: TraverseFlags): number; + reverse_children(): void; + unlink(): void; +} +export class Once { + constructor(copy: Once); + // Fields + status: OnceStatus; + retval: any; + // Members + static init_enter(location: any): boolean; + static init_leave(location: any, result: number): void; +} +export class OptionContext { + constructor(copy: OptionContext); + // Members + add_group(group: OptionGroup): void; + add_main_entries(entries: OptionEntry, translation_domain: string | null): void; + free(): void; + get_description(): string; + get_help(main_help: boolean, group: OptionGroup | null): string; + get_help_enabled(): boolean; + get_ignore_unknown_options(): boolean; + get_main_group(): OptionGroup; + get_strict_posix(): boolean; + get_summary(): string; + parse(argv?: string[]): [boolean, string[]]; + parse_strv(_arguments: string[]): [boolean, string[]]; + set_description(description: string | null): void; + set_help_enabled(help_enabled: boolean): void; + set_ignore_unknown_options(ignore_unknown: boolean): void; + set_main_group(group: OptionGroup): void; + set_strict_posix(strict_posix: boolean): void; + set_summary(summary: string | null): void; + set_translate_func(func: TranslateFunc | null, data: any | null, destroy_notify: DestroyNotify | null): void; + set_translation_domain(domain: string): void; +} +export class OptionEntry { + constructor(copy: OptionEntry); + // Fields + long_name: string; + short_name: number; + flags: number; + arg: OptionArg; + arg_data: any; + description: string; + arg_description: string; +} +export class OptionGroup { + constructor(name: string, description: string, help_description: string, destroy: DestroyNotify | null); + constructor(copy: OptionGroup); + // Constructors + static ["new"](name: string, description: string, help_description: string, destroy: DestroyNotify | null): OptionGroup; + // Members + add_entries(entries: OptionEntry): void; + free(): void; + ref(): OptionGroup; + set_translate_func(func: TranslateFunc | null, data: any | null, destroy_notify: DestroyNotify | null): void; + set_translation_domain(domain: string): void; + unref(): void; +} +export class PatternSpec { + constructor(copy: PatternSpec); + // Members + equal(pspec2: PatternSpec): boolean; + free(): void; +} +export class PollFD { + constructor(copy: PollFD); + // Fields + fd: number; + events: number; + revents: number; +} +export class Private { + constructor(copy: Private); + // Fields + p: any; + notify: DestroyNotify; + future: any[]; + // Members + get(): any | null; + replace(value: any | null): void; + set(value: any | null): void; +} +export class PtrArray { + constructor(copy: PtrArray); + // Fields + pdata: any; + len: number; +} +export class Queue { + constructor(copy: Queue); + // Fields + head: List; + tail: List; + length: number; + // Members + clear(): void; + clear_full(free_func: DestroyNotify | null): void; + free(): void; + free_full(free_func: DestroyNotify): void; + get_length(): number; + index(data: any | null): number; + init(): void; + is_empty(): boolean; + peek_head(): any | null; + peek_nth(n: number): any | null; + peek_tail(): any | null; + pop_head(): any | null; + pop_nth(n: number): any | null; + pop_tail(): any | null; + push_head(data: any | null): void; + push_nth(data: any | null, n: number): void; + push_tail(data: any | null): void; + remove(data: any | null): boolean; + remove_all(data: any | null): number; + reverse(): void; +} +export class RWLock { + constructor(copy: RWLock); + // Fields + p: any; + i: number[]; + // Members + clear(): void; + init(): void; + reader_lock(): void; + reader_trylock(): boolean; + reader_unlock(): void; + writer_lock(): void; + writer_trylock(): boolean; + writer_unlock(): void; +} +export class Rand { + constructor(copy: Rand); + // Members + double(): number; + double_range(begin: number, end: number): number; + free(): void; + int(): number; + int_range(begin: number, end: number): number; + set_seed(seed: number): void; + set_seed_array(seed: number, seed_length: number): void; +} +export class RecMutex { + constructor(copy: RecMutex); + // Fields + p: any; + i: number[]; + // Members + clear(): void; + init(): void; + lock(): void; + trylock(): boolean; + unlock(): void; +} +export class Regex { + constructor(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags); + constructor(copy: Regex); + // Constructors + static ["new"](pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex; + // Members + get_capture_count(): number; + get_compile_flags(): RegexCompileFlags; + get_has_cr_or_lf(): boolean; + get_match_flags(): RegexMatchFlags; + get_max_backref(): number; + get_max_lookbehind(): number; + get_pattern(): string; + get_string_number(name: string): number; + match(string: string, match_options: RegexMatchFlags): [boolean, MatchInfo | null]; + match_all(string: string, match_options: RegexMatchFlags): [boolean, MatchInfo | null]; + match_all_full(string: string[], start_position: number, match_options: RegexMatchFlags): [boolean, MatchInfo | null]; + match_full(string: string[], start_position: number, match_options: RegexMatchFlags): [boolean, MatchInfo | null]; + ref(): Regex; + replace(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string; + replace_literal(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string; + split(string: string, match_options: RegexMatchFlags): string[]; + split_full(string: string[], start_position: number, match_options: RegexMatchFlags, max_tokens: number): string[]; + unref(): void; + static check_replacement(replacement: string): [boolean, boolean | null]; + static error_quark(): Quark; + static escape_nul(string: string, length: number): string; + static escape_string(string: string[]): string; + static match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean; + static split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]; +} +export class SList { + constructor(copy: SList); + // Fields + data: any; + next: string[]; +} +export class Scanner { + constructor(copy: Scanner); + // Fields + user_data: any; + max_parse_errors: number; + parse_errors: number; + input_name: string; + qdata: Data; + config: ScannerConfig; + token: TokenType; + value: TokenValue; + line: number; + position: number; + next_token: TokenType; + next_value: TokenValue; + next_line: number; + next_position: number; + symbol_table: HashTable; + input_fd: number; + text: string; + text_end: string; + buffer: string; + scope_id: number; + msg_handler: ScannerMsgFunc; + // Members + cur_line(): number; + cur_position(): number; + cur_token(): TokenType; + destroy(): void; + eof(): boolean; + get_next_token(): TokenType; + input_file(input_fd: number): void; + input_text(text: string, text_len: number): void; + lookup_symbol(symbol: string): any | null; + peek_next_token(): TokenType; + scope_add_symbol(scope_id: number, symbol: string, value: any | null): void; + scope_lookup_symbol(scope_id: number, symbol: string): any | null; + scope_remove_symbol(scope_id: number, symbol: string): void; + set_scope(scope_id: number): number; + sync_file_offset(): void; + unexp_token(expected_token: TokenType, identifier_spec: string, symbol_spec: string, symbol_name: string, message: string, is_error: number): void; +} +export class ScannerConfig { + constructor(copy: ScannerConfig); + // Fields + cset_skip_characters: string; + cset_identifier_first: string; + cset_identifier_nth: string; + cpair_comment_single: string; + case_sensitive: number; + skip_comment_multi: number; + skip_comment_single: number; + scan_comment_multi: number; + scan_identifier: number; + scan_identifier_1char: number; + scan_identifier_NULL: number; + scan_symbols: number; + scan_binary: number; + scan_octal: number; + scan_float: number; + scan_hex: number; + scan_hex_dollar: number; + scan_string_sq: number; + scan_string_dq: number; + numbers_2_int: number; + int_2_float: number; + identifier_2_string: number; + char_2_token: number; + symbol_2_token: number; + scope_0_fallback: number; + store_int64: number; + padding_dummy: number; +} +export class Sequence { + constructor(copy: Sequence); + // Members + append(data: any | null): SequenceIter; + free(): void; + get_begin_iter(): SequenceIter; + get_end_iter(): SequenceIter; + get_iter_at_pos(pos: number): SequenceIter; + get_length(): number; + is_empty(): boolean; + prepend(data: any | null): SequenceIter; + static get(iter: SequenceIter): any | null; + static insert_before(iter: SequenceIter, data: any | null): SequenceIter; + static move(src: SequenceIter, dest: SequenceIter): void; + static move_range(dest: SequenceIter, begin: SequenceIter, end: SequenceIter): void; + static range_get_midpoint(begin: SequenceIter, end: SequenceIter): SequenceIter; + static remove(iter: SequenceIter): void; + static remove_range(begin: SequenceIter, end: SequenceIter): void; + static set(iter: SequenceIter, data: any | null): void; + static swap(a: SequenceIter, b: SequenceIter): void; +} +export class SequenceIter { + constructor(copy: SequenceIter); + // Members + compare(b: SequenceIter): number; + get_position(): number; + get_sequence(): Sequence; + is_begin(): boolean; + is_end(): boolean; + move(delta: number): SequenceIter; + next(): SequenceIter; + prev(): SequenceIter; +} +export class Source { + constructor(source_funcs: SourceFuncs, struct_size: number); + constructor(copy: Source); + // Fields + callback_data: any; + callback_funcs: SourceCallbackFuncs; + source_funcs: SourceFuncs; + ref_count: number; + context: MainContext; + priority: number; + flags: number; + source_id: number; + poll_fds: string[]; + prev: Source; + next: Source; + name: string; + priv: SourcePrivate; + // Constructors + static ["new"](source_funcs: SourceFuncs, struct_size: number): Source; + // Members + add_child_source(child_source: Source): void; + add_poll(fd: PollFD): void; + add_unix_fd(fd: number, events: IOCondition): any; + attach(context: MainContext | null): number; + destroy(): void; + get_can_recurse(): boolean; + get_context(): MainContext | null; + get_current_time(timeval: TimeVal): void; + get_id(): number; + get_name(): string; + get_priority(): number; + get_ready_time(): number; + get_time(): number; + is_destroyed(): boolean; + modify_unix_fd(tag: any, new_events: IOCondition): void; + query_unix_fd(tag: any): IOCondition; + ref(): Source; + remove_child_source(child_source: Source): void; + remove_poll(fd: PollFD): void; + remove_unix_fd(tag: any): void; + set_callback(func: SourceFunc, data: any | null, notify: DestroyNotify | null): void; + set_callback_indirect(callback_data: any | null, callback_funcs: SourceCallbackFuncs): void; + set_can_recurse(can_recurse: boolean): void; + set_funcs(funcs: SourceFuncs): void; + set_name(name: string): void; + set_priority(priority: number): void; + set_ready_time(ready_time: number): void; + unref(): void; + static remove(tag: number): boolean; + static remove_by_funcs_user_data(funcs: SourceFuncs): boolean; + static remove_by_user_data(): boolean; + static set_name_by_id(tag: number, name: string): void; +} +export class SourceCallbackFuncs { + constructor(copy: SourceCallbackFuncs); +} +export class SourceFuncs { + constructor(copy: SourceFuncs); + // Fields + closure_callback: SourceFunc; + closure_marshal: SourceDummyMarshal; +} +export class SourcePrivate { + constructor(copy: SourcePrivate); +} +export class StatBuf { + constructor(copy: StatBuf); +} +export class String { + constructor(copy: String); + // Fields + str: string; + len: number; + allocated_len: number; + // Members + append(val: string): String; + append_c(c: number): String; + append_len(val: string, len: number): String; + append_unichar(wc: number): String; + append_uri_escaped(unescaped: string, reserved_chars_allowed: string, allow_utf8: boolean): String; + ascii_down(): String; + ascii_up(): String; + assign(rval: string): String; + down(): String; + equal(v2: String): boolean; + erase(pos: number, len: number): String; + free(free_segment: boolean): string | null; + free_to_bytes(): Bytes; + hash(): number; + insert(pos: number, val: string): String; + insert_c(pos: number, c: number): String; + insert_len(pos: number, val: string, len: number): String; + insert_unichar(pos: number, wc: number): String; + overwrite(pos: number, val: string): String; + overwrite_len(pos: number, val: string, len: number): String; + prepend(val: string): String; + prepend_c(c: number): String; + prepend_len(val: string, len: number): String; + prepend_unichar(wc: number): String; + set_size(len: number): String; + truncate(len: number): String; + up(): String; +} +export class StringChunk { + constructor(copy: StringChunk); + // Members + clear(): void; + free(): void; + insert(string: string): string; + insert_const(string: string): string; + insert_len(string: string, len: number): string; +} +export class TestCase { + constructor(copy: TestCase); +} +export class TestConfig { + constructor(copy: TestConfig); + // Fields + test_initialized: boolean; + test_quick: boolean; + test_perf: boolean; + test_verbose: boolean; + test_quiet: boolean; + test_undefined: boolean; +} +export class TestLogBuffer { + constructor(copy: TestLogBuffer); + // Fields + data: String; + msgs: string[]; + // Members + free(): void; + push(n_bytes: number, bytes: number): void; +} +export class TestLogMsg { + constructor(copy: TestLogMsg); + // Fields + log_type: TestLogType; + n_strings: number; + strings: string; + n_nums: number; + // Members + free(): void; +} +export class TestSuite { + constructor(copy: TestSuite); + // Members + add(test_case: TestCase): void; + add_suite(nestedsuite: TestSuite): void; +} +export class Thread { + constructor(copy: Thread); + // Members + join(): any | null; + ref(): Thread; + unref(): void; + static error_quark(): Quark; + static exit(retval: any | null): void; + static self(): Thread; + static yield(): void; +} +export class ThreadPool { + constructor(copy: ThreadPool); + // Fields + func: Func; + user_data: any; + exclusive: boolean; + // Members + free(immediate: boolean, wait_: boolean): void; + get_max_threads(): number; + get_num_threads(): number; + move_to_front(data: any | null): boolean; + push(data: any | null): boolean; + set_max_threads(max_threads: number): boolean; + unprocessed(): number; + static get_max_idle_time(): number; + static get_max_unused_threads(): number; + static get_num_unused_threads(): number; + static set_max_idle_time(interval: number): void; + static set_max_unused_threads(max_threads: number): void; + static stop_unused_threads(): void; +} +export class TimeVal { + constructor(copy: TimeVal); + // Fields + tv_sec: number; + tv_usec: number; + // Members + add(microseconds: number): void; + to_iso8601(): string | null; + static from_iso8601(iso_date: string): [boolean, TimeVal]; +} +export class TimeZone { + constructor(identifier: string | null); + constructor(copy: TimeZone); + // Constructors + static ["new"](identifier: string | null): TimeZone; + static new_local(): TimeZone; + static new_offset(seconds: number): TimeZone; + static new_utc(): TimeZone; + // Members + adjust_time(type: TimeType, time_: number): number; + find_interval(type: TimeType, time_: number): number; + get_abbreviation(interval: number): string; + get_identifier(): string; + get_offset(interval: number): number; + is_dst(interval: number): boolean; + ref(): TimeZone; + unref(): void; +} +export class Timer { + constructor(copy: Timer); + // Members + ["continue"](): void; + destroy(): void; + elapsed(microseconds: number): number; + reset(): void; + start(): void; + stop(): void; +} +export class TrashStack { + constructor(copy: TrashStack); + // Fields + next: TrashStack; + // Members + static height(stack_p: TrashStack): number; + static peek(stack_p: TrashStack): any | null; + static pop(stack_p: TrashStack): any | null; + static push(stack_p: TrashStack, data_p: any): void; +} +export class Tree { + constructor(copy: Tree); + // Members + destroy(): void; + height(): number; + insert(key: any | null, value: any | null): void; + lookup(key: any | null): any | null; + lookup_extended(lookup_key: any | null, orig_key: any | null, value: any | null): boolean; + nnodes(): number; + remove(key: any | null): boolean; + replace(key: any | null, value: any | null): void; + steal(key: any | null): boolean; + unref(): void; +} +export class Variant { + constructor(sig: any, value: any); + constructor(copy: Variant); + // Constructors + static new_array(child_type: VariantType | null, children: Variant[] | null): Variant; + static new_boolean(value: boolean): Variant; + static new_byte(value: number): Variant; + static new_bytestring(string: number[]): Variant; + static new_bytestring_array(strv: string[]): Variant; + static new_dict_entry(key: Variant, value: Variant): Variant; + static new_double(value: number): Variant; + static new_fixed_array(element_type: VariantType, elements: any | null, n_elements: number, element_size: number): Variant; + static new_from_bytes(type: VariantType, bytes: Bytes, trusted: boolean): Variant; + static new_from_data(type: VariantType, data: number[], trusted: boolean, notify: DestroyNotify): Variant; + static new_handle(value: number): Variant; + static new_int16(value: number): Variant; + static new_int32(value: number): Variant; + static new_int64(value: number): Variant; + static new_maybe(child_type: VariantType | null, child: Variant | null): Variant; + static new_object_path(object_path: string): Variant; + static new_objv(strv: string[]): Variant; + static new_signature(signature: string): Variant; + static new_string(string: string): Variant; + static new_strv(strv: string[]): Variant; + static new_tuple(children: Variant[]): Variant; + static new_uint16(value: number): Variant; + static new_uint32(value: number): Variant; + static new_uint64(value: number): Variant; + static new_variant(value: Variant): Variant; + static _new_internal: (sig: any, value: any) => any; + static new: (sig: any, value: any) => Variant; + // Members + byteswap(): Variant; + check_format_string(format_string: string, copy_only: boolean): boolean; + classify(): VariantClass; + compare(two: Variant): number; + dup_bytestring(): [number[], number | null]; + dup_bytestring_array(): [string[], number | null]; + dup_objv(): [string[], number | null]; + dup_string(): [string, number]; + dup_strv(): [string[], number | null]; + equal(two: Variant): boolean; + get_boolean(): boolean; + get_byte(): number; + get_bytestring(): number[]; + get_bytestring_array(): [string[], number | null]; + get_child_value(index_: number): Variant; + get_data(): any | null; + get_data_as_bytes(): Bytes; + get_double(): number; + get_handle(): number; + get_int16(): number; + get_int32(): number; + get_int64(): number; + get_maybe(): Variant | null; + get_normal_form(): Variant; + get_objv(): [string[], number | null]; + get_size(): number; + get_string(): [string, number | null]; + get_strv(): [string[], number | null]; + get_type(): VariantType; + get_type_string(): string; + get_uint16(): number; + get_uint32(): number; + get_uint64(): number; + get_variant(): Variant; + hash(): number; + is_container(): boolean; + is_floating(): boolean; + is_normal_form(): boolean; + is_of_type(type: VariantType): boolean; + lookup_value(key: string, expected_type: VariantType | null): Variant; + n_children(): number; + print(type_annotate: boolean): string; + ref(): Variant; + ref_sink(): Variant; + store(data: any): void; + take_ref(): Variant; + unref(): void; + static is_object_path(string: string): boolean; + static is_signature(string: string): boolean; + static parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant; + static parse_error_print_context(error: Error, source_str: string): string; + static parse_error_quark(): Quark; + static parser_get_error_quark(): Quark; + unpack(): T; + deepUnpack(): T; + deep_unpack: any; + recursiveUnpack: () => any; + _init(sig: any, value: any): Variant; +} +export class VariantBuilder { + constructor(type: VariantType); + constructor(copy: VariantBuilder); + // Constructors + static ["new"](type: VariantType): VariantBuilder; + // Members + add_value(value: Variant): void; + close(): void; + end(): Variant; + open(type: VariantType): void; + ref(): VariantBuilder; + unref(): void; +} +export class VariantDict { + constructor(from_asv: Variant | null); + constructor(copy: VariantDict); + // Constructors + static ["new"](from_asv: Variant | null): VariantDict; + // Members + clear(): void; + contains(key: string): boolean; + end(): Variant; + insert_value(key: string, value: Variant): void; + lookup_value(key: string, expected_type: VariantType | null): Variant; + ref(): VariantDict; + remove(key: string): boolean; + unref(): void; + lookup(key: any, variantType?: any, deep?: any): any; +} +export class VariantType { + constructor(type_string: string); + constructor(copy: VariantType); + // Constructors + static ["new"](type_string: string): VariantType; + static new_array(element: VariantType): VariantType; + static new_dict_entry(key: VariantType, value: VariantType): VariantType; + static new_maybe(element: VariantType): VariantType; + static new_tuple(items: VariantType[]): VariantType; + // Members + copy(): VariantType; + dup_string(): string; + element(): VariantType; + equal(type2: VariantType): boolean; + first(): VariantType; + free(): void; + get_string_length(): number; + hash(): number; + is_array(): boolean; + is_basic(): boolean; + is_container(): boolean; + is_definite(): boolean; + is_dict_entry(): boolean; + is_maybe(): boolean; + is_subtype_of(supertype: VariantType): boolean; + is_tuple(): boolean; + is_variant(): boolean; + key(): VariantType; + n_items(): number; + next(): VariantType; + value(): VariantType; + static checked_(arg0: string): VariantType; + static string_get_depth_(type_string: string): number; + static string_is_valid(type_string: string): boolean; + static string_scan(string: string, limit: string | null): [boolean, string | null]; +} +export class DoubleIEEE754 { + constructor(copy: DoubleIEEE754); + // Fields + v_double: number; +} +export class FloatIEEE754 { + constructor(copy: FloatIEEE754); + // Fields + v_float: number; +} +export class Mutex { + constructor(copy: Mutex); + // Fields + p: any; + i: number[]; + // Members + clear(): void; + init(): void; + lock(): void; + trylock(): boolean; + unlock(): void; +} +export class TokenValue { + constructor(copy: TokenValue); + // Fields + v_symbol: any; + v_identifier: string; + v_binary: number; + v_octal: number; + v_int: number; + v_int64: number; + v_float: number; + v_hex: number; + v_string: string; + v_comment: string; + v_char: number; + v_error: number; +} + +export type DateDay = number; + +export type DateYear = number; + +export type MutexLocker = void; + +export type Pid = number; + +export type Quark = number; + +export type RecMutexLocker = void; + +export type RefString = number; + +export type Strv = string; + +export type Time = number; + +export type TimeSpan = number; + +export type Type = number; + +export function log_structured(logDomain, logLevel, stringFields); + +export function strstrip(str: string): string;declare global { + interface Error { + matches(error: any, code?: number): boolean; + } +} diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gobject.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/gobject.d.ts new file mode 100644 index 0000000..e0dbe04 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/gobject.d.ts @@ -0,0 +1,1351 @@ + + +/** + * GObject + */ +import * as Gio from "gio"; +import * as GLib from "glib"; +type GType = object; + +export const PARAM_MASK: number; + +export const PARAM_STATIC_STRINGS: number; + +export const PARAM_USER_SHIFT: number; + +export const SIGNAL_FLAGS_MASK: number; + +export const SIGNAL_MATCH_MASK: number; + +export const TYPE_FLAG_RESERVED_ID_BIT: GLib.Type; + +export const TYPE_FUNDAMENTAL_MAX: number; + +export const TYPE_FUNDAMENTAL_SHIFT: number; + +export const TYPE_RESERVED_BSE_FIRST: number; + +export const TYPE_RESERVED_BSE_LAST: number; + +export const TYPE_RESERVED_GLIB_FIRST: number; + +export const TYPE_RESERVED_GLIB_LAST: number; + +export const TYPE_RESERVED_USER_FIRST: number; + +export const VALUE_NOCOPY_CONTENTS: number; + +export function boxed_copy(boxed_type: GType, src_boxed: any): any; + +export function boxed_free(boxed_type: GType, boxed: any): void; + +export function cclosure_marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_BOOLEAN__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__BOOLEAN(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__CHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__DOUBLE(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__ENUM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__FLOAT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__INT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__LONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__OBJECT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__PARAM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__STRING(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__UCHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__UINT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__UINT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__ULONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__VARIANT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_VOID__VOID(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function cclosure_marshal_generic(closure: Closure, return_gvalue: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + +export function enum_complete_type_info(g_enum_type: GType, const_values: EnumValue): TypeInfo; + +export function enum_get_value(enum_class: EnumClass, value: number): EnumValue; + +export function enum_get_value_by_name(enum_class: EnumClass, name: string): EnumValue; + +export function enum_get_value_by_nick(enum_class: EnumClass, nick: string): EnumValue; + +export function enum_register_static(name: string, const_static_values: EnumValue): GType; + +export function enum_to_string(g_enum_type: GType, value: number): string; + +export function flags_complete_type_info(g_flags_type: GType, const_values: FlagsValue): TypeInfo; + +export function flags_get_first_value(flags_class: FlagsClass, value: number): FlagsValue; + +export function flags_get_value_by_name(flags_class: FlagsClass, name: string): FlagsValue; + +export function flags_get_value_by_nick(flags_class: FlagsClass, nick: string): FlagsValue; + +export function flags_register_static(name: string, const_static_values: FlagsValue): GType; + +export function flags_to_string(flags_type: GType, value: number): string; + +export function gtype_get_type(): GType; + +export function param_spec_boolean(name: string, nick: string, blurb: string, default_value: boolean, flags: ParamFlags): ParamSpec; + +export function param_spec_boxed(name: string, nick: string, blurb: string, boxed_type: GType, flags: ParamFlags): ParamSpec; + +export function param_spec_char(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_double(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_enum(name: string, nick: string, blurb: string, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_flags(name: string, nick: string, blurb: string, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_float(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_gtype(name: string, nick: string, blurb: string, is_a_type: GType, flags: ParamFlags): ParamSpec; + +export function param_spec_int(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_int64(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_long(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_object(name: string, nick: string, blurb: string, object_type: GType, flags: ParamFlags): ParamSpec; + +export function param_spec_param(name: string, nick: string, blurb: string, param_type: GType, flags: ParamFlags): ParamSpec; + +export function param_spec_pointer(name: string, nick: string, blurb: string, flags: ParamFlags): ParamSpec; + +export function param_spec_pool_new(type_prefixing: boolean): ParamSpecPool; + +export function param_spec_string(name: string, nick: string, blurb: string, default_value: string | null, flags: ParamFlags): ParamSpec; + +export function param_spec_uchar(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_uint(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_uint64(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_ulong(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_unichar(name: string, nick: string, blurb: string, default_value: number, flags: ParamFlags): ParamSpec; + +export function param_spec_variant(name: string, nick: string, blurb: string, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec; + +export function param_type_register_static(name: string, pspec_info: ParamSpecTypeInfo): GType; + +export function param_value_convert(pspec: ParamSpec, src_value: Value, dest_value: Value, strict_validation: boolean): boolean; + +export function param_value_defaults(pspec: ParamSpec, value: Value): boolean; + +export function param_value_set_default(pspec: ParamSpec, value: Value): void; + +export function param_value_validate(pspec: ParamSpec, value: Value): boolean; + +export function param_values_cmp(pspec: ParamSpec, value1: Value, value2: Value): number; + +export function pointer_type_register_static(name: string): GType; + +export function signal_accumulator_first_wins(ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, dummy: any | null): boolean; + +export function signal_accumulator_true_handled(ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, dummy: any | null): boolean; + +export function signal_add_emission_hook(signal_id: number, detail: GLib.Quark, hook_func: SignalEmissionHook, hook_data: any | null, data_destroy: GLib.DestroyNotify): number; + +export function signal_chain_from_overridden(instance_and_params: Value[], return_value: Value): void; + +export function signal_connect_closure(instance: Object, detailed_signal: string, closure: Closure, after: boolean): number; + +export function signal_connect_closure_by_id(instance: Object, signal_id: number, detail: GLib.Quark, closure: Closure, after: boolean): number; + +export function signal_emitv(instance_and_params: Value[], signal_id: number, detail: GLib.Quark, return_value: Value | null): Value | null; + +export function signal_get_invocation_hint(instance: Object): SignalInvocationHint; + +export function signal_handler_block(instance: Object, handler_id: number): void; + +export function signal_handler_disconnect(instance: Object, handler_id: number): void; + +export function signal_handler_find(...args: [Object, SignalMatch] | [Object, SignalMatchType, number, GLib.Quark, Closure | null, object | null, object | null]): number; + +export function signal_handler_find(instance: Object, match: SignalMatch): number; + +export function _real_signal_handler_find(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function signal_handler_find(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function signal_handler_is_connected(instance: Object, handler_id: number): boolean; + +export function signal_handler_unblock(instance: Object, handler_id: number): void; + +export function signal_handlers_block_matched(...args: [Object, SignalMatch] | [Object, SignalMatchType, number, GLib.Quark, Closure | null, object | null, object | null]): number; + +export function signal_handlers_block_matched(instance: Object, match: SignalMatch): number; + +export function _real_signal_handlers_block_matched(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function signal_handlers_block_matched(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function signal_handlers_destroy(instance: Object): void; + +export function signal_handlers_disconnect_matched(...args: [Object, SignalMatch] | [Object, SignalMatchType, number, GLib.Quark, Closure | null, object | null, object | null]): number; + +export function signal_handlers_disconnect_matched(instance: Object, match: SignalMatch): number; + +export function signal_handlers_disconnect_matched(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function _real_signal_handlers_disconnect_matched(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function signal_handlers_unblock_matched(...args: [Object, SignalMatch] | [Object, SignalMatchType, number, GLib.Quark, Closure | null, object | null, object | null]): number; + +export function signal_handlers_unblock_matched(instance: Object, match: SignalMatch): number; + +export function signal_handlers_unblock_matched(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function _real_signal_handlers_unblock_matched(instance: Object, mask: SignalMatchType, signal_id: number, detail: GLib.Quark, closure: Closure | null, func: object | null, data: object | null): number; + +export function signal_has_handler_pending(instance: Object, signal_id: number, detail: GLib.Quark, may_be_blocked: boolean): boolean; + +export function signal_list_ids(itype: GType): [number[], number]; + +export function signal_lookup(name: string, itype: GType): number; + +export function signal_name(signal_id: number): string; + +export function signal_override_class_closure(signal_id: number, instance_type: GType, class_closure: Closure): void; + +export function signal_parse_name(detailed_signal: string, itype: GType, force_detail_quark: boolean): [boolean, number, GLib.Quark]; + +export function signal_query(signal_id: number): SignalQuery; + +export function signal_remove_emission_hook(signal_id: number, hook_id: number): void; + +export function signal_set_va_marshaller(signal_id: number, instance_type: GType, va_marshaller: SignalCVaMarshaller): void; + +export function signal_stop_emission(instance: Object, signal_id: number, detail: GLib.Quark): void; + +export function signal_stop_emission_by_name(instance: Object, detailed_signal: string): void; + +export function signal_type_cclosure_new(itype: GType, struct_offset: number): Closure; + +export function source_set_closure(source: GLib.Source, closure: Closure): void; + +export function source_set_dummy_callback(source: GLib.Source): void; + +export function strdup_value_contents(value: Value): string; + +export function type_add_class_private(class_type: GType, private_size: number): void; + +export function type_add_instance_private(class_type: GType, private_size: number): number; + +export function type_add_interface_dynamic(instance_type: GType, interface_type: GType, plugin: TypePlugin): void; + +export function type_add_interface_static(instance_type: GType, interface_type: GType, info: InterfaceInfo): void; + +export function type_check_class_is_a(g_class: TypeClass, is_a_type: GType): boolean; + +export function type_check_instance(instance: TypeInstance): boolean; + +export function type_check_instance_is_a(instance: TypeInstance, iface_type: GType): boolean; + +export function type_check_instance_is_fundamentally_a(instance: TypeInstance, fundamental_type: GType): boolean; + +export function type_check_is_value_type(type: GType): boolean; + +export function type_check_value(value: Value): boolean; + +export function type_check_value_holds(value: Value, type: GType): boolean; + +export function type_children(type: GType): [GType[], number | null]; + +export function type_class_adjust_private_offset(g_class: any | null, private_size_or_offset: number): void; + +export function type_class_peek(type: GType): TypeClass; + +export function type_class_peek_static(type: GType): TypeClass; + +export function type_class_ref(type: GType): TypeClass; + +export function type_default_interface_peek(g_type: GType): TypeInterface; + +export function type_default_interface_ref(g_type: GType): TypeInterface; + +export function type_default_interface_unref(g_iface: TypeInterface): void; + +export function type_depth(type: GType): number; + +export function type_ensure(type: GType): void; + +export function type_free_instance(instance: TypeInstance): void; + +export function type_from_name(name: string): GType; + +export function type_fundamental(type_id: GType): GType; + +export function type_fundamental_next(): GType; + +export function type_get_instance_count(type: GType): number; + +export function type_get_plugin(type: GType): TypePlugin; + +export function type_get_qdata(type: GType, quark: GLib.Quark): any | null; + +export function type_get_type_registration_serial(): number; + +export function type_init(): void; + +export function type_init_with_debug_flags(debug_flags: TypeDebugFlags): void; + +export function type_interface_add_prerequisite(interface_type: GType, prerequisite_type: GType): void; + +export function type_interface_get_plugin(instance_type: GType, interface_type: GType): TypePlugin; + +export function type_interface_peek(instance_class: TypeClass, iface_type: GType): TypeInterface; + +export function type_interface_prerequisites(interface_type: GType): [GType[], number | null]; + +export function type_interfaces(type: GType): [GType[], number | null]; + +export function type_is_a(type: GType, is_a_type: GType): boolean; + +export function type_name(type: GType): string; + +export function type_name_from_class(g_class: TypeClass): string; + +export function type_name_from_instance(instance: TypeInstance): string; + +export function type_next_base(leaf_type: GType, root_type: GType): GType; + +export function type_parent(type: GType): GType; + +export function type_qname(type: GType): GLib.Quark; + +export function type_query(type: GType): TypeQuery; + +export function type_register_dynamic(parent_type: GType, type_name: string, plugin: TypePlugin, flags: TypeFlags): GType; + +export function type_register_fundamental(type_id: GType, type_name: string, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType; + +export function type_register_static(parent_type: GType, type_name: string, info: TypeInfo, flags: TypeFlags): GType; + +export function type_set_qdata(type: GType, quark: GLib.Quark, data: any | null): void; + +export function type_test_flags(type: GType, flags: number): boolean; + +export function value_type_compatible(src_type: GType, dest_type: GType): boolean; + +export function value_type_transformable(src_type: GType, dest_type: GType): boolean; + +export type BaseFinalizeFunc = (g_class: TypeClass) => void; + +export type BaseInitFunc = (g_class: TypeClass) => void; + +export type BindingTransformFunc = (binding: Binding, from_value: Value, to_value: Value) => boolean; + +export type BoxedCopyFunc = (boxed: any) => any; + +export type BoxedFreeFunc = (boxed: any) => void; + +export type Callback = () => void; + +export type ClassFinalizeFunc = (g_class: TypeClass, class_data: any | null) => void; + +export type ClassInitFunc = (g_class: TypeClass, class_data: any | null) => void; + +export type ClosureMarshal = (closure: Closure, return_value: Value | null, param_values: Value[], invocation_hint: any | null, marshal_data: any | null) => void; + +export type ClosureNotify = (data: any | null, closure: Closure) => void; + +export type InstanceInitFunc = (instance: TypeInstance, g_class: TypeClass) => void; + +export type InterfaceFinalizeFunc = (g_iface: TypeInterface, iface_data: any | null) => void; + +export type InterfaceInitFunc = (g_iface: TypeInterface, iface_data: any | null) => void; + +export type ObjectFinalizeFunc = (object: Object) => void; + +export type ObjectGetPropertyFunc = (object: Object, property_id: number, value: Value, pspec: ParamSpec) => void; + +export type ObjectSetPropertyFunc = (object: Object, property_id: number, value: Value, pspec: ParamSpec) => void; + +export type SignalAccumulator = (ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, data: any | null) => boolean; + +export type SignalEmissionHook = (ihint: SignalInvocationHint, param_values: Value[], data: any | null) => boolean; + +export type ToggleNotify = (data: any | null, object: Object, is_last_ref: boolean) => void; + +export type TypeClassCacheFunc = (cache_data: any | null, g_class: TypeClass) => boolean; + +export type TypeInterfaceCheckFunc = (check_data: any | null, g_iface: TypeInterface) => void; + +export type TypePluginCompleteInterfaceInfo = (plugin: TypePlugin, instance_type: GType, interface_type: GType, info: InterfaceInfo) => void; + +export type TypePluginCompleteTypeInfo = (plugin: TypePlugin, g_type: GType, info: TypeInfo, value_table: TypeValueTable) => void; + +export type TypePluginUnuse = (plugin: TypePlugin) => void; + +export type TypePluginUse = (plugin: TypePlugin) => void; + +export type ValueTransform = (src_value: Value, dest_value: Value) => void; + +export type WeakNotify = (data: any | null, where_the_object_was: Object) => void; +export enum BindingFlags { + DEFAULT = 0, + BIDIRECTIONAL = 1, + SYNC_CREATE = 2, + INVERT_BOOLEAN = 4, +} +export enum ConnectFlags { + AFTER = 1, + SWAPPED = 2, +} +export enum ParamFlags { + READABLE = 1, + WRITABLE = 2, + READWRITE = 3, + CONSTRUCT = 4, + CONSTRUCT_ONLY = 8, + LAX_VALIDATION = 16, + STATIC_NAME = 32, + PRIVATE = 32, + STATIC_NICK = 64, + STATIC_BLURB = 128, + EXPLICIT_NOTIFY = 1073741824, + DEPRECATED = 2147483648, +} +export enum SignalFlags { + RUN_FIRST = 1, + RUN_LAST = 2, + RUN_CLEANUP = 4, + NO_RECURSE = 8, + DETAILED = 16, + ACTION = 32, + NO_HOOKS = 64, + MUST_COLLECT = 128, + DEPRECATED = 256, +} +export enum SignalMatchType { + ID = 1, + DETAIL = 2, + CLOSURE = 4, + FUNC = 8, + DATA = 16, + UNBLOCKED = 32, +} +export enum TypeDebugFlags { + NONE = 0, + OBJECTS = 1, + SIGNALS = 2, + INSTANCE_COUNT = 4, + MASK = 7, +} +export enum TypeFlags { + ABSTRACT = 16, + VALUE_ABSTRACT = 32, +} +export enum TypeFundamentalFlags { + CLASSED = 1, + INSTANTIATABLE = 2, + DERIVABLE = 4, + DEEP_DERIVABLE = 8, +} +export module Binding { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + flags: BindingFlags; + source: Object; + source_property: string; + target: Object; + target_property: string; + } +} +export class Binding extends Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Properties + flags: BindingFlags; + source: Object; + source_property: string; + target: Object; + target_property: string; + // Members + get_flags(): BindingFlags; + get_source(): Object; + get_source_property(): string; + get_target(): Object; + get_target_property(): string; + unbind(): void; +} +export module InitiallyUnowned { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class InitiallyUnowned extends Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + g_type_instance: TypeInstance; +} +export module Object { + export interface ConstructorProperties { + [key: string]: any; + } +} +export class Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + g_type_instance: TypeInstance; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'notify', callback: (_source: this, pspec: ParamSpec) => void): number; + connect_after(signal: 'notify', callback: (_source: this, pspec: ParamSpec) => void): number; + emit(signal: 'notify', pspec: ParamSpec): void; + // Constructors + static newv(object_type: GType, parameters: Parameter[]): Object; + // Members + bind_property(source_property: string, target: Object, target_property: string, flags: BindingFlags): Binding; + bind_property_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: BindingTransformFunc | null, transform_from: BindingTransformFunc | null, notify: GLib.DestroyNotify | null): Binding; + bind_property_with_closures(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: Closure, transform_from: Closure): Binding; + force_floating(): void; + freeze_notify(): void; + get_data(key: string): any | null; + get_property(property_name: string, value: Value): void; + get_qdata(quark: GLib.Quark): any | null; + getv(names: string[], values: Value[]): void; + is_floating(): boolean; + notify(property_name: string): void; + notify_by_pspec(pspec: ParamSpec): void; + ref(): Object; + ref_sink(): Object; + run_dispose(): void; + set_data(key: string, data: any | null): void; + set_property(property_name: string, value: Value): void; + steal_data(key: string): any | null; + steal_qdata(quark: GLib.Quark): any | null; + thaw_notify(): void; + unref(): void; + watch_closure(closure: Closure): void; + vfunc_constructed(): void; + vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: ParamSpec): void; + vfunc_dispose(): void; + vfunc_finalize(): void; + vfunc_get_property(property_id: number, value: Value, pspec: ParamSpec): void; + vfunc_notify(pspec: ParamSpec): void; + vfunc_set_property(property_id: number, value: Value, pspec: ParamSpec): void; + static compat_control(what: number, data: any | null): number; + static interface_find_property(g_iface: TypeInterface, property_name: string): ParamSpec; + static interface_install_property(g_iface: TypeInterface, pspec: ParamSpec): void; + static interface_list_properties(g_iface: TypeInterface): [ParamSpec[], number]; + static _classInit: (klass: any) => any; + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + disconnect(id: number): void; + set(params: T): void + block_signal_handler(id: number); + unblock_signal_handler(id: number); + stop_emission_by_name(detailedName: string); +} +export module ParamSpec { + export interface ConstructorProperties { + [key: string]: any; + } +} +export abstract class ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + g_type_instance: TypeInstance; + name: string; + flags: ParamFlags; + value_type: GType; + owner_type: GType; + // Members + get_blurb(): string; + get_default_value(): Value; + get_name(): string; + get_name_quark(): GLib.Quark; + get_nick(): string; + get_qdata(quark: GLib.Quark): any | null; + get_redirect_target(): ParamSpec; + set_qdata(quark: GLib.Quark, data: any | null): void; + sink(): void; + steal_qdata(quark: GLib.Quark): any | null; + vfunc_finalize(): void; + vfunc_value_set_default(value: Value): void; + vfunc_value_validate(value: Value): boolean; + vfunc_values_cmp(value1: Value, value2: Value): number; + static char(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static uchar(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any):ParamSpec; + static int(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static uint(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static long(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static ulong(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static int64(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static uint64(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static float(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static boolean(name: any, nick: any, blurb: any, flags: any, defaultValue: any): ParamSpec; + static flags(name: any, nick: any, blurb: any, flags: any, flagsType: any, defaultValue: any): ParamSpec; + static enum(name: any, nick: any, blurb: any, flags: any, enumType: any, defaultValue: any): ParamSpec; + static double(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; + static string(name: any, nick: any, blurb: any, flags: any, defaultValue: any): ParamSpec; + static boxed(name: any, nick: any, blurb: any, flags: any, boxedType: any): ParamSpec; + static object(name: any, nick: any, blurb: any, flags: any, objectType: any): ParamSpec; + static param(name: any, nick: any, blurb: any, flags: any, paramType: any): ParamSpec; + static override: any; +} +export module ParamSpecBoolean { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecBoolean extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + default_value: boolean; +} +export module ParamSpecBoxed { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecBoxed extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export module ParamSpecChar { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecChar extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecDouble { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecDouble extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; + epsilon: number; +} +export module ParamSpecEnum { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecEnum extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + enum_class: EnumClass; + default_value: number; +} +export module ParamSpecFlags { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecFlags extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + flags_class: FlagsClass; + default_value: number; +} +export module ParamSpecFloat { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecFloat extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; + epsilon: number; +} +export module ParamSpecGType { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecGType extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + is_a_type: GType; +} +export module ParamSpecInt { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecInt extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecInt64 { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecInt64 extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecLong { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecLong extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecObject { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecObject extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export module ParamSpecOverride { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecOverride extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export module ParamSpecParam { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecParam extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export module ParamSpecPointer { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecPointer extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export module ParamSpecString { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecString extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + default_value: string; + cset_first: string; + cset_nth: string; + substitutor: number; + null_fold_if_empty: number; + ensure_non_null: number; +} +export module ParamSpecUChar { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecUChar extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecUInt { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecUInt extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecUInt64 { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecUInt64 extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecULong { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecULong extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + minimum: number; + maximum: number; + default_value: number; +} +export module ParamSpecUnichar { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecUnichar extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + default_value: number; +} +export module ParamSpecValueArray { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecValueArray extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + element_spec: ParamSpec; + fixed_n_elements: number; +} +export module ParamSpecVariant { + export interface ConstructorProperties extends ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecVariant extends ParamSpec { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + type: GLib.VariantType; + default_value: GLib.Variant; +} +export module TypeModule { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class TypeModule extends Object implements TypePlugin { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + use_count: number; + type_infos: string[]; + interface_infos: string[]; + name: string; + // Members + add_interface(instance_type: GType, interface_type: GType, interface_info: InterfaceInfo): void; + register_enum(name: string, const_static_values: EnumValue): GType; + register_flags(name: string, const_static_values: FlagsValue): GType; + register_type(parent_type: GType, type_name: string, type_info: TypeInfo, flags: TypeFlags): GType; + set_name(name: string): void; + unuse(): void; + use(): boolean; + use(...args: never[]): never; + vfunc_load(): boolean; + vfunc_unload(): void; + // Implemented Members + complete_interface_info(instance_type: GType, interface_type: GType, info: InterfaceInfo): void; + complete_type_info(g_type: GType, info: TypeInfo, value_table: TypeValueTable): void; +} +export class CClosure { + constructor(copy: CClosure); + // Fields + closure: Closure; + callback: any; + // Members + static marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_BOOLEAN__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__BOOLEAN(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__CHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__DOUBLE(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__ENUM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__FLOAT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__INT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__LONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__OBJECT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__PARAM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__STRING(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__UCHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__UINT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__UINT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__ULONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__VARIANT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__VOID(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_generic(closure: Closure, return_gvalue: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +} + +export type Closure = (...args: P[]) => R; +export class ClosureNotifyData { + constructor(copy: ClosureNotifyData); + // Fields + data: any; + notify: ClosureNotify; +} +export class EnumClass { + constructor(copy: EnumClass); + // Fields + g_type_class: TypeClass; + minimum: number; + maximum: number; + n_values: number; + values: EnumValue; +} +export class EnumValue { + constructor(copy: EnumValue); + // Fields + value: number; + value_name: string; + value_nick: string; +} +export class FlagsClass { + constructor(copy: FlagsClass); + // Fields + g_type_class: TypeClass; + mask: number; + n_values: number; + values: FlagsValue; +} +export class FlagsValue { + constructor(copy: FlagsValue); + // Fields + value: number; + value_name: string; + value_nick: string; +} +export class InterfaceInfo { + constructor(copy: InterfaceInfo); + // Fields + interface_init: InterfaceInitFunc; + interface_finalize: InterfaceFinalizeFunc; + interface_data: any; +} +export class ObjectConstructParam { + constructor(copy: ObjectConstructParam); + // Fields + pspec: ParamSpec; + value: Value; +} +export class ParamSpecPool { + constructor(copy: ParamSpecPool); + // Members + insert(pspec: ParamSpec, owner_type: GType): void; + list(owner_type: GType): [ParamSpec[], number]; + list_owned(owner_type: GType): GLib.List; + lookup(param_name: string, owner_type: GType, walk_ancestors: boolean): ParamSpec; + remove(pspec: ParamSpec): void; + static new(type_prefixing: boolean): ParamSpecPool; +} +export class ParamSpecTypeInfo { + constructor(copy: ParamSpecTypeInfo); + // Fields + instance_size: number; + n_preallocs: number; + value_type: GType; +} +export class Parameter { + constructor(copy: Parameter); + // Fields + name: string; + value: Value; +} +export class SignalInvocationHint { + constructor(copy: SignalInvocationHint); + // Fields + signal_id: number; + detail: GLib.Quark; + run_type: SignalFlags; +} +export class SignalQuery { + constructor(copy: SignalQuery); + // Fields + signal_id: number; + signal_name: string; + itype: GType; + signal_flags: SignalFlags; + return_type: GType; + n_params: number; + param_types: GType[]; +} +export class TypeClass { + constructor(copy: TypeClass); + // Fields + g_type: GType; + // Members + add_private(private_size: number): void; + get_private(private_type: GType): any | null; + peek_parent(): TypeClass; + unref(): void; + static adjust_private_offset(g_class: any | null, private_size_or_offset: number): void; + static peek(type: GType): TypeClass; + static peek_static(type: GType): TypeClass; + static ref(type: GType): TypeClass; +} +export class TypeFundamentalInfo { + constructor(copy: TypeFundamentalInfo); + // Fields + type_flags: TypeFundamentalFlags; +} +export class TypeInfo { + constructor(copy: TypeInfo); + // Fields + class_size: number; + base_init: BaseInitFunc; + base_finalize: BaseFinalizeFunc; + class_init: ClassInitFunc; + class_finalize: ClassFinalizeFunc; + class_data: any; + instance_size: number; + n_preallocs: number; + instance_init: InstanceInitFunc; + value_table: TypeValueTable; +} +export class TypeInstance { + constructor(copy: TypeInstance); + // Fields + g_class: TypeClass; + // Members + get_private(private_type: GType): any | null; +} +export class TypeInterface { + constructor(copy: TypeInterface); + // Fields + g_type: GType; + g_instance_type: GType; + // Members + peek_parent(): TypeInterface; + static add_prerequisite(interface_type: GType, prerequisite_type: GType): void; + static get_plugin(instance_type: GType, interface_type: GType): TypePlugin; + static peek(instance_class: TypeClass, iface_type: GType): TypeInterface; + static prerequisites(interface_type: GType): [GType[], number | null]; +} +export class TypePluginClass { + constructor(copy: TypePluginClass); + // Fields + base_iface: TypeInterface; + use_plugin: TypePluginUse; + unuse_plugin: TypePluginUnuse; + complete_type_info: TypePluginCompleteTypeInfo; + complete_interface_info: TypePluginCompleteInterfaceInfo; +} +export class TypeQuery { + constructor(copy: TypeQuery); + // Fields + type: GType; + type_name: string; + class_size: number; + instance_size: number; +} +export class TypeValueTable { + constructor(copy: TypeValueTable); + // Fields + collect_format: string; + lcopy_format: string; +} +export class Value { + constructor(copy: Value); + // Fields + g_type: GType; + data: _Value__data__union[]; + // Members + copy(dest_value: Value): void; + dup_object(): Object; + dup_string(): string; + dup_variant(): GLib.Variant | null; + fits_pointer(): boolean; + get_boolean(): boolean; + get_boxed(): any | null; + get_char(): number; + get_double(): number; + get_enum(): number; + get_flags(): number; + get_float(): number; + get_gtype(): GType; + get_int(): number; + get_int64(): number; + get_long(): number; + get_object(): Object; + get_param(): ParamSpec; + get_pointer(): any | null; + get_schar(): number; + get_string(): string; + get_uchar(): number; + get_uint(): number; + get_uint64(): number; + get_ulong(): number; + get_variant(): GLib.Variant | null; + init(g_type: GType): Value; + init_from_instance(instance: TypeInstance): void; + peek_pointer(): any | null; + reset(): Value; + set_boolean(v_boolean: boolean): void; + set_boxed(v_boxed: any | null): void; + set_boxed_take_ownership(v_boxed: any | null): void; + set_char(v_char: number): void; + set_double(v_double: number): void; + set_enum(v_enum: number): void; + set_flags(v_flags: number): void; + set_float(v_float: number): void; + set_gtype(v_gtype: GType): void; + set_instance(instance: any | null): void; + set_int(v_int: number): void; + set_int64(v_int64: number): void; + set_long(v_long: number): void; + set_object(v_object: Object | null): void; + set_param(param: ParamSpec | null): void; + set_pointer(v_pointer: any | null): void; + set_schar(v_char: number): void; + set_static_boxed(v_boxed: any | null): void; + set_static_string(v_string: string | null): void; + set_string(v_string: string | null): void; + set_string_take_ownership(v_string: string | null): void; + set_uchar(v_uchar: number): void; + set_uint(v_uint: number): void; + set_uint64(v_uint64: number): void; + set_ulong(v_ulong: number): void; + set_variant(variant: GLib.Variant | null): void; + take_boxed(v_boxed: any | null): void; + take_string(v_string: string | null): void; + take_variant(variant: GLib.Variant | null): void; + transform(dest_value: Value): boolean; + unset(): void; + static type_compatible(src_type: GType, dest_type: GType): boolean; + static type_transformable(src_type: GType, dest_type: GType): boolean; +} +export class ValueArray { + constructor(n_prealloced: number); + constructor(copy: ValueArray); + // Fields + n_values: number; + values: Value; + n_prealloced: number; + // Constructors + static ["new"](n_prealloced: number): ValueArray; + // Members + append(value: Value | null): ValueArray; + copy(): ValueArray; + get_nth(index_: number): Value; + insert(index_: number, value: Value | null): ValueArray; + prepend(value: Value | null): ValueArray; + remove(index_: number): ValueArray; + sort(compare_func: GLib.CompareFunc): ValueArray; + sort_with_data(compare_func: GLib.CompareDataFunc): ValueArray; +} +export class WeakRef { + constructor(copy: WeakRef); +} +export class TypeCValue { + constructor(copy: TypeCValue); +} +export class _Value__data__union { + constructor(copy: _Value__data__union); + // Fields + v_int: number; + v_uint: number; + v_long: number; + v_ulong: number; + v_int64: number; + v_uint64: number; + v_float: number; + v_double: number; + v_pointer: any; +} +export interface TypePlugin { + // Members + complete_interface_info(instance_type: GType, interface_type: GType, info: InterfaceInfo): void; + complete_type_info(g_type: GType, info: TypeInfo, value_table: TypeValueTable): void; + unuse(): void; + use(): void; +} + +export type SignalCMarshaller = ClosureMarshal; + +export type SignalCVaMarshaller = unknown; + +export type Type = number; + +export function signal_handlers_block_by_func(instance: Object, func: Function); + +export function signal_handlers_unblock_by_func (instance: Object, func: Function); + +export function signal_handlers_disconnect_by_func(instance: Object, func: Function);export class Interface { + static _classInit: (klass: any) => any; + __name__: string; + _construct: (params: any, ...otherArgs: any[]) => any; + _init: (params: any) => void; + $gtype?: GType; +} + +export interface SignalMatch { + signalId: string; + detail: string; + func: Function; +} + +export function signal_connect (object: Object, name: string, handler: Function); +export function signal_connect_after(object: Object, name: string, handler: Function); +export function signal_emit_by_name(object: Object, name: string, ...args: any[]); + +export let __gtkCssName__: symbol; +export let __gtkTemplate__: symbol; +export let __gtkChildren__: symbol; +export let __gtkInternalChildren__: symbol; + +// Expose GObject static properties for ES6 classes + +export let GTypeName: symbol; +export let requires: symbol; +export let interfaces: symbol; +export let properties: symbol; +export let signals: symbol; + +export enum AccumulatorType { + NONE, + FIRST_WINS, + TRUE_HANDLED +} + +export class NotImplementedError extends Error { +} + +export let gtypeNameBasedOnJSPath: boolean; + +export let TYPE_BOOLEAN: GType; +export let Boolean: BooleanConstructor; + +export let TYPE_ENUM: GType; +export let TYPE_FLAGS: GType; + +export let TYPE_DOUBLE: object; +export let Double: NumberConstructor; + +export let TYPE_STRING: GType; +export let String: StringConstructor; + +declare global { + interface BooleanConstructor { + $gtype: GType; + } + + interface NumberConstructor { + $gtype: GType; + } + + interface StringConstructor { + $gtype: GType; + } +} + +export let TYPE_NONE: GType; +export let TYPE_POINTER: GType; +export let TYPE_BOXED: GType; +export let TYPE_PARAM: GType; +export let TYPE_INTERFACE: GType; +export let TYPE_OBJECT: GType; +export let TYPE_VARIANT: GType; + +export function registerClass< + K, + P extends { _init(...args: K[]): void }, + T extends { prototype: P } +>( + klass: T +): { + new (...args: Parameters): T["prototype"]; + prototype: T["prototype"]; +}; + +export function registerClass< + K, + P extends { _init(...args: K[]): void }, + T extends { prototype: P } +>( + options: { + GTypeName?: string; + Properties?: { [key: string]: ParamSpec }; + Signals?: { [key: string]: {} }; + }, + klass: T +): { + new (...args: Parameters): T["prototype"]; + prototype: T["prototype"]; +}; diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gtk.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/gtk.d.ts new file mode 100644 index 0000000..46b6126 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/gtk.d.ts @@ -0,0 +1,17117 @@ + + +/** + * Gtk + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as Atk from "atk"; +import * as Gdk from "gdk"; +import * as xlib from "xlib"; +import * as cairo from "cairo"; +import * as GdkPixbuf from "gdkpixbuf"; +import * as Pango from "pango"; +type GType = object; + +export const BINARY_AGE: number; + +export const INPUT_ERROR: number; + +export const INTERFACE_AGE: number; + +export const LEVEL_BAR_OFFSET_FULL: string; + +export const LEVEL_BAR_OFFSET_HIGH: string; + +export const LEVEL_BAR_OFFSET_LOW: string; + +export const MAJOR_VERSION: number; + +export const MAX_COMPOSE_LEN: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const PAPER_NAME_A3: string; + +export const PAPER_NAME_A4: string; + +export const PAPER_NAME_A5: string; + +export const PAPER_NAME_B5: string; + +export const PAPER_NAME_EXECUTIVE: string; + +export const PAPER_NAME_LEGAL: string; + +export const PAPER_NAME_LETTER: string; + +export const PATH_PRIO_MASK: number; + +export const PRINT_SETTINGS_COLLATE: string; + +export const PRINT_SETTINGS_DEFAULT_SOURCE: string; + +export const PRINT_SETTINGS_DITHER: string; + +export const PRINT_SETTINGS_DUPLEX: string; + +export const PRINT_SETTINGS_FINISHINGS: string; + +export const PRINT_SETTINGS_MEDIA_TYPE: string; + +export const PRINT_SETTINGS_NUMBER_UP: string; + +export const PRINT_SETTINGS_NUMBER_UP_LAYOUT: string; + +export const PRINT_SETTINGS_N_COPIES: string; + +export const PRINT_SETTINGS_ORIENTATION: string; + +export const PRINT_SETTINGS_OUTPUT_BASENAME: string; + +export const PRINT_SETTINGS_OUTPUT_BIN: string; + +export const PRINT_SETTINGS_OUTPUT_DIR: string; + +export const PRINT_SETTINGS_OUTPUT_FILE_FORMAT: string; + +export const PRINT_SETTINGS_OUTPUT_URI: string; + +export const PRINT_SETTINGS_PAGE_RANGES: string; + +export const PRINT_SETTINGS_PAGE_SET: string; + +export const PRINT_SETTINGS_PAPER_FORMAT: string; + +export const PRINT_SETTINGS_PAPER_HEIGHT: string; + +export const PRINT_SETTINGS_PAPER_WIDTH: string; + +export const PRINT_SETTINGS_PRINTER: string; + +export const PRINT_SETTINGS_PRINTER_LPI: string; + +export const PRINT_SETTINGS_PRINT_PAGES: string; + +export const PRINT_SETTINGS_QUALITY: string; + +export const PRINT_SETTINGS_RESOLUTION: string; + +export const PRINT_SETTINGS_RESOLUTION_X: string; + +export const PRINT_SETTINGS_RESOLUTION_Y: string; + +export const PRINT_SETTINGS_REVERSE: string; + +export const PRINT_SETTINGS_SCALE: string; + +export const PRINT_SETTINGS_USE_COLOR: string; + +export const PRINT_SETTINGS_WIN32_DRIVER_EXTRA: string; + +export const PRINT_SETTINGS_WIN32_DRIVER_VERSION: string; + +export const PRIORITY_RESIZE: number; + +export const STOCK_ABOUT: string; + +export const STOCK_ADD: string; + +export const STOCK_APPLY: string; + +export const STOCK_BOLD: string; + +export const STOCK_CANCEL: string; + +export const STOCK_CAPS_LOCK_WARNING: string; + +export const STOCK_CDROM: string; + +export const STOCK_CLEAR: string; + +export const STOCK_CLOSE: string; + +export const STOCK_COLOR_PICKER: string; + +export const STOCK_CONNECT: string; + +export const STOCK_CONVERT: string; + +export const STOCK_COPY: string; + +export const STOCK_CUT: string; + +export const STOCK_DELETE: string; + +export const STOCK_DIALOG_AUTHENTICATION: string; + +export const STOCK_DIALOG_ERROR: string; + +export const STOCK_DIALOG_INFO: string; + +export const STOCK_DIALOG_QUESTION: string; + +export const STOCK_DIALOG_WARNING: string; + +export const STOCK_DIRECTORY: string; + +export const STOCK_DISCARD: string; + +export const STOCK_DISCONNECT: string; + +export const STOCK_DND: string; + +export const STOCK_DND_MULTIPLE: string; + +export const STOCK_EDIT: string; + +export const STOCK_EXECUTE: string; + +export const STOCK_FILE: string; + +export const STOCK_FIND: string; + +export const STOCK_FIND_AND_REPLACE: string; + +export const STOCK_FLOPPY: string; + +export const STOCK_FULLSCREEN: string; + +export const STOCK_GOTO_BOTTOM: string; + +export const STOCK_GOTO_FIRST: string; + +export const STOCK_GOTO_LAST: string; + +export const STOCK_GOTO_TOP: string; + +export const STOCK_GO_BACK: string; + +export const STOCK_GO_DOWN: string; + +export const STOCK_GO_FORWARD: string; + +export const STOCK_GO_UP: string; + +export const STOCK_HARDDISK: string; + +export const STOCK_HELP: string; + +export const STOCK_HOME: string; + +export const STOCK_INDENT: string; + +export const STOCK_INDEX: string; + +export const STOCK_INFO: string; + +export const STOCK_ITALIC: string; + +export const STOCK_JUMP_TO: string; + +export const STOCK_JUSTIFY_CENTER: string; + +export const STOCK_JUSTIFY_FILL: string; + +export const STOCK_JUSTIFY_LEFT: string; + +export const STOCK_JUSTIFY_RIGHT: string; + +export const STOCK_LEAVE_FULLSCREEN: string; + +export const STOCK_MEDIA_FORWARD: string; + +export const STOCK_MEDIA_NEXT: string; + +export const STOCK_MEDIA_PAUSE: string; + +export const STOCK_MEDIA_PLAY: string; + +export const STOCK_MEDIA_PREVIOUS: string; + +export const STOCK_MEDIA_RECORD: string; + +export const STOCK_MEDIA_REWIND: string; + +export const STOCK_MEDIA_STOP: string; + +export const STOCK_MISSING_IMAGE: string; + +export const STOCK_NETWORK: string; + +export const STOCK_NEW: string; + +export const STOCK_NO: string; + +export const STOCK_OK: string; + +export const STOCK_OPEN: string; + +export const STOCK_ORIENTATION_LANDSCAPE: string; + +export const STOCK_ORIENTATION_PORTRAIT: string; + +export const STOCK_ORIENTATION_REVERSE_LANDSCAPE: string; + +export const STOCK_ORIENTATION_REVERSE_PORTRAIT: string; + +export const STOCK_PAGE_SETUP: string; + +export const STOCK_PASTE: string; + +export const STOCK_PREFERENCES: string; + +export const STOCK_PRINT: string; + +export const STOCK_PRINT_ERROR: string; + +export const STOCK_PRINT_PAUSED: string; + +export const STOCK_PRINT_PREVIEW: string; + +export const STOCK_PRINT_REPORT: string; + +export const STOCK_PRINT_WARNING: string; + +export const STOCK_PROPERTIES: string; + +export const STOCK_QUIT: string; + +export const STOCK_REDO: string; + +export const STOCK_REFRESH: string; + +export const STOCK_REMOVE: string; + +export const STOCK_REVERT_TO_SAVED: string; + +export const STOCK_SAVE: string; + +export const STOCK_SAVE_AS: string; + +export const STOCK_SELECT_ALL: string; + +export const STOCK_SELECT_COLOR: string; + +export const STOCK_SELECT_FONT: string; + +export const STOCK_SORT_ASCENDING: string; + +export const STOCK_SORT_DESCENDING: string; + +export const STOCK_SPELL_CHECK: string; + +export const STOCK_STOP: string; + +export const STOCK_STRIKETHROUGH: string; + +export const STOCK_UNDELETE: string; + +export const STOCK_UNDERLINE: string; + +export const STOCK_UNDO: string; + +export const STOCK_UNINDENT: string; + +export const STOCK_YES: string; + +export const STOCK_ZOOM_100: string; + +export const STOCK_ZOOM_FIT: string; + +export const STOCK_ZOOM_IN: string; + +export const STOCK_ZOOM_OUT: string; + +export const STYLE_CLASS_ACCELERATOR: string; + +export const STYLE_CLASS_ARROW: string; + +export const STYLE_CLASS_BACKGROUND: string; + +export const STYLE_CLASS_BOTTOM: string; + +export const STYLE_CLASS_BUTTON: string; + +export const STYLE_CLASS_CALENDAR: string; + +export const STYLE_CLASS_CELL: string; + +export const STYLE_CLASS_CHECK: string; + +export const STYLE_CLASS_COMBOBOX_ENTRY: string; + +export const STYLE_CLASS_CONTEXT_MENU: string; + +export const STYLE_CLASS_CSD: string; + +export const STYLE_CLASS_CURSOR_HANDLE: string; + +export const STYLE_CLASS_DEFAULT: string; + +export const STYLE_CLASS_DESTRUCTIVE_ACTION: string; + +export const STYLE_CLASS_DIM_LABEL: string; + +export const STYLE_CLASS_DND: string; + +export const STYLE_CLASS_DOCK: string; + +export const STYLE_CLASS_ENTRY: string; + +export const STYLE_CLASS_ERROR: string; + +export const STYLE_CLASS_EXPANDER: string; + +export const STYLE_CLASS_FLAT: string; + +export const STYLE_CLASS_FRAME: string; + +export const STYLE_CLASS_GRIP: string; + +export const STYLE_CLASS_HEADER: string; + +export const STYLE_CLASS_HIGHLIGHT: string; + +export const STYLE_CLASS_HORIZONTAL: string; + +export const STYLE_CLASS_IMAGE: string; + +export const STYLE_CLASS_INFO: string; + +export const STYLE_CLASS_INLINE_TOOLBAR: string; + +export const STYLE_CLASS_INSERTION_CURSOR: string; + +export const STYLE_CLASS_LABEL: string; + +export const STYLE_CLASS_LEFT: string; + +export const STYLE_CLASS_LEVEL_BAR: string; + +export const STYLE_CLASS_LINKED: string; + +export const STYLE_CLASS_LIST: string; + +export const STYLE_CLASS_LIST_ROW: string; + +export const STYLE_CLASS_MARK: string; + +export const STYLE_CLASS_MENU: string; + +export const STYLE_CLASS_MENUBAR: string; + +export const STYLE_CLASS_MENUITEM: string; + +export const STYLE_CLASS_MESSAGE_DIALOG: string; + +export const STYLE_CLASS_MONOSPACE: string; + +export const STYLE_CLASS_NEEDS_ATTENTION: string; + +export const STYLE_CLASS_NOTEBOOK: string; + +export const STYLE_CLASS_OSD: string; + +export const STYLE_CLASS_OVERSHOOT: string; + +export const STYLE_CLASS_PANE_SEPARATOR: string; + +export const STYLE_CLASS_PAPER: string; + +export const STYLE_CLASS_POPOVER: string; + +export const STYLE_CLASS_POPUP: string; + +export const STYLE_CLASS_PRIMARY_TOOLBAR: string; + +export const STYLE_CLASS_PROGRESSBAR: string; + +export const STYLE_CLASS_PULSE: string; + +export const STYLE_CLASS_QUESTION: string; + +export const STYLE_CLASS_RADIO: string; + +export const STYLE_CLASS_RAISED: string; + +export const STYLE_CLASS_READ_ONLY: string; + +export const STYLE_CLASS_RIGHT: string; + +export const STYLE_CLASS_RUBBERBAND: string; + +export const STYLE_CLASS_SCALE: string; + +export const STYLE_CLASS_SCALE_HAS_MARKS_ABOVE: string; + +export const STYLE_CLASS_SCALE_HAS_MARKS_BELOW: string; + +export const STYLE_CLASS_SCROLLBAR: string; + +export const STYLE_CLASS_SCROLLBARS_JUNCTION: string; + +export const STYLE_CLASS_SEPARATOR: string; + +export const STYLE_CLASS_SIDEBAR: string; + +export const STYLE_CLASS_SLIDER: string; + +export const STYLE_CLASS_SPINBUTTON: string; + +export const STYLE_CLASS_SPINNER: string; + +export const STYLE_CLASS_STATUSBAR: string; + +export const STYLE_CLASS_SUBTITLE: string; + +export const STYLE_CLASS_SUGGESTED_ACTION: string; + +export const STYLE_CLASS_TITLE: string; + +export const STYLE_CLASS_TITLEBAR: string; + +export const STYLE_CLASS_TOOLBAR: string; + +export const STYLE_CLASS_TOOLTIP: string; + +export const STYLE_CLASS_TOP: string; + +export const STYLE_CLASS_TOUCH_SELECTION: string; + +export const STYLE_CLASS_TROUGH: string; + +export const STYLE_CLASS_UNDERSHOOT: string; + +export const STYLE_CLASS_VERTICAL: string; + +export const STYLE_CLASS_VIEW: string; + +export const STYLE_CLASS_WARNING: string; + +export const STYLE_CLASS_WIDE: string; + +export const STYLE_PROPERTY_BACKGROUND_COLOR: string; + +export const STYLE_PROPERTY_BACKGROUND_IMAGE: string; + +export const STYLE_PROPERTY_BORDER_COLOR: string; + +export const STYLE_PROPERTY_BORDER_RADIUS: string; + +export const STYLE_PROPERTY_BORDER_STYLE: string; + +export const STYLE_PROPERTY_BORDER_WIDTH: string; + +export const STYLE_PROPERTY_COLOR: string; + +export const STYLE_PROPERTY_FONT: string; + +export const STYLE_PROPERTY_MARGIN: string; + +export const STYLE_PROPERTY_PADDING: string; + +export const STYLE_PROVIDER_PRIORITY_APPLICATION: number; + +export const STYLE_PROVIDER_PRIORITY_FALLBACK: number; + +export const STYLE_PROVIDER_PRIORITY_SETTINGS: number; + +export const STYLE_PROVIDER_PRIORITY_THEME: number; + +export const STYLE_PROVIDER_PRIORITY_USER: number; + +export const STYLE_REGION_COLUMN: string; + +export const STYLE_REGION_COLUMN_HEADER: string; + +export const STYLE_REGION_ROW: string; + +export const STYLE_REGION_TAB: string; + +export const TEXT_VIEW_PRIORITY_VALIDATE: number; + +export const TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID: number; + +export const TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID: number; + +export function accel_groups_activate(object: GObject.Object, accel_key: number, accel_mods: Gdk.ModifierType): boolean; + +export function accel_groups_from_object(object: GObject.Object): string[]; + +export function accelerator_get_default_mod_mask(): Gdk.ModifierType; + +export function accelerator_get_label(accelerator_key: number, accelerator_mods: Gdk.ModifierType): string; + +export function accelerator_get_label_with_keycode(display: Gdk.Display | null, accelerator_key: number, keycode: number, accelerator_mods: Gdk.ModifierType): string; + +export function accelerator_name(accelerator_key: number, accelerator_mods: Gdk.ModifierType): string; + +export function accelerator_name_with_keycode(display: Gdk.Display | null, accelerator_key: number, keycode: number, accelerator_mods: Gdk.ModifierType): string; + +export function accelerator_parse(accelerator: string): [number | null, Gdk.ModifierType | null]; + +export function accelerator_parse_with_keycode(accelerator: string): [number | null, number[] | null, Gdk.ModifierType | null]; + +export function accelerator_set_default_mod_mask(default_mod_mask: Gdk.ModifierType): void; + +export function accelerator_valid(keyval: number, modifiers: Gdk.ModifierType): boolean; + +export function alternative_dialog_button_order(screen: Gdk.Screen | null): boolean; + +export function binding_entry_add_signal_from_string(binding_set: BindingSet, signal_desc: string): GLib.TokenType; + +export function binding_entry_add_signall(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType, signal_name: string, binding_args: string[]): void; + +export function binding_entry_remove(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType): void; + +export function binding_entry_skip(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType): void; + +export function binding_set_find(set_name: string): BindingSet | null; + +export function bindings_activate(object: GObject.Object, keyval: number, modifiers: Gdk.ModifierType): boolean; + +export function bindings_activate_event(object: GObject.Object, event: Gdk.EventKey): boolean; + +export function builder_error_quark(): GLib.Quark; + +export function cairo_should_draw_window(cr: cairo.Context, window: Gdk.Window): boolean; + +export function cairo_transform_to_window(cr: cairo.Context, widget: Widget, window: Gdk.Window): void; + +export function check_version(required_major: number, required_minor: number, required_micro: number): string | null; + +export function css_provider_error_quark(): GLib.Quark; + +export function device_grab_add(widget: Widget, device: Gdk.Device, block_others: boolean): void; + +export function device_grab_remove(widget: Widget, device: Gdk.Device): void; + +export function disable_setlocale(): void; + +export function distribute_natural_allocation(extra_space: number, n_requested_sizes: number, sizes: RequestedSize): number; + +export function drag_cancel(context: Gdk.DragContext): void; + +export function drag_finish(context: Gdk.DragContext, success: boolean, del: boolean, time_: number): void; + +export function drag_get_source_widget(context: Gdk.DragContext): Widget | null; + +export function drag_set_icon_default(context: Gdk.DragContext): void; + +export function drag_set_icon_gicon(context: Gdk.DragContext, icon: Gio.Icon, hot_x: number, hot_y: number): void; + +export function drag_set_icon_name(context: Gdk.DragContext, icon_name: string, hot_x: number, hot_y: number): void; + +export function drag_set_icon_pixbuf(context: Gdk.DragContext, pixbuf: GdkPixbuf.Pixbuf, hot_x: number, hot_y: number): void; + +export function drag_set_icon_stock(context: Gdk.DragContext, stock_id: string, hot_x: number, hot_y: number): void; + +export function drag_set_icon_surface(context: Gdk.DragContext, surface: cairo.Surface): void; + +export function drag_set_icon_widget(context: Gdk.DragContext, widget: Widget, hot_x: number, hot_y: number): void; + +export function draw_insertion_cursor(widget: Widget, cr: cairo.Context, location: Gdk.Rectangle, is_primary: boolean, direction: TextDirection, draw_arrow: boolean): void; + +export function events_pending(): boolean; + +export function __false(): boolean; + +export function file_chooser_error_quark(): GLib.Quark; + +export function get_binary_age(): number; + +export function get_current_event(): Gdk.Event | null; + +export function get_current_event_device(): Gdk.Device | null; + +export function get_current_event_state(): [boolean, Gdk.ModifierType]; + +export function get_current_event_time(): number; + +export function get_debug_flags(): number; + +export function get_default_language(): Pango.Language; + +export function get_event_widget(event: Gdk.Event): Widget | null; + +export function get_interface_age(): number; + +export function get_locale_direction(): TextDirection; + +export function get_major_version(): number; + +export function get_micro_version(): number; + +export function get_minor_version(): number; + +export function get_option_group(open_default_display: boolean): GLib.OptionGroup; + +export function grab_get_current(): Widget | null; + +export function icon_size_from_name(name: string): number; + +export function icon_size_get_name(size: number): string; + +export function icon_size_lookup(size: number): [boolean, number | null, number | null]; + +export function icon_size_lookup_for_settings(settings: Settings, size: number): [boolean, number | null, number | null]; + +export function icon_size_register(name: string, width: number, height: number): number; + +export function icon_size_register_alias(alias: string, target: number): void; + +export function icon_theme_error_quark(): GLib.Quark; + +export function init(argv: string[] | null): string[] | null; + +export function init_check(argv: string[] | null): [boolean, string[] | null]; + +export function init_with_args(argv: string[] | null, parameter_string: string | null, entries: GLib.OptionEntry[], translation_domain: string | null): [boolean, string[] | null]; + +export function key_snooper_remove(snooper_handler_id: number): void; + +export function main(): void; + +export function main_do_event(event: Gdk.Event): void; + +export function main_iteration(): boolean; + +export function main_iteration_do(blocking: boolean): boolean; + +export function main_level(): number; + +export function main_quit(): void; + +export function paint_arrow(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, arrow_type: ArrowType, fill: boolean, x: number, y: number, width: number, height: number): void; + +export function paint_box(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_box_gap(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number, gap_side: PositionType, gap_x: number, gap_width: number): void; + +export function paint_check(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_diamond(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_expander(style: Style, cr: cairo.Context, state_type: StateType, widget: Widget | null, detail: string | null, x: number, y: number, expander_style: ExpanderStyle): void; + +export function paint_extension(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number, gap_side: PositionType): void; + +export function paint_flat_box(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_focus(style: Style, cr: cairo.Context, state_type: StateType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_handle(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number, orientation: Orientation): void; + +export function paint_hline(style: Style, cr: cairo.Context, state_type: StateType, widget: Widget | null, detail: string | null, x1: number, x2: number, y: number): void; + +export function paint_layout(style: Style, cr: cairo.Context, state_type: StateType, use_text: boolean, widget: Widget | null, detail: string | null, x: number, y: number, layout: Pango.Layout): void; + +export function paint_option(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_resize_grip(style: Style, cr: cairo.Context, state_type: StateType, widget: Widget | null, detail: string | null, edge: Gdk.WindowEdge, x: number, y: number, width: number, height: number): void; + +export function paint_shadow(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_shadow_gap(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number, gap_side: PositionType, gap_x: number, gap_width: number): void; + +export function paint_slider(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number, orientation: Orientation): void; + +export function paint_spinner(style: Style, cr: cairo.Context, state_type: StateType, widget: Widget | null, detail: string | null, step: number, x: number, y: number, width: number, height: number): void; + +export function paint_tab(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget | null, detail: string | null, x: number, y: number, width: number, height: number): void; + +export function paint_vline(style: Style, cr: cairo.Context, state_type: StateType, widget: Widget | null, detail: string | null, y1_: number, y2_: number, x: number): void; + +export function paper_size_get_default(): string; + +export function paper_size_get_paper_sizes(include_custom: boolean): GLib.List; + +export function parse_args(argv: string[]): [boolean, string[]]; + +export function print_error_quark(): GLib.Quark; + +export function print_run_page_setup_dialog(parent: Window | null, page_setup: PageSetup | null, settings: PrintSettings): PageSetup; + +export function print_run_page_setup_dialog_async(parent: Window | null, page_setup: PageSetup | null, settings: PrintSettings, done_cb: PageSetupDoneFunc, data: any | null): void; + +export function propagate_event(widget: Widget, event: Gdk.Event): void; + +export function rc_add_default_file(filename: string): void; + +export function rc_find_module_in_path(module_file: string): string; + +export function rc_find_pixmap_in_path(settings: Settings, scanner: GLib.Scanner, pixmap_file: string): string; + +export function rc_get_default_files(): string[]; + +export function rc_get_im_module_file(): string; + +export function rc_get_im_module_path(): string; + +export function rc_get_module_dir(): string; + +export function rc_get_style(widget: Widget): Style; + +export function rc_get_style_by_paths(settings: Settings, widget_path: string | null, class_path: string | null, type: GType): Style | null; + +export function rc_get_theme_dir(): string; + +export function rc_parse(filename: string): void; + +export function rc_parse_color(scanner: GLib.Scanner): [number, Gdk.Color]; + +export function rc_parse_color_full(scanner: GLib.Scanner, style: RcStyle | null): [number, Gdk.Color]; + +export function rc_parse_priority(scanner: GLib.Scanner, priority: PathPriorityType): number; + +export function rc_parse_state(scanner: GLib.Scanner): [number, StateType]; + +export function rc_parse_string(rc_string: string): void; + +export function rc_property_parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + +export function rc_property_parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + +export function rc_property_parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + +export function rc_property_parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + +export function rc_property_parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + +export function rc_reparse_all(): boolean; + +export function rc_reparse_all_for_settings(settings: Settings, force_load: boolean): boolean; + +export function rc_reset_styles(settings: Settings): void; + +export function rc_set_default_files(filenames: string[]): void; + +export function recent_chooser_error_quark(): GLib.Quark; + +export function recent_manager_error_quark(): GLib.Quark; + +export function render_activity(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_arrow(context: StyleContext, cr: cairo.Context, angle: number, x: number, y: number, size: number): void; + +export function render_background(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_background_get_clip(context: StyleContext, x: number, y: number, width: number, height: number): Gdk.Rectangle; + +export function render_check(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_expander(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_extension(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number, gap_side: PositionType): void; + +export function render_focus(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_frame(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_frame_gap(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number, gap_side: PositionType, xy0_gap: number, xy1_gap: number): void; + +export function render_handle(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_icon(context: StyleContext, cr: cairo.Context, pixbuf: GdkPixbuf.Pixbuf, x: number, y: number): void; + +export function render_icon_pixbuf(context: StyleContext, source: IconSource, size: number): GdkPixbuf.Pixbuf; + +export function render_icon_surface(context: StyleContext, cr: cairo.Context, surface: cairo.Surface, x: number, y: number): void; + +export function render_insertion_cursor(context: StyleContext, cr: cairo.Context, x: number, y: number, layout: Pango.Layout, index: number, direction: Pango.Direction): void; + +export function render_layout(context: StyleContext, cr: cairo.Context, x: number, y: number, layout: Pango.Layout): void; + +export function render_line(context: StyleContext, cr: cairo.Context, x0: number, y0: number, x1: number, y1: number): void; + +export function render_option(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number): void; + +export function render_slider(context: StyleContext, cr: cairo.Context, x: number, y: number, width: number, height: number, orientation: Orientation): void; + +export function rgb_to_hsv(r: number, g: number, b: number): [number, number, number]; + +export function selection_add_target(widget: Widget, selection: Gdk.Atom, target: Gdk.Atom, info: number): void; + +export function selection_add_targets(widget: Widget, selection: Gdk.Atom, targets: TargetEntry[]): void; + +export function selection_clear_targets(widget: Widget, selection: Gdk.Atom): void; + +export function selection_convert(widget: Widget, selection: Gdk.Atom, target: Gdk.Atom, time_: number): boolean; + +export function selection_owner_set(widget: Widget | null, selection: Gdk.Atom, time_: number): boolean; + +export function selection_owner_set_for_display(display: Gdk.Display, widget: Widget | null, selection: Gdk.Atom, time_: number): boolean; + +export function selection_remove_all(widget: Widget): void; + +export function set_debug_flags(flags: number): void; + +export function show_uri(screen: Gdk.Screen | null, uri: string, timestamp: number): boolean; + +export function show_uri_on_window(parent: Window | null, uri: string, timestamp: number): boolean; + +export function stock_add(items: StockItem[]): void; + +export function stock_add_static(items: StockItem[]): void; + +export function stock_list_ids(): string[]; + +export function stock_lookup(stock_id: string): [boolean, StockItem]; + +export function stock_set_translate_func(domain: string, func: TranslateFunc, data: any | null, notify: GLib.DestroyNotify): void; + +export function target_table_free(targets: TargetEntry[]): void; + +export function target_table_new_from_list(list: TargetList): [TargetEntry[], number]; + +export function targets_include_image(targets: Gdk.Atom[], writable: boolean): boolean; + +export function targets_include_rich_text(targets: Gdk.Atom[], buffer: TextBuffer): boolean; + +export function targets_include_text(targets: Gdk.Atom[]): boolean; + +export function targets_include_uri(targets: Gdk.Atom[]): boolean; + +export function test_create_simple_window(window_title: string, dialog_text: string): Widget; + +export function test_find_label(widget: Widget, label_pattern: string): Widget; + +export function test_find_sibling(base_widget: Widget, widget_type: GType): Widget; + +export function test_find_widget(widget: Widget, label_pattern: string, widget_type: GType): Widget | null; + +export function test_list_all_types(): [GType[], number]; + +export function test_register_all_types(): void; + +export function test_slider_get_value(widget: Widget): number; + +export function test_slider_set_perc(widget: Widget, percentage: number): void; + +export function test_spin_button_click(spinner: SpinButton, button: number, upwards: boolean): boolean; + +export function test_text_get(widget: Widget): string; + +export function test_text_set(widget: Widget, string: string): void; + +export function test_widget_click(widget: Widget, button: number, modifiers: Gdk.ModifierType): boolean; + +export function test_widget_send_key(widget: Widget, keyval: number, modifiers: Gdk.ModifierType): boolean; + +export function test_widget_wait_for_draw(widget: Widget): void; + +export function tree_get_row_drag_data(selection_data: SelectionData): [boolean, TreeModel | null, TreePath | null]; + +export function tree_row_reference_deleted(proxy: GObject.Object, path: TreePath): void; + +export function tree_row_reference_inserted(proxy: GObject.Object, path: TreePath): void; + +export function tree_set_row_drag_data(selection_data: SelectionData, tree_model: TreeModel, path: TreePath): boolean; + +export function __true(): boolean; + +export type AccelGroupActivate = (accel_group: AccelGroup, acceleratable: GObject.Object, keyval: number, modifier: Gdk.ModifierType) => boolean; + +export type AccelGroupFindFunc = (key: AccelKey, closure: GObject.Closure, data: any | null) => boolean; + +export type AccelMapForeach = (data: any | null, accel_path: string, accel_key: number, accel_mods: Gdk.ModifierType, changed: boolean) => void; + +export type AssistantPageFunc = (current_page: number, data: any | null) => number; + +export type BuilderConnectFunc = (builder: Builder, object: GObject.Object, signal_name: string, handler_name: string, connect_object: GObject.Object | null, flags: GObject.ConnectFlags) => void; + +export type CalendarDetailFunc = (calendar: Calendar, year: number, month: number, day: number) => string | null; + +export type Callback = (widget: Widget, data: any | null) => void; + +export type CellAllocCallback = (renderer: CellRenderer, cell_area: Gdk.Rectangle, cell_background: Gdk.Rectangle, data: any | null) => boolean; + +export type CellCallback = (renderer: CellRenderer, data: any | null) => boolean; + +export type CellLayoutDataFunc = (cell_layout: CellLayout, cell: CellRenderer, tree_model: TreeModel, iter: TreeIter, data: any | null) => void; + +export type ClipboardClearFunc = (clipboard: Clipboard, user_data_or_owner: any | null) => void; + +export type ClipboardGetFunc = (clipboard: Clipboard, selection_data: SelectionData, info: number, user_data_or_owner: any | null) => void; + +export type ClipboardImageReceivedFunc = (clipboard: Clipboard, pixbuf: GdkPixbuf.Pixbuf, data: any | null) => void; + +export type ClipboardReceivedFunc = (clipboard: Clipboard, selection_data: SelectionData, data: any | null) => void; + +export type ClipboardRichTextReceivedFunc = (clipboard: Clipboard, format: Gdk.Atom, text: string | null, length: number, data: any | null) => void; + +export type ClipboardTargetsReceivedFunc = (clipboard: Clipboard, atoms: Gdk.Atom[] | null, data: any | null) => void; + +export type ClipboardTextReceivedFunc = (clipboard: Clipboard, text: string | null, data: any | null) => void; + +export type ClipboardURIReceivedFunc = (clipboard: Clipboard, uris: string[], data: any | null) => void; + +export type ColorSelectionChangePaletteFunc = (colors: Gdk.Color[]) => void; + +export type ColorSelectionChangePaletteWithScreenFunc = (screen: Gdk.Screen, colors: Gdk.Color[]) => void; + +export type EntryCompletionMatchFunc = (completion: EntryCompletion, key: string, iter: TreeIter) => boolean; + +export type FileFilterFunc = (filter_info: FileFilterInfo, data: any | null) => boolean; + +export type FlowBoxCreateWidgetFunc = (item: Item) => Widget; + +export type FlowBoxFilterFunc = (child: FlowBoxChild) => boolean; + +export type FlowBoxForeachFunc = (box: FlowBox, child: FlowBoxChild) => void; + +export type FlowBoxSortFunc = (child1: FlowBoxChild, child2: FlowBoxChild) => number; + +export type FontFilterFunc = (family: Pango.FontFamily, face: Pango.FontFace, data: any | null) => boolean; + +export type IconViewForeachFunc = (icon_view: IconView, path: TreePath, data: any | null) => void; + +export type KeySnoopFunc = (grab_widget: Widget, event: Gdk.EventKey, func_data: any | null) => number; + +export type ListBoxCreateWidgetFunc = (item: Item) => Widget; + +export type ListBoxFilterFunc = (row: ListBoxRow) => boolean; + +export type ListBoxForeachFunc = (box: ListBox, row: ListBoxRow) => void; + +export type ListBoxSortFunc = (row1: ListBoxRow, row2: ListBoxRow) => number; + +export type ListBoxUpdateHeaderFunc = (row: ListBoxRow, before: ListBoxRow | null) => void; + +export type MenuDetachFunc = (attach_widget: Widget, menu: Menu) => void; + +export type MenuPositionFunc = (menu: Menu, x: number, y: number) => void; + +export type ModuleDisplayInitFunc = (display: Gdk.Display) => void; + +export type ModuleInitFunc = (argv: string[] | null) => void; + +export type PageSetupDoneFunc = (page_setup: PageSetup, data: any | null) => void; + +export type PrintSettingsFunc = (key: string, value: string) => void; + +export type RcPropertyParser = (pspec: GObject.ParamSpec, rc_string: GLib.String, property_value: GObject.Value) => boolean; + +export type RecentFilterFunc = (filter_info: RecentFilterInfo) => boolean; + +export type RecentSortFunc = (a: RecentInfo, b: RecentInfo) => number; + +export type StylePropertyParser = (string: string, value: GObject.Value) => boolean; + +export type TextBufferDeserializeFunc = (register_buffer: TextBuffer, content_buffer: TextBuffer, iter: TextIter, data: number[], create_tags: boolean) => boolean; + +export type TextBufferSerializeFunc = (register_buffer: TextBuffer, content_buffer: TextBuffer, start: TextIter, end: TextIter, length: number) => number | null; + +export type TextCharPredicate = (ch: number) => boolean; + +export type TextTagTableForeach = (tag: TextTag, data: any | null) => void; + +export type TickCallback = (widget: Widget, frame_clock: Gdk.FrameClock) => boolean; + +export type TranslateFunc = (path: string, func_data: any | null) => string; + +export type TreeCellDataFunc = (tree_column: TreeViewColumn, cell: CellRenderer, tree_model: TreeModel, iter: TreeIter, data: any | null) => void; + +export type TreeDestroyCountFunc = (tree_view: TreeView, path: TreePath, children: number) => void; + +export type TreeIterCompareFunc = (model: TreeModel, a: TreeIter, b: TreeIter) => number; + +export type TreeModelFilterModifyFunc = (model: TreeModel, iter: TreeIter, column: number, data: any | null) => void; + +export type TreeModelFilterVisibleFunc = (model: TreeModel, iter: TreeIter, data: any | null) => boolean; + +export type TreeModelForeachFunc = (model: TreeModel, path: TreePath, iter: TreeIter, data: any | null) => boolean; + +export type TreeSelectionForeachFunc = (model: TreeModel, path: TreePath, iter: TreeIter, data: any | null) => void; + +export type TreeSelectionFunc = (selection: TreeSelection, model: TreeModel, path: TreePath, path_currently_selected: boolean, data: any | null) => boolean; + +export type TreeViewColumnDropFunc = (tree_view: TreeView, column: TreeViewColumn, prev_column: TreeViewColumn, next_column: TreeViewColumn, data: any | null) => boolean; + +export type TreeViewMappingFunc = (tree_view: TreeView, path: TreePath) => void; + +export type TreeViewRowSeparatorFunc = (model: TreeModel, iter: TreeIter, data: any | null) => boolean; + +export type TreeViewSearchEqualFunc = (model: TreeModel, column: number, key: string, iter: TreeIter, search_data: any | null) => boolean; + +export type TreeViewSearchPositionFunc = (tree_view: TreeView, search_dialog: Widget) => void; +export enum Align { + FILL = 0, + START = 1, + END = 2, + CENTER = 3, + BASELINE = 4, +} +export enum ArrowPlacement { + BOTH = 0, + START = 1, + END = 2, +} +export enum ArrowType { + UP = 0, + DOWN = 1, + LEFT = 2, + RIGHT = 3, + NONE = 4, +} +export enum AssistantPageType { + CONTENT = 0, + INTRO = 1, + CONFIRM = 2, + SUMMARY = 3, + PROGRESS = 4, + CUSTOM = 5, +} +export enum BaselinePosition { + TOP = 0, + CENTER = 1, + BOTTOM = 2, +} +export enum BorderStyle { + NONE = 0, + SOLID = 1, + INSET = 2, + OUTSET = 3, + HIDDEN = 4, + DOTTED = 5, + DASHED = 6, + DOUBLE = 7, + GROOVE = 8, + RIDGE = 9, +} +export class BuilderError extends GLib.Error { + constructor(copy: BuilderError); + // Properties + static INVALID_TYPE_FUNCTION: number; + static UNHANDLED_TAG: number; + static MISSING_ATTRIBUTE: number; + static INVALID_ATTRIBUTE: number; + static INVALID_TAG: number; + static MISSING_PROPERTY_VALUE: number; + static INVALID_VALUE: number; + static VERSION_MISMATCH: number; + static DUPLICATE_ID: number; + static OBJECT_TYPE_REFUSED: number; + static TEMPLATE_MISMATCH: number; + static INVALID_PROPERTY: number; + static INVALID_SIGNAL: number; + static INVALID_ID: number; + // Members + quark(): GLib.Quark; +} +export enum ButtonBoxStyle { + SPREAD = 1, + EDGE = 2, + START = 3, + END = 4, + CENTER = 5, + EXPAND = 6, +} +export enum ButtonRole { + NORMAL = 0, + CHECK = 1, + RADIO = 2, +} +export enum ButtonsType { + NONE = 0, + OK = 1, + CLOSE = 2, + CANCEL = 3, + YES_NO = 4, + OK_CANCEL = 5, +} +export enum CellRendererAccelMode { + GTK = 0, + OTHER = 1, +} +export enum CellRendererMode { + INERT = 0, + ACTIVATABLE = 1, + EDITABLE = 2, +} +export enum CornerType { + TOP_LEFT = 0, + BOTTOM_LEFT = 1, + TOP_RIGHT = 2, + BOTTOM_RIGHT = 3, +} +export class CssProviderError extends GLib.Error { + constructor(copy: CssProviderError); + // Properties + static FAILED: number; + static SYNTAX: number; + static IMPORT: number; + static NAME: number; + static DEPRECATED: number; + static UNKNOWN_VALUE: number; + // Members + quark(): GLib.Quark; +} +export enum CssSectionType { + DOCUMENT = 0, + IMPORT = 1, + COLOR_DEFINITION = 2, + BINDING_SET = 3, + RULESET = 4, + SELECTOR = 5, + DECLARATION = 6, + VALUE = 7, + KEYFRAMES = 8, +} +export enum DeleteType { + CHARS = 0, + WORD_ENDS = 1, + WORDS = 2, + DISPLAY_LINES = 3, + DISPLAY_LINE_ENDS = 4, + PARAGRAPH_ENDS = 5, + PARAGRAPHS = 6, + WHITESPACE = 7, +} +export enum DirectionType { + TAB_FORWARD = 0, + TAB_BACKWARD = 1, + UP = 2, + DOWN = 3, + LEFT = 4, + RIGHT = 5, +} +export enum DragResult { + SUCCESS = 0, + NO_TARGET = 1, + USER_CANCELLED = 2, + TIMEOUT_EXPIRED = 3, + GRAB_BROKEN = 4, + ERROR = 5, +} +export enum EntryIconPosition { + PRIMARY = 0, + SECONDARY = 1, +} +export enum EventSequenceState { + NONE = 0, + CLAIMED = 1, + DENIED = 2, +} +export enum ExpanderStyle { + COLLAPSED = 0, + SEMI_COLLAPSED = 1, + SEMI_EXPANDED = 2, + EXPANDED = 3, +} +export enum FileChooserAction { + OPEN = 0, + SAVE = 1, + SELECT_FOLDER = 2, + CREATE_FOLDER = 3, +} +export enum FileChooserConfirmation { + CONFIRM = 0, + ACCEPT_FILENAME = 1, + SELECT_AGAIN = 2, +} +export class FileChooserError extends GLib.Error { + constructor(copy: FileChooserError); + // Properties + static NONEXISTENT: number; + static BAD_FILENAME: number; + static ALREADY_EXISTS: number; + static INCOMPLETE_HOSTNAME: number; + // Members + quark(): GLib.Quark; +} +export enum IMPreeditStyle { + NOTHING = 0, + CALLBACK = 1, + NONE = 2, +} +export enum IMStatusStyle { + NOTHING = 0, + CALLBACK = 1, + NONE = 2, +} +export enum IconSize { + INVALID = 0, + MENU = 1, + SMALL_TOOLBAR = 2, + LARGE_TOOLBAR = 3, + BUTTON = 4, + DND = 5, + DIALOG = 6, +} +export class IconThemeError extends GLib.Error { + constructor(copy: IconThemeError); + // Properties + static NOT_FOUND: number; + static FAILED: number; + // Members + quark(): GLib.Quark; +} +export enum IconViewDropPosition { + NO_DROP = 0, + DROP_INTO = 1, + DROP_LEFT = 2, + DROP_RIGHT = 3, + DROP_ABOVE = 4, + DROP_BELOW = 5, +} +export enum ImageType { + EMPTY = 0, + PIXBUF = 1, + STOCK = 2, + ICON_SET = 3, + ANIMATION = 4, + ICON_NAME = 5, + GICON = 6, + SURFACE = 7, +} +export enum InputPurpose { + FREE_FORM = 0, + ALPHA = 1, + DIGITS = 2, + NUMBER = 3, + PHONE = 4, + URL = 5, + EMAIL = 6, + NAME = 7, + PASSWORD = 8, + PIN = 9, + TERMINAL = 10, +} +export enum Justification { + LEFT = 0, + RIGHT = 1, + CENTER = 2, + FILL = 3, +} +export enum LevelBarMode { + CONTINUOUS = 0, + DISCRETE = 1, +} +export enum License { + UNKNOWN = 0, + CUSTOM = 1, + GPL_2_0 = 2, + GPL_3_0 = 3, + LGPL_2_1 = 4, + LGPL_3_0 = 5, + BSD = 6, + MIT_X11 = 7, + ARTISTIC = 8, + GPL_2_0_ONLY = 9, + GPL_3_0_ONLY = 10, + LGPL_2_1_ONLY = 11, + LGPL_3_0_ONLY = 12, + AGPL_3_0 = 13, + AGPL_3_0_ONLY = 14, +} +export enum MenuDirectionType { + PARENT = 0, + CHILD = 1, + NEXT = 2, + PREV = 3, +} +export enum MessageType { + INFO = 0, + WARNING = 1, + QUESTION = 2, + ERROR = 3, + OTHER = 4, +} +export enum MovementStep { + LOGICAL_POSITIONS = 0, + VISUAL_POSITIONS = 1, + WORDS = 2, + DISPLAY_LINES = 3, + DISPLAY_LINE_ENDS = 4, + PARAGRAPHS = 5, + PARAGRAPH_ENDS = 6, + PAGES = 7, + BUFFER_ENDS = 8, + HORIZONTAL_PAGES = 9, +} +export enum NotebookTab { + FIRST = 0, + LAST = 1, +} +export enum NumberUpLayout { + LRTB = 0, + LRBT = 1, + RLTB = 2, + RLBT = 3, + TBLR = 4, + TBRL = 5, + BTLR = 6, + BTRL = 7, +} +export enum Orientation { + HORIZONTAL = 0, + VERTICAL = 1, +} +export enum PackDirection { + LTR = 0, + RTL = 1, + TTB = 2, + BTT = 3, +} +export enum PackType { + START = 0, + END = 1, +} +export enum PadActionType { + BUTTON = 0, + RING = 1, + STRIP = 2, +} +export enum PageOrientation { + PORTRAIT = 0, + LANDSCAPE = 1, + REVERSE_PORTRAIT = 2, + REVERSE_LANDSCAPE = 3, +} +export enum PageSet { + ALL = 0, + EVEN = 1, + ODD = 2, +} +export enum PanDirection { + LEFT = 0, + RIGHT = 1, + UP = 2, + DOWN = 3, +} +export enum PathPriorityType { + LOWEST = 0, + GTK = 4, + APPLICATION = 8, + THEME = 10, + RC = 12, + HIGHEST = 15, +} +export enum PathType { + WIDGET = 0, + WIDGET_CLASS = 1, + CLASS = 2, +} +export enum PolicyType { + ALWAYS = 0, + AUTOMATIC = 1, + NEVER = 2, + EXTERNAL = 3, +} +export enum PopoverConstraint { + NONE = 0, + WINDOW = 1, +} +export enum PositionType { + LEFT = 0, + RIGHT = 1, + TOP = 2, + BOTTOM = 3, +} +export enum PrintDuplex { + SIMPLEX = 0, + HORIZONTAL = 1, + VERTICAL = 2, +} +export class PrintError extends GLib.Error { + constructor(copy: PrintError); + // Properties + static GENERAL: number; + static INTERNAL_ERROR: number; + static NOMEM: number; + static INVALID_FILE: number; + // Members + quark(): GLib.Quark; +} +export enum PrintOperationAction { + PRINT_DIALOG = 0, + PRINT = 1, + PREVIEW = 2, + EXPORT = 3, +} +export enum PrintOperationResult { + ERROR = 0, + APPLY = 1, + CANCEL = 2, + IN_PROGRESS = 3, +} +export enum PrintPages { + ALL = 0, + CURRENT = 1, + RANGES = 2, + SELECTION = 3, +} +export enum PrintQuality { + LOW = 0, + NORMAL = 1, + HIGH = 2, + DRAFT = 3, +} +export enum PrintStatus { + INITIAL = 0, + PREPARING = 1, + GENERATING_DATA = 2, + SENDING_DATA = 3, + PENDING = 4, + PENDING_ISSUE = 5, + PRINTING = 6, + FINISHED = 7, + FINISHED_ABORTED = 8, +} +export enum PropagationPhase { + NONE = 0, + CAPTURE = 1, + BUBBLE = 2, + TARGET = 3, +} +export enum RcTokenType { + INVALID = 270, + INCLUDE = 271, + NORMAL = 272, + ACTIVE = 273, + PRELIGHT = 274, + SELECTED = 275, + INSENSITIVE = 276, + FG = 277, + BG = 278, + TEXT = 279, + BASE = 280, + XTHICKNESS = 281, + YTHICKNESS = 282, + FONT = 283, + FONTSET = 284, + FONT_NAME = 285, + BG_PIXMAP = 286, + PIXMAP_PATH = 287, + STYLE = 288, + BINDING = 289, + BIND = 290, + WIDGET = 291, + WIDGET_CLASS = 292, + CLASS = 293, + LOWEST = 294, + GTK = 295, + APPLICATION = 296, + THEME = 297, + RC = 298, + HIGHEST = 299, + ENGINE = 300, + MODULE_PATH = 301, + IM_MODULE_PATH = 302, + IM_MODULE_FILE = 303, + STOCK = 304, + LTR = 305, + RTL = 306, + COLOR = 307, + UNBIND = 308, + LAST = 309, +} +export class RecentChooserError extends GLib.Error { + constructor(copy: RecentChooserError); + // Properties + static NOT_FOUND: number; + static INVALID_URI: number; + // Members + quark(): GLib.Quark; +} +export class RecentManagerError extends GLib.Error { + constructor(copy: RecentManagerError); + // Properties + static NOT_FOUND: number; + static INVALID_URI: number; + static INVALID_ENCODING: number; + static NOT_REGISTERED: number; + static READ: number; + static WRITE: number; + static UNKNOWN: number; + // Members + quark(): GLib.Quark; +} +export enum RecentSortType { + NONE = 0, + MRU = 1, + LRU = 2, + CUSTOM = 3, +} +export enum ReliefStyle { + NORMAL = 0, + HALF = 1, + NONE = 2, +} +export enum ResizeMode { + PARENT = 0, + QUEUE = 1, + IMMEDIATE = 2, +} +export enum ResponseType { + NONE = -1, + REJECT = -2, + ACCEPT = -3, + DELETE_EVENT = -4, + OK = -5, + CANCEL = -6, + CLOSE = -7, + YES = -8, + NO = -9, + APPLY = -10, + HELP = -11, +} +export enum RevealerTransitionType { + NONE = 0, + CROSSFADE = 1, + SLIDE_RIGHT = 2, + SLIDE_LEFT = 3, + SLIDE_UP = 4, + SLIDE_DOWN = 5, +} +export enum ScrollStep { + STEPS = 0, + PAGES = 1, + ENDS = 2, + HORIZONTAL_STEPS = 3, + HORIZONTAL_PAGES = 4, + HORIZONTAL_ENDS = 5, +} +export enum ScrollType { + NONE = 0, + JUMP = 1, + STEP_BACKWARD = 2, + STEP_FORWARD = 3, + PAGE_BACKWARD = 4, + PAGE_FORWARD = 5, + STEP_UP = 6, + STEP_DOWN = 7, + PAGE_UP = 8, + PAGE_DOWN = 9, + STEP_LEFT = 10, + STEP_RIGHT = 11, + PAGE_LEFT = 12, + PAGE_RIGHT = 13, + START = 14, + END = 15, +} +export enum ScrollablePolicy { + MINIMUM = 0, + NATURAL = 1, +} +export enum SelectionMode { + NONE = 0, + SINGLE = 1, + BROWSE = 2, + MULTIPLE = 3, +} +export enum SensitivityType { + AUTO = 0, + ON = 1, + OFF = 2, +} +export enum ShadowType { + NONE = 0, + IN = 1, + OUT = 2, + ETCHED_IN = 3, + ETCHED_OUT = 4, +} +export enum ShortcutType { + ACCELERATOR = 0, + GESTURE_PINCH = 1, + GESTURE_STRETCH = 2, + GESTURE_ROTATE_CLOCKWISE = 3, + GESTURE_ROTATE_COUNTERCLOCKWISE = 4, + GESTURE_TWO_FINGER_SWIPE_LEFT = 5, + GESTURE_TWO_FINGER_SWIPE_RIGHT = 6, + GESTURE = 7, +} +export enum SizeGroupMode { + NONE = 0, + HORIZONTAL = 1, + VERTICAL = 2, + BOTH = 3, +} +export enum SizeRequestMode { + HEIGHT_FOR_WIDTH = 0, + WIDTH_FOR_HEIGHT = 1, + CONSTANT_SIZE = 2, +} +export enum SortType { + ASCENDING = 0, + DESCENDING = 1, +} +export enum SpinButtonUpdatePolicy { + ALWAYS = 0, + IF_VALID = 1, +} +export enum SpinType { + STEP_FORWARD = 0, + STEP_BACKWARD = 1, + PAGE_FORWARD = 2, + PAGE_BACKWARD = 3, + HOME = 4, + END = 5, + USER_DEFINED = 6, +} +export enum StackTransitionType { + NONE = 0, + CROSSFADE = 1, + SLIDE_RIGHT = 2, + SLIDE_LEFT = 3, + SLIDE_UP = 4, + SLIDE_DOWN = 5, + SLIDE_LEFT_RIGHT = 6, + SLIDE_UP_DOWN = 7, + OVER_UP = 8, + OVER_DOWN = 9, + OVER_LEFT = 10, + OVER_RIGHT = 11, + UNDER_UP = 12, + UNDER_DOWN = 13, + UNDER_LEFT = 14, + UNDER_RIGHT = 15, + OVER_UP_DOWN = 16, + OVER_DOWN_UP = 17, + OVER_LEFT_RIGHT = 18, + OVER_RIGHT_LEFT = 19, +} +export enum StateType { + NORMAL = 0, + ACTIVE = 1, + PRELIGHT = 2, + SELECTED = 3, + INSENSITIVE = 4, + INCONSISTENT = 5, + FOCUSED = 6, +} +export enum TextBufferTargetInfo { + BUFFER_CONTENTS = -1, + RICH_TEXT = -2, + TEXT = -3, +} +export enum TextDirection { + NONE = 0, + LTR = 1, + RTL = 2, +} +export enum TextExtendSelection { + WORD = 0, + LINE = 1, +} +export enum TextViewLayer { + BELOW = 0, + ABOVE = 1, + BELOW_TEXT = 2, + ABOVE_TEXT = 3, +} +export enum TextWindowType { + PRIVATE = 0, + WIDGET = 1, + TEXT = 2, + LEFT = 3, + RIGHT = 4, + TOP = 5, + BOTTOM = 6, +} +export enum ToolbarSpaceStyle { + EMPTY = 0, + LINE = 1, +} +export enum ToolbarStyle { + ICONS = 0, + TEXT = 1, + BOTH = 2, + BOTH_HORIZ = 3, +} +export enum TreeViewColumnSizing { + GROW_ONLY = 0, + AUTOSIZE = 1, + FIXED = 2, +} +export enum TreeViewDropPosition { + BEFORE = 0, + AFTER = 1, + INTO_OR_BEFORE = 2, + INTO_OR_AFTER = 3, +} +export enum TreeViewGridLines { + NONE = 0, + HORIZONTAL = 1, + VERTICAL = 2, + BOTH = 3, +} +export enum Unit { + NONE = 0, + POINTS = 1, + INCH = 2, + MM = 3, +} +export enum WidgetHelpType { + TOOLTIP = 0, + WHATS_THIS = 1, +} +export enum WindowPosition { + NONE = 0, + CENTER = 1, + MOUSE = 2, + CENTER_ALWAYS = 3, + CENTER_ON_PARENT = 4, +} +export enum WindowType { + TOPLEVEL = 0, + POPUP = 1, +} +export enum WrapMode { + NONE = 0, + CHAR = 1, + WORD = 2, + WORD_CHAR = 3, +} +export enum AccelFlags { + VISIBLE = 1, + LOCKED = 2, + MASK = 7, +} +export enum ApplicationInhibitFlags { + LOGOUT = 1, + SWITCH = 2, + SUSPEND = 4, + IDLE = 8, +} +export enum AttachOptions { + EXPAND = 1, + SHRINK = 2, + FILL = 4, +} +export enum CalendarDisplayOptions { + SHOW_HEADING = 1, + SHOW_DAY_NAMES = 2, + NO_MONTH_CHANGE = 4, + SHOW_WEEK_NUMBERS = 8, + SHOW_DETAILS = 32, +} +export enum CellRendererState { + SELECTED = 1, + PRELIT = 2, + INSENSITIVE = 4, + SORTED = 8, + FOCUSED = 16, + EXPANDABLE = 32, + EXPANDED = 64, +} +export enum DebugFlag { + MISC = 1, + PLUGSOCKET = 2, + TEXT = 4, + TREE = 8, + UPDATES = 16, + KEYBINDINGS = 32, + MULTIHEAD = 64, + MODULES = 128, + GEOMETRY = 256, + ICONTHEME = 512, + PRINTING = 1024, + BUILDER = 2048, + SIZE_REQUEST = 4096, + NO_CSS_CACHE = 8192, + BASELINES = 16384, + PIXEL_CACHE = 32768, + NO_PIXEL_CACHE = 65536, + INTERACTIVE = 131072, + TOUCHSCREEN = 262144, + ACTIONS = 524288, + RESIZE = 1048576, + LAYOUT = 2097152, +} +export enum DestDefaults { + MOTION = 1, + HIGHLIGHT = 2, + DROP = 4, + ALL = 7, +} +export enum DialogFlags { + MODAL = 1, + DESTROY_WITH_PARENT = 2, + USE_HEADER_BAR = 4, +} +export enum EventControllerScrollFlags { + NONE = 0, + VERTICAL = 1, + HORIZONTAL = 2, + DISCRETE = 4, + KINETIC = 8, + BOTH_AXES = 3, +} +export enum FileFilterFlags { + FILENAME = 1, + URI = 2, + DISPLAY_NAME = 4, + MIME_TYPE = 8, +} +export enum FontChooserLevel { + FAMILY = 0, + STYLE = 1, + SIZE = 2, + VARIATIONS = 4, + FEATURES = 8, +} +export enum IconLookupFlags { + NO_SVG = 1, + FORCE_SVG = 2, + USE_BUILTIN = 4, + GENERIC_FALLBACK = 8, + FORCE_SIZE = 16, + FORCE_REGULAR = 32, + FORCE_SYMBOLIC = 64, + DIR_LTR = 128, + DIR_RTL = 256, +} +export enum InputHints { + NONE = 0, + SPELLCHECK = 1, + NO_SPELLCHECK = 2, + WORD_COMPLETION = 4, + LOWERCASE = 8, + UPPERCASE_CHARS = 16, + UPPERCASE_WORDS = 32, + UPPERCASE_SENTENCES = 64, + INHIBIT_OSK = 128, + VERTICAL_WRITING = 256, + EMOJI = 512, + NO_EMOJI = 1024, +} +export enum JunctionSides { + NONE = 0, + CORNER_TOPLEFT = 1, + CORNER_TOPRIGHT = 2, + CORNER_BOTTOMLEFT = 4, + CORNER_BOTTOMRIGHT = 8, + TOP = 3, + BOTTOM = 12, + LEFT = 5, + RIGHT = 10, +} +export enum PlacesOpenFlags { + NORMAL = 1, + NEW_TAB = 2, + NEW_WINDOW = 4, +} +export enum RcFlags { + FG = 1, + BG = 2, + TEXT = 4, + BASE = 8, +} +export enum RecentFilterFlags { + URI = 1, + DISPLAY_NAME = 2, + MIME_TYPE = 4, + APPLICATION = 8, + GROUP = 16, + AGE = 32, +} +export enum RegionFlags { + EVEN = 1, + ODD = 2, + FIRST = 4, + LAST = 8, + ONLY = 16, + SORTED = 32, +} +export enum StateFlags { + NORMAL = 0, + ACTIVE = 1, + PRELIGHT = 2, + SELECTED = 4, + INSENSITIVE = 8, + INCONSISTENT = 16, + FOCUSED = 32, + BACKDROP = 64, + DIR_LTR = 128, + DIR_RTL = 256, + LINK = 512, + VISITED = 1024, + CHECKED = 2048, + DROP_ACTIVE = 4096, +} +export enum StyleContextPrintFlags { + NONE = 0, + RECURSE = 1, + SHOW_STYLE = 2, +} +export enum TargetFlags { + SAME_APP = 1, + SAME_WIDGET = 2, + OTHER_APP = 4, + OTHER_WIDGET = 8, +} +export enum TextSearchFlags { + VISIBLE_ONLY = 1, + TEXT_ONLY = 2, + CASE_INSENSITIVE = 4, +} +export enum ToolPaletteDragTargets { + ITEMS = 1, + GROUPS = 2, +} +export enum TreeModelFlags { + ITERS_PERSIST = 1, + LIST_ONLY = 2, +} +export enum UIManagerItemType { + AUTO = 0, + MENUBAR = 1, + MENU = 2, + TOOLBAR = 4, + PLACEHOLDER = 8, + POPUP = 16, + MENUITEM = 32, + TOOLITEM = 64, + SEPARATOR = 128, + ACCELERATOR = 256, + POPUP_WITH_ACCELS = 512, +} +export module AboutDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + } +} +export class AboutDialog extends Dialog { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-link', callback: (_source: this, uri: string) => boolean): number; + connect_after(signal: 'activate-link', callback: (_source: this, uri: string) => boolean): number; + emit(signal: 'activate-link', uri: string): void; + // Constructors + static ["new"](): AboutDialog; + static ["new"](...args: never[]): never; +} +export module AccelGroup { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + is_locked: boolean; + modifier_mask: Gdk.ModifierType; + } +} +export class AccelGroup extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + is_locked: boolean; + modifier_mask: Gdk.ModifierType; + // Fields + priv: AccelGroupPrivate; + // Signals + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect_after(signal: 'accel-activate', callback: (_source: this, acceleratable: GObject.Object, keyval: number, modifier: Gdk.ModifierType) => boolean): number; + emit(signal: 'accel-activate', acceleratable: GObject.Object, keyval: number, modifier: Gdk.ModifierType): void; + connect_after(signal: 'accel-changed', callback: (_source: this, keyval: number, modifier: Gdk.ModifierType, accel_closure: GObject.Closure) => void): number; + emit(signal: 'accel-changed', keyval: number, modifier: Gdk.ModifierType, accel_closure: GObject.Closure): void; + // Constructors + static ["new"](): AccelGroup; + // Members + activate(accel_quark: GLib.Quark, acceleratable: GObject.Object, accel_key: number, accel_mods: Gdk.ModifierType): boolean; + connect(accel_key: number, accel_mods: Gdk.ModifierType, accel_flags: AccelFlags, closure: GObject.Closure): void; + connect(...args: never[]): never; + connect_by_path(accel_path: string, closure: GObject.Closure): void; + disconnect(closure: GObject.Closure | null): boolean; + disconnect(...args: never[]): never; + disconnect_key(accel_key: number, accel_mods: Gdk.ModifierType): boolean; + find(find_func: AccelGroupFindFunc, data: any | null): AccelKey; + get_is_locked(): boolean; + get_modifier_mask(): Gdk.ModifierType; + lock(): void; + query(accel_key: number, accel_mods: Gdk.ModifierType): [AccelGroupEntry[] | null, number | null]; + unlock(): void; + vfunc_accel_changed(keyval: number, modifier: Gdk.ModifierType, accel_closure: GObject.Closure): void; + static from_accel_closure(closure: GObject.Closure): AccelGroup | null; +} +export module AccelLabel { + export interface ConstructorProperties extends Label.ConstructorProperties { + [key: string]: any; + accel_closure: GObject.Closure; + accel_widget: Widget; + } +} +export class AccelLabel extends Label implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_closure: GObject.Closure; + accel_widget: Widget; + // Fields + label: Label | any; + priv: AccelLabelPrivate; + // Constructors + static ["new"](string: string): AccelLabel; + static ["new"](...args: never[]): never; + // Members + get_accel(): [number, Gdk.ModifierType]; + get_accel_widget(): Widget | null; + get_accel_width(): number; + refetch(): boolean; + set_accel(accelerator_key: number, accelerator_mods: Gdk.ModifierType): void; + set_accel_closure(accel_closure: GObject.Closure | null): void; + set_accel_widget(accel_widget: Widget | null): void; +} +export module AccelMap { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class AccelMap extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this, accel_path: string, accel_key: number, accel_mods: Gdk.ModifierType) => void): number; + connect_after(signal: 'changed', callback: (_source: this, accel_path: string, accel_key: number, accel_mods: Gdk.ModifierType) => void): number; + emit(signal: 'changed', accel_path: string, accel_key: number, accel_mods: Gdk.ModifierType): void; + // Members + static add_entry(accel_path: string, accel_key: number, accel_mods: Gdk.ModifierType): void; + static add_filter(filter_pattern: string): void; + static change_entry(accel_path: string, accel_key: number, accel_mods: Gdk.ModifierType, replace: boolean): boolean; + static foreach(data: any | null, foreach_func: AccelMapForeach): void; + static foreach_unfiltered(data: any | null, foreach_func: AccelMapForeach): void; + static get(): AccelMap; + static load(file_name: string): void; + static load_fd(fd: number): void; + static load_scanner(scanner: GLib.Scanner): void; + static lock_path(accel_path: string): void; + static lookup_entry(accel_path: string): [boolean, AccelKey | null]; + static save(file_name: string): void; + static save_fd(fd: number): void; + static unlock_path(accel_path: string): void; +} +export module Accessible { + export interface ConstructorProperties extends Atk.Object.ConstructorProperties { + [key: string]: any; + widget: Widget; + } +} +export class Accessible extends Atk.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + widget: Widget; + // Members + connect_widget_destroyed(): void; + get_widget(): Widget | null; + set_widget(widget: Widget | null): void; + vfunc_connect_widget_destroyed(): void; + vfunc_widget_set(): void; + vfunc_widget_unset(): void; +} +export module Action { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + action_group: ActionGroup; + always_show_image: boolean; + gicon: Gio.Icon; + hide_if_empty: boolean; + icon_name: string; + is_important: boolean; + label: string; + name: string; + sensitive: boolean; + short_label: string; + stock_id: string; + tooltip: string; + visible: boolean; + visible_horizontal: boolean; + visible_overflown: boolean; + visible_vertical: boolean; + } +} +export class Action extends GObject.Object implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + action_group: ActionGroup; + always_show_image: boolean; + gicon: Gio.Icon; + hide_if_empty: boolean; + icon_name: string; + is_important: boolean; + label: string; + name: string; + sensitive: boolean; + short_label: string; + stock_id: string; + tooltip: string; + visible: boolean; + visible_horizontal: boolean; + visible_overflown: boolean; + visible_vertical: boolean; + // Fields + object: GObject.Object; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + // Constructors + static ["new"](name: string, label: string | null, tooltip: string | null, stock_id: string | null): Action; + // Members + activate(): void; + block_activate(): void; + connect_accelerator(): void; + create_icon(icon_size: number): Widget; + create_menu(): Widget; + create_menu_item(): Widget; + create_tool_item(): Widget; + disconnect_accelerator(): void; + get_accel_closure(): GObject.Closure; + get_accel_path(): string; + get_always_show_image(): boolean; + get_gicon(): Gio.Icon; + get_icon_name(): string; + get_is_important(): boolean; + get_label(): string; + get_name(): string; + get_proxies(): string[]; + get_sensitive(): boolean; + get_short_label(): string; + get_stock_id(): string; + get_tooltip(): string; + get_visible(): boolean; + get_visible_horizontal(): boolean; + get_visible_vertical(): boolean; + is_sensitive(): boolean; + is_visible(): boolean; + set_accel_group(accel_group: AccelGroup | null): void; + set_accel_path(accel_path: string): void; + set_always_show_image(always_show: boolean): void; + set_gicon(icon: Gio.Icon): void; + set_icon_name(icon_name: string): void; + set_is_important(is_important: boolean): void; + set_label(label: string): void; + set_sensitive(sensitive: boolean): void; + set_short_label(short_label: string): void; + set_stock_id(stock_id: string): void; + set_tooltip(tooltip: string): void; + set_visible(visible: boolean): void; + set_visible_horizontal(visible_horizontal: boolean): void; + set_visible_vertical(visible_vertical: boolean): void; + unblock_activate(): void; + vfunc_activate(): void; + vfunc_connect_proxy(proxy: Widget): void; + vfunc_create_menu(): Widget; + vfunc_create_menu_item(): Widget; + vfunc_create_tool_item(): Widget; + vfunc_disconnect_proxy(proxy: Widget): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module ActionBar { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + } +} +export class ActionBar extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): ActionBar; + // Members + get_center_widget(): Widget | null; + pack_end(child: Widget): void; + pack_start(child: Widget): void; + set_center_widget(center_widget: Widget | null): void; +} +export module ActionGroup { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + accel_group: AccelGroup; + name: string; + sensitive: boolean; + visible: boolean; + } +} +export class ActionGroup extends GObject.Object implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_group: AccelGroup; + name: string; + sensitive: boolean; + visible: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'connect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + connect_after(signal: 'connect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + emit(signal: 'connect-proxy', action: Action, proxy: Widget): void; + connect(signal: 'disconnect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + connect_after(signal: 'disconnect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + emit(signal: 'disconnect-proxy', action: Action, proxy: Widget): void; + connect(signal: 'post-activate', callback: (_source: this, action: Action) => void): number; + connect_after(signal: 'post-activate', callback: (_source: this, action: Action) => void): number; + emit(signal: 'post-activate', action: Action): void; + connect(signal: 'pre-activate', callback: (_source: this, action: Action) => void): number; + connect_after(signal: 'pre-activate', callback: (_source: this, action: Action) => void): number; + emit(signal: 'pre-activate', action: Action): void; + // Constructors + static ["new"](name: string): ActionGroup; + // Members + add_action(action: Action): void; + add_action_with_accel(action: Action, accelerator: string | null): void; + get_accel_group(): AccelGroup; + get_action(action_name: string): Action; + get_name(): string; + get_sensitive(): boolean; + get_visible(): boolean; + list_actions(): GLib.List; + remove_action(action: Action): void; + set_accel_group(accel_group: AccelGroup | null): void; + set_sensitive(sensitive: boolean): void; + set_translate_func(func: TranslateFunc, data: any | null, notify: GLib.DestroyNotify): void; + set_translation_domain(domain: string | null): void; + set_visible(visible: boolean): void; + translate_string(string: string): string; + vfunc_get_action(action_name: string): Action; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module Adjustment { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + lower: number; + page_increment: number; + page_size: number; + step_increment: number; + upper: number; + value: number; + } +} +export class Adjustment extends GObject.InitiallyUnowned { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + lower: number; + page_increment: number; + page_size: number; + step_increment: number; + upper: number; + value: number; + // Fields + priv: AdjustmentPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + connect(signal: 'value-changed', callback: (_source: this) => void): number; + connect_after(signal: 'value-changed', callback: (_source: this) => void): number; + emit(signal: 'value-changed'): void; + // Constructors + static ["new"](value: number, lower: number, upper: number, step_increment: number, page_increment: number, page_size: number): Adjustment; + // Members + changed(): void; + clamp_page(lower: number, upper: number): void; + configure(value: number, lower: number, upper: number, step_increment: number, page_increment: number, page_size: number): void; + get_lower(): number; + get_minimum_increment(): number; + get_page_increment(): number; + get_page_size(): number; + get_step_increment(): number; + get_upper(): number; + get_value(): number; + set_lower(lower: number): void; + set_page_increment(page_increment: number): void; + set_page_size(page_size: number): void; + set_step_increment(step_increment: number): void; + set_upper(upper: number): void; + set_value(value: number): void; + value_changed(): void; + vfunc_changed(): void; + vfunc_value_changed(): void; +} +export module Alignment { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + bottom_padding: number; + left_padding: number; + right_padding: number; + top_padding: number; + xalign: number; + xscale: number; + yalign: number; + yscale: number; + } +} +export class Alignment extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + bottom_padding: number; + left_padding: number; + right_padding: number; + top_padding: number; + xalign: number; + xscale: number; + yalign: number; + yscale: number; + // Fields + bin: Bin; + // Constructors + static ["new"](xalign: number, yalign: number, xscale: number, yscale: number): Alignment; + // Members + get_padding(): [number | null, number | null, number | null, number | null]; + set(xalign: number, yalign: number, xscale: number, yscale: number): void; + set(...args: never[]): never; + set_padding(padding_top: number, padding_bottom: number, padding_left: number, padding_right: number): void; +} +export module AppChooserButton { + export interface ConstructorProperties extends ComboBox.ConstructorProperties { + [key: string]: any; + heading: string; + show_default_item: boolean; + show_dialog_item: boolean; + } +} +export class AppChooserButton extends ComboBox implements Atk.ImplementorIface, AppChooser, Buildable, CellEditable, CellLayout { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + heading: string; + show_default_item: boolean; + show_dialog_item: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'custom-item-activated', callback: (_source: this, item_name: string) => void): number; + connect_after(signal: 'custom-item-activated', callback: (_source: this, item_name: string) => void): number; + emit(signal: 'custom-item-activated', item_name: string): void; + // Implemented Properties + content_type: string; + // Constructors + static ["new"](content_type: string): AppChooserButton; + static ["new"](...args: never[]): never; + // Members + append_custom_item(name: string, label: string, icon: Gio.Icon): void; + append_separator(): void; + get_heading(): string | null; + get_show_default_item(): boolean; + get_show_dialog_item(): boolean; + set_active_custom_item(name: string): void; + set_heading(heading: string): void; + set_show_default_item(setting: boolean): void; + set_show_dialog_item(setting: boolean): void; + vfunc_custom_item_activated(item_name: string): void; + // Implemented Members + get_app_info(): Gio.AppInfo | null; + get_content_type(): string; + refresh(): void; +} +export module AppChooserDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + gfile: Gio.File; + heading: string; + } +} +export class AppChooserDialog extends Dialog implements Atk.ImplementorIface, AppChooser, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + gfile: Gio.File; + heading: string; + // Implemented Properties + content_type: string; + // Constructors + static ["new"](parent: Window | null, flags: DialogFlags, file: Gio.File): AppChooserDialog; + static ["new"](...args: never[]): never; + static new_for_content_type(parent: Window | null, flags: DialogFlags, content_type: string): AppChooserDialog; + // Members + get_heading(): string | null; + get_widget(): Widget; + set_heading(heading: string): void; + // Implemented Members + get_app_info(): Gio.AppInfo | null; + get_content_type(): string; + refresh(): void; +} +export module AppChooserWidget { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + default_text: string; + show_default: boolean; + show_fallback: boolean; + show_other: boolean; + show_recommended: boolean; + } +} +export class AppChooserWidget extends Box implements Atk.ImplementorIface, AppChooser, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + default_text: string; + show_default: boolean; + show_fallback: boolean; + show_other: boolean; + show_recommended: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'application-activated', callback: (_source: this, application: Gio.AppInfo) => void): number; + connect_after(signal: 'application-activated', callback: (_source: this, application: Gio.AppInfo) => void): number; + emit(signal: 'application-activated', application: Gio.AppInfo): void; + connect(signal: 'application-selected', callback: (_source: this, application: Gio.AppInfo) => void): number; + connect_after(signal: 'application-selected', callback: (_source: this, application: Gio.AppInfo) => void): number; + emit(signal: 'application-selected', application: Gio.AppInfo): void; + connect(signal: 'populate-popup', callback: (_source: this, menu: Menu, application: Gio.AppInfo) => void): number; + connect_after(signal: 'populate-popup', callback: (_source: this, menu: Menu, application: Gio.AppInfo) => void): number; + emit(signal: 'populate-popup', menu: Menu, application: Gio.AppInfo): void; + // Implemented Properties + content_type: string; + // Constructors + static ["new"](content_type: string): AppChooserWidget; + static ["new"](...args: never[]): never; + // Members + get_default_text(): string; + get_show_all(): boolean; + get_show_default(): boolean; + get_show_fallback(): boolean; + get_show_other(): boolean; + get_show_recommended(): boolean; + set_default_text(text: string): void; + set_show_all(setting: boolean): void; + set_show_default(setting: boolean): void; + set_show_fallback(setting: boolean): void; + set_show_other(setting: boolean): void; + set_show_recommended(setting: boolean): void; + vfunc_application_activated(app_info: Gio.AppInfo): void; + vfunc_application_selected(app_info: Gio.AppInfo): void; + vfunc_populate_popup(menu: Menu, app_info: Gio.AppInfo): void; + // Implemented Members + get_app_info(): Gio.AppInfo | null; + get_content_type(): string; + refresh(): void; +} +export module Application { + export interface ConstructorProperties extends Gio.Application.ConstructorProperties { + [key: string]: any; + active_window: Window; + app_menu: Gio.MenuModel; + menubar: Gio.MenuModel; + register_session: boolean; + screensaver_active: boolean; + } +} +export class Application extends Gio.Application implements Gio.ActionGroup, Gio.ActionMap { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active_window: Window; + app_menu: Gio.MenuModel; + menubar: Gio.MenuModel; + register_session: boolean; + screensaver_active: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'query-end', callback: (_source: this) => void): number; + connect_after(signal: 'query-end', callback: (_source: this) => void): number; + emit(signal: 'query-end'): void; + connect(signal: 'window-added', callback: (_source: this, window: Window) => void): number; + connect_after(signal: 'window-added', callback: (_source: this, window: Window) => void): number; + emit(signal: 'window-added', window: Window): void; + connect(signal: 'window-removed', callback: (_source: this, window: Window) => void): number; + connect_after(signal: 'window-removed', callback: (_source: this, window: Window) => void): number; + emit(signal: 'window-removed', window: Window): void; + // Constructors + static ["new"](application_id: string | null, flags: Gio.ApplicationFlags): Application; + static ["new"](...args: never[]): never; + // Members + add_accelerator(accelerator: string, action_name: string, parameter: GLib.Variant | null): void; + add_window(window: Window): void; + get_accels_for_action(detailed_action_name: string): string[]; + get_actions_for_accel(accel: string): string[]; + get_active_window(): Window | null; + get_app_menu(): Gio.MenuModel | null; + get_menu_by_id(id: string): Gio.Menu; + get_menubar(): Gio.MenuModel; + get_window_by_id(id: number): Window | null; + get_windows(): GLib.List; + inhibit(window: Window | null, flags: ApplicationInhibitFlags, reason: string | null): number; + is_inhibited(flags: ApplicationInhibitFlags): boolean; + list_action_descriptions(): string[]; + prefers_app_menu(): boolean; + remove_accelerator(action_name: string, parameter: GLib.Variant | null): void; + remove_window(window: Window): void; + set_accels_for_action(detailed_action_name: string, accels: string[]): void; + set_app_menu(app_menu: Gio.MenuModel | null): void; + set_menubar(menubar: Gio.MenuModel | null): void; + uninhibit(cookie: number): void; + vfunc_window_added(window: Window): void; + vfunc_window_removed(window: Window): void; + // Implemented Members + action_added(action_name: string): void; + action_enabled_changed(action_name: string, enabled: boolean): void; + action_removed(action_name: string): void; + action_state_changed(action_name: string, state: GLib.Variant): void; + activate_action(action_name: string, parameter: GLib.Variant | null): void; + change_action_state(action_name: string, value: GLib.Variant): void; + get_action_enabled(action_name: string): boolean; + get_action_parameter_type(action_name: string): GLib.VariantType | null; + get_action_state(action_name: string): GLib.Variant | null; + get_action_state_hint(action_name: string): GLib.Variant | null; + get_action_state_type(action_name: string): GLib.VariantType | null; + has_action(action_name: string): boolean; + list_actions(): string[]; + list_actions(...args: never[]): never; + query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + vfunc_action_added(action_name: string): void; + vfunc_action_enabled_changed(action_name: string, enabled: boolean): void; + vfunc_action_removed(action_name: string): void; + vfunc_action_state_changed(action_name: string, state: GLib.Variant): void; + vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void; + vfunc_change_action_state(action_name: string, value: GLib.Variant): void; + vfunc_get_action_enabled(action_name: string): boolean; + vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null; + vfunc_get_action_state(action_name: string): GLib.Variant | null; + vfunc_get_action_state_hint(action_name: string): GLib.Variant | null; + vfunc_get_action_state_type(action_name: string): GLib.VariantType | null; + vfunc_has_action(action_name: string): boolean; + vfunc_list_actions(): string[]; + vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + add_action(action: Gio.Action): void; + add_action(...args: never[]): never; + add_action_entries(entries: Gio.ActionEntry[]): void; + lookup_action(action_name: string): Gio.Action; + remove_action(action_name: string): void; + remove_action(...args: never[]): never; + vfunc_add_action(action: Gio.Action): void; + vfunc_lookup_action(action_name: string): Gio.Action; + vfunc_remove_action(action_name: string): void; +} +export module ApplicationWindow { + export interface ConstructorProperties extends Window.ConstructorProperties { + [key: string]: any; + show_menubar: boolean; + } +} +export class ApplicationWindow extends Window implements Atk.ImplementorIface, Gio.ActionGroup, Gio.ActionMap, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + show_menubar: boolean; + // Constructors + static ["new"](application: Application): ApplicationWindow; + static ["new"](...args: never[]): never; + // Members + get_help_overlay(): ShortcutsWindow | null; + get_id(): number; + get_show_menubar(): boolean; + set_help_overlay(help_overlay: ShortcutsWindow | null): void; + set_show_menubar(show_menubar: boolean): void; + // Implemented Members + action_added(action_name: string): void; + action_enabled_changed(action_name: string, enabled: boolean): void; + action_removed(action_name: string): void; + action_state_changed(action_name: string, state: GLib.Variant): void; + activate_action(action_name: string, parameter: GLib.Variant | null): void; + change_action_state(action_name: string, value: GLib.Variant): void; + get_action_enabled(action_name: string): boolean; + get_action_parameter_type(action_name: string): GLib.VariantType | null; + get_action_state(action_name: string): GLib.Variant | null; + get_action_state_hint(action_name: string): GLib.Variant | null; + get_action_state_type(action_name: string): GLib.VariantType | null; + has_action(action_name: string): boolean; + list_actions(): string[]; + query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + vfunc_action_added(action_name: string): void; + vfunc_action_enabled_changed(action_name: string, enabled: boolean): void; + vfunc_action_removed(action_name: string): void; + vfunc_action_state_changed(action_name: string, state: GLib.Variant): void; + vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void; + vfunc_change_action_state(action_name: string, value: GLib.Variant): void; + vfunc_get_action_enabled(action_name: string): boolean; + vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null; + vfunc_get_action_state(action_name: string): GLib.Variant | null; + vfunc_get_action_state_hint(action_name: string): GLib.Variant | null; + vfunc_get_action_state_type(action_name: string): GLib.VariantType | null; + vfunc_has_action(action_name: string): boolean; + vfunc_list_actions(): string[]; + vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; + add_action(action: Gio.Action): void; + add_action_entries(entries: Gio.ActionEntry[]): void; + lookup_action(action_name: string): Gio.Action; + remove_action(action_name: string): void; + vfunc_add_action(action: Gio.Action): void; + vfunc_lookup_action(action_name: string): Gio.Action; + vfunc_remove_action(action_name: string): void; +} +export module Arrow { + export interface ConstructorProperties extends Misc.ConstructorProperties { + [key: string]: any; + arrow_type: ArrowType; + shadow_type: ShadowType; + } +} +export class Arrow extends Misc implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + arrow_type: ArrowType; + shadow_type: ShadowType; + // Fields + misc: Misc; + // Constructors + static ["new"](arrow_type: ArrowType, shadow_type: ShadowType): Arrow; + // Members + set(arrow_type: ArrowType, shadow_type: ShadowType): void; + set(...args: never[]): never; +} +export module ArrowAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ArrowAccessible extends WidgetAccessible implements Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ArrowAccessiblePrivate | any; + // Implemented Members + get_image_description(): string; + get_image_locale(): string | null; + get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_image_size(): [number | null, number | null]; + set_image_description(description: string): boolean; + vfunc_get_image_description(): string; + vfunc_get_image_locale(): string | null; + vfunc_get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_image_size(): [number | null, number | null]; + vfunc_set_image_description(description: string): boolean; +} +export module AspectFrame { + export interface ConstructorProperties extends Frame.ConstructorProperties { + [key: string]: any; + obey_child: boolean; + ratio: number; + xalign: number; + yalign: number; + } +} +export class AspectFrame extends Frame implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + obey_child: boolean; + ratio: number; + xalign: number; + yalign: number; + // Fields + frame: Frame; + // Constructors + static ["new"](label: string | null, xalign: number, yalign: number, ratio: number, obey_child: boolean): AspectFrame; + static ["new"](...args: never[]): never; + // Members + set(xalign: number, yalign: number, ratio: number, obey_child: boolean): void; + set(...args: never[]): never; +} +export module Assistant { + export interface ConstructorProperties extends Window.ConstructorProperties { + [key: string]: any; + use_header_bar: number; + } +} +export class Assistant extends Window implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + use_header_bar: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'apply', callback: (_source: this) => void): number; + connect_after(signal: 'apply', callback: (_source: this) => void): number; + emit(signal: 'apply'): void; + connect(signal: 'cancel', callback: (_source: this) => void): number; + connect_after(signal: 'cancel', callback: (_source: this) => void): number; + emit(signal: 'cancel'): void; + connect(signal: 'close', callback: (_source: this) => void): number; + connect_after(signal: 'close', callback: (_source: this) => void): number; + emit(signal: 'close'): void; + connect(signal: 'escape', callback: (_source: this) => void): number; + connect_after(signal: 'escape', callback: (_source: this) => void): number; + emit(signal: 'escape'): void; + connect(signal: 'prepare', callback: (_source: this, page: Widget) => void): number; + connect_after(signal: 'prepare', callback: (_source: this, page: Widget) => void): number; + emit(signal: 'prepare', page: Widget): void; + // Constructors + static ["new"](): Assistant; + static ["new"](...args: never[]): never; + // Members + add_action_widget(child: Widget): void; + append_page(page: Widget): number; + commit(): void; + get_current_page(): number; + get_n_pages(): number; + get_nth_page(page_num: number): Widget | null; + get_page_complete(page: Widget): boolean; + get_page_has_padding(page: Widget): boolean; + get_page_header_image(page: Widget): GdkPixbuf.Pixbuf; + get_page_side_image(page: Widget): GdkPixbuf.Pixbuf; + get_page_title(page: Widget): string; + get_page_type(page: Widget): AssistantPageType; + insert_page(page: Widget, position: number): number; + next_page(): void; + prepend_page(page: Widget): number; + previous_page(): void; + remove_action_widget(child: Widget): void; + remove_page(page_num: number): void; + set_current_page(page_num: number): void; + set_forward_page_func(page_func: AssistantPageFunc | null, data: any | null, destroy: GLib.DestroyNotify): void; + set_page_complete(page: Widget, complete: boolean): void; + set_page_has_padding(page: Widget, has_padding: boolean): void; + set_page_header_image(page: Widget, pixbuf: GdkPixbuf.Pixbuf | null): void; + set_page_side_image(page: Widget, pixbuf: GdkPixbuf.Pixbuf | null): void; + set_page_title(page: Widget, title: string): void; + set_page_type(page: Widget, type: AssistantPageType): void; + update_buttons_state(): void; + vfunc_apply(): void; + vfunc_cancel(): void; + vfunc_close(): void; + vfunc_prepare(page: Widget): void; +} +export module Bin { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Bin extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + container: Container; + // Members + get_child(): Widget | null; +} +export module BooleanCellAccessible { + export interface ConstructorProperties extends RendererCellAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class BooleanCellAccessible extends RendererCellAccessible implements Atk.Action, Atk.Component, Atk.TableCell { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: BooleanCellAccessiblePrivate | any; +} +export module Box { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + baseline_position: BaselinePosition; + homogeneous: boolean; + spacing: number; + } +} +export class Box extends Container implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + baseline_position: BaselinePosition; + homogeneous: boolean; + spacing: number; + // Fields + container: Container; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](orientation: Orientation, spacing: number): Box; + // Members + get_baseline_position(): BaselinePosition; + get_center_widget(): Widget | null; + get_homogeneous(): boolean; + get_spacing(): number; + pack_end(child: Widget, expand: boolean, fill: boolean, padding: number): void; + pack_start(child: Widget, expand: boolean, fill: boolean, padding: number): void; + query_child_packing(child: Widget): [boolean, boolean, number, PackType]; + reorder_child(child: Widget, position: number): void; + set_baseline_position(position: BaselinePosition): void; + set_center_widget(widget: Widget | null): void; + set_child_packing(child: Widget, expand: boolean, fill: boolean, padding: number, pack_type: PackType): void; + set_homogeneous(homogeneous: boolean): void; + set_spacing(spacing: number): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module Builder { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + translation_domain: string; + } +} +export class Builder extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + translation_domain: string; + // Fields + priv: BuilderPrivate; + // Constructors + static ["new"](): Builder; + static new_from_file(filename: string): Builder; + static new_from_resource(resource_path: string): Builder; + static new_from_string(string: string, length: number): Builder; + // Members + add_callback_symbol(callback_name: string, callback_symbol: GObject.Callback): void; + add_from_file(filename: string): number; + add_from_resource(resource_path: string): number; + add_from_string(buffer: string, length: number): number; + add_objects_from_file(filename: string, object_ids: string[]): number; + add_objects_from_resource(resource_path: string, object_ids: string[]): number; + add_objects_from_string(buffer: string, length: number, object_ids: string[]): number; + connect_signals(): void; + connect_signals_full(func: BuilderConnectFunc): void; + expose_object(name: string, object: GObject.Object): void; + extend_with_template(widget: Widget, template_type: GType, buffer: string, length: number): number; + get_application(): Application | null; + get_object(name: string): T | null; + get_objects(): string[]; + get_translation_domain(): string; + get_type_from_name(type_name: string): GType; + set_application(application: Application): void; + set_translation_domain(domain: string | null): void; + value_from_string(pspec: GObject.ParamSpec, string: string): [boolean, GObject.Value]; + value_from_string_type(type: GType, string: string): [boolean, GObject.Value]; + vfunc_get_type_from_name(type_name: string): GType; +} +export module Button { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + always_show_image: boolean; + image: Widget; + image_position: PositionType; + label: string; + relief: ReliefStyle; + use_stock: boolean; + use_underline: boolean; + xalign: number; + yalign: number; + } +} +export class Button extends Bin implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + always_show_image: boolean; + image: Widget; + image_position: PositionType; + label: string; + relief: ReliefStyle; + use_stock: boolean; + use_underline: boolean; + xalign: number; + yalign: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'clicked', callback: (_source: this) => void): number; + connect_after(signal: 'clicked', callback: (_source: this) => void): number; + emit(signal: 'clicked'): void; + connect(signal: 'enter', callback: (_source: this) => void): number; + connect_after(signal: 'enter', callback: (_source: this) => void): number; + emit(signal: 'enter'): void; + connect(signal: 'leave', callback: (_source: this) => void): number; + connect_after(signal: 'leave', callback: (_source: this) => void): number; + emit(signal: 'leave'): void; + connect(signal: 'pressed', callback: (_source: this) => void): number; + connect_after(signal: 'pressed', callback: (_source: this) => void): number; + emit(signal: 'pressed'): void; + connect(signal: 'released', callback: (_source: this) => void): number; + connect_after(signal: 'released', callback: (_source: this) => void): number; + emit(signal: 'released'): void; + // Implemented Properties + action_name: string; + action_target: GLib.Variant; + related_action: Action; + use_action_appearance: boolean; + // Constructors + static ["new"](): Button; + static new_from_icon_name(icon_name: string | null, size: number): Button; + static new_from_stock(stock_id: string): Button; + static new_with_label(label: string): Button; + static new_with_mnemonic(label: string): Button; + // Members + clicked(): void; + enter(): void; + get_alignment(): [number, number]; + get_always_show_image(): boolean; + get_event_window(): Gdk.Window; + get_focus_on_click(): boolean; + get_image(): Widget | null; + get_image_position(): PositionType; + get_label(): string; + get_relief(): ReliefStyle; + get_use_stock(): boolean; + get_use_underline(): boolean; + leave(): void; + pressed(): void; + released(): void; + set_alignment(xalign: number, yalign: number): void; + set_always_show_image(always_show: boolean): void; + set_focus_on_click(focus_on_click: boolean): void; + set_image(image: Widget | null): void; + set_image_position(position: PositionType): void; + set_label(label: string): void; + set_relief(relief: ReliefStyle): void; + set_use_stock(use_stock: boolean): void; + set_use_underline(use_underline: boolean): void; + vfunc_activate(): void; + vfunc_clicked(): void; + vfunc_enter(): void; + vfunc_leave(): void; + vfunc_pressed(): void; + vfunc_released(): void; + // Implemented Members + get_action_name(): string | null; + get_action_target_value(): GLib.Variant; + set_action_name(action_name: string | null): void; + set_action_target_value(target_value: GLib.Variant | null): void; + set_detailed_action_name(detailed_action_name: string): void; + vfunc_get_action_name(): string | null; + vfunc_get_action_target_value(): GLib.Variant; + vfunc_set_action_name(action_name: string | null): void; + vfunc_set_action_target_value(target_value: GLib.Variant | null): void; + do_set_related_action(action: Action): void; + get_related_action(): Action; + get_use_action_appearance(): boolean; + set_related_action(action: Action): void; + set_use_action_appearance(use_appearance: boolean): void; + sync_action_properties(action: Action | null): void; + vfunc_sync_action_properties(action: Action | null): void; + vfunc_update(action: Action, property_name: string): void; +} +export module ButtonAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ButtonAccessible extends ContainerAccessible implements Atk.Action, Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ButtonAccessiblePrivate | any; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + get_image_description(): string; + get_image_locale(): string | null; + get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_image_size(): [number | null, number | null]; + set_image_description(description: string): boolean; + vfunc_get_image_description(): string; + vfunc_get_image_locale(): string | null; + vfunc_get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_image_size(): [number | null, number | null]; + vfunc_set_image_description(description: string): boolean; +} +export module ButtonBox { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + layout_style: ButtonBoxStyle; + } +} +export class ButtonBox extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + layout_style: ButtonBoxStyle; + // Fields + box: Box; + // Constructors + static ["new"](orientation: Orientation): ButtonBox; + static ["new"](...args: never[]): never; + // Members + get_child_non_homogeneous(child: Widget): boolean; + get_child_secondary(child: Widget): boolean; + get_layout(): ButtonBoxStyle; + set_child_non_homogeneous(child: Widget, non_homogeneous: boolean): void; + set_child_secondary(child: Widget, is_secondary: boolean): void; + set_layout(layout_style: ButtonBoxStyle): void; +} +export module Calendar { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + day: number; + detail_height_rows: number; + detail_width_chars: number; + month: number; + no_month_change: boolean; + show_day_names: boolean; + show_details: boolean; + show_heading: boolean; + show_week_numbers: boolean; + year: number; + } +} +export class Calendar extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + day: number; + detail_height_rows: number; + detail_width_chars: number; + month: number; + no_month_change: boolean; + show_day_names: boolean; + show_details: boolean; + show_heading: boolean; + show_week_numbers: boolean; + year: number; + // Fields + widget: Widget; + priv: CalendarPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'day-selected', callback: (_source: this) => void): number; + connect_after(signal: 'day-selected', callback: (_source: this) => void): number; + emit(signal: 'day-selected'): void; + connect(signal: 'day-selected-double-click', callback: (_source: this) => void): number; + connect_after(signal: 'day-selected-double-click', callback: (_source: this) => void): number; + emit(signal: 'day-selected-double-click'): void; + connect(signal: 'month-changed', callback: (_source: this) => void): number; + connect_after(signal: 'month-changed', callback: (_source: this) => void): number; + emit(signal: 'month-changed'): void; + connect(signal: 'next-month', callback: (_source: this) => void): number; + connect_after(signal: 'next-month', callback: (_source: this) => void): number; + emit(signal: 'next-month'): void; + connect(signal: 'next-year', callback: (_source: this) => void): number; + connect_after(signal: 'next-year', callback: (_source: this) => void): number; + emit(signal: 'next-year'): void; + connect(signal: 'prev-month', callback: (_source: this) => void): number; + connect_after(signal: 'prev-month', callback: (_source: this) => void): number; + emit(signal: 'prev-month'): void; + connect(signal: 'prev-year', callback: (_source: this) => void): number; + connect_after(signal: 'prev-year', callback: (_source: this) => void): number; + emit(signal: 'prev-year'): void; + // Constructors + static ["new"](): Calendar; + // Members + clear_marks(): void; + get_date(): [number | null, number | null, number | null]; + get_day_is_marked(day: number): boolean; + get_detail_height_rows(): number; + get_detail_width_chars(): number; + get_display_options(): CalendarDisplayOptions; + mark_day(day: number): void; + select_day(day: number): void; + select_month(month: number, year: number): void; + set_detail_func(func: CalendarDetailFunc, data: any | null, destroy: GLib.DestroyNotify): void; + set_detail_height_rows(rows: number): void; + set_detail_width_chars(chars: number): void; + set_display_options(flags: CalendarDisplayOptions): void; + unmark_day(day: number): void; + vfunc_day_selected(): void; + vfunc_day_selected_double_click(): void; + vfunc_month_changed(): void; + vfunc_next_month(): void; + vfunc_next_year(): void; + vfunc_prev_month(): void; + vfunc_prev_year(): void; +} +export module CellAccessible { + export interface ConstructorProperties extends Accessible.ConstructorProperties { + [key: string]: any; + } +} +export class CellAccessible extends Accessible implements Atk.Action, Atk.Component, Atk.TableCell { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: CellAccessiblePrivate; + // Members + vfunc_update_cache(emit_signal: boolean): void; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Atk.Layer; + get_mdi_zorder(): number; + get_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_position(...args: never[]): never; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: Atk.ScrollType): boolean; + scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Atk.Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Atk.Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_position(...args: never[]): never; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: Atk.ScrollType): boolean; + vfunc_scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; + get_column_header_cells(): Atk.Object[]; + get_column_span(): number; + get_position(): [boolean, number, number]; + get_position(...args: never[]): never; + get_row_column_span(): [boolean, number, number, number, number]; + get_row_header_cells(): Atk.Object[]; + get_row_span(): number; + get_table(): Atk.Object; + vfunc_get_column_header_cells(): Atk.Object[]; + vfunc_get_column_span(): number; + vfunc_get_position(): [boolean, number, number]; + vfunc_get_position(...args: never[]): never; + vfunc_get_row_column_span(): [boolean, number, number, number, number]; + vfunc_get_row_header_cells(): Atk.Object[]; + vfunc_get_row_span(): number; + vfunc_get_table(): Atk.Object; +} +export module CellArea { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + edit_widget: CellEditable; + edited_cell: CellRenderer; + focus_cell: CellRenderer; + } +} +export abstract class CellArea extends GObject.InitiallyUnowned implements Buildable, CellLayout { + orientation: Orientation; + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + edit_widget: CellEditable; + edited_cell: CellRenderer; + focus_cell: CellRenderer; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'add-editable', callback: (_source: this, renderer: CellRenderer, editable: CellEditable, cell_area: Gdk.Rectangle, path: string) => void): number; + connect_after(signal: 'add-editable', callback: (_source: this, renderer: CellRenderer, editable: CellEditable, cell_area: Gdk.Rectangle, path: string) => void): number; + emit(signal: 'add-editable', renderer: CellRenderer, editable: CellEditable, cell_area: Gdk.Rectangle, path: string): void; + connect(signal: 'apply-attributes', callback: (_source: this, model: TreeModel, iter: TreeIter, is_expander: boolean, is_expanded: boolean) => void): number; + connect_after(signal: 'apply-attributes', callback: (_source: this, model: TreeModel, iter: TreeIter, is_expander: boolean, is_expanded: boolean) => void): number; + emit(signal: 'apply-attributes', model: TreeModel, iter: TreeIter, is_expander: boolean, is_expanded: boolean): void; + connect(signal: 'focus-changed', callback: (_source: this, renderer: CellRenderer, path: string) => void): number; + connect_after(signal: 'focus-changed', callback: (_source: this, renderer: CellRenderer, path: string) => void): number; + emit(signal: 'focus-changed', renderer: CellRenderer, path: string): void; + connect(signal: 'remove-editable', callback: (_source: this, renderer: CellRenderer, editable: CellEditable) => void): number; + connect_after(signal: 'remove-editable', callback: (_source: this, renderer: CellRenderer, editable: CellEditable) => void): number; + emit(signal: 'remove-editable', renderer: CellRenderer, editable: CellEditable): void; + // Members + activate(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, flags: CellRendererState, edit_only: boolean): boolean; + activate_cell(widget: Widget, renderer: CellRenderer, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState): boolean; + add(renderer: CellRenderer): void; + add_focus_sibling(renderer: CellRenderer, sibling: CellRenderer): void; + apply_attributes(tree_model: TreeModel, iter: TreeIter, is_expander: boolean, is_expanded: boolean): void; + attribute_connect(renderer: CellRenderer, attribute: string, column: number): void; + attribute_disconnect(renderer: CellRenderer, attribute: string): void; + attribute_get_column(renderer: CellRenderer, attribute: string): number; + cell_get_property(renderer: CellRenderer, property_name: string, value: GObject.Value): void; + cell_set_property(renderer: CellRenderer, property_name: string, value: GObject.Value): void; + copy_context(context: CellAreaContext): CellAreaContext; + create_context(): CellAreaContext; + event(context: CellAreaContext, widget: Widget, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState): number; + focus(direction: DirectionType): boolean; + foreach(callback: CellCallback, callback_data: any | null): void; + foreach_alloc(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback, callback_data: any | null): void; + get_cell_allocation(context: CellAreaContext, widget: Widget, renderer: CellRenderer, cell_area: Gdk.Rectangle): Gdk.Rectangle; + get_cell_at_position(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, x: number, y: number): [CellRenderer, Gdk.Rectangle | null]; + get_current_path_string(): string; + get_edit_widget(): CellEditable; + get_edited_cell(): CellRenderer; + get_focus_cell(): CellRenderer; + get_focus_from_sibling(renderer: CellRenderer): CellRenderer | null; + get_focus_siblings(renderer: CellRenderer): GLib.List; + get_preferred_height(context: CellAreaContext, widget: Widget): [number | null, number | null]; + get_preferred_height_for_width(context: CellAreaContext, widget: Widget, width: number): [number | null, number | null]; + get_preferred_width(context: CellAreaContext, widget: Widget): [number | null, number | null]; + get_preferred_width_for_height(context: CellAreaContext, widget: Widget, height: number): [number | null, number | null]; + get_request_mode(): SizeRequestMode; + has_renderer(renderer: CellRenderer): boolean; + inner_cell_area(widget: Widget, cell_area: Gdk.Rectangle): Gdk.Rectangle; + is_activatable(): boolean; + is_focus_sibling(renderer: CellRenderer, sibling: CellRenderer): boolean; + remove(renderer: CellRenderer): void; + remove_focus_sibling(renderer: CellRenderer, sibling: CellRenderer): void; + render(context: CellAreaContext, widget: Widget, cr: cairo.Context, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState, paint_focus: boolean): void; + request_renderer(renderer: CellRenderer, orientation: Orientation, widget: Widget, for_size: number): [number | null, number | null]; + set_focus_cell(renderer: CellRenderer): void; + stop_editing(canceled: boolean): void; + vfunc_activate(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, flags: CellRendererState, edit_only: boolean): boolean; + vfunc_add(renderer: CellRenderer): void; + vfunc_apply_attributes(tree_model: TreeModel, iter: TreeIter, is_expander: boolean, is_expanded: boolean): void; + vfunc_copy_context(context: CellAreaContext): CellAreaContext; + vfunc_create_context(): CellAreaContext; + vfunc_event(context: CellAreaContext, widget: Widget, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState): number; + vfunc_focus(direction: DirectionType): boolean; + vfunc_foreach(callback: CellCallback, callback_data: any | null): void; + vfunc_foreach_alloc(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback, callback_data: any | null): void; + vfunc_get_cell_property(renderer: CellRenderer, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + vfunc_get_preferred_height(context: CellAreaContext, widget: Widget): [number | null, number | null]; + vfunc_get_preferred_height_for_width(context: CellAreaContext, widget: Widget, width: number): [number | null, number | null]; + vfunc_get_preferred_width(context: CellAreaContext, widget: Widget): [number | null, number | null]; + vfunc_get_preferred_width_for_height(context: CellAreaContext, widget: Widget, height: number): [number | null, number | null]; + vfunc_get_request_mode(): SizeRequestMode; + vfunc_is_activatable(): boolean; + vfunc_remove(renderer: CellRenderer): void; + vfunc_render(context: CellAreaContext, widget: Widget, cr: cairo.Context, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState, paint_focus: boolean): void; + vfunc_set_cell_property(renderer: CellRenderer, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; + add_attribute(cell: CellRenderer, attribute: string, column: number): void; + clear(): void; + clear_attributes(cell: CellRenderer): void; + get_area(): CellArea | null; + get_cells(): GLib.List; + pack_end(cell: CellRenderer, expand: boolean): void; + pack_start(cell: CellRenderer, expand: boolean): void; + reorder(cell: CellRenderer, position: number): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; + vfunc_clear(): void; + vfunc_clear_attributes(cell: CellRenderer): void; + vfunc_get_area(): this; + vfunc_get_area(...args: never[]): never; + vfunc_get_cells(): GLib.List; + vfunc_pack_end(cell: CellRenderer, expand: boolean): void; + vfunc_pack_start(cell: CellRenderer, expand: boolean): void; + vfunc_reorder(cell: CellRenderer, position: number): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; +} +export module CellAreaBox { + export interface ConstructorProperties extends CellArea.ConstructorProperties { + [key: string]: any; + spacing: number; + } +} +export class CellAreaBox extends CellArea implements Buildable, CellLayout, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + spacing: number; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): CellAreaBox; + // Members + get_spacing(): number; + pack_end(renderer: CellRenderer, expand: boolean, align: boolean, fixed: boolean): void; + pack_end(...args: never[]): never; + pack_start(renderer: CellRenderer, expand: boolean, align: boolean, fixed: boolean): void; + pack_start(...args: never[]): never; + set_spacing(spacing: number): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module CellAreaContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + area: CellArea; + minimum_height: number; + minimum_width: number; + natural_height: number; + natural_width: number; + } +} +export class CellAreaContext extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + area: CellArea; + minimum_height: number; + minimum_width: number; + natural_height: number; + natural_width: number; + // Members + allocate(width: number, height: number): void; + get_allocation(): [number | null, number | null]; + get_area(): CellArea; + get_preferred_height(): [number | null, number | null]; + get_preferred_height_for_width(width: number): [number | null, number | null]; + get_preferred_width(): [number | null, number | null]; + get_preferred_width_for_height(height: number): [number | null, number | null]; + push_preferred_height(minimum_height: number, natural_height: number): void; + push_preferred_width(minimum_width: number, natural_width: number): void; + reset(): void; + vfunc_allocate(width: number, height: number): void; + vfunc_get_preferred_height_for_width(width: number): [number | null, number | null]; + vfunc_get_preferred_width_for_height(height: number): [number | null, number | null]; + vfunc_reset(): void; +} + +export module CellRenderer { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + cell_background: string; + cell_background_gdk: Gdk.Color; + cell_background_rgba: Gdk.RGBA; + cell_background_set: boolean; + editing: boolean; + height: number; + is_expanded: boolean; + is_expander: boolean; + mode: CellRendererMode; + sensitive: boolean; + visible: boolean; + width: number; + xalign: number; + xpad: number; + yalign: number; + ypad: number; + } +} +export abstract class CellRenderer extends GObject.InitiallyUnowned { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + cell_background: string; + cell_background_gdk: Gdk.Color; + cell_background_rgba: Gdk.RGBA; + cell_background_set: boolean; + editing: boolean; + height: number; + is_expanded: boolean; + is_expander: boolean; + mode: CellRendererMode; + sensitive: boolean; + visible: boolean; + width: number; + xalign: number; + xpad: number; + yalign: number; + ypad: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'editing-canceled', callback: (_source: this) => void): number; + connect_after(signal: 'editing-canceled', callback: (_source: this) => void): number; + emit(signal: 'editing-canceled'): void; + connect(signal: 'editing-started', callback: (_source: this, editable: CellEditable, path: string) => void): number; + connect_after(signal: 'editing-started', callback: (_source: this, editable: CellEditable, path: string) => void): number; + emit(signal: 'editing-started', editable: CellEditable, path: string): void; + // Members + activate(event: Gdk.Event, widget: Widget, path: string, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState): boolean; + get_aligned_area(widget: Widget, flags: CellRendererState, cell_area: Gdk.Rectangle): Gdk.Rectangle; + get_alignment(): [number | null, number | null]; + get_fixed_size(): [number | null, number | null]; + get_padding(): [number | null, number | null]; + get_preferred_height(widget: Widget): [number | null, number | null]; + get_preferred_height_for_width(widget: Widget, width: number): [number | null, number | null]; + get_preferred_size(widget: Widget): [Requisition | null, Requisition | null]; + get_preferred_width(widget: Widget): [number | null, number | null]; + get_preferred_width_for_height(widget: Widget, height: number): [number | null, number | null]; + get_request_mode(): SizeRequestMode; + get_sensitive(): boolean; + get_size(widget: Widget, cell_area: Gdk.Rectangle | null): [number | null, number | null, number | null, number | null]; + get_state(widget: Widget | null, cell_state: CellRendererState): StateFlags; + get_visible(): boolean; + is_activatable(): boolean; + render(cr: cairo.Context, widget: Widget, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState): void; + set_alignment(xalign: number, yalign: number): void; + set_fixed_size(width: number, height: number): void; + set_padding(xpad: number, ypad: number): void; + set_sensitive(sensitive: boolean): void; + set_visible(visible: boolean): void; + start_editing(event: Gdk.Event | null, widget: Widget, path: string, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState): CellEditable | null; + stop_editing(canceled: boolean): void; + vfunc_activate(event: Gdk.Event, widget: Widget, path: string, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState): boolean; + vfunc_editing_canceled(): void; + vfunc_editing_started(editable: CellEditable, path: string): void; + vfunc_get_aligned_area(widget: Widget, flags: CellRendererState, cell_area: Gdk.Rectangle): Gdk.Rectangle; + vfunc_get_preferred_height(widget: Widget): [number | null, number | null]; + vfunc_get_preferred_height_for_width(widget: Widget, width: number): [number | null, number | null]; + vfunc_get_preferred_width(widget: Widget): [number | null, number | null]; + vfunc_get_preferred_width_for_height(widget: Widget, height: number): [number | null, number | null]; + vfunc_get_request_mode(): SizeRequestMode; + vfunc_get_size(widget: Widget, cell_area: Gdk.Rectangle | null): [number | null, number | null, number | null, number | null]; + vfunc_render(cr: cairo.Context, widget: Widget, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState): void; + vfunc_start_editing(event: Gdk.Event | null, widget: Widget, path: string, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState): CellEditable | null; +} +export module CellRendererAccel { + export interface ConstructorProperties extends CellRendererText.ConstructorProperties { + [key: string]: any; + accel_key: number; + accel_mode: CellRendererAccelMode; + accel_mods: Gdk.ModifierType; + keycode: number; + } +} +export class CellRendererAccel extends CellRendererText { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_key: number; + accel_mode: CellRendererAccelMode; + accel_mods: Gdk.ModifierType; + keycode: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'accel-cleared', callback: (_source: this, path_string: string) => void): number; + connect_after(signal: 'accel-cleared', callback: (_source: this, path_string: string) => void): number; + emit(signal: 'accel-cleared', path_string: string): void; + connect(signal: 'accel-edited', callback: (_source: this, path_string: string, accel_key: number, accel_mods: Gdk.ModifierType, hardware_keycode: number) => void): number; + connect_after(signal: 'accel-edited', callback: (_source: this, path_string: string, accel_key: number, accel_mods: Gdk.ModifierType, hardware_keycode: number) => void): number; + emit(signal: 'accel-edited', path_string: string, accel_key: number, accel_mods: Gdk.ModifierType, hardware_keycode: number): void; + // Constructors + static ["new"](): CellRendererAccel; + static ["new"](...args: never[]): never; + // Members + vfunc_accel_cleared(path_string: string): void; + vfunc_accel_edited(path_string: string, accel_key: number, accel_mods: Gdk.ModifierType, hardware_keycode: number): void; +} +export module CellRendererCombo { + export interface ConstructorProperties extends CellRendererText.ConstructorProperties { + [key: string]: any; + has_entry: boolean; + model: TreeModel; + text_column: number; + } +} +export class CellRendererCombo extends CellRendererText { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + has_entry: boolean; + model: TreeModel; + text_column: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this, path_string: string, new_iter: TreeIter) => void): number; + connect_after(signal: 'changed', callback: (_source: this, path_string: string, new_iter: TreeIter) => void): number; + emit(signal: 'changed', path_string: string, new_iter: TreeIter): void; + // Constructors + static ["new"](): CellRendererCombo; + static ["new"](...args: never[]): never; +} +export module CellRendererPixbuf { + export interface ConstructorProperties extends CellRenderer.ConstructorProperties { + [key: string]: any; + follow_state: boolean; + gicon: Gio.Icon; + icon_name: string; + pixbuf: GdkPixbuf.Pixbuf; + pixbuf_expander_closed: GdkPixbuf.Pixbuf; + pixbuf_expander_open: GdkPixbuf.Pixbuf; + stock_detail: string; + stock_id: string; + stock_size: number; + surface: cairo.Surface; + } +} +export class CellRendererPixbuf extends CellRenderer { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + follow_state: boolean; + gicon: Gio.Icon; + icon_name: string; + pixbuf: GdkPixbuf.Pixbuf; + pixbuf_expander_closed: GdkPixbuf.Pixbuf; + pixbuf_expander_open: GdkPixbuf.Pixbuf; + stock_detail: string; + stock_id: string; + stock_size: number; + surface: cairo.Surface; + // Constructors + static ["new"](): CellRendererPixbuf; +} +export module CellRendererProgress { + export interface ConstructorProperties extends CellRenderer.ConstructorProperties { + [key: string]: any; + inverted: boolean; + pulse: number; + text: string; + text_xalign: number; + text_yalign: number; + value: number; + } +} +export class CellRendererProgress extends CellRenderer implements Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + inverted: boolean; + pulse: number; + text: string; + text_xalign: number; + text_yalign: number; + value: number; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): CellRendererProgress; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module CellRendererSpin { + export interface ConstructorProperties extends CellRendererText.ConstructorProperties { + [key: string]: any; + adjustment: Adjustment; + climb_rate: number; + digits: number; + } +} +export class CellRendererSpin extends CellRendererText { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + adjustment: Adjustment; + climb_rate: number; + digits: number; + // Constructors + static ["new"](): CellRendererSpin; + static ["new"](...args: never[]): never; +} +export module CellRendererSpinner { + export interface ConstructorProperties extends CellRenderer.ConstructorProperties { + [key: string]: any; + active: boolean; + pulse: number; + size: IconSize; + } +} +export class CellRendererSpinner extends CellRenderer { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + pulse: number; + size: IconSize; + // Constructors + static ["new"](): CellRendererSpinner; +} +export module CellRendererText { + export interface ConstructorProperties extends CellRenderer.ConstructorProperties { + [key: string]: any; + align_set: boolean; + alignment: Pango.Alignment; + attributes: Pango.AttrList; + background: string; + background_gdk: Gdk.Color; + background_rgba: Gdk.RGBA; + background_set: boolean; + editable: boolean; + editable_set: boolean; + ellipsize: Pango.EllipsizeMode; + ellipsize_set: boolean; + family: string; + family_set: boolean; + font: string; + font_desc: Pango.FontDescription; + foreground: string; + foreground_gdk: Gdk.Color; + foreground_rgba: Gdk.RGBA; + foreground_set: boolean; + language: string; + language_set: boolean; + markup: string; + max_width_chars: number; + placeholder_text: string; + rise: number; + rise_set: boolean; + scale: number; + scale_set: boolean; + single_paragraph_mode: boolean; + size: number; + size_points: number; + size_set: boolean; + stretch: Pango.Stretch; + stretch_set: boolean; + strikethrough: boolean; + strikethrough_set: boolean; + style: Pango.Style; + style_set: boolean; + text: string; + underline: Pango.Underline; + underline_set: boolean; + variant: Pango.Variant; + variant_set: boolean; + weight: number; + weight_set: boolean; + width_chars: number; + wrap_mode: Pango.WrapMode; + wrap_width: number; + } +} +export class CellRendererText extends CellRenderer { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + align_set: boolean; + alignment: Pango.Alignment; + attributes: Pango.AttrList; + background: string; + background_gdk: Gdk.Color; + background_rgba: Gdk.RGBA; + background_set: boolean; + editable: boolean; + editable_set: boolean; + ellipsize: Pango.EllipsizeMode; + ellipsize_set: boolean; + family: string; + family_set: boolean; + font: string; + font_desc: Pango.FontDescription; + foreground: string; + foreground_gdk: Gdk.Color; + foreground_rgba: Gdk.RGBA; + foreground_set: boolean; + language: string; + language_set: boolean; + markup: string; + max_width_chars: number; + placeholder_text: string; + rise: number; + rise_set: boolean; + scale: number; + scale_set: boolean; + single_paragraph_mode: boolean; + size: number; + size_points: number; + size_set: boolean; + stretch: Pango.Stretch; + stretch_set: boolean; + strikethrough: boolean; + strikethrough_set: boolean; + style: Pango.Style; + style_set: boolean; + text: string; + underline: Pango.Underline; + underline_set: boolean; + variant: Pango.Variant; + variant_set: boolean; + weight: number; + weight_set: boolean; + width_chars: number; + wrap_mode: Pango.WrapMode; + wrap_width: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'edited', callback: (_source: this, path: string, new_text: string) => void): number; + connect_after(signal: 'edited', callback: (_source: this, path: string, new_text: string) => void): number; + emit(signal: 'edited', path: string, new_text: string): void; + // Constructors + static ["new"](): CellRendererText; + // Members + set_fixed_height_from_font(number_of_rows: number): void; + vfunc_edited(path: string, new_text: string): void; +} +export module CellRendererToggle { + export interface ConstructorProperties extends CellRenderer.ConstructorProperties { + [key: string]: any; + activatable: boolean; + active: boolean; + inconsistent: boolean; + indicator_size: number; + radio: boolean; + } +} +export class CellRendererToggle extends CellRenderer { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + activatable: boolean; + active: boolean; + inconsistent: boolean; + indicator_size: number; + radio: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'toggled', callback: (_source: this, path: string) => void): number; + connect_after(signal: 'toggled', callback: (_source: this, path: string) => void): number; + emit(signal: 'toggled', path: string): void; + // Constructors + static ["new"](): CellRendererToggle; + // Members + get_activatable(): boolean; + get_active(): boolean; + get_radio(): boolean; + set_activatable(setting: boolean): void; + set_active(setting: boolean): void; + set_radio(radio: boolean): void; + vfunc_toggled(path: string): void; +} +export module CellView { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + background: string; + background_gdk: Gdk.Color; + background_rgba: Gdk.RGBA; + background_set: boolean; + cell_area: CellArea; + cell_area_context: CellAreaContext; + draw_sensitive: boolean; + fit_model: boolean; + model: TreeModel; + } +} +export class CellView extends Widget implements Atk.ImplementorIface, Buildable, CellLayout, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + background: string; + background_gdk: Gdk.Color; + background_rgba: Gdk.RGBA; + background_set: boolean; + cell_area: CellArea; + cell_area_context: CellAreaContext; + draw_sensitive: boolean; + fit_model: boolean; + model: TreeModel; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): CellView; + static new_with_context(area: CellArea, context: CellAreaContext): CellView; + static new_with_markup(markup: string): CellView; + static new_with_pixbuf(pixbuf: GdkPixbuf.Pixbuf): CellView; + static new_with_text(text: string): CellView; + // Members + get_displayed_row(): TreePath | null; + get_draw_sensitive(): boolean; + get_fit_model(): boolean; + get_model(): TreeModel | null; + get_size_of_row(path: TreePath): [boolean, Requisition]; + set_background_color(color: Gdk.Color): void; + set_background_rgba(rgba: Gdk.RGBA): void; + set_displayed_row(path: TreePath | null): void; + set_draw_sensitive(draw_sensitive: boolean): void; + set_fit_model(fit_model: boolean): void; + set_model(model: TreeModel | null): void; + // Implemented Members + add_attribute(cell: CellRenderer, attribute: string, column: number): void; + clear(): void; + clear_attributes(cell: CellRenderer): void; + get_area(): CellArea | null; + get_cells(): GLib.List; + pack_end(cell: CellRenderer, expand: boolean): void; + pack_start(cell: CellRenderer, expand: boolean): void; + reorder(cell: CellRenderer, position: number): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; + vfunc_clear(): void; + vfunc_clear_attributes(cell: CellRenderer): void; + vfunc_get_area(): CellArea | null; + vfunc_get_cells(): GLib.List; + vfunc_pack_end(cell: CellRenderer, expand: boolean): void; + vfunc_pack_start(cell: CellRenderer, expand: boolean): void; + vfunc_reorder(cell: CellRenderer, position: number): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module CheckButton { + export interface ConstructorProperties extends ToggleButton.ConstructorProperties { + [key: string]: any; + } +} +export class CheckButton extends ToggleButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + toggle_button: ToggleButton; + // Constructors + static ["new"](): CheckButton; + static ["new"](...args: never[]): never; + static new_with_label(label: string): CheckButton; + static new_with_label(...args: never[]): never; + static new_with_mnemonic(label: string): CheckButton; + static new_with_mnemonic(...args: never[]): never; + // Members + vfunc_draw_indicator(cr: cairo.Context): void; +} +export module CheckMenuItem { + export interface ConstructorProperties extends MenuItem.ConstructorProperties { + [key: string]: any; + active: boolean; + draw_as_radio: boolean; + inconsistent: boolean; + } +} +export class CheckMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + draw_as_radio: boolean; + inconsistent: boolean; + // Fields + menu_item: MenuItem; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'toggled', callback: (_source: this) => void): number; + connect_after(signal: 'toggled', callback: (_source: this) => void): number; + emit(signal: 'toggled'): void; + // Constructors + static ["new"](): CheckMenuItem; + static ["new"](...args: never[]): never; + static new_with_label(label: string): CheckMenuItem; + static new_with_label(...args: never[]): never; + static new_with_mnemonic(label: string): CheckMenuItem; + static new_with_mnemonic(...args: never[]): never; + // Members + get_active(): boolean; + get_draw_as_radio(): boolean; + get_inconsistent(): boolean; + set_active(is_active: boolean): void; + set_draw_as_radio(draw_as_radio: boolean): void; + set_inconsistent(setting: boolean): void; + toggled(): void; + vfunc_draw_indicator(cr: cairo.Context): void; + vfunc_toggled(): void; +} +export module CheckMenuItemAccessible { + export interface ConstructorProperties extends MenuItemAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class CheckMenuItemAccessible extends MenuItemAccessible implements Atk.Action, Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: CheckMenuItemAccessiblePrivate | any; +} +export module Clipboard { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Clipboard extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'owner-change', callback: (_source: this, event: Gdk.EventOwnerChange) => void): number; + connect_after(signal: 'owner-change', callback: (_source: this, event: Gdk.EventOwnerChange) => void): number; + emit(signal: 'owner-change', event: Gdk.EventOwnerChange): void; + // Members + clear(): void; + get_display(): Gdk.Display; + get_owner(): GObject.Object | null; + request_contents(target: Gdk.Atom, callback: ClipboardReceivedFunc): void; + request_image(callback: ClipboardImageReceivedFunc): void; + request_rich_text(buffer: TextBuffer, callback: ClipboardRichTextReceivedFunc): void; + request_targets(callback: ClipboardTargetsReceivedFunc): void; + request_text(callback: ClipboardTextReceivedFunc): void; + request_uris(callback: ClipboardURIReceivedFunc): void; + set_can_store(targets: TargetEntry[] | null): void; + set_image(pixbuf: GdkPixbuf.Pixbuf): void; + set_text(text: string, len: number): void; + store(): void; + wait_for_contents(target: Gdk.Atom): SelectionData | null; + wait_for_image(): GdkPixbuf.Pixbuf | null; + wait_for_rich_text(buffer: TextBuffer): [number[] | null, Gdk.Atom, number]; + wait_for_targets(): [boolean, Gdk.Atom[]]; + wait_for_text(): string | null; + wait_for_uris(): string[] | null; + wait_is_image_available(): boolean; + wait_is_rich_text_available(buffer: TextBuffer): boolean; + wait_is_target_available(target: Gdk.Atom): boolean; + wait_is_text_available(): boolean; + wait_is_uris_available(): boolean; + static get(selection: Gdk.Atom): Clipboard; + static get_default(display: Gdk.Display): Clipboard; + static get_for_display(display: Gdk.Display, selection: Gdk.Atom): Clipboard; +} +export module ColorButton { + export interface ConstructorProperties extends Button.ConstructorProperties { + [key: string]: any; + alpha: number; + color: Gdk.Color; + rgba: Gdk.RGBA; + show_editor: boolean; + title: string; + use_alpha: boolean; + } +} +export class ColorButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable, ColorChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + alpha: number; + color: Gdk.Color; + rgba: Gdk.RGBA; + show_editor: boolean; + title: string; + use_alpha: boolean; + // Fields + button: Button; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'color-set', callback: (_source: this) => void): number; + connect_after(signal: 'color-set', callback: (_source: this) => void): number; + emit(signal: 'color-set'): void; + // Constructors + static ["new"](): ColorButton; + static ["new"](...args: never[]): never; + static new_with_color(color: Gdk.Color): ColorButton; + static new_with_rgba(rgba: Gdk.RGBA): ColorButton; + // Members + get_alpha(): number; + get_color(): Gdk.Color; + get_title(): string; + get_use_alpha(): boolean; + set_alpha(alpha: number): void; + set_color(color: Gdk.Color): void; + set_title(title: string): void; + set_use_alpha(use_alpha: boolean): void; + vfunc_color_set(): void; + // Implemented Members + add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + get_rgba(): Gdk.RGBA; + set_rgba(color: Gdk.RGBA): void; + vfunc_add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + vfunc_color_activated(color: Gdk.RGBA): void; + vfunc_get_rgba(): Gdk.RGBA; + vfunc_set_rgba(color: Gdk.RGBA): void; +} +export module ColorChooserDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + show_editor: boolean; + } +} +export class ColorChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, ColorChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial): void; + // Properties + show_editor: boolean; + // Implemented Properties + rgba: Gdk.RGBA; + use_alpha: boolean; + // Constructors + static ["new"](title: string | null, parent: Window | null): ColorChooserDialog; + static ["new"](...args: never[]): never; + // Implemented Members + add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + get_rgba(): Gdk.RGBA; + get_use_alpha(): boolean; + set_rgba(color: Gdk.RGBA): void; + set_use_alpha(use_alpha: boolean): void; + vfunc_add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + vfunc_color_activated(color: Gdk.RGBA): void; + vfunc_get_rgba(): Gdk.RGBA; + vfunc_set_rgba(color: Gdk.RGBA): void; +} +export module ColorChooserWidget { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + show_editor: boolean; + } +} +export class ColorChooserWidget extends Box implements Atk.ImplementorIface, Buildable, ColorChooser, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + show_editor: boolean; + // Implemented Properties + rgba: Gdk.RGBA; + use_alpha: boolean; + // Constructors + static ["new"](): ColorChooserWidget; + static ["new"](...args: never[]): never; + // Implemented Members + add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + get_rgba(): Gdk.RGBA; + get_use_alpha(): boolean; + set_rgba(color: Gdk.RGBA): void; + set_use_alpha(use_alpha: boolean): void; + vfunc_add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + vfunc_color_activated(color: Gdk.RGBA): void; + vfunc_get_rgba(): Gdk.RGBA; + vfunc_set_rgba(color: Gdk.RGBA): void; +} +export module ColorSelection { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + current_alpha: number; + current_color: Gdk.Color; + current_rgba: Gdk.RGBA; + has_opacity_control: boolean; + has_palette: boolean; + } +} +export class ColorSelection extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + current_alpha: number; + current_color: Gdk.Color; + current_rgba: Gdk.RGBA; + has_opacity_control: boolean; + has_palette: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'color-changed', callback: (_source: this) => void): number; + connect_after(signal: 'color-changed', callback: (_source: this) => void): number; + emit(signal: 'color-changed'): void; + // Constructors + static ["new"](): ColorSelection; + static ["new"](...args: never[]): never; + // Members + get_current_alpha(): number; + get_current_color(): Gdk.Color; + get_current_rgba(): Gdk.RGBA; + get_has_opacity_control(): boolean; + get_has_palette(): boolean; + get_previous_alpha(): number; + get_previous_color(): Gdk.Color; + get_previous_rgba(): Gdk.RGBA; + is_adjusting(): boolean; + set_current_alpha(alpha: number): void; + set_current_color(color: Gdk.Color): void; + set_current_rgba(rgba: Gdk.RGBA): void; + set_has_opacity_control(has_opacity: boolean): void; + set_has_palette(has_palette: boolean): void; + set_previous_alpha(alpha: number): void; + set_previous_color(color: Gdk.Color): void; + set_previous_rgba(rgba: Gdk.RGBA): void; + vfunc_color_changed(): void; + static palette_from_string(str: string): [boolean, Gdk.Color[]]; + static palette_to_string(colors: Gdk.Color[]): string; +} +export module ColorSelectionDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + cancel_button: Widget; + color_selection: Widget; + help_button: Widget; + ok_button: Widget; + } +} +export class ColorSelectionDialog extends Dialog implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + cancel_button: Widget; + color_selection: Widget; + help_button: Widget; + ok_button: Widget; + // Constructors + static ["new"](title: string): ColorSelectionDialog; + static ["new"](...args: never[]): never; + // Members + get_color_selection(): Widget; +} +export module ComboBox { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + active: number; + active_id: string; + add_tearoffs: boolean; + button_sensitivity: SensitivityType; + cell_area: CellArea; + column_span_column: number; + entry_text_column: number; + has_entry: boolean; + has_frame: boolean; + id_column: number; + model: TreeModel; + popup_fixed_width: boolean; + popup_shown: boolean; + row_span_column: number; + tearoff_title: string; + wrap_width: number; + } +} +export class ComboBox extends Bin implements Atk.ImplementorIface, Buildable, CellEditable, CellLayout { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: number; + active_id: string; + add_tearoffs: boolean; + button_sensitivity: SensitivityType; + cell_area: CellArea; + column_span_column: number; + entry_text_column: number; + has_entry: boolean; + has_frame: boolean; + id_column: number; + model: TreeModel; + popup_fixed_width: boolean; + popup_shown: boolean; + row_span_column: number; + tearoff_title: string; + wrap_width: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + connect(signal: 'format-entry-text', callback: (_source: this, path: string) => string): number; + connect_after(signal: 'format-entry-text', callback: (_source: this, path: string) => string): number; + emit(signal: 'format-entry-text', path: string): void; + connect(signal: 'move-active', callback: (_source: this, scroll_type: ScrollType) => void): number; + connect_after(signal: 'move-active', callback: (_source: this, scroll_type: ScrollType) => void): number; + emit(signal: 'move-active', scroll_type: ScrollType): void; + connect(signal: 'popdown', callback: (_source: this) => boolean): number; + connect_after(signal: 'popdown', callback: (_source: this) => boolean): number; + emit(signal: 'popdown'): void; + connect(signal: 'popup', callback: (_source: this) => void): number; + connect_after(signal: 'popup', callback: (_source: this) => void): number; + emit(signal: 'popup'): void; + // Implemented Properties + editing_canceled: boolean; + // Constructors + static ["new"](): ComboBox; + static new_with_area(area: CellArea): ComboBox; + static new_with_area_and_entry(area: CellArea): ComboBox; + static new_with_entry(): ComboBox; + static new_with_model(model: TreeModel): ComboBox; + static new_with_model_and_entry(model: TreeModel): ComboBox; + // Members + get_active(): number; + get_active_id(): string | null; + get_active_iter(): [boolean, TreeIter]; + get_add_tearoffs(): boolean; + get_button_sensitivity(): SensitivityType; + get_column_span_column(): number; + get_entry_text_column(): number; + get_focus_on_click(): boolean; + get_has_entry(): boolean; + get_id_column(): number; + get_model(): TreeModel; + get_popup_accessible(): Atk.Object; + get_popup_fixed_width(): boolean; + get_row_span_column(): number; + get_title(): string; + get_wrap_width(): number; + popdown(): void; + popup(): void; + popup_for_device(device: Gdk.Device): void; + set_active(index_: number): void; + set_active_id(active_id: string | null): boolean; + set_active_iter(iter: TreeIter | null): void; + set_add_tearoffs(add_tearoffs: boolean): void; + set_button_sensitivity(sensitivity: SensitivityType): void; + set_column_span_column(column_span: number): void; + set_entry_text_column(text_column: number): void; + set_focus_on_click(focus_on_click: boolean): void; + set_id_column(id_column: number): void; + set_model(model: TreeModel | null): void; + set_popup_fixed_width(fixed: boolean): void; + set_row_separator_func(func: TreeViewRowSeparatorFunc, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_row_span_column(row_span: number): void; + set_title(title: string): void; + set_wrap_width(width: number): void; + vfunc_changed(): void; + vfunc_format_entry_text(path: string): string; + // Implemented Members + editing_done(): void; + remove_widget(): void; + start_editing(event: Gdk.Event | null): void; + vfunc_editing_done(): void; + vfunc_remove_widget(): void; + vfunc_start_editing(event: Gdk.Event | null): void; + add_attribute(cell: CellRenderer, attribute: string, column: number): void; + clear(): void; + clear_attributes(cell: CellRenderer): void; + get_area(): CellArea | null; + get_cells(): GLib.List; + pack_end(cell: CellRenderer, expand: boolean): void; + pack_start(cell: CellRenderer, expand: boolean): void; + reorder(cell: CellRenderer, position: number): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; + vfunc_clear(): void; + vfunc_clear_attributes(cell: CellRenderer): void; + vfunc_get_area(): CellArea | null; + vfunc_get_cells(): GLib.List; + vfunc_pack_end(cell: CellRenderer, expand: boolean): void; + vfunc_pack_start(cell: CellRenderer, expand: boolean): void; + vfunc_reorder(cell: CellRenderer, position: number): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; +} +export module ComboBoxAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ComboBoxAccessible extends ContainerAccessible implements Atk.Action, Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ComboBoxAccessiblePrivate | any; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export module ComboBoxText { + export interface ConstructorProperties extends ComboBox.ConstructorProperties { + [key: string]: any; + } +} +export class ComboBoxText extends ComboBox implements Atk.ImplementorIface, Buildable, CellEditable, CellLayout { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): ComboBoxText; + static ["new"](...args: never[]): never; + static new_with_entry(): ComboBoxText; + static new_with_entry(...args: never[]): never; + // Members + append(id: string | null, text: string): void; + append_text(text: string): void; + get_active_text(): string; + insert(position: number, id: string | null, text: string): void; + insert_text(position: number, text: string): void; + prepend(id: string | null, text: string): void; + prepend_text(text: string): void; + remove(position: number): void; + remove(...args: never[]): never; + remove_all(): void; +} +export module Container { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + border_width: number; + child: Widget; + resize_mode: ResizeMode; + } +} +export abstract class Container extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + border_width: number; + child: Widget; + resize_mode: ResizeMode; + // Fields + widget: Widget; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'add', callback: (_source: this, object: Widget) => void): number; + connect_after(signal: 'add', callback: (_source: this, object: Widget) => void): number; + emit(signal: 'add', object: Widget): void; + connect(signal: 'check-resize', callback: (_source: this) => void): number; + connect_after(signal: 'check-resize', callback: (_source: this) => void): number; + emit(signal: 'check-resize'): void; + connect(signal: 'remove', callback: (_source: this, object: Widget) => void): number; + connect_after(signal: 'remove', callback: (_source: this, object: Widget) => void): number; + emit(signal: 'remove', object: Widget): void; + connect(signal: 'set-focus-child', callback: (_source: this, object: Widget) => void): number; + connect_after(signal: 'set-focus-child', callback: (_source: this, object: Widget) => void): number; + emit(signal: 'set-focus-child', object: Widget): void; + // Members + add(widget: Widget): void; + check_resize(): void; + child_get_property(child: Widget, property_name: string, value: GObject.Value): void; + child_notify(child: Widget, child_property: string): void; + child_notify(...args: never[]): never; + child_notify_by_pspec(child: Widget, pspec: GObject.ParamSpec): void; + child_set_property(child: Widget, property_name: string, value: GObject.Value | number | string | boolean): void; + child_type(): GType; + forall(callback: Callback): void; // , callback_data: any | null + foreach(callback: Callback): void; // , callback_data: any | null + get_border_width(): number; + get_children(): GLib.List; + get_focus_chain(): [boolean, GLib.List]; + get_focus_child(): Widget | null; + get_focus_hadjustment(): Adjustment | null; + get_focus_vadjustment(): Adjustment | null; + get_path_for_child(child: Widget): WidgetPath; + get_resize_mode(): ResizeMode; + propagate_draw(child: Widget, cr: cairo.Context): void; + remove(widget: Widget): void; + resize_children(): void; + set_border_width(border_width: number): void; + set_focus_chain(focusable_widgets: GLib.List): void; + set_focus_child(child: Widget | null): void; + set_focus_hadjustment(adjustment: Adjustment): void; + set_focus_vadjustment(adjustment: Adjustment): void; + set_reallocate_redraws(needs_redraws: boolean): void; + set_resize_mode(resize_mode: ResizeMode): void; + unset_focus_chain(): void; + vfunc_add(widget: Widget): void; + vfunc_check_resize(): void; + vfunc_child_type(): GType; + vfunc_composite_name(child: Widget): string; + vfunc_forall(include_internals: boolean, callback: Callback, callback_data: any | null): void; + vfunc_get_child_property(child: Widget, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + vfunc_get_path_for_child(child: Widget): WidgetPath; + vfunc_remove(widget: Widget): void; + vfunc_set_child_property(child: Widget, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + vfunc_set_focus_child(child: Widget | null): void; +} +export module ContainerAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ContainerAccessible extends WidgetAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ContainerAccessiblePrivate | any; +} +export module ContainerCellAccessible { + export interface ConstructorProperties extends CellAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ContainerCellAccessible extends CellAccessible implements Atk.Action, Atk.Component, Atk.TableCell { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ContainerCellAccessiblePrivate | any; + // Constructors + static ["new"](): ContainerCellAccessible; + // Members + add_child(child: CellAccessible): void; + get_children(): GLib.List; + remove_child(child: CellAccessible): void; +} +export module CssProvider { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class CssProvider extends GObject.Object implements StyleProvider { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: CssProviderPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'parsing-error', callback: (_source: this, section: CssSection, error: GLib.Error) => void): number; + connect_after(signal: 'parsing-error', callback: (_source: this, section: CssSection, error: GLib.Error) => void): number; + emit(signal: 'parsing-error', section: CssSection, error: GLib.Error): void; + // Constructors + static ["new"](): CssProvider; + // Members + load_from_data(data: string | number[]): boolean; + load_from_file(file: Gio.File): boolean; + load_from_path(path: string): boolean; + load_from_resource(resource_path: string): void; + to_string(): string; + vfunc_parsing_error(section: CssSection, error: GLib.Error): void; + static get_default(): CssProvider; + static get_named(name: string, variant: string | null): CssProvider; + // Implemented Members + get_icon_factory(path: WidgetPath): IconFactory | null; + get_style(path: WidgetPath): StyleProperties | null; + get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; + vfunc_get_icon_factory(path: WidgetPath): IconFactory | null; + vfunc_get_style(path: WidgetPath): StyleProperties | null; + vfunc_get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; +} +export module Dialog { + export interface ConstructorProperties extends Window.ConstructorProperties { + [key: string]: any; + use_header_bar: boolean; + } +} +export class Dialog extends Window implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + use_header_bar: number; + // Fields + window: Window | any; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'close', callback: (_source: this) => void): number; + connect_after(signal: 'close', callback: (_source: this) => void): number; + emit(signal: 'close'): void; + connect(signal: 'response', callback: (_source: this, response_id: number) => void): number; + connect_after(signal: 'response', callback: (_source: this, response_id: number) => void): number; + emit(signal: 'response', response_id: number): void; + // Constructors + static ["new"](): Dialog; + static ["new"](...args: never[]): never; + // Members + add_action_widget(child: Widget, response_id: number): void; + add_button(button_text: string, response_id: number): Widget; + get_action_area(): Box; + get_content_area(): Box; + get_header_bar(): HeaderBar; + get_response_for_widget(widget: Widget): number; + get_widget_for_response(response_id: number): Widget | null; + response(response_id: number): void; + run(): number; + set_alternative_button_order_from_array(new_order: number[]): void; + set_default_response(response_id: number): void; + set_response_sensitive(response_id: number, setting: boolean): void; + vfunc_close(): void; + vfunc_response(response_id: number): void; +} +export module DrawingArea { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + } +} +export class DrawingArea extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + widget: Widget; + // Constructors + static ["new"](): DrawingArea; +} +export module Entry { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + activates_default: boolean; + attributes: Pango.AttrList; + buffer: EntryBuffer; + caps_lock_warning: boolean; + completion: EntryCompletion; + cursor_position: number; + editable: boolean; + enable_emoji_completion: boolean; + has_frame: boolean; + im_module: string; + inner_border: Border; + input_hints: InputHints; + input_purpose: InputPurpose; + invisible_char: number; + invisible_char_set: boolean; + max_length: number; + max_width_chars: number; + overwrite_mode: boolean; + placeholder_text: string; + populate_all: boolean; + primary_icon_activatable: boolean; + primary_icon_gicon: Gio.Icon; + primary_icon_name: string; + primary_icon_pixbuf: GdkPixbuf.Pixbuf; + primary_icon_sensitive: boolean; + primary_icon_stock: string; + primary_icon_storage_type: ImageType; + primary_icon_tooltip_markup: string; + primary_icon_tooltip_text: string; + progress_fraction: number; + progress_pulse_step: number; + scroll_offset: number; + secondary_icon_activatable: boolean; + secondary_icon_gicon: Gio.Icon; + secondary_icon_name: string; + secondary_icon_pixbuf: GdkPixbuf.Pixbuf; + secondary_icon_sensitive: boolean; + secondary_icon_stock: string; + secondary_icon_storage_type: ImageType; + secondary_icon_tooltip_markup: string; + secondary_icon_tooltip_text: string; + selection_bound: number; + shadow_type: ShadowType; + show_emoji_icon: boolean; + tabs: Pango.TabArray; + text: string; + text_length: number; + truncate_multiline: boolean; + visibility: boolean; + width_chars: number; + xalign: number; + } +} +export class Entry extends Widget implements Atk.ImplementorIface, Buildable, CellEditable, Editable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + activates_default: boolean; + attributes: Pango.AttrList; + buffer: EntryBuffer; + caps_lock_warning: boolean; + completion: EntryCompletion; + cursor_position: number; + editable: boolean; + enable_emoji_completion: boolean; + has_frame: boolean; + im_module: string; + inner_border: Border; + input_hints: InputHints; + input_purpose: InputPurpose; + invisible_char: number; + invisible_char_set: boolean; + max_length: number; + max_width_chars: number; + overwrite_mode: boolean; + placeholder_text: string; + populate_all: boolean; + primary_icon_activatable: boolean; + primary_icon_gicon: Gio.Icon; + primary_icon_name: string; + primary_icon_pixbuf: GdkPixbuf.Pixbuf; + primary_icon_sensitive: boolean; + primary_icon_stock: string; + primary_icon_storage_type: ImageType; + primary_icon_tooltip_markup: string; + primary_icon_tooltip_text: string; + progress_fraction: number; + progress_pulse_step: number; + scroll_offset: number; + secondary_icon_activatable: boolean; + secondary_icon_gicon: Gio.Icon; + secondary_icon_name: string; + secondary_icon_pixbuf: GdkPixbuf.Pixbuf; + secondary_icon_sensitive: boolean; + secondary_icon_stock: string; + secondary_icon_storage_type: ImageType; + secondary_icon_tooltip_markup: string; + secondary_icon_tooltip_text: string; + selection_bound: number; + shadow_type: ShadowType; + show_emoji_icon: boolean; + tabs: Pango.TabArray; + text: string; + text_length: number; + truncate_multiline: boolean; + visibility: boolean; + width_chars: number; + xalign: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'backspace', callback: (_source: this) => void): number; + connect_after(signal: 'backspace', callback: (_source: this) => void): number; + emit(signal: 'backspace'): void; + connect(signal: 'copy-clipboard', callback: (_source: this) => void): number; + connect_after(signal: 'copy-clipboard', callback: (_source: this) => void): number; + emit(signal: 'copy-clipboard'): void; + connect(signal: 'cut-clipboard', callback: (_source: this) => void): number; + connect_after(signal: 'cut-clipboard', callback: (_source: this) => void): number; + emit(signal: 'cut-clipboard'): void; + connect(signal: 'delete-from-cursor', callback: (_source: this, type: DeleteType, count: number) => void): number; + connect_after(signal: 'delete-from-cursor', callback: (_source: this, type: DeleteType, count: number) => void): number; + emit(signal: 'delete-from-cursor', type: DeleteType, count: number): void; + connect(signal: 'icon-press', callback: (_source: this, icon_pos: EntryIconPosition, event: Gdk.EventButton) => void): number; + connect_after(signal: 'icon-press', callback: (_source: this, icon_pos: EntryIconPosition, event: Gdk.EventButton) => void): number; + emit(signal: 'icon-press', icon_pos: EntryIconPosition, event: Gdk.EventButton): void; + connect(signal: 'icon-release', callback: (_source: this, icon_pos: EntryIconPosition, event: Gdk.EventButton) => void): number; + connect_after(signal: 'icon-release', callback: (_source: this, icon_pos: EntryIconPosition, event: Gdk.EventButton) => void): number; + emit(signal: 'icon-release', icon_pos: EntryIconPosition, event: Gdk.EventButton): void; + connect(signal: 'insert-at-cursor', callback: (_source: this, string: string) => void): number; + connect_after(signal: 'insert-at-cursor', callback: (_source: this, string: string) => void): number; + emit(signal: 'insert-at-cursor', string: string): void; + connect(signal: 'insert-emoji', callback: (_source: this) => void): number; + connect_after(signal: 'insert-emoji', callback: (_source: this) => void): number; + emit(signal: 'insert-emoji'): void; + connect(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number, extend_selection: boolean) => void): number; + connect_after(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number, extend_selection: boolean) => void): number; + emit(signal: 'move-cursor', step: MovementStep, count: number, extend_selection: boolean): void; + connect(signal: 'paste-clipboard', callback: (_source: this) => void): number; + connect_after(signal: 'paste-clipboard', callback: (_source: this) => void): number; + emit(signal: 'paste-clipboard'): void; + connect(signal: 'populate-popup', callback: (_source: this, widget: Widget) => void): number; + connect_after(signal: 'populate-popup', callback: (_source: this, widget: Widget) => void): number; + emit(signal: 'populate-popup', widget: Widget): void; + connect(signal: 'preedit-changed', callback: (_source: this, preedit: string) => void): number; + connect_after(signal: 'preedit-changed', callback: (_source: this, preedit: string) => void): number; + emit(signal: 'preedit-changed', preedit: string): void; + connect(signal: 'toggle-overwrite', callback: (_source: this) => void): number; + connect_after(signal: 'toggle-overwrite', callback: (_source: this) => void): number; + emit(signal: 'toggle-overwrite'): void; + // Implemented Properties + editing_canceled: boolean; + // Constructors + static ["new"](): Entry; + static new_with_buffer(buffer: EntryBuffer): Entry; + // Members + get_activates_default(): boolean; + get_alignment(): number; + get_attributes(): Pango.AttrList | null; + get_buffer(): EntryBuffer; + get_completion(): EntryCompletion; + get_current_icon_drag_source(): number; + get_cursor_hadjustment(): Adjustment | null; + get_has_frame(): boolean; + get_icon_activatable(icon_pos: EntryIconPosition): boolean; + get_icon_area(icon_pos: EntryIconPosition): Gdk.Rectangle; + get_icon_at_pos(x: number, y: number): number; + get_icon_gicon(icon_pos: EntryIconPosition): Gio.Icon | null; + get_icon_name(icon_pos: EntryIconPosition): string | null; + get_icon_pixbuf(icon_pos: EntryIconPosition): GdkPixbuf.Pixbuf | null; + get_icon_sensitive(icon_pos: EntryIconPosition): boolean; + get_icon_stock(icon_pos: EntryIconPosition): string; + get_icon_storage_type(icon_pos: EntryIconPosition): ImageType; + get_icon_tooltip_markup(icon_pos: EntryIconPosition): string | null; + get_icon_tooltip_text(icon_pos: EntryIconPosition): string | null; + get_inner_border(): Border | null; + get_input_hints(): InputHints; + get_input_purpose(): InputPurpose; + get_invisible_char(): number; + get_layout(): Pango.Layout; + get_layout_offsets(): [number | null, number | null]; + get_max_length(): number; + get_max_width_chars(): number; + get_overwrite_mode(): boolean; + get_placeholder_text(): string; + get_progress_fraction(): number; + get_progress_pulse_step(): number; + get_tabs(): Pango.TabArray | null; + get_text(): string; + get_text_area(): Gdk.Rectangle; + get_text_length(): number; + get_visibility(): boolean; + get_width_chars(): number; + grab_focus_without_selecting(): void; + im_context_filter_keypress(event: Gdk.EventKey): boolean; + layout_index_to_text_index(layout_index: number): number; + progress_pulse(): void; + reset_im_context(): void; + set_activates_default(setting: boolean): void; + set_alignment(xalign: number): void; + set_attributes(attrs: Pango.AttrList): void; + set_buffer(buffer: EntryBuffer): void; + set_completion(completion: EntryCompletion | null): void; + set_cursor_hadjustment(adjustment: Adjustment | null): void; + set_has_frame(setting: boolean): void; + set_icon_activatable(icon_pos: EntryIconPosition, activatable: boolean): void; + set_icon_drag_source(icon_pos: EntryIconPosition, target_list: TargetList, actions: Gdk.DragAction): void; + set_icon_from_gicon(icon_pos: EntryIconPosition, icon: Gio.Icon | null): void; + set_icon_from_icon_name(icon_pos: EntryIconPosition, icon_name: string | null): void; + set_icon_from_pixbuf(icon_pos: EntryIconPosition, pixbuf: GdkPixbuf.Pixbuf | null): void; + set_icon_from_stock(icon_pos: EntryIconPosition, stock_id: string | null): void; + set_icon_sensitive(icon_pos: EntryIconPosition, sensitive: boolean): void; + set_icon_tooltip_markup(icon_pos: EntryIconPosition, tooltip: string | null): void; + set_icon_tooltip_text(icon_pos: EntryIconPosition, tooltip: string | null): void; + set_inner_border(border: Border | null): void; + set_input_hints(hints: InputHints): void; + set_input_purpose(purpose: InputPurpose): void; + set_invisible_char(ch: number): void; + set_max_length(max: number): void; + set_max_width_chars(n_chars: number): void; + set_overwrite_mode(overwrite: boolean): void; + set_placeholder_text(text: string | null): void; + set_progress_fraction(fraction: number): void; + set_progress_pulse_step(fraction: number): void; + set_tabs(tabs: Pango.TabArray): void; + set_text(text: string): void; + set_visibility(visible: boolean): void; + set_width_chars(n_chars: number): void; + text_index_to_layout_index(text_index: number): number; + unset_invisible_char(): void; + vfunc_activate(): void; + vfunc_backspace(): void; + vfunc_copy_clipboard(): void; + vfunc_cut_clipboard(): void; + vfunc_delete_from_cursor(type: DeleteType, count: number): void; + vfunc_get_frame_size(x: number, y: number, width: number, height: number): void; + vfunc_get_text_area_size(x: number, y: number, width: number, height: number): void; + vfunc_insert_at_cursor(str: string): void; + vfunc_insert_emoji(): void; + vfunc_move_cursor(step: MovementStep, count: number, extend_selection: boolean): void; + vfunc_paste_clipboard(): void; + vfunc_populate_popup(popup: Widget): void; + vfunc_toggle_overwrite(): void; + // Implemented Members + editing_done(): void; + remove_widget(): void; + start_editing(event: Gdk.Event | null): void; + vfunc_editing_done(): void; + vfunc_remove_widget(): void; + vfunc_start_editing(event: Gdk.Event | null): void; + copy_clipboard(): void; + cut_clipboard(): void; + delete_selection(): void; + delete_text(start_pos: number, end_pos: number): void; + get_chars(start_pos: number, end_pos: number): string; + get_editable(): boolean; + get_position(): number; + get_selection_bounds(): [boolean, number | null, number | null]; + insert_text(new_text: string, new_text_length: number, position: number): number; + paste_clipboard(): void; + select_region(start_pos: number, end_pos: number): void; + set_editable(is_editable: boolean): void; + set_position(position: number): void; + vfunc_changed(): void; + vfunc_delete_text(start_pos: number, end_pos: number): void; + vfunc_do_delete_text(start_pos: number, end_pos: number): void; + vfunc_do_insert_text(new_text: string, new_text_length: number, position: number): number; + vfunc_get_chars(start_pos: number, end_pos: number): string; + vfunc_get_position(): number; + vfunc_get_selection_bounds(): [boolean, number | null, number | null]; + vfunc_insert_text(new_text: string, new_text_length: number, position: number): number; + vfunc_set_position(position: number): void; + vfunc_set_selection_bounds(start_pos: number, end_pos: number): void; +} +export module EntryAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class EntryAccessible extends WidgetAccessible implements Atk.Action, Atk.Component, Atk.EditableText, Atk.Text { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: EntryAccessiblePrivate | any; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + copy_text(start_pos: number, end_pos: number): void; + cut_text(start_pos: number, end_pos: number): void; + delete_text(start_pos: number, end_pos: number): void; + insert_text(string: string, length: number, position: number): void; + paste_text(position: number): void; + set_run_attributes(attrib_set: Atk.AttributeSet, start_offset: number, end_offset: number): boolean; + set_text_contents(string: string): void; + vfunc_copy_text(start_pos: number, end_pos: number): void; + vfunc_cut_text(start_pos: number, end_pos: number): void; + vfunc_delete_text(start_pos: number, end_pos: number): void; + vfunc_insert_text(string: string, length: number, position: number): void; + vfunc_paste_text(position: number): void; + vfunc_set_run_attributes(attrib_set: Atk.AttributeSet, start_offset: number, end_offset: number): boolean; + vfunc_set_text_contents(string: string): void; + add_selection(start_offset: number, end_offset: number): boolean; + get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + get_caret_offset(): number; + get_character_at_offset(offset: number): number; + get_character_count(): number; + get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_default_attributes(): Atk.AttributeSet; + get_n_selections(): number; + get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + get_selection(selection_num: number): [string, number, number]; + get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + get_text(start_offset: number, end_offset: number): string; + get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + remove_selection(selection_num: number): boolean; + scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + set_caret_offset(offset: number): boolean; + set_selection(selection_num: number, start_offset: number, end_offset: number): boolean; + vfunc_add_selection(start_offset: number, end_offset: number): boolean; + vfunc_get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + vfunc_get_caret_offset(): number; + vfunc_get_character_at_offset(offset: number): number; + vfunc_get_character_count(): number; + vfunc_get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_default_attributes(): Atk.AttributeSet; + vfunc_get_n_selections(): number; + vfunc_get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + vfunc_get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + vfunc_get_selection(selection_num: number): [string, number, number]; + vfunc_get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + vfunc_get_text(start_offset: number, end_offset: number): string; + vfunc_get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_remove_selection(selection_num: number): boolean; + vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_caret_offset(offset: number): boolean; + 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; +} +export module EntryBuffer { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + length: number; + max_length: number; + text: string; + } +} +export class EntryBuffer extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + length: number; + max_length: number; + text: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'deleted-text', callback: (_source: this, position: number, n_chars: number) => void): number; + connect_after(signal: 'deleted-text', callback: (_source: this, position: number, n_chars: number) => void): number; + emit(signal: 'deleted-text', position: number, n_chars: number): void; + connect(signal: 'inserted-text', callback: (_source: this, position: number, chars: string, n_chars: number) => void): number; + connect_after(signal: 'inserted-text', callback: (_source: this, position: number, chars: string, n_chars: number) => void): number; + emit(signal: 'inserted-text', position: number, chars: string, n_chars: number): void; + // Constructors + static ["new"](initial_chars: string | null, n_initial_chars: number): EntryBuffer; + // Members + delete_text(position: number, n_chars: number): number; + emit_deleted_text(position: number, n_chars: number): void; + emit_inserted_text(position: number, chars: string, n_chars: number): void; + get_bytes(): number; + get_length(): number; + get_max_length(): number; + get_text(): string; + insert_text(position: number, chars: string, n_chars: number): number; + set_max_length(max_length: number): void; + set_text(chars: string, n_chars: number): void; + vfunc_delete_text(position: number, n_chars: number): number; + vfunc_deleted_text(position: number, n_chars: number): void; + vfunc_get_length(): number; + vfunc_get_text(n_bytes: number): string; + vfunc_insert_text(position: number, chars: string, n_chars: number): number; + vfunc_inserted_text(position: number, chars: string, n_chars: number): void; +} +export module EntryCompletion { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + cell_area: CellArea; + inline_completion: boolean; + inline_selection: boolean; + minimum_key_length: number; + model: TreeModel; + popup_completion: boolean; + popup_set_width: boolean; + popup_single_match: boolean; + text_column: number; + } +} +export class EntryCompletion extends GObject.Object implements Buildable, CellLayout { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + cell_area: CellArea; + inline_completion: boolean; + inline_selection: boolean; + minimum_key_length: number; + model: TreeModel; + popup_completion: boolean; + popup_set_width: boolean; + popup_single_match: boolean; + text_column: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'action-activated', callback: (_source: this, index: number) => void): number; + connect_after(signal: 'action-activated', callback: (_source: this, index: number) => void): number; + emit(signal: 'action-activated', index: number): void; + connect(signal: 'cursor-on-match', callback: (_source: this, model: TreeModel, iter: TreeIter) => boolean): number; + connect_after(signal: 'cursor-on-match', callback: (_source: this, model: TreeModel, iter: TreeIter) => boolean): number; + emit(signal: 'cursor-on-match', model: TreeModel, iter: TreeIter): void; + connect(signal: 'insert-prefix', callback: (_source: this, prefix: string) => boolean): number; + connect_after(signal: 'insert-prefix', callback: (_source: this, prefix: string) => boolean): number; + emit(signal: 'insert-prefix', prefix: string): void; + connect(signal: 'match-selected', callback: (_source: this, model: TreeModel, iter: TreeIter) => boolean): number; + connect_after(signal: 'match-selected', callback: (_source: this, model: TreeModel, iter: TreeIter) => boolean): number; + emit(signal: 'match-selected', model: TreeModel, iter: TreeIter): void; + connect(signal: 'no-matches', callback: (_source: this) => void): number; + connect_after(signal: 'no-matches', callback: (_source: this) => void): number; + emit(signal: 'no-matches'): void; + // Constructors + static ["new"](): EntryCompletion; + static new_with_area(area: CellArea): EntryCompletion; + // Members + complete(): void; + compute_prefix(key: string): string | null; + delete_action(index_: number): void; + get_completion_prefix(): string; + get_entry(): Widget; + get_inline_completion(): boolean; + get_inline_selection(): boolean; + get_minimum_key_length(): number; + get_model(): TreeModel | null; + get_popup_completion(): boolean; + get_popup_set_width(): boolean; + get_popup_single_match(): boolean; + get_text_column(): number; + insert_action_markup(index_: number, markup: string): void; + insert_action_text(index_: number, text: string): void; + insert_prefix(): void; + set_inline_completion(inline_completion: boolean): void; + set_inline_selection(inline_selection: boolean): void; + set_match_func(func: EntryCompletionMatchFunc, func_data: any | null, func_notify: GLib.DestroyNotify): void; + set_minimum_key_length(length: number): void; + set_model(model: TreeModel | null): void; + set_popup_completion(popup_completion: boolean): void; + set_popup_set_width(popup_set_width: boolean): void; + set_popup_single_match(popup_single_match: boolean): void; + set_text_column(column: number): void; + vfunc_action_activated(index_: number): void; + vfunc_cursor_on_match(model: TreeModel, iter: TreeIter): boolean; + vfunc_insert_prefix(prefix: string): boolean; + vfunc_match_selected(model: TreeModel, iter: TreeIter): boolean; + vfunc_no_matches(): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; + add_attribute(cell: CellRenderer, attribute: string, column: number): void; + clear(): void; + clear_attributes(cell: CellRenderer): void; + get_area(): CellArea | null; + get_cells(): GLib.List; + pack_end(cell: CellRenderer, expand: boolean): void; + pack_start(cell: CellRenderer, expand: boolean): void; + reorder(cell: CellRenderer, position: number): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; + vfunc_clear(): void; + vfunc_clear_attributes(cell: CellRenderer): void; + vfunc_get_area(): CellArea | null; + vfunc_get_cells(): GLib.List; + vfunc_pack_end(cell: CellRenderer, expand: boolean): void; + vfunc_pack_start(cell: CellRenderer, expand: boolean): void; + vfunc_reorder(cell: CellRenderer, position: number): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; +} +export module EntryIconAccessible { + export interface ConstructorProperties extends Atk.Object.ConstructorProperties { + [key: string]: any; + } +} +export class EntryIconAccessible extends Atk.Object implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Atk.Layer; + get_mdi_zorder(): number; + get_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: Atk.ScrollType): boolean; + scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Atk.Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Atk.Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: Atk.ScrollType): boolean; + vfunc_scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; +} +export module EventBox { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + above_child: boolean; + visible_window: boolean; + } +} +export class EventBox extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + above_child: boolean; + visible_window: boolean; + // Fields + bin: Bin; + // Constructors + static ["new"](): EventBox; + // Members + get_above_child(): boolean; + get_visible_window(): boolean; + set_above_child(above_child: boolean): void; + set_visible_window(visible_window: boolean): void; +} +export module EventController { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + propagation_phase: PropagationPhase; + widget: Widget; + } +} +export abstract class EventController extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + propagation_phase: PropagationPhase; + widget: Widget; + // Members + get_propagation_phase(): PropagationPhase; + get_widget(): Widget; + handle_event(event: Gdk.Event): boolean; + reset(): void; + set_propagation_phase(phase: PropagationPhase): void; +} +export module EventControllerKey { + export interface ConstructorProperties extends EventController.ConstructorProperties { + [key: string]: any; + } +} +export class EventControllerKey extends EventController { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'focus-in', callback: (_source: this) => void): number; + connect_after(signal: 'focus-in', callback: (_source: this) => void): number; + emit(signal: 'focus-in'): void; + connect(signal: 'focus-out', callback: (_source: this) => void): number; + connect_after(signal: 'focus-out', callback: (_source: this) => void): number; + emit(signal: 'focus-out'): void; + connect(signal: 'im-update', callback: (_source: this) => void): number; + connect_after(signal: 'im-update', callback: (_source: this) => void): number; + emit(signal: 'im-update'): void; + connect(signal: 'key-pressed', callback: (_source: this, keyval: number, keycode: number, state: Gdk.ModifierType) => boolean): number; + connect_after(signal: 'key-pressed', callback: (_source: this, keyval: number, keycode: number, state: Gdk.ModifierType) => boolean): number; + emit(signal: 'key-pressed', keyval: number, keycode: number, state: Gdk.ModifierType): void; + connect(signal: 'key-released', callback: (_source: this, keyval: number, keycode: number, state: Gdk.ModifierType) => void): number; + connect_after(signal: 'key-released', callback: (_source: this, keyval: number, keycode: number, state: Gdk.ModifierType) => void): number; + emit(signal: 'key-released', keyval: number, keycode: number, state: Gdk.ModifierType): void; + connect(signal: 'modifiers', callback: (_source: this, object: Gdk.ModifierType) => boolean): number; + connect_after(signal: 'modifiers', callback: (_source: this, object: Gdk.ModifierType) => boolean): number; + emit(signal: 'modifiers', object: Gdk.ModifierType): void; + // Constructors + static ["new"](widget: Widget): EventControllerKey; + // Members + forward(widget: Widget): boolean; + get_group(): number; + get_im_context(): IMContext; + set_im_context(im_context: IMContext): void; +} +export module EventControllerMotion { + export interface ConstructorProperties extends EventController.ConstructorProperties { + [key: string]: any; + } +} +export class EventControllerMotion extends EventController { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'enter', callback: (_source: this, x: number, y: number) => void): number; + connect_after(signal: 'enter', callback: (_source: this, x: number, y: number) => void): number; + emit(signal: 'enter', x: number, y: number): void; + connect(signal: 'leave', callback: (_source: this) => void): number; + connect_after(signal: 'leave', callback: (_source: this) => void): number; + emit(signal: 'leave'): void; + connect(signal: 'motion', callback: (_source: this, x: number, y: number) => void): number; + connect_after(signal: 'motion', callback: (_source: this, x: number, y: number) => void): number; + emit(signal: 'motion', x: number, y: number): void; + // Constructors + static ["new"](widget: Widget): EventControllerMotion; +} +export module EventControllerScroll { + export interface ConstructorProperties extends EventController.ConstructorProperties { + [key: string]: any; + flags: EventControllerScrollFlags; + } +} +export class EventControllerScroll extends EventController { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + flags: EventControllerScrollFlags; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'decelerate', callback: (_source: this, vel_x: number, vel_y: number) => void): number; + connect_after(signal: 'decelerate', callback: (_source: this, vel_x: number, vel_y: number) => void): number; + emit(signal: 'decelerate', vel_x: number, vel_y: number): void; + connect(signal: 'scroll', callback: (_source: this, dx: number, dy: number) => void): number; + connect_after(signal: 'scroll', callback: (_source: this, dx: number, dy: number) => void): number; + emit(signal: 'scroll', dx: number, dy: number): void; + connect(signal: 'scroll-begin', callback: (_source: this) => void): number; + connect_after(signal: 'scroll-begin', callback: (_source: this) => void): number; + emit(signal: 'scroll-begin'): void; + connect(signal: 'scroll-end', callback: (_source: this) => void): number; + connect_after(signal: 'scroll-end', callback: (_source: this) => void): number; + emit(signal: 'scroll-end'): void; + // Constructors + static ["new"](widget: Widget, flags: EventControllerScrollFlags): EventControllerScroll; + // Members + get_flags(): EventControllerScrollFlags; + set_flags(flags: EventControllerScrollFlags): void; +} +export module Expander { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + expanded: boolean; + label: string; + label_fill: boolean; + label_widget: Widget; + resize_toplevel: boolean; + spacing: number; + use_markup: boolean; + use_underline: boolean; + } +} +export class Expander extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + expanded: boolean; + label: string; + label_fill: boolean; + label_widget: Widget; + resize_toplevel: boolean; + spacing: number; + use_markup: boolean; + use_underline: boolean; + // Fields + bin: Bin; + priv: ExpanderPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + // Constructors + static ["new"](label: string | null): Expander; + static new_with_mnemonic(label: string | null): Expander; + // Members + get_expanded(): boolean; + get_label(): string | null; + get_label_fill(): boolean; + get_label_widget(): Widget | null; + get_resize_toplevel(): boolean; + get_spacing(): number; + get_use_markup(): boolean; + get_use_underline(): boolean; + set_expanded(expanded: boolean): void; + set_label(label: string | null): void; + set_label_fill(label_fill: boolean): void; + set_label_widget(label_widget: Widget | null): void; + set_resize_toplevel(resize_toplevel: boolean): void; + set_spacing(spacing: number): void; + set_use_markup(use_markup: boolean): void; + set_use_underline(use_underline: boolean): void; + vfunc_activate(): void; +} +export module ExpanderAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ExpanderAccessible extends ContainerAccessible implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ExpanderAccessiblePrivate | any; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; +} +export module FileChooserButton { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + dialog: FileChooser; + title: string; + width_chars: number; + } +} +export class FileChooserButton extends Box implements Atk.ImplementorIface, Buildable, FileChooser, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + dialog: FileChooser; + title: string; + width_chars: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'file-set', callback: (_source: this) => void): number; + connect_after(signal: 'file-set', callback: (_source: this) => void): number; + emit(signal: 'file-set'): void; + // Implemented Properties + action: FileChooserAction; + create_folders: boolean; + do_overwrite_confirmation: boolean; + extra_widget: Widget; + filter: FileFilter; + local_only: boolean; + preview_widget: Widget; + preview_widget_active: boolean; + select_multiple: boolean; + show_hidden: boolean; + use_preview_label: boolean; + // Constructors + static ["new"](title: string, action: FileChooserAction): FileChooserButton; + static ["new"](...args: never[]): never; + static new_with_dialog(dialog: Dialog): FileChooserButton; + // Members + get_focus_on_click(): boolean; + get_title(): string; + get_width_chars(): number; + set_focus_on_click(focus_on_click: boolean): void; + set_title(title: string): void; + set_width_chars(n_chars: number): void; + vfunc_file_set(): void; + // Implemented Members + add_choice(id: string, label: string, options: string[] | null, option_labels: string[] | null): void; + add_filter(filter: FileFilter): void; + add_shortcut_folder(folder: string): boolean; + add_shortcut_folder_uri(uri: string): boolean; + get_action(): FileChooserAction; + get_choice(id: string): string; + get_create_folders(): boolean; + get_current_folder(): string | null; + get_current_folder_file(): Gio.File; + get_current_folder_uri(): string | null; + get_current_name(): string; + get_do_overwrite_confirmation(): boolean; + get_extra_widget(): Widget | null; + get_file(): Gio.File; + get_filename(): string | null; + get_filenames(): string[]; + get_files(): string[]; + get_filter(): FileFilter | null; + get_local_only(): boolean; + get_preview_file(): Gio.File | null; + get_preview_filename(): string | null; + get_preview_uri(): string | null; + get_preview_widget(): Widget | null; + get_preview_widget_active(): boolean; + get_select_multiple(): boolean; + get_show_hidden(): boolean; + get_uri(): string | null; + get_uris(): string[]; + get_use_preview_label(): boolean; + list_filters(): string[]; + list_shortcut_folder_uris(): string[] | null; + list_shortcut_folders(): string[] | null; + remove_choice(id: string): void; + remove_filter(filter: FileFilter): void; + remove_shortcut_folder(folder: string): boolean; + remove_shortcut_folder_uri(uri: string): boolean; + select_all(): void; + select_file(file: Gio.File): boolean; + select_filename(filename: string): boolean; + select_uri(uri: string): boolean; + set_action(action: FileChooserAction): void; + set_choice(id: string, option: string): void; + set_create_folders(create_folders: boolean): void; + set_current_folder(filename: string): boolean; + set_current_folder_file(file: Gio.File): boolean; + set_current_folder_uri(uri: string): boolean; + set_current_name(name: string): void; + set_do_overwrite_confirmation(do_overwrite_confirmation: boolean): void; + set_extra_widget(extra_widget: Widget): void; + set_file(file: Gio.File): boolean; + set_filename(filename: string): boolean; + set_filter(filter: FileFilter): void; + set_local_only(local_only: boolean): void; + set_preview_widget(preview_widget: Widget): void; + set_preview_widget_active(active: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_hidden(show_hidden: boolean): void; + set_uri(uri: string): boolean; + set_use_preview_label(use_label: boolean): void; + unselect_all(): void; + unselect_file(file: Gio.File): void; + unselect_filename(filename: string): void; + unselect_uri(uri: string): void; +} +export module FileChooserDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + } +} +export class FileChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, FileChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: FileChooserDialogPrivate | any; + // Implemented Properties + action: FileChooserAction; + create_folders: boolean; + do_overwrite_confirmation: boolean; + extra_widget: Widget; + filter: FileFilter; + local_only: boolean; + preview_widget: Widget; + preview_widget_active: boolean; + select_multiple: boolean; + show_hidden: boolean; + use_preview_label: boolean; + // Implemented Members + add_choice(id: string, label: string, options: string[] | null, option_labels: string[] | null): void; + add_filter(filter: FileFilter): void; + add_shortcut_folder(folder: string): boolean; + add_shortcut_folder_uri(uri: string): boolean; + get_action(): FileChooserAction; + get_choice(id: string): string; + get_create_folders(): boolean; + get_current_folder(): string | null; + get_current_folder_file(): Gio.File; + get_current_folder_uri(): string | null; + get_current_name(): string; + get_do_overwrite_confirmation(): boolean; + get_extra_widget(): Widget | null; + get_file(): Gio.File; + get_filename(): string | null; + get_filenames(): string[]; + get_files(): string[]; + get_filter(): FileFilter | null; + get_local_only(): boolean; + get_preview_file(): Gio.File | null; + get_preview_filename(): string | null; + get_preview_uri(): string | null; + get_preview_widget(): Widget | null; + get_preview_widget_active(): boolean; + get_select_multiple(): boolean; + get_show_hidden(): boolean; + get_uri(): string | null; + get_uris(): string[]; + get_use_preview_label(): boolean; + list_filters(): string[]; + list_shortcut_folder_uris(): string[] | null; + list_shortcut_folders(): string[] | null; + remove_choice(id: string): void; + remove_filter(filter: FileFilter): void; + remove_shortcut_folder(folder: string): boolean; + remove_shortcut_folder_uri(uri: string): boolean; + select_all(): void; + select_file(file: Gio.File): boolean; + select_filename(filename: string): boolean; + select_uri(uri: string): boolean; + set_action(action: FileChooserAction): void; + set_choice(id: string, option: string): void; + set_create_folders(create_folders: boolean): void; + set_current_folder(filename: string): boolean; + set_current_folder_file(file: Gio.File): boolean; + set_current_folder_uri(uri: string): boolean; + set_current_name(name: string): void; + set_do_overwrite_confirmation(do_overwrite_confirmation: boolean): void; + set_extra_widget(extra_widget: Widget): void; + set_file(file: Gio.File): boolean; + set_filename(filename: string): boolean; + set_filter(filter: FileFilter): void; + set_local_only(local_only: boolean): void; + set_preview_widget(preview_widget: Widget): void; + set_preview_widget_active(active: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_hidden(show_hidden: boolean): void; + set_uri(uri: string): boolean; + set_use_preview_label(use_label: boolean): void; + unselect_all(): void; + unselect_file(file: Gio.File): void; + unselect_filename(filename: string): void; + unselect_uri(uri: string): void; +} +export module FileChooserNative { + export interface ConstructorProperties extends NativeDialog.ConstructorProperties { + [key: string]: any; + accept_label: string; + cancel_label: string; + } +} +export class FileChooserNative extends NativeDialog implements FileChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accept_label: string; + cancel_label: string; + // Implemented Properties + action: FileChooserAction; + create_folders: boolean; + do_overwrite_confirmation: boolean; + extra_widget: Widget; + filter: FileFilter; + local_only: boolean; + preview_widget: Widget; + preview_widget_active: boolean; + select_multiple: boolean; + show_hidden: boolean; + use_preview_label: boolean; + // Constructors + static ["new"](title: string | null, parent: Window | null, action: FileChooserAction, accept_label: string | null, cancel_label: string | null): FileChooserNative; + // Members + get_accept_label(): string | null; + get_cancel_label(): string | null; + set_accept_label(accept_label: string | null): void; + set_cancel_label(cancel_label: string | null): void; + // Implemented Members + add_choice(id: string, label: string, options: string[] | null, option_labels: string[] | null): void; + add_filter(filter: FileFilter): void; + add_shortcut_folder(folder: string): boolean; + add_shortcut_folder_uri(uri: string): boolean; + get_action(): FileChooserAction; + get_choice(id: string): string; + get_create_folders(): boolean; + get_current_folder(): string | null; + get_current_folder_file(): Gio.File; + get_current_folder_uri(): string | null; + get_current_name(): string; + get_do_overwrite_confirmation(): boolean; + get_extra_widget(): Widget | null; + get_file(): Gio.File; + get_filename(): string | null; + get_filenames(): string[]; + get_files(): string[]; + get_filter(): FileFilter | null; + get_local_only(): boolean; + get_preview_file(): Gio.File | null; + get_preview_filename(): string | null; + get_preview_uri(): string | null; + get_preview_widget(): Widget | null; + get_preview_widget_active(): boolean; + get_select_multiple(): boolean; + get_show_hidden(): boolean; + get_uri(): string | null; + get_uris(): string[]; + get_use_preview_label(): boolean; + list_filters(): string[]; + list_shortcut_folder_uris(): string[] | null; + list_shortcut_folders(): string[] | null; + remove_choice(id: string): void; + remove_filter(filter: FileFilter): void; + remove_shortcut_folder(folder: string): boolean; + remove_shortcut_folder_uri(uri: string): boolean; + select_all(): void; + select_file(file: Gio.File): boolean; + select_filename(filename: string): boolean; + select_uri(uri: string): boolean; + set_action(action: FileChooserAction): void; + set_choice(id: string, option: string): void; + set_create_folders(create_folders: boolean): void; + set_current_folder(filename: string): boolean; + set_current_folder_file(file: Gio.File): boolean; + set_current_folder_uri(uri: string): boolean; + set_current_name(name: string): void; + set_do_overwrite_confirmation(do_overwrite_confirmation: boolean): void; + set_extra_widget(extra_widget: Widget): void; + set_file(file: Gio.File): boolean; + set_filename(filename: string): boolean; + set_filter(filter: FileFilter): void; + set_local_only(local_only: boolean): void; + set_preview_widget(preview_widget: Widget): void; + set_preview_widget_active(active: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_hidden(show_hidden: boolean): void; + set_uri(uri: string): boolean; + set_use_preview_label(use_label: boolean): void; + unselect_all(): void; + unselect_file(file: Gio.File): void; + unselect_filename(filename: string): void; + unselect_uri(uri: string): void; +} +export module FileChooserWidget { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + search_mode: boolean; + subtitle: string; + } +} +export class FileChooserWidget extends Box implements Atk.ImplementorIface, Buildable, FileChooser, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + search_mode: boolean; + subtitle: string; + // Fields + priv: FileChooserWidgetPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'desktop-folder', callback: (_source: this) => void): number; + connect_after(signal: 'desktop-folder', callback: (_source: this) => void): number; + emit(signal: 'desktop-folder'): void; + connect(signal: 'down-folder', callback: (_source: this) => void): number; + connect_after(signal: 'down-folder', callback: (_source: this) => void): number; + emit(signal: 'down-folder'): void; + connect(signal: 'home-folder', callback: (_source: this) => void): number; + connect_after(signal: 'home-folder', callback: (_source: this) => void): number; + emit(signal: 'home-folder'): void; + connect(signal: 'location-popup', callback: (_source: this, path: string) => void): number; + connect_after(signal: 'location-popup', callback: (_source: this, path: string) => void): number; + emit(signal: 'location-popup', path: string): void; + connect(signal: 'location-popup-on-paste', callback: (_source: this) => void): number; + connect_after(signal: 'location-popup-on-paste', callback: (_source: this) => void): number; + emit(signal: 'location-popup-on-paste'): void; + connect(signal: 'location-toggle-popup', callback: (_source: this) => void): number; + connect_after(signal: 'location-toggle-popup', callback: (_source: this) => void): number; + emit(signal: 'location-toggle-popup'): void; + connect(signal: 'places-shortcut', callback: (_source: this) => void): number; + connect_after(signal: 'places-shortcut', callback: (_source: this) => void): number; + emit(signal: 'places-shortcut'): void; + connect(signal: 'quick-bookmark', callback: (_source: this, bookmark_index: number) => void): number; + connect_after(signal: 'quick-bookmark', callback: (_source: this, bookmark_index: number) => void): number; + emit(signal: 'quick-bookmark', bookmark_index: number): void; + connect(signal: 'recent-shortcut', callback: (_source: this) => void): number; + connect_after(signal: 'recent-shortcut', callback: (_source: this) => void): number; + emit(signal: 'recent-shortcut'): void; + connect(signal: 'search-shortcut', callback: (_source: this) => void): number; + connect_after(signal: 'search-shortcut', callback: (_source: this) => void): number; + emit(signal: 'search-shortcut'): void; + connect(signal: 'show-hidden', callback: (_source: this) => void): number; + connect_after(signal: 'show-hidden', callback: (_source: this) => void): number; + emit(signal: 'show-hidden'): void; + connect(signal: 'up-folder', callback: (_source: this) => void): number; + connect_after(signal: 'up-folder', callback: (_source: this) => void): number; + emit(signal: 'up-folder'): void; + // Implemented Properties + action: FileChooserAction; + create_folders: boolean; + do_overwrite_confirmation: boolean; + extra_widget: Widget; + filter: FileFilter; + local_only: boolean; + preview_widget: Widget; + preview_widget_active: boolean; + select_multiple: boolean; + show_hidden: boolean; + use_preview_label: boolean; + // Constructors + static ["new"](action: FileChooserAction): FileChooserWidget; + static ["new"](...args: never[]): never; + // Implemented Members + add_choice(id: string, label: string, options: string[] | null, option_labels: string[] | null): void; + add_filter(filter: FileFilter): void; + add_shortcut_folder(folder: string): boolean; + add_shortcut_folder_uri(uri: string): boolean; + get_action(): FileChooserAction; + get_choice(id: string): string; + get_create_folders(): boolean; + get_current_folder(): string | null; + get_current_folder_file(): Gio.File; + get_current_folder_uri(): string | null; + get_current_name(): string; + get_do_overwrite_confirmation(): boolean; + get_extra_widget(): Widget | null; + get_file(): Gio.File; + get_filename(): string | null; + get_filenames(): string[]; + get_files(): string[]; + get_filter(): FileFilter | null; + get_local_only(): boolean; + get_preview_file(): Gio.File | null; + get_preview_filename(): string | null; + get_preview_uri(): string | null; + get_preview_widget(): Widget | null; + get_preview_widget_active(): boolean; + get_select_multiple(): boolean; + get_show_hidden(): boolean; + get_uri(): string | null; + get_uris(): string[]; + get_use_preview_label(): boolean; + list_filters(): string[]; + list_shortcut_folder_uris(): string[] | null; + list_shortcut_folders(): string[] | null; + remove_choice(id: string): void; + remove_filter(filter: FileFilter): void; + remove_shortcut_folder(folder: string): boolean; + remove_shortcut_folder_uri(uri: string): boolean; + select_all(): void; + select_file(file: Gio.File): boolean; + select_filename(filename: string): boolean; + select_uri(uri: string): boolean; + set_action(action: FileChooserAction): void; + set_choice(id: string, option: string): void; + set_create_folders(create_folders: boolean): void; + set_current_folder(filename: string): boolean; + set_current_folder_file(file: Gio.File): boolean; + set_current_folder_uri(uri: string): boolean; + set_current_name(name: string): void; + set_do_overwrite_confirmation(do_overwrite_confirmation: boolean): void; + set_extra_widget(extra_widget: Widget): void; + set_file(file: Gio.File): boolean; + set_filename(filename: string): boolean; + set_filter(filter: FileFilter): void; + set_local_only(local_only: boolean): void; + set_preview_widget(preview_widget: Widget): void; + set_preview_widget_active(active: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_hidden(show_hidden: boolean): void; + set_uri(uri: string): boolean; + set_use_preview_label(use_label: boolean): void; + unselect_all(): void; + unselect_file(file: Gio.File): void; + unselect_filename(filename: string): void; + unselect_uri(uri: string): void; +} +export module FileFilter { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + } +} +export class FileFilter extends GObject.InitiallyUnowned implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): FileFilter; + static new_from_gvariant(variant: GLib.Variant): FileFilter; + // Members + add_custom(needed: FileFilterFlags, func: FileFilterFunc, data: any | null, notify: GLib.DestroyNotify): void; + add_mime_type(mime_type: string): void; + add_pattern(pattern: string): void; + add_pixbuf_formats(): void; + filter(filter_info: FileFilterInfo): boolean; + get_name(): string | null; + get_needed(): FileFilterFlags; + set_name(name: string | null): void; + to_gvariant(): GLib.Variant; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module Fixed { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + } +} +export class Fixed extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + container: Container; + // Constructors + static ["new"](): Fixed; + // Members + move(widget: Widget, x: number, y: number): void; + put(widget: Widget, x: number, y: number): void; +} +export module FlowBox { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + activate_on_single_click: boolean; + column_spacing: number; + homogeneous: boolean; + max_children_per_line: number; + min_children_per_line: number; + row_spacing: number; + selection_mode: SelectionMode; + } +} +export class FlowBox extends Container implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + activate_on_single_click: boolean; + column_spacing: number; + homogeneous: boolean; + max_children_per_line: number; + min_children_per_line: number; + row_spacing: number; + selection_mode: SelectionMode; + // Fields + container: Container; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-cursor-child', callback: (_source: this) => void): number; + connect_after(signal: 'activate-cursor-child', callback: (_source: this) => void): number; + emit(signal: 'activate-cursor-child'): void; + connect(signal: 'child-activated', callback: (_source: this, child: FlowBoxChild) => void): number; + connect_after(signal: 'child-activated', callback: (_source: this, child: FlowBoxChild) => void): number; + emit(signal: 'child-activated', child: FlowBoxChild): void; + connect(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number) => boolean): number; + connect_after(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number) => boolean): number; + emit(signal: 'move-cursor', step: MovementStep, count: number): void; + connect(signal: 'select-all', callback: (_source: this) => void): number; + connect_after(signal: 'select-all', callback: (_source: this) => void): number; + emit(signal: 'select-all'): void; + connect(signal: 'selected-children-changed', callback: (_source: this) => void): number; + connect_after(signal: 'selected-children-changed', callback: (_source: this) => void): number; + emit(signal: 'selected-children-changed'): void; + connect(signal: 'toggle-cursor-child', callback: (_source: this) => void): number; + connect_after(signal: 'toggle-cursor-child', callback: (_source: this) => void): number; + emit(signal: 'toggle-cursor-child'): void; + connect(signal: 'unselect-all', callback: (_source: this) => void): number; + connect_after(signal: 'unselect-all', callback: (_source: this) => void): number; + emit(signal: 'unselect-all'): void; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): FlowBox; + // Members + bind_model(model: Gio.ListModel | null, create_widget_func: FlowBoxCreateWidgetFunc, user_data_free_func: GLib.DestroyNotify): void; + get_activate_on_single_click(): boolean; + get_child_at_index(idx: number): FlowBoxChild | null; + get_child_at_pos(x: number, y: number): FlowBoxChild | null; + get_column_spacing(): number; + get_homogeneous(): boolean; + get_max_children_per_line(): number; + get_min_children_per_line(): number; + get_row_spacing(): number; + get_selected_children(): GLib.List; + get_selection_mode(): SelectionMode; + insert(widget: Widget, position: number): void; + invalidate_filter(): void; + invalidate_sort(): void; + select_all(): void; + select_child(child: FlowBoxChild): void; + selected_foreach(func: FlowBoxForeachFunc, data: any | null): void; + set_activate_on_single_click(single: boolean): void; + set_column_spacing(spacing: number): void; + set_filter_func(filter_func: FlowBoxFilterFunc | null, destroy: GLib.DestroyNotify): void; + set_hadjustment(adjustment: Adjustment): void; + set_homogeneous(homogeneous: boolean): void; + set_max_children_per_line(n_children: number): void; + set_min_children_per_line(n_children: number): void; + set_row_spacing(spacing: number): void; + set_selection_mode(mode: SelectionMode): void; + set_sort_func(sort_func: FlowBoxSortFunc | null, destroy: GLib.DestroyNotify): void; + set_vadjustment(adjustment: Adjustment): void; + unselect_all(): void; + unselect_child(child: FlowBoxChild): void; + vfunc_activate_cursor_child(): void; + vfunc_child_activated(child: FlowBoxChild): void; + vfunc_move_cursor(step: MovementStep, count: number): boolean; + vfunc_select_all(): void; + vfunc_selected_children_changed(): void; + vfunc_toggle_cursor_child(): void; + vfunc_unselect_all(): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module FlowBoxAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class FlowBoxAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: FlowBoxAccessiblePrivate | any; + // Implemented Members + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export module FlowBoxChild { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + } +} +export class FlowBoxChild extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + // Constructors + static ["new"](): FlowBoxChild; + // Members + changed(): void; + get_index(): number; + is_selected(): boolean; + vfunc_activate(): void; +} +export module FlowBoxChildAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class FlowBoxChildAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); +} +export module FontButton { + export interface ConstructorProperties extends Button.ConstructorProperties { + [key: string]: any; + font_name: string; + show_size: boolean; + show_style: boolean; + title: string; + use_font: boolean; + use_size: boolean; + } +} +export class FontButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable, FontChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + font_name: string; + show_size: boolean; + show_style: boolean; + title: string; + use_font: boolean; + use_size: boolean; + // Fields + button: Button; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'font-set', callback: (_source: this) => void): number; + connect_after(signal: 'font-set', callback: (_source: this) => void): number; + emit(signal: 'font-set'): void; + // Implemented Properties + font: string; + font_desc: Pango.FontDescription; + font_features: string; + language: string; + level: FontChooserLevel; + preview_text: string; + show_preview_entry: boolean; + // Constructors + static ["new"](): FontButton; + static ["new"](...args: never[]): never; + static new_with_font(fontname: string): FontButton; + // Members + get_font_name(): string; + get_show_size(): boolean; + get_show_style(): boolean; + get_title(): string; + get_use_font(): boolean; + get_use_size(): boolean; + set_font_name(fontname: string): boolean; + set_show_size(show_size: boolean): void; + set_show_style(show_style: boolean): void; + set_title(title: string): void; + set_use_font(use_font: boolean): void; + set_use_size(use_size: boolean): void; + vfunc_font_set(): void; + // Implemented Members + get_font(): string | null; + get_font_desc(): Pango.FontDescription | null; + get_font_face(): Pango.FontFace | null; + get_font_family(): Pango.FontFamily | null; + get_font_features(): string; + get_font_map(): Pango.FontMap | null; + get_font_size(): number; + get_language(): string; + get_level(): FontChooserLevel; + get_preview_text(): string; + get_show_preview_entry(): boolean; + set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + set_font(fontname: string): void; + set_font_desc(font_desc: Pango.FontDescription): void; + set_font_map(fontmap: Pango.FontMap | null): void; + set_language(language: string): void; + set_level(level: FontChooserLevel): void; + set_preview_text(text: string): void; + set_show_preview_entry(show_preview_entry: boolean): void; + vfunc_font_activated(fontname: string): void; + vfunc_get_font_face(): Pango.FontFace | null; + vfunc_get_font_family(): Pango.FontFamily | null; + vfunc_get_font_map(): Pango.FontMap | null; + vfunc_get_font_size(): number; + vfunc_set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + vfunc_set_font_map(fontmap: Pango.FontMap | null): void; +} +export module FontChooserDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + } +} +export class FontChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, FontChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Implemented Properties + font: string; + font_desc: Pango.FontDescription; + font_features: string; + language: string; + level: FontChooserLevel; + preview_text: string; + show_preview_entry: boolean; + // Constructors + static ["new"](title: string | null, parent: Window | null): FontChooserDialog; + static ["new"](...args: never[]): never; + // Implemented Members + get_font(): string | null; + get_font_desc(): Pango.FontDescription | null; + get_font_face(): Pango.FontFace | null; + get_font_family(): Pango.FontFamily | null; + get_font_features(): string; + get_font_map(): Pango.FontMap | null; + get_font_size(): number; + get_language(): string; + get_level(): FontChooserLevel; + get_preview_text(): string; + get_show_preview_entry(): boolean; + set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + set_font(fontname: string): void; + set_font_desc(font_desc: Pango.FontDescription): void; + set_font_map(fontmap: Pango.FontMap | null): void; + set_language(language: string): void; + set_level(level: FontChooserLevel): void; + set_preview_text(text: string): void; + set_show_preview_entry(show_preview_entry: boolean): void; + vfunc_font_activated(fontname: string): void; + vfunc_get_font_face(): Pango.FontFace | null; + vfunc_get_font_family(): Pango.FontFamily | null; + vfunc_get_font_map(): Pango.FontMap | null; + vfunc_get_font_size(): number; + vfunc_set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + vfunc_set_font_map(fontmap: Pango.FontMap | null): void; +} +export module FontChooserWidget { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + tweak_action: Gio.Action; + } +} +export class FontChooserWidget extends Box implements Atk.ImplementorIface, Buildable, FontChooser, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + tweak_action: Gio.Action; + // Implemented Properties + font: string; + font_desc: Pango.FontDescription; + font_features: string; + language: string; + level: FontChooserLevel; + preview_text: string; + show_preview_entry: boolean; + // Constructors + static ["new"](): FontChooserWidget; + static ["new"](...args: never[]): never; + // Implemented Members + get_font(): string | null; + get_font_desc(): Pango.FontDescription | null; + get_font_face(): Pango.FontFace | null; + get_font_family(): Pango.FontFamily | null; + get_font_features(): string; + get_font_map(): Pango.FontMap | null; + get_font_size(): number; + get_language(): string; + get_level(): FontChooserLevel; + get_preview_text(): string; + get_show_preview_entry(): boolean; + set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + set_font(fontname: string): void; + set_font_desc(font_desc: Pango.FontDescription): void; + set_font_map(fontmap: Pango.FontMap | null): void; + set_language(language: string): void; + set_level(level: FontChooserLevel): void; + set_preview_text(text: string): void; + set_show_preview_entry(show_preview_entry: boolean): void; + vfunc_font_activated(fontname: string): void; + vfunc_get_font_face(): Pango.FontFace | null; + vfunc_get_font_family(): Pango.FontFamily | null; + vfunc_get_font_map(): Pango.FontMap | null; + vfunc_get_font_size(): number; + vfunc_set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + vfunc_set_font_map(fontmap: Pango.FontMap | null): void; +} +export module FontSelection { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + font_name: string; + preview_text: string; + } +} +export class FontSelection extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + font_name: string; + preview_text: string; + // Constructors + static ["new"](): FontSelection; + static ["new"](...args: never[]): never; + // Members + get_face(): Pango.FontFace; + get_face_list(): Widget; + get_family(): Pango.FontFamily; + get_family_list(): Widget; + get_font_name(): string; + get_preview_entry(): Widget; + get_preview_text(): string; + get_size(): number; + get_size_entry(): Widget; + get_size_list(): Widget; + set_font_name(fontname: string): boolean; + set_preview_text(text: string): void; +} +export module FontSelectionDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + } +} +export class FontSelectionDialog extends Dialog implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](title: string): FontSelectionDialog; + static ["new"](...args: never[]): never; + // Members + get_cancel_button(): Widget; + get_font_name(): string; + get_font_selection(): Widget; + get_ok_button(): Widget; + get_preview_text(): string; + set_font_name(fontname: string): boolean; + set_preview_text(text: string): void; +} +export module Frame { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + label: string; + label_widget: Widget; + label_xalign: number; + label_yalign: number; + shadow_type: ShadowType; + } +} +export class Frame extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + label: string; + label_widget: Widget; + label_xalign: number; + label_yalign: number; + shadow_type: ShadowType; + // Fields + bin: Bin; + // Constructors + static ["new"](label: string | null): Frame; + // Members + get_label(): string | null; + get_label_align(): [number | null, number | null]; + get_label_widget(): Widget | null; + get_shadow_type(): ShadowType; + set_label(label: string | null): void; + set_label_align(xalign: number, yalign: number): void; + set_label_widget(label_widget: Widget | null): void; + set_shadow_type(type: ShadowType): void; + vfunc_compute_child_allocation(allocation: Allocation): void; +} +export module FrameAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class FrameAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: FrameAccessiblePrivate | any; +} +export module GLArea { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + auto_render: boolean; + context: Gdk.GLContext; + has_alpha: boolean; + has_depth_buffer: boolean; + has_stencil_buffer: boolean; + use_es: boolean; + } +} +export class GLArea extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + auto_render: boolean; + context: Gdk.GLContext; + has_alpha: boolean; + has_depth_buffer: boolean; + has_stencil_buffer: boolean; + use_es: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'create-context', callback: (_source: this) => Gdk.GLContext): number; + connect_after(signal: 'create-context', callback: (_source: this) => Gdk.GLContext): number; + emit(signal: 'create-context'): void; + connect(signal: 'render', callback: (_source: this, context: Gdk.GLContext) => boolean): number; + connect_after(signal: 'render', callback: (_source: this, context: Gdk.GLContext) => boolean): number; + emit(signal: 'render', context: Gdk.GLContext): void; + connect(signal: 'resize', callback: (_source: this, width: number, height: number) => void): number; + connect_after(signal: 'resize', callback: (_source: this, width: number, height: number) => void): number; + emit(signal: 'resize', width: number, height: number): void; + // Constructors + static ["new"](): GLArea; + // Members + attach_buffers(): void; + get_auto_render(): boolean; + get_context(): Gdk.GLContext; + get_error(): GLib.Error | null; + get_has_alpha(): boolean; + get_has_depth_buffer(): boolean; + get_has_stencil_buffer(): boolean; + get_required_version(): [number, number]; + get_use_es(): boolean; + make_current(): void; + queue_render(): void; + set_auto_render(auto_render: boolean): void; + set_error(error: GLib.Error | null): void; + set_has_alpha(has_alpha: boolean): void; + set_has_depth_buffer(has_depth_buffer: boolean): void; + set_has_stencil_buffer(has_stencil_buffer: boolean): void; + set_required_version(major: number, minor: number): void; + set_use_es(use_es: boolean): void; + vfunc_render(context: Gdk.GLContext): boolean; + vfunc_resize(width: number, height: number): void; +} +export module Gesture { + export interface ConstructorProperties extends EventController.ConstructorProperties { + [key: string]: any; + n_points: number; + window: Gdk.Window; + } +} +export abstract class Gesture extends EventController { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + n_points: number; + window: Gdk.Window; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'begin', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + connect_after(signal: 'begin', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + emit(signal: 'begin', sequence: Gdk.EventSequence): void; + connect(signal: 'cancel', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + connect_after(signal: 'cancel', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + emit(signal: 'cancel', sequence: Gdk.EventSequence): void; + connect(signal: 'end', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + connect_after(signal: 'end', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + emit(signal: 'end', sequence: Gdk.EventSequence): void; + connect(signal: 'sequence-state-changed', callback: (_source: this, sequence: Gdk.EventSequence, state: EventSequenceState) => void): number; + connect_after(signal: 'sequence-state-changed', callback: (_source: this, sequence: Gdk.EventSequence, state: EventSequenceState) => void): number; + emit(signal: 'sequence-state-changed', sequence: Gdk.EventSequence, state: EventSequenceState): void; + connect(signal: 'update', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + connect_after(signal: 'update', callback: (_source: this, sequence: Gdk.EventSequence) => void): number; + emit(signal: 'update', sequence: Gdk.EventSequence): void; + // Members + get_bounding_box(): [boolean, Gdk.Rectangle]; + get_bounding_box_center(): [boolean, number, number]; + get_device(): Gdk.Device | null; + get_group(): GLib.List; + get_last_event(sequence: Gdk.EventSequence | null): Gdk.Event | null; + get_last_updated_sequence(): Gdk.EventSequence | null; + get_point(sequence: Gdk.EventSequence | null): [boolean, number | null, number | null]; + get_sequence_state(sequence: Gdk.EventSequence): EventSequenceState; + get_sequences(): GLib.List; + get_window(): Gdk.Window | null; + group(gesture: Gesture): void; + handles_sequence(sequence: Gdk.EventSequence | null): boolean; + is_active(): boolean; + is_grouped_with(other: Gesture): boolean; + is_recognized(): boolean; + set_sequence_state(sequence: Gdk.EventSequence, state: EventSequenceState): boolean; + set_state(state: EventSequenceState): boolean; + set_window(window: Gdk.Window | null): void; + ungroup(): void; +} +export module GestureDrag { + export interface ConstructorProperties extends GestureSingle.ConstructorProperties { + [key: string]: any; + } +} +export class GestureDrag extends GestureSingle { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'drag-begin', callback: (_source: this, start_x: number, start_y: number) => void): number; + connect_after(signal: 'drag-begin', callback: (_source: this, start_x: number, start_y: number) => void): number; + emit(signal: 'drag-begin', start_x: number, start_y: number): void; + connect(signal: 'drag-end', callback: (_source: this, offset_x: number, offset_y: number) => void): number; + connect_after(signal: 'drag-end', callback: (_source: this, offset_x: number, offset_y: number) => void): number; + emit(signal: 'drag-end', offset_x: number, offset_y: number): void; + connect(signal: 'drag-update', callback: (_source: this, offset_x: number, offset_y: number) => void): number; + connect_after(signal: 'drag-update', callback: (_source: this, offset_x: number, offset_y: number) => void): number; + emit(signal: 'drag-update', offset_x: number, offset_y: number): void; + // Constructors + static ["new"](widget: Widget): GestureDrag; + // Members + get_offset(): [boolean, number | null, number | null]; + get_start_point(): [boolean, number | null, number | null]; +} +export module GestureLongPress { + export interface ConstructorProperties extends GestureSingle.ConstructorProperties { + [key: string]: any; + delay_factor: number; + } +} +export class GestureLongPress extends GestureSingle { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + delay_factor: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'cancelled', callback: (_source: this) => void): number; + connect_after(signal: 'cancelled', callback: (_source: this) => void): number; + emit(signal: 'cancelled'): void; + connect(signal: 'pressed', callback: (_source: this, x: number, y: number) => void): number; + connect_after(signal: 'pressed', callback: (_source: this, x: number, y: number) => void): number; + emit(signal: 'pressed', x: number, y: number): void; + // Constructors + static ["new"](widget: Widget): GestureLongPress; +} +export module GestureMultiPress { + export interface ConstructorProperties extends GestureSingle.ConstructorProperties { + [key: string]: any; + } +} +export class GestureMultiPress extends GestureSingle { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'pressed', callback: (_source: this, n_press: number, x: number, y: number) => void): number; + connect_after(signal: 'pressed', callback: (_source: this, n_press: number, x: number, y: number) => void): number; + emit(signal: 'pressed', n_press: number, x: number, y: number): void; + connect(signal: 'released', callback: (_source: this, n_press: number, x: number, y: number) => void): number; + connect_after(signal: 'released', callback: (_source: this, n_press: number, x: number, y: number) => void): number; + emit(signal: 'released', n_press: number, x: number, y: number): void; + connect(signal: 'stopped', callback: (_source: this) => void): number; + connect_after(signal: 'stopped', callback: (_source: this) => void): number; + emit(signal: 'stopped'): void; + // Constructors + static ["new"](widget: Widget): GestureMultiPress; + // Members + get_area(): [boolean, Gdk.Rectangle]; + set_area(rect: Gdk.Rectangle | null): void; +} +export module GesturePan { + export interface ConstructorProperties extends GestureDrag.ConstructorProperties { + [key: string]: any; + orientation: Orientation; + } +} +export class GesturePan extends GestureDrag { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + orientation: Orientation; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'pan', callback: (_source: this, direction: PanDirection, offset: number) => void): number; + connect_after(signal: 'pan', callback: (_source: this, direction: PanDirection, offset: number) => void): number; + emit(signal: 'pan', direction: PanDirection, offset: number): void; + // Constructors + static ["new"](widget: Widget, orientation: Orientation): GesturePan; + static ["new"](...args: never[]): never; + // Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module GestureRotate { + export interface ConstructorProperties extends Gesture.ConstructorProperties { + [key: string]: any; + } +} +export class GestureRotate extends Gesture { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'angle-changed', callback: (_source: this, angle: number, angle_delta: number) => void): number; + connect_after(signal: 'angle-changed', callback: (_source: this, angle: number, angle_delta: number) => void): number; + emit(signal: 'angle-changed', angle: number, angle_delta: number): void; + // Constructors + static ["new"](widget: Widget): GestureRotate; + // Members + get_angle_delta(): number; +} +export module GestureSingle { + export interface ConstructorProperties extends Gesture.ConstructorProperties { + [key: string]: any; + button: number; + exclusive: boolean; + touch_only: boolean; + } +} +export class GestureSingle extends Gesture { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + button: number; + exclusive: boolean; + touch_only: boolean; + // Members + get_button(): number; + get_current_button(): number; + get_current_sequence(): Gdk.EventSequence | null; + get_exclusive(): boolean; + get_touch_only(): boolean; + set_button(button: number): void; + set_exclusive(exclusive: boolean): void; + set_touch_only(touch_only: boolean): void; +} +export module GestureStylus { + export interface ConstructorProperties extends GestureSingle.ConstructorProperties { + [key: string]: any; + } +} +export class GestureStylus extends GestureSingle { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'down', callback: (_source: this, object: number, p0: number) => void): number; + connect_after(signal: 'down', callback: (_source: this, object: number, p0: number) => void): number; + emit(signal: 'down', object: number, p0: number): void; + connect(signal: 'motion', callback: (_source: this, object: number, p0: number) => void): number; + connect_after(signal: 'motion', callback: (_source: this, object: number, p0: number) => void): number; + emit(signal: 'motion', object: number, p0: number): void; + connect(signal: 'proximity', callback: (_source: this, object: number, p0: number) => void): number; + connect_after(signal: 'proximity', callback: (_source: this, object: number, p0: number) => void): number; + emit(signal: 'proximity', object: number, p0: number): void; + connect(signal: 'up', callback: (_source: this, object: number, p0: number) => void): number; + connect_after(signal: 'up', callback: (_source: this, object: number, p0: number) => void): number; + emit(signal: 'up', object: number, p0: number): void; + // Constructors + static ["new"](widget: Widget): GestureStylus; + // Members + get_axes(axes: Gdk.AxisUse[]): [boolean, number[]]; + get_axis(axis: Gdk.AxisUse): [boolean, number]; + get_device_tool(): Gdk.DeviceTool | null; +} +export module GestureSwipe { + export interface ConstructorProperties extends GestureSingle.ConstructorProperties { + [key: string]: any; + } +} +export class GestureSwipe extends GestureSingle { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'swipe', callback: (_source: this, velocity_x: number, velocity_y: number) => void): number; + connect_after(signal: 'swipe', callback: (_source: this, velocity_x: number, velocity_y: number) => void): number; + emit(signal: 'swipe', velocity_x: number, velocity_y: number): void; + // Constructors + static ["new"](widget: Widget): GestureSwipe; + // Members + get_velocity(): [boolean, number, number]; +} +export module GestureZoom { + export interface ConstructorProperties extends Gesture.ConstructorProperties { + [key: string]: any; + } +} +export class GestureZoom extends Gesture { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'scale-changed', callback: (_source: this, scale: number) => void): number; + connect_after(signal: 'scale-changed', callback: (_source: this, scale: number) => void): number; + emit(signal: 'scale-changed', scale: number): void; + // Constructors + static ["new"](widget: Widget): GestureZoom; + // Members + get_scale_delta(): number; +} +export module Grid { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + baseline_row: number; + column_homogeneous: boolean; + column_spacing: number; + row_homogeneous: boolean; + row_spacing: number; + } +} +export class Grid extends Container implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + baseline_row: number; + column_homogeneous: boolean; + column_spacing: number; + row_homogeneous: boolean; + row_spacing: number; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): Grid; + // Members + attach(child: Widget, left: number, top: number, width: number, height: number): void; + attach_next_to(child: Widget, sibling: Widget | null, side: PositionType, width: number, height: number): void; + get_baseline_row(): number; + get_child_at(left: number, top: number): Widget | null; + get_column_homogeneous(): boolean; + get_column_spacing(): number; + get_row_baseline_position(row: number): BaselinePosition; + get_row_homogeneous(): boolean; + get_row_spacing(): number; + insert_column(position: number): void; + insert_next_to(sibling: Widget, side: PositionType): void; + insert_row(position: number): void; + remove_column(position: number): void; + remove_row(position: number): void; + set_baseline_row(row: number): void; + set_column_homogeneous(homogeneous: boolean): void; + set_column_spacing(spacing: number): void; + set_row_baseline_position(row: number, pos: BaselinePosition): void; + set_row_homogeneous(homogeneous: boolean): void; + set_row_spacing(spacing: number): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module HBox { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + } +} +export class HBox extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + box: Box; + // Constructors + static ["new"](homogeneous: boolean, spacing: number): HBox; + static ["new"](...args: never[]): never; +} +export module HButtonBox { + export interface ConstructorProperties extends ButtonBox.ConstructorProperties { + [key: string]: any; + } +} +export class HButtonBox extends ButtonBox implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + button_box: ButtonBox; + // Constructors + static ["new"](): HButtonBox; + static ["new"](...args: never[]): never; +} +export module HPaned { + export interface ConstructorProperties extends Paned.ConstructorProperties { + [key: string]: any; + } +} +export class HPaned extends Paned implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + paned: Paned; + // Constructors + static ["new"](): HPaned; + static ["new"](...args: never[]): never; +} +export module HSV { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + } +} +export class HSV extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + connect(signal: 'move', callback: (_source: this, object: DirectionType) => void): number; + connect_after(signal: 'move', callback: (_source: this, object: DirectionType) => void): number; + emit(signal: 'move', object: DirectionType): void; + // Constructors + static ["new"](): HSV; + // Members + get_color(): [number, number, number]; + get_metrics(): [number, number]; + is_adjusting(): boolean; + set_color(h: number, s: number, v: number): void; + set_metrics(size: number, ring_width: number): void; + vfunc_changed(): void; + vfunc_move(type: DirectionType): void; + static to_rgb(h: number, s: number, v: number): [number, number, number]; +} +export module HScale { + export interface ConstructorProperties extends Scale.ConstructorProperties { + [key: string]: any; + } +} +export class HScale extends Scale implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + scale: Scale; + // Constructors + static ["new"](adjustment: Adjustment | null): HScale; + static ["new"](...args: never[]): never; + static new_with_range(min: number, max: number, step: number): HScale; + static new_with_range(...args: never[]): never; +} +export module HScrollbar { + export interface ConstructorProperties extends Scrollbar.ConstructorProperties { + [key: string]: any; + } +} +export class HScrollbar extends Scrollbar implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + scrollbar: Scrollbar; + // Constructors + static ["new"](adjustment: Adjustment | null): HScrollbar; + static ["new"](...args: never[]): never; +} +export module HSeparator { + export interface ConstructorProperties extends Separator.ConstructorProperties { + [key: string]: any; + } +} +export class HSeparator extends Separator implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + separator: Separator; + // Constructors + static ["new"](): HSeparator; + static ["new"](...args: never[]): never; +} +export module HandleBox { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + child_detached: boolean; + handle_position: PositionType; + shadow_type: ShadowType; + snap_edge: PositionType; + snap_edge_set: boolean; + } +} +export class HandleBox extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + child_detached: boolean; + handle_position: PositionType; + shadow_type: ShadowType; + snap_edge: PositionType; + snap_edge_set: boolean; + // Fields + bin: Bin; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'child-attached', callback: (_source: this, widget: Widget) => void): number; + connect_after(signal: 'child-attached', callback: (_source: this, widget: Widget) => void): number; + emit(signal: 'child-attached', widget: Widget): void; + connect(signal: 'child-detached', callback: (_source: this, widget: Widget) => void): number; + connect_after(signal: 'child-detached', callback: (_source: this, widget: Widget) => void): number; + emit(signal: 'child-detached', widget: Widget): void; + // Constructors + static ["new"](): HandleBox; + // Members + get_child_detached(): boolean; + get_handle_position(): PositionType; + get_shadow_type(): ShadowType; + get_snap_edge(): PositionType; + set_handle_position(position: PositionType): void; + set_shadow_type(type: ShadowType): void; + set_snap_edge(edge: PositionType): void; + vfunc_child_attached(child: Widget): void; + vfunc_child_detached(child: Widget): void; +} +export module HeaderBar { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + custom_title: Widget; + decoration_layout: string; + decoration_layout_set: boolean; + has_subtitle: boolean; + show_close_button: boolean; + spacing: number; + subtitle: string; + title: string; + } +} +export class HeaderBar extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + custom_title: Widget; + decoration_layout: string; + decoration_layout_set: boolean; + has_subtitle: boolean; + show_close_button: boolean; + spacing: number; + subtitle: string; + title: string; + // Fields + container: Container; + // Constructors + static ["new"](): HeaderBar; + // Members + get_custom_title(): Widget | null; + get_decoration_layout(): string; + get_has_subtitle(): boolean; + get_show_close_button(): boolean; + get_subtitle(): string | null; + get_title(): string | null; + pack_end(child: Widget): void; + pack_start(child: Widget): void; + set_custom_title(title_widget: Widget | null): void; + set_decoration_layout(layout: string | null): void; + set_has_subtitle(setting: boolean): void; + set_show_close_button(setting: boolean): void; + set_subtitle(subtitle: string | null): void; + set_title(title: string | null): void; +} +export module HeaderBarAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class HeaderBarAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); +} +export module IMContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + input_hints: InputHints; + input_purpose: InputPurpose; + } +} +export abstract class IMContext extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + input_hints: InputHints; + input_purpose: InputPurpose; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'commit', callback: (_source: this, str: string) => void): number; + connect_after(signal: 'commit', callback: (_source: this, str: string) => void): number; + emit(signal: 'commit', str: string): void; + connect(signal: 'delete-surrounding', callback: (_source: this, offset: number, n_chars: number) => boolean): number; + connect_after(signal: 'delete-surrounding', callback: (_source: this, offset: number, n_chars: number) => boolean): number; + emit(signal: 'delete-surrounding', offset: number, n_chars: number): void; + connect(signal: 'preedit-changed', callback: (_source: this) => void): number; + connect_after(signal: 'preedit-changed', callback: (_source: this) => void): number; + emit(signal: 'preedit-changed'): void; + connect(signal: 'preedit-end', callback: (_source: this) => void): number; + connect_after(signal: 'preedit-end', callback: (_source: this) => void): number; + emit(signal: 'preedit-end'): void; + connect(signal: 'preedit-start', callback: (_source: this) => void): number; + connect_after(signal: 'preedit-start', callback: (_source: this) => void): number; + emit(signal: 'preedit-start'): void; + connect(signal: 'retrieve-surrounding', callback: (_source: this) => boolean): number; + connect_after(signal: 'retrieve-surrounding', callback: (_source: this) => boolean): number; + emit(signal: 'retrieve-surrounding'): void; + // Members + delete_surrounding(offset: number, n_chars: number): boolean; + filter_keypress(event: Gdk.EventKey): boolean; + focus_in(): void; + focus_out(): void; + get_preedit_string(): [string, Pango.AttrList, number]; + get_surrounding(): [boolean, string, number]; + reset(): void; + set_client_window(window: Gdk.Window | null): void; + set_cursor_location(area: Gdk.Rectangle): void; + set_surrounding(text: string, len: number, cursor_index: number): void; + set_use_preedit(use_preedit: boolean): void; + vfunc_commit(str: string): void; + vfunc_delete_surrounding(offset: number, n_chars: number): boolean; + vfunc_filter_keypress(event: Gdk.EventKey): boolean; + vfunc_focus_in(): void; + vfunc_focus_out(): void; + vfunc_get_preedit_string(): [string, Pango.AttrList, number]; + vfunc_get_surrounding(): [boolean, string, number]; + vfunc_preedit_changed(): void; + vfunc_preedit_end(): void; + vfunc_preedit_start(): void; + vfunc_reset(): void; + vfunc_retrieve_surrounding(): boolean; + vfunc_set_client_window(window: Gdk.Window | null): void; + vfunc_set_cursor_location(area: Gdk.Rectangle): void; + vfunc_set_surrounding(text: string, len: number, cursor_index: number): void; + vfunc_set_use_preedit(use_preedit: boolean): void; +} +export module IMContextSimple { + export interface ConstructorProperties extends IMContext.ConstructorProperties { + [key: string]: any; + } +} +export class IMContextSimple extends IMContext { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + object: IMContext; + // Constructors + static ["new"](): IMContextSimple; + // Members + add_compose_file(compose_file: string): void; +} +export module IMMulticontext { + export interface ConstructorProperties extends IMContext.ConstructorProperties { + [key: string]: any; + } +} +export class IMMulticontext extends IMContext { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + object: IMContext; + // Constructors + static ["new"](): IMMulticontext; + // Members + append_menuitems(menushell: MenuShell): void; + get_context_id(): string; + set_context_id(context_id: string): void; +} +export module IconFactory { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class IconFactory extends GObject.Object implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): IconFactory; + // Members + add(stock_id: string, icon_set: IconSet): void; + add_default(): void; + lookup(stock_id: string): IconSet; + remove_default(): void; + static lookup_default(stock_id: string): IconSet; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module IconInfo { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class IconInfo extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static new_for_pixbuf(icon_theme: IconTheme, pixbuf: GdkPixbuf.Pixbuf): IconInfo; + // Members + get_attach_points(): [boolean, Gdk.Point[] | null]; + get_base_scale(): number; + get_base_size(): number; + get_builtin_pixbuf(): GdkPixbuf.Pixbuf | null; + get_display_name(): string; + get_embedded_rect(): [boolean, Gdk.Rectangle]; + get_filename(): string | null; + is_symbolic(): boolean; + load_icon(): GdkPixbuf.Pixbuf; + load_icon_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + load_icon_finish(res: Gio.AsyncResult): GdkPixbuf.Pixbuf; + load_surface(for_window: Gdk.Window | null): cairo.Surface; + load_symbolic(fg: Gdk.RGBA, success_color: Gdk.RGBA | null, warning_color: Gdk.RGBA | null, error_color: Gdk.RGBA | null): [GdkPixbuf.Pixbuf, boolean | null]; + load_symbolic_async(fg: Gdk.RGBA, success_color: Gdk.RGBA | null, warning_color: Gdk.RGBA | null, error_color: Gdk.RGBA | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + load_symbolic_finish(res: Gio.AsyncResult): [GdkPixbuf.Pixbuf, boolean | null]; + load_symbolic_for_context(context: StyleContext): [GdkPixbuf.Pixbuf, boolean | null]; + load_symbolic_for_context_async(context: StyleContext, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + load_symbolic_for_context_finish(res: Gio.AsyncResult): [GdkPixbuf.Pixbuf, boolean | null]; + load_symbolic_for_style(style: Style, state: StateType): [GdkPixbuf.Pixbuf, boolean | null]; + set_raw_coordinates(raw_coordinates: boolean): void; +} +export module IconTheme { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class IconTheme extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + // Constructors + static ["new"](): IconTheme; + // Members + add_resource_path(path: string): void; + append_search_path(path: string): void; + choose_icon(icon_names: string[], size: number, flags: IconLookupFlags): IconInfo | null; + choose_icon_for_scale(icon_names: string[], size: number, scale: number, flags: IconLookupFlags): IconInfo | null; + get_example_icon_name(): string | null; + get_icon_sizes(icon_name: string): number[]; + get_search_path(): string[] | null; + has_icon(icon_name: string): boolean; + list_contexts(): GLib.List; + list_icons(context: string | null): GLib.List; + load_icon(icon_name: string, size: number, flags: IconLookupFlags): GdkPixbuf.Pixbuf | null; + load_icon_for_scale(icon_name: string, size: number, scale: number, flags: IconLookupFlags): GdkPixbuf.Pixbuf | null; + load_surface(icon_name: string, size: number, scale: number, for_window: Gdk.Window | null, flags: IconLookupFlags): cairo.Surface | null; + lookup_by_gicon(icon: Gio.Icon, size: number, flags: IconLookupFlags): IconInfo | null; + lookup_by_gicon_for_scale(icon: Gio.Icon, size: number, scale: number, flags: IconLookupFlags): IconInfo | null; + lookup_icon(icon_name: string, size: number, flags: IconLookupFlags): IconInfo | null; + lookup_icon_for_scale(icon_name: string, size: number, scale: number, flags: IconLookupFlags): IconInfo | null; + prepend_search_path(path: string): void; + rescan_if_needed(): boolean; + set_custom_theme(theme_name: string | null): void; + set_screen(screen: Gdk.Screen): void; + set_search_path(path: string[]): void; + vfunc_changed(): void; + static add_builtin_icon(icon_name: string, size: number, pixbuf: GdkPixbuf.Pixbuf): void; + static get_default(): IconTheme; + static get_for_screen(screen: Gdk.Screen): IconTheme; +} +export module IconView { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + activate_on_single_click: boolean; + cell_area: CellArea; + column_spacing: number; + columns: number; + item_orientation: Orientation; + item_padding: number; + item_width: number; + margin: number; + markup_column: number; + model: TreeModel; + pixbuf_column: number; + reorderable: boolean; + row_spacing: number; + selection_mode: SelectionMode; + spacing: number; + text_column: number; + tooltip_column: number; + } +} +export class IconView extends Container implements Atk.ImplementorIface, Buildable, CellLayout, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + activate_on_single_click: boolean; + cell_area: CellArea; + column_spacing: number; + columns: number; + item_orientation: Orientation; + item_padding: number; + item_width: number; + margin: number; + markup_column: number; + model: TreeModel; + pixbuf_column: number; + reorderable: boolean; + row_spacing: number; + selection_mode: SelectionMode; + spacing: number; + text_column: number; + tooltip_column: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-cursor-item', callback: (_source: this) => boolean): number; + connect_after(signal: 'activate-cursor-item', callback: (_source: this) => boolean): number; + emit(signal: 'activate-cursor-item'): void; + connect(signal: 'item-activated', callback: (_source: this, path: TreePath) => void): number; + connect_after(signal: 'item-activated', callback: (_source: this, path: TreePath) => void): number; + emit(signal: 'item-activated', path: TreePath): void; + connect(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number) => boolean): number; + connect_after(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number) => boolean): number; + emit(signal: 'move-cursor', step: MovementStep, count: number): void; + connect(signal: 'select-all', callback: (_source: this) => void): number; + connect_after(signal: 'select-all', callback: (_source: this) => void): number; + emit(signal: 'select-all'): void; + connect(signal: 'select-cursor-item', callback: (_source: this) => void): number; + connect_after(signal: 'select-cursor-item', callback: (_source: this) => void): number; + emit(signal: 'select-cursor-item'): void; + connect(signal: 'selection-changed', callback: (_source: this) => void): number; + connect_after(signal: 'selection-changed', callback: (_source: this) => void): number; + emit(signal: 'selection-changed'): void; + connect(signal: 'toggle-cursor-item', callback: (_source: this) => void): number; + connect_after(signal: 'toggle-cursor-item', callback: (_source: this) => void): number; + emit(signal: 'toggle-cursor-item'): void; + connect(signal: 'unselect-all', callback: (_source: this) => void): number; + connect_after(signal: 'unselect-all', callback: (_source: this) => void): number; + emit(signal: 'unselect-all'): void; + // Implemented Properties + hadjustment: Adjustment; + hscroll_policy: ScrollablePolicy; + vadjustment: Adjustment; + vscroll_policy: ScrollablePolicy; + // Constructors + static ["new"](): IconView; + static new_with_area(area: CellArea): IconView; + static new_with_model(model: TreeModel): IconView; + // Members + convert_widget_to_bin_window_coords(wx: number, wy: number): [number, number]; + create_drag_icon(path: TreePath): cairo.Surface; + enable_model_drag_dest(targets: TargetEntry[], actions: Gdk.DragAction): void; + enable_model_drag_source(start_button_mask: Gdk.ModifierType, targets: TargetEntry[], actions: Gdk.DragAction): void; + get_activate_on_single_click(): boolean; + get_cell_rect(path: TreePath, cell: CellRenderer | null): [boolean, Gdk.Rectangle]; + get_column_spacing(): number; + get_columns(): number; + get_cursor(): [boolean, TreePath | null, CellRenderer | null]; + get_dest_item_at_pos(drag_x: number, drag_y: number): [boolean, TreePath | null, IconViewDropPosition | null]; + get_drag_dest_item(): [TreePath | null, IconViewDropPosition | null]; + get_item_at_pos(x: number, y: number): [boolean, TreePath | null, CellRenderer | null]; + get_item_column(path: TreePath): number; + get_item_orientation(): Orientation; + get_item_padding(): number; + get_item_row(path: TreePath): number; + get_item_width(): number; + get_margin(): number; + get_markup_column(): number; + get_model(): TreeModel | null; + get_path_at_pos(x: number, y: number): TreePath | null; + get_pixbuf_column(): number; + get_reorderable(): boolean; + get_row_spacing(): number; + get_selected_items(): GLib.List; + get_selection_mode(): SelectionMode; + get_spacing(): number; + get_text_column(): number; + get_tooltip_column(): number; + get_tooltip_context(x: number, y: number, keyboard_tip: boolean): [boolean, number, number, TreeModel | null, TreePath | null, TreeIter | null]; + get_visible_range(): [boolean, TreePath | null, TreePath | null]; + item_activated(path: TreePath): void; + path_is_selected(path: TreePath): boolean; + scroll_to_path(path: TreePath, use_align: boolean, row_align: number, col_align: number): void; + select_all(): void; + select_path(path: TreePath): void; + selected_foreach(func: IconViewForeachFunc, data: any | null): void; + set_activate_on_single_click(single: boolean): void; + set_column_spacing(column_spacing: number): void; + set_columns(columns: number): void; + set_cursor(path: TreePath, cell: CellRenderer | null, start_editing: boolean): void; + set_drag_dest_item(path: TreePath | null, pos: IconViewDropPosition): void; + set_item_orientation(orientation: Orientation): void; + set_item_padding(item_padding: number): void; + set_item_width(item_width: number): void; + set_margin(margin: number): void; + set_markup_column(column: number): void; + set_model(model: TreeModel | null): void; + set_pixbuf_column(column: number): void; + set_reorderable(reorderable: boolean): void; + set_row_spacing(row_spacing: number): void; + set_selection_mode(mode: SelectionMode): void; + set_spacing(spacing: number): void; + set_text_column(column: number): void; + set_tooltip_cell(tooltip: Tooltip, path: TreePath, cell: CellRenderer | null): void; + set_tooltip_column(column: number): void; + set_tooltip_item(tooltip: Tooltip, path: TreePath): void; + unselect_all(): void; + unselect_path(path: TreePath): void; + unset_model_drag_dest(): void; + unset_model_drag_source(): void; + vfunc_activate_cursor_item(): boolean; + vfunc_item_activated(path: TreePath): void; + vfunc_move_cursor(step: MovementStep, count: number): boolean; + vfunc_select_all(): void; + vfunc_select_cursor_item(): void; + vfunc_selection_changed(): void; + vfunc_toggle_cursor_item(): void; + vfunc_unselect_all(): void; + // Implemented Members + add_attribute(cell: CellRenderer, attribute: string, column: number): void; + clear(): void; + clear_attributes(cell: CellRenderer): void; + get_area(): CellArea | null; + get_cells(): GLib.List; + pack_end(cell: CellRenderer, expand: boolean): void; + pack_start(cell: CellRenderer, expand: boolean): void; + reorder(cell: CellRenderer, position: number): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; + vfunc_clear(): void; + vfunc_clear_attributes(cell: CellRenderer): void; + vfunc_get_area(): CellArea | null; + vfunc_get_cells(): GLib.List; + vfunc_pack_end(cell: CellRenderer, expand: boolean): void; + vfunc_pack_start(cell: CellRenderer, expand: boolean): void; + vfunc_reorder(cell: CellRenderer, position: number): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + get_border(): [boolean, Border]; + get_hadjustment(): Adjustment; + get_hscroll_policy(): ScrollablePolicy; + get_vadjustment(): Adjustment; + get_vscroll_policy(): ScrollablePolicy; + set_hadjustment(hadjustment: Adjustment | null): void; + set_hscroll_policy(policy: ScrollablePolicy): void; + set_vadjustment(vadjustment: Adjustment | null): void; + set_vscroll_policy(policy: ScrollablePolicy): void; + vfunc_get_border(): [boolean, Border]; +} +export module IconViewAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class IconViewAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: IconViewAccessiblePrivate | any; + // Implemented Members + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export module Image { + export interface ConstructorProperties extends Misc.ConstructorProperties { + [key: string]: any; + file: string; + gicon: Gio.Icon; + icon_name: string; + icon_set: IconSet; + icon_size: number; + pixbuf: GdkPixbuf.Pixbuf; + pixbuf_animation: GdkPixbuf.PixbufAnimation; + pixel_size: number; + resource: string; + stock: string; + storage_type: ImageType; + surface: cairo.Surface; + use_fallback: boolean; + } +} +export class Image extends Misc implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + file: string; + gicon: Gio.Icon; + icon_name: string; + icon_set: IconSet; + icon_size: number; + pixbuf: GdkPixbuf.Pixbuf; + pixbuf_animation: GdkPixbuf.PixbufAnimation; + pixel_size: number; + resource: string; + stock: string; + storage_type: ImageType; + surface: cairo.Surface; + use_fallback: boolean; + // Fields + misc: Misc; + // Constructors + static ["new"](): Image; + static new_from_animation(animation: GdkPixbuf.PixbufAnimation): Image; + static new_from_file(filename: string): Image; + static new_from_gicon(icon: Gio.Icon, size: number): Image; + static new_from_icon_name(icon_name: string | null, size: number): Image; + static new_from_icon_set(icon_set: IconSet, size: number): Image; + static new_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): Image; + static new_from_resource(resource_path: string): Image; + static new_from_stock(stock_id: string, size: number): Image; + static new_from_surface(surface: cairo.Surface | null): Image; + // Members + clear(): void; + get_animation(): GdkPixbuf.PixbufAnimation | null; + get_gicon(): [Gio.Icon | null, number | null]; + get_icon_name(): [string | null, number | null]; + get_icon_set(): [IconSet | null, number | null]; + get_pixbuf(): GdkPixbuf.Pixbuf | null; + get_pixel_size(): number; + get_stock(): [string | null, number | null]; + get_storage_type(): ImageType; + set_from_animation(animation: GdkPixbuf.PixbufAnimation): void; + set_from_file(filename: string | null): void; + set_from_gicon(icon: Gio.Icon, size: number): void; + set_from_icon_name(icon_name: string | null, size: number): void; + set_from_icon_set(icon_set: IconSet, size: number): void; + set_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): void; + set_from_resource(resource_path: string | null): void; + set_from_stock(stock_id: string, size: number): void; + set_from_surface(surface: cairo.Surface | null): void; + set_pixel_size(pixel_size: number): void; +} +export module ImageAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ImageAccessible extends WidgetAccessible implements Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ImageAccessiblePrivate | any; + // Implemented Members + get_image_description(): string; + get_image_locale(): string | null; + get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_image_size(): [number | null, number | null]; + set_image_description(description: string): boolean; + vfunc_get_image_description(): string; + vfunc_get_image_locale(): string | null; + vfunc_get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_image_size(): [number | null, number | null]; + vfunc_set_image_description(description: string): boolean; +} +export module ImageCellAccessible { + export interface ConstructorProperties extends RendererCellAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ImageCellAccessible extends RendererCellAccessible implements Atk.Action, Atk.Component, Atk.Image, Atk.TableCell { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ImageCellAccessiblePrivate | any; + // Implemented Members + get_image_description(): string; + get_image_locale(): string | null; + get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_image_size(): [number | null, number | null]; + set_image_description(description: string): boolean; + vfunc_get_image_description(): string; + vfunc_get_image_locale(): string | null; + vfunc_get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_image_size(): [number | null, number | null]; + vfunc_set_image_description(description: string): boolean; +} +export module ImageMenuItem { + export interface ConstructorProperties extends MenuItem.ConstructorProperties { + [key: string]: any; + accel_group: AccelGroup; + always_show_image: boolean; + image: Widget; + use_stock: boolean; + } +} +export class ImageMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_group: AccelGroup; + always_show_image: boolean; + image: Widget; + use_stock: boolean; + // Fields + menu_item: MenuItem; + // Constructors + static ["new"](): ImageMenuItem; + static ["new"](...args: never[]): never; + static new_from_stock(stock_id: string, accel_group: AccelGroup | null): ImageMenuItem; + static new_with_label(label: string): ImageMenuItem; + static new_with_label(...args: never[]): never; + static new_with_mnemonic(label: string): ImageMenuItem; + static new_with_mnemonic(...args: never[]): never; + // Members + get_always_show_image(): boolean; + get_image(): Widget; + get_use_stock(): boolean; + set_accel_group(accel_group: AccelGroup): void; + set_always_show_image(always_show: boolean): void; + set_image(image: Widget | null): void; + set_use_stock(use_stock: boolean): void; +} +export module InfoBar { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + message_type: MessageType; + revealed: boolean; + show_close_button: boolean; + } +} +export class InfoBar extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + message_type: MessageType; + revealed: boolean; + show_close_button: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'close', callback: (_source: this) => void): number; + connect_after(signal: 'close', callback: (_source: this) => void): number; + emit(signal: 'close'): void; + connect(signal: 'response', callback: (_source: this, response_id: number) => void): number; + connect_after(signal: 'response', callback: (_source: this, response_id: number) => void): number; + emit(signal: 'response', response_id: number): void; + // Constructors + static ["new"](): InfoBar; + static ["new"](...args: never[]): never; + // Members + add_action_widget(child: Widget, response_id: number): void; + add_button(button_text: string, response_id: number): Button; + get_action_area(): Box; + get_content_area(): Box; + get_message_type(): MessageType; + get_revealed(): boolean; + get_show_close_button(): boolean; + response(response_id: number): void; + set_default_response(response_id: number): void; + set_message_type(message_type: MessageType): void; + set_response_sensitive(response_id: number, setting: boolean): void; + set_revealed(revealed: boolean): void; + set_show_close_button(setting: boolean): void; + vfunc_close(): void; + vfunc_response(response_id: number): void; +} +export module Invisible { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + screen: Gdk.Screen; + } +} +export class Invisible extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + screen: Gdk.Screen; + // Fields + widget: Widget; + // Constructors + static ["new"](): Invisible; + static new_for_screen(screen: Gdk.Screen): Invisible; + // Members + get_screen(): Gdk.Screen; + set_screen(screen: Gdk.Screen): void; +} +export module Label { + export interface ConstructorProperties extends Misc.ConstructorProperties { + [key: string]: any; + angle: number; + attributes: Pango.AttrList; + cursor_position: number; + ellipsize: Pango.EllipsizeMode; + justify: Justification; + label: string; + lines: number; + max_width_chars: number; + mnemonic_keyval: number; + mnemonic_widget: Widget; + pattern: string; + selectable: boolean; + selection_bound: number; + single_line_mode: boolean; + track_visited_links: boolean; + use_markup: boolean; + use_underline: boolean; + width_chars: number; + wrap: boolean; + wrap_mode: Pango.WrapMode; + xalign: number; + yalign: number; + } +} +export class Label extends Misc implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + angle: number; + attributes: Pango.AttrList; + cursor_position: number; + ellipsize: Pango.EllipsizeMode; + justify: Justification; + label: string; + lines: number; + max_width_chars: number; + mnemonic_keyval: number; + mnemonic_widget: Widget; + pattern: string; + selectable: boolean; + selection_bound: number; + single_line_mode: boolean; + track_visited_links: boolean; + use_markup: boolean; + use_underline: boolean; + width_chars: number; + wrap: boolean; + wrap_mode: Pango.WrapMode; + xalign: number; + yalign: number; + // Fields + misc: Misc; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-current-link', callback: (_source: this) => void): number; + connect_after(signal: 'activate-current-link', callback: (_source: this) => void): number; + emit(signal: 'activate-current-link'): void; + connect(signal: 'activate-link', callback: (_source: this, uri: string) => boolean): number; + connect_after(signal: 'activate-link', callback: (_source: this, uri: string) => boolean): number; + emit(signal: 'activate-link', uri: string): void; + connect(signal: 'copy-clipboard', callback: (_source: this) => void): number; + connect_after(signal: 'copy-clipboard', callback: (_source: this) => void): number; + emit(signal: 'copy-clipboard'): void; + connect(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number, extend_selection: boolean) => void): number; + connect_after(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number, extend_selection: boolean) => void): number; + emit(signal: 'move-cursor', step: MovementStep, count: number, extend_selection: boolean): void; + connect(signal: 'populate-popup', callback: (_source: this, menu: Menu) => void): number; + connect_after(signal: 'populate-popup', callback: (_source: this, menu: Menu) => void): number; + emit(signal: 'populate-popup', menu: Menu): void; + // Constructors + static ["new"](str: string | null): Label; + static new_with_mnemonic(str: string | null): Label; + // Members + get_angle(): number; + get_attributes(): Pango.AttrList | null; + get_current_uri(): string; + get_ellipsize(): Pango.EllipsizeMode; + get_justify(): Justification; + get_label(): string; + get_layout(): Pango.Layout; + get_layout_offsets(): [number | null, number | null]; + get_line_wrap(): boolean; + get_line_wrap_mode(): Pango.WrapMode; + get_lines(): number; + get_max_width_chars(): number; + get_mnemonic_keyval(): number; + get_mnemonic_widget(): Widget | null; + get_selectable(): boolean; + get_selection_bounds(): [boolean, number, number]; + get_single_line_mode(): boolean; + get_text(): string; + get_track_visited_links(): boolean; + get_use_markup(): boolean; + get_use_underline(): boolean; + get_width_chars(): number; + get_xalign(): number; + get_yalign(): number; + select_region(start_offset: number, end_offset: number): void; + set_angle(angle: number): void; + set_attributes(attrs: Pango.AttrList | null): void; + set_ellipsize(mode: Pango.EllipsizeMode): void; + set_justify(jtype: Justification): void; + set_label(str: string): void; + set_line_wrap(wrap: boolean): void; + set_line_wrap_mode(wrap_mode: Pango.WrapMode): void; + set_lines(lines: number): void; + set_markup(str: string): void; + set_markup_with_mnemonic(str: string): void; + set_max_width_chars(n_chars: number): void; + set_mnemonic_widget(widget: Widget | null): void; + set_pattern(pattern: string): void; + set_selectable(setting: boolean): void; + set_single_line_mode(single_line_mode: boolean): void; + set_text(str: string): void; + set_text_with_mnemonic(str: string): void; + set_track_visited_links(track_links: boolean): void; + set_use_markup(setting: boolean): void; + set_use_underline(setting: boolean): void; + set_width_chars(n_chars: number): void; + set_xalign(xalign: number): void; + set_yalign(yalign: number): void; + vfunc_activate_link(uri: string): boolean; + vfunc_copy_clipboard(): void; + vfunc_move_cursor(step: MovementStep, count: number, extend_selection: boolean): void; + vfunc_populate_popup(menu: Menu): void; +} +export module LabelAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class LabelAccessible extends WidgetAccessible implements Atk.Component, Atk.Hypertext, Atk.Text { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: LabelAccessiblePrivate | any; + // Implemented Members + get_link(link_index: number): Atk.Hyperlink; + get_link_index(char_index: number): number; + get_n_links(): number; + vfunc_get_link(link_index: number): Atk.Hyperlink; + vfunc_get_link_index(char_index: number): number; + vfunc_get_n_links(): number; + vfunc_link_selected(link_index: number): void; + add_selection(start_offset: number, end_offset: number): boolean; + get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + get_caret_offset(): number; + get_character_at_offset(offset: number): number; + get_character_count(): number; + get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_default_attributes(): Atk.AttributeSet; + get_n_selections(): number; + get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + get_selection(selection_num: number): [string, number, number]; + get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + get_text(start_offset: number, end_offset: number): string; + get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + remove_selection(selection_num: number): boolean; + scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + set_caret_offset(offset: number): boolean; + set_selection(selection_num: number, start_offset: number, end_offset: number): boolean; + vfunc_add_selection(start_offset: number, end_offset: number): boolean; + vfunc_get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + vfunc_get_caret_offset(): number; + vfunc_get_character_at_offset(offset: number): number; + vfunc_get_character_count(): number; + vfunc_get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_default_attributes(): Atk.AttributeSet; + vfunc_get_n_selections(): number; + vfunc_get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + vfunc_get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + vfunc_get_selection(selection_num: number): [string, number, number]; + vfunc_get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + vfunc_get_text(start_offset: number, end_offset: number): string; + vfunc_get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_remove_selection(selection_num: number): boolean; + vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_caret_offset(offset: number): boolean; + 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; +} +export module Layout { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + height: number; + width: number; + } +} +export class Layout extends Container implements Atk.ImplementorIface, Buildable, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + height: number; + width: number; + // Fields + container: Container; + // Implemented Properties + hadjustment: Adjustment; + hscroll_policy: ScrollablePolicy; + vadjustment: Adjustment; + vscroll_policy: ScrollablePolicy; + // Constructors + static ["new"](hadjustment: Adjustment | null, vadjustment: Adjustment | null): Layout; + // Members + get_bin_window(): Gdk.Window; + get_hadjustment(): Adjustment; + get_size(): [number | null, number | null]; + get_vadjustment(): Adjustment; + move(child_widget: Widget, x: number, y: number): void; + put(child_widget: Widget, x: number, y: number): void; + set_hadjustment(adjustment: Adjustment | null): void; + set_size(width: number, height: number): void; + set_vadjustment(adjustment: Adjustment | null): void; + // Implemented Members + get_border(): [boolean, Border]; + get_hscroll_policy(): ScrollablePolicy; + get_vscroll_policy(): ScrollablePolicy; + set_hscroll_policy(policy: ScrollablePolicy): void; + set_vscroll_policy(policy: ScrollablePolicy): void; + vfunc_get_border(): [boolean, Border]; +} +export module LevelBar { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + inverted: boolean; + max_value: number; + min_value: number; + mode: LevelBarMode; + value: number; + } +} +export class LevelBar extends Widget implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + inverted: boolean; + max_value: number; + min_value: number; + mode: LevelBarMode; + value: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'offset-changed', callback: (_source: this, name: string) => void): number; + connect_after(signal: 'offset-changed', callback: (_source: this, name: string) => void): number; + emit(signal: 'offset-changed', name: string): void; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): LevelBar; + static new_for_interval(min_value: number, max_value: number): LevelBar; + // Members + add_offset_value(name: string, value: number): void; + get_inverted(): boolean; + get_max_value(): number; + get_min_value(): number; + get_mode(): LevelBarMode; + get_offset_value(name: string | null): [boolean, number]; + get_value(): number; + remove_offset_value(name: string | null): void; + set_inverted(inverted: boolean): void; + set_max_value(value: number): void; + set_min_value(value: number): void; + set_mode(mode: LevelBarMode): void; + set_value(value: number): void; + vfunc_offset_changed(name: string): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module LevelBarAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class LevelBarAccessible extends WidgetAccessible implements Atk.Component, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: LevelBarAccessiblePrivate | any; + // Implemented Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Atk.Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Atk.Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export module LinkButton { + export interface ConstructorProperties extends Button.ConstructorProperties { + [key: string]: any; + uri: string; + visited: boolean; + } +} +export class LinkButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + uri: string; + visited: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-link', callback: (_source: this) => boolean): number; + connect_after(signal: 'activate-link', callback: (_source: this) => boolean): number; + emit(signal: 'activate-link'): void; + // Constructors + static ["new"](uri: string): LinkButton; + static ["new"](...args: never[]): never; + static new_with_label(uri: string, label: string | null): LinkButton; + static new_with_label(...args: never[]): never; + // Members + get_uri(): string; + get_visited(): boolean; + set_uri(uri: string): void; + set_visited(visited: boolean): void; + vfunc_activate_link(): boolean; +} +export module LinkButtonAccessible { + export interface ConstructorProperties extends ButtonAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class LinkButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.HyperlinkImpl, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: LinkButtonAccessiblePrivate | any; + // Implemented Members + get_hyperlink(): Atk.Hyperlink; + vfunc_get_hyperlink(): Atk.Hyperlink; +} +export module ListBox { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + activate_on_single_click: boolean; + selection_mode: SelectionMode; + } +} +export class ListBox extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + activate_on_single_click: boolean; + selection_mode: SelectionMode; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-cursor-row', callback: (_source: this) => void): number; + connect_after(signal: 'activate-cursor-row', callback: (_source: this) => void): number; + emit(signal: 'activate-cursor-row'): void; + connect(signal: 'move-cursor', callback: (_source: this, object: MovementStep, p0: number) => void): number; + connect_after(signal: 'move-cursor', callback: (_source: this, object: MovementStep, p0: number) => void): number; + emit(signal: 'move-cursor', object: MovementStep, p0: number): void; + connect(signal: 'row-activated', callback: (_source: this, row: ListBoxRow) => void): number; + connect_after(signal: 'row-activated', callback: (_source: this, row: ListBoxRow) => void): number; + emit(signal: 'row-activated', row: ListBoxRow): void; + connect(signal: 'row-selected', callback: (_source: this, row: ListBoxRow | null) => void): number; + connect_after(signal: 'row-selected', callback: (_source: this, row: ListBoxRow | null) => void): number; + emit(signal: 'row-selected', row: ListBoxRow | null): void; + connect(signal: 'select-all', callback: (_source: this) => void): number; + connect_after(signal: 'select-all', callback: (_source: this) => void): number; + emit(signal: 'select-all'): void; + connect(signal: 'selected-rows-changed', callback: (_source: this) => void): number; + connect_after(signal: 'selected-rows-changed', callback: (_source: this) => void): number; + emit(signal: 'selected-rows-changed'): void; + connect(signal: 'toggle-cursor-row', callback: (_source: this) => void): number; + connect_after(signal: 'toggle-cursor-row', callback: (_source: this) => void): number; + emit(signal: 'toggle-cursor-row'): void; + connect(signal: 'unselect-all', callback: (_source: this) => void): number; + connect_after(signal: 'unselect-all', callback: (_source: this) => void): number; + emit(signal: 'unselect-all'): void; + // Constructors + static ["new"](): ListBox; + // Members + bind_model(model: Gio.ListModel | null, create_widget_func: ListBoxCreateWidgetFunc | null, user_data_free_func: GLib.DestroyNotify): void; + drag_highlight_row(row: ListBoxRow): void; + drag_unhighlight_row(): void; + get_activate_on_single_click(): boolean; + get_adjustment(): Adjustment; + get_row_at_index(index_: number): ListBoxRow | null; + get_row_at_y(y: number): ListBoxRow | null; + get_selected_row(): ListBoxRow; + get_selected_rows(): GLib.List; + get_selection_mode(): SelectionMode; + insert(child: Widget, position: number): void; + invalidate_filter(): void; + invalidate_headers(): void; + invalidate_sort(): void; + prepend(child: Widget): void; + select_all(): void; + select_row(row: ListBoxRow | null): void; + selected_foreach(func: ListBoxForeachFunc, data: any | null): void; + set_activate_on_single_click(single: boolean): void; + set_adjustment(adjustment: Adjustment | null): void; + set_filter_func(filter_func: ListBoxFilterFunc | null, destroy: GLib.DestroyNotify): void; + set_header_func(update_header: ListBoxUpdateHeaderFunc | null, destroy: GLib.DestroyNotify): void; + set_placeholder(placeholder: Widget | null): void; + set_selection_mode(mode: SelectionMode): void; + set_sort_func(sort_func: ListBoxSortFunc | null, destroy: GLib.DestroyNotify): void; + unselect_all(): void; + unselect_row(row: ListBoxRow): void; + vfunc_activate_cursor_row(): void; + vfunc_move_cursor(step: MovementStep, count: number): void; + vfunc_row_activated(row: ListBoxRow): void; + vfunc_row_selected(row: ListBoxRow): void; + vfunc_select_all(): void; + vfunc_selected_rows_changed(): void; + vfunc_toggle_cursor_row(): void; + vfunc_unselect_all(): void; +} +export module ListBoxAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ListBoxAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ListBoxAccessiblePrivate | any; + // Implemented Members + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export module ListBoxRow { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + activatable: boolean; + selectable: boolean; + } +} +export class ListBoxRow extends Bin implements Atk.ImplementorIface, Actionable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + activatable: boolean; + selectable: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + // Implemented Properties + action_name: string; + action_target: GLib.Variant; + // Constructors + static ["new"](): ListBoxRow; + // Members + changed(): void; + get_activatable(): boolean; + get_header(): Widget | null; + get_index(): number; + get_selectable(): boolean; + is_selected(): boolean; + set_activatable(activatable: boolean): void; + set_header(header: Widget | null): void; + set_selectable(selectable: boolean): void; + vfunc_activate(): void; + // Implemented Members + get_action_name(): string | null; + get_action_target_value(): GLib.Variant; + set_action_name(action_name: string | null): void; + set_action_target_value(target_value: GLib.Variant | null): void; + set_detailed_action_name(detailed_action_name: string): void; + vfunc_get_action_name(): string | null; + vfunc_get_action_target_value(): GLib.Variant; + vfunc_set_action_name(action_name: string | null): void; + vfunc_set_action_target_value(target_value: GLib.Variant | null): void; +} +export module ListBoxRowAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ListBoxRowAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); +} +export module ListStore { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class ListStore extends GObject.Object implements Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static newv(types: GType[]): ListStore; + static newv(...args: never[]): never; + // Members + append(): TreeIter; + clear(): void; + insert(position: number): TreeIter; + insert_after(sibling: TreeIter | null): TreeIter; + insert_before(sibling: TreeIter | null): TreeIter; + insert_with_valuesv(position: number, columns: number[], values: GObject.Value[]): TreeIter | null; + iter_is_valid(iter: TreeIter): boolean; + move_after(iter: TreeIter, position: TreeIter | null): void; + move_before(iter: TreeIter, position: TreeIter | null): void; + prepend(): TreeIter; + remove(iter: TreeIter): boolean; + reorder(new_order: number[]): void; + set_column_types(types: GType[]): void; + set_value(iter: TreeIter, column: number, value: GObject.Value): void; + set_valuesv(iter: TreeIter, columns: number[], values: GObject.Value[]): void; + swap(a: TreeIter, b: TreeIter): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; + drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; + row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; + vfunc_drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; + vfunc_row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; + drag_data_delete(path: TreePath): boolean; + drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + row_draggable(path: TreePath): boolean; + vfunc_drag_data_delete(path: TreePath): boolean; + vfunc_drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + vfunc_row_draggable(path: TreePath): boolean; + filter_new(root: TreePath | null): TreeModel; + foreach(func: TreeModelForeachFunc): void; + get_column_type(index_: number): GType; + get_flags(): TreeModelFlags; + get_iter(path: TreePath): [boolean, TreeIter]; + get_iter_first(): [boolean, TreeIter]; + get_iter_from_string(path_string: string): [boolean, TreeIter]; + get_n_columns(): number; + get_path(iter: TreeIter): TreePath; + get_string_from_iter(iter: TreeIter): string; + get_value(iter: TreeIter, column: number): GObject.Value; + iter_children(parent: TreeIter | null): [boolean, TreeIter]; + iter_has_child(iter: TreeIter): boolean; + iter_n_children(iter: TreeIter | null): number; + iter_next(iter: TreeIter): boolean; + iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + iter_parent(child: TreeIter): [boolean, TreeIter]; + iter_previous(iter: TreeIter): boolean; + ref_node(iter: TreeIter): void; + row_changed(path: TreePath, iter: TreeIter): void; + row_deleted(path: TreePath): void; + row_has_child_toggled(path: TreePath, iter: TreeIter): void; + row_inserted(path: TreePath, iter: TreeIter): void; + rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + unref_node(iter: TreeIter): void; + vfunc_get_column_type(index_: number): GType; + vfunc_get_flags(): TreeModelFlags; + vfunc_get_iter(path: TreePath): [boolean, TreeIter]; + vfunc_get_n_columns(): number; + vfunc_get_path(iter: TreeIter): TreePath; + vfunc_get_value(iter: TreeIter, column: number): GObject.Value; + vfunc_iter_children(parent: TreeIter | null): [boolean, TreeIter]; + vfunc_iter_has_child(iter: TreeIter): boolean; + vfunc_iter_n_children(iter: TreeIter | null): number; + vfunc_iter_next(iter: TreeIter): boolean; + vfunc_iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + vfunc_iter_parent(child: TreeIter): [boolean, TreeIter]; + vfunc_iter_previous(iter: TreeIter): boolean; + vfunc_ref_node(iter: TreeIter): void; + vfunc_row_changed(path: TreePath, iter: TreeIter): void; + vfunc_row_deleted(path: TreePath): void; + vfunc_row_has_child_toggled(path: TreePath, iter: TreeIter): void; + vfunc_row_inserted(path: TreePath, iter: TreeIter): void; + vfunc_unref_node(iter: TreeIter): void; + get_sort_column_id(): [boolean, number, SortType]; + has_default_sort_func(): boolean; + set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + set_sort_column_id(sort_column_id: number, order: SortType): void; + set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + sort_column_changed(): void; + vfunc_get_sort_column_id(): [boolean, number, SortType]; + vfunc_has_default_sort_func(): boolean; + vfunc_set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_column_id(sort_column_id: number, order: SortType): void; + vfunc_set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_sort_column_changed(): void; +} +export module LockButton { + export interface ConstructorProperties extends Button.ConstructorProperties { + [key: string]: any; + permission: Gio.Permission; + text_lock: string; + text_unlock: string; + tooltip_lock: string; + tooltip_not_authorized: string; + tooltip_unlock: string; + } +} +export class LockButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + permission: Gio.Permission; + text_lock: string; + text_unlock: string; + tooltip_lock: string; + tooltip_not_authorized: string; + tooltip_unlock: string; + // Fields + priv: LockButtonPrivate; + // Constructors + static ["new"](permission: Gio.Permission | null): LockButton; + static ["new"](...args: never[]): never; + // Members + get_permission(): Gio.Permission; + set_permission(permission: Gio.Permission | null): void; +} +export module LockButtonAccessible { + export interface ConstructorProperties extends ButtonAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class LockButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: LockButtonAccessiblePrivate | any; +} +export module Menu { + export interface ConstructorProperties extends MenuShell.ConstructorProperties { + [key: string]: any; + accel_group: AccelGroup; + accel_path: string; + active: number; + anchor_hints: Gdk.AnchorHints; + attach_widget: Widget; + menu_type_hint: Gdk.WindowTypeHint; + monitor: number; + rect_anchor_dx: number; + rect_anchor_dy: number; + reserve_toggle_size: boolean; + tearoff_state: boolean; + tearoff_title: string; + } +} +export class Menu extends MenuShell implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_group: AccelGroup; + accel_path: string; + active: number; + anchor_hints: Gdk.AnchorHints; + attach_widget: Widget; + menu_type_hint: Gdk.WindowTypeHint; + monitor: number; + rect_anchor_dx: number; + rect_anchor_dy: number; + reserve_toggle_size: boolean; + tearoff_state: boolean; + tearoff_title: string; + // Fields + menu_shell: MenuShell; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'move-scroll', callback: (_source: this, scroll_type: ScrollType) => void): number; + connect_after(signal: 'move-scroll', callback: (_source: this, scroll_type: ScrollType) => void): number; + emit(signal: 'move-scroll', scroll_type: ScrollType): void; + connect(signal: 'popped-up', callback: (_source: this, flipped_rect: any | null, final_rect: any | null, flipped_x: boolean, flipped_y: boolean) => void): number; + connect_after(signal: 'popped-up', callback: (_source: this, flipped_rect: any | null, final_rect: any | null, flipped_x: boolean, flipped_y: boolean) => void): number; + emit(signal: 'popped-up', flipped_rect: any | null, final_rect: any | null, flipped_x: boolean, flipped_y: boolean): void; + // Constructors + static ["new"](): Menu; + static new_from_model(model: Gio.MenuModel): Menu; + // Members + attach(child: Widget, left_attach: number, right_attach: number, top_attach: number, bottom_attach: number): void; + attach_to_widget(attach_widget: Widget, detacher: MenuDetachFunc | null): void; + detach(): void; + get_accel_group(): AccelGroup; + get_accel_path(): string; + get_active(): Widget; + get_attach_widget(): Widget; + get_monitor(): number; + get_reserve_toggle_size(): boolean; + get_tearoff_state(): boolean; + get_title(): string; + place_on_monitor(monitor: Gdk.Monitor): void; + popdown(): void; + popup(parent_menu_shell: Widget | null, parent_menu_item: Widget | null, func: MenuPositionFunc | null, data: any | null, button: number, activate_time: number): void; + popup_at_pointer(trigger_event: Gdk.Event | null): void; + popup_at_rect(rect_window: Gdk.Window, rect: Gdk.Rectangle, rect_anchor: Gdk.Gravity, menu_anchor: Gdk.Gravity, trigger_event: Gdk.Event | null): void; + popup_at_widget(widget: Widget, widget_anchor: Gdk.Gravity, menu_anchor: Gdk.Gravity, trigger_event: Gdk.Event | null): void; + popup_for_device(device: Gdk.Device | null, parent_menu_shell: Widget | null, parent_menu_item: Widget | null, func: MenuPositionFunc | null, data: any | null, destroy: GLib.DestroyNotify | null, button: number, activate_time: number): void; + reorder_child(child: Widget, position: number): void; + reposition(): void; + set_accel_group(accel_group: AccelGroup | null): void; + set_accel_path(accel_path: string | null): void; + set_accel_path(...args: never[]): never; + set_active(index: number): void; + set_monitor(monitor_num: number): void; + set_reserve_toggle_size(reserve_toggle_size: boolean): void; + set_screen(screen: Gdk.Screen | null): void; + set_tearoff_state(torn_off: boolean): void; + set_title(title: string | null): void; + static get_for_attach_widget(widget: Widget): GLib.List; +} +export module MenuAccessible { + export interface ConstructorProperties extends MenuShellAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class MenuAccessible extends MenuShellAccessible implements Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: MenuAccessiblePrivate | any; +} +export module MenuBar { + export interface ConstructorProperties extends MenuShell.ConstructorProperties { + [key: string]: any; + child_pack_direction: PackDirection; + pack_direction: PackDirection; + } +} +export class MenuBar extends MenuShell implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + child_pack_direction: PackDirection; + pack_direction: PackDirection; + // Fields + menu_shell: MenuShell; + // Constructors + static ["new"](): MenuBar; + static new_from_model(model: Gio.MenuModel): MenuBar; + // Members + get_child_pack_direction(): PackDirection; + get_pack_direction(): PackDirection; + set_child_pack_direction(child_pack_dir: PackDirection): void; + set_pack_direction(pack_dir: PackDirection): void; +} +export module MenuButton { + export interface ConstructorProperties extends ToggleButton.ConstructorProperties { + [key: string]: any; + align_widget: Container; + direction: ArrowType; + menu_model: Gio.MenuModel; + popover: Popover; + popup: Menu; + use_popover: boolean; + } +} +export class MenuButton extends ToggleButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + align_widget: Container; + direction: ArrowType; + menu_model: Gio.MenuModel; + popover: Popover; + popup: Menu; + use_popover: boolean; + // Constructors + static ["new"](): MenuButton; + static ["new"](...args: never[]): never; + // Members + get_align_widget(): Widget | null; + get_direction(): ArrowType; + get_direction(...args: never[]): never; + get_menu_model(): Gio.MenuModel | null; + get_popover(): Popover | null; + get_popup(): Menu | null; + get_use_popover(): boolean; + set_align_widget(align_widget: Widget | null): void; + set_direction(direction: ArrowType): void; + set_direction(...args: never[]): never; + set_menu_model(menu_model: Gio.MenuModel | null): void; + set_popover(popover: Widget | null): void; + set_popup(menu: Widget | null): void; + set_use_popover(use_popover: boolean): void; +} +export module MenuButtonAccessible { + export interface ConstructorProperties extends ToggleButtonAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class MenuButtonAccessible extends ToggleButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: MenuButtonAccessiblePrivate | any; +} +export module MenuItem { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + accel_path: string; + label: string; + right_justified: boolean; + submenu: Menu; + use_underline: boolean; + } +} +export class MenuItem extends Bin implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_path: string; + label: string; + right_justified: boolean; + submenu: Menu; + use_underline: boolean; + // Fields + bin: Bin; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'activate-item', callback: (_source: this) => void): number; + connect_after(signal: 'activate-item', callback: (_source: this) => void): number; + emit(signal: 'activate-item'): void; + connect(signal: 'deselect', callback: (_source: this) => void): number; + connect_after(signal: 'deselect', callback: (_source: this) => void): number; + emit(signal: 'deselect'): void; + connect(signal: 'select', callback: (_source: this) => void): number; + connect_after(signal: 'select', callback: (_source: this) => void): number; + emit(signal: 'select'): void; + connect(signal: 'toggle-size-allocate', callback: (_source: this, object: number) => void): number; + connect_after(signal: 'toggle-size-allocate', callback: (_source: this, object: number) => void): number; + emit(signal: 'toggle-size-allocate', object: number): void; + connect(signal: 'toggle-size-request', callback: (_source: this, object: any | null) => void): number; + connect_after(signal: 'toggle-size-request', callback: (_source: this, object: any | null) => void): number; + emit(signal: 'toggle-size-request', object: any | null): void; + // Implemented Properties + action_name: string; + action_target: GLib.Variant; + related_action: Action; + use_action_appearance: boolean; + // Constructors + static ["new"](): MenuItem; + static new_with_label(label: string): MenuItem; + static new_with_mnemonic(label: string): MenuItem; + // Members + activate(): void; + activate(...args: never[]): never; + deselect(): void; + get_accel_path(): string | null; + get_label(): string; + get_reserve_indicator(): boolean; + get_right_justified(): boolean; + get_submenu(): Widget | null; + get_use_underline(): boolean; + select(): void; + set_accel_path(accel_path: string | null): void; + set_accel_path(...args: never[]): never; + set_label(label: string): void; + set_reserve_indicator(reserve: boolean): void; + set_right_justified(right_justified: boolean): void; + set_submenu(submenu: Menu | null): void; + set_use_underline(setting: boolean): void; + toggle_size_allocate(allocation: number): void; + toggle_size_request(requisition: number): number; + vfunc_activate(): void; + vfunc_activate_item(): void; + vfunc_deselect(): void; + vfunc_get_label(): string; + vfunc_select(): void; + vfunc_set_label(label: string): void; + vfunc_toggle_size_allocate(allocation: number): void; + vfunc_toggle_size_request(requisition: number): number; + // Implemented Members + get_action_name(): string | null; + get_action_target_value(): GLib.Variant; + set_action_name(action_name: string | null): void; + set_action_target_value(target_value: GLib.Variant | null): void; + set_detailed_action_name(detailed_action_name: string): void; + vfunc_get_action_name(): string | null; + vfunc_get_action_target_value(): GLib.Variant; + vfunc_set_action_name(action_name: string | null): void; + vfunc_set_action_target_value(target_value: GLib.Variant | null): void; + do_set_related_action(action: Action): void; + get_related_action(): Action; + get_use_action_appearance(): boolean; + set_related_action(action: Action): void; + set_use_action_appearance(use_appearance: boolean): void; + sync_action_properties(action: Action | null): void; + vfunc_sync_action_properties(action: Action | null): void; + vfunc_update(action: Action, property_name: string): void; +} +export module MenuItemAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class MenuItemAccessible extends ContainerAccessible implements Atk.Action, Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: MenuItemAccessiblePrivate | any; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export module MenuShell { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + take_focus: boolean; + } +} +export abstract class MenuShell extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + take_focus: boolean; + // Fields + container: Container; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-current', callback: (_source: this, force_hide: boolean) => void): number; + connect_after(signal: 'activate-current', callback: (_source: this, force_hide: boolean) => void): number; + emit(signal: 'activate-current', force_hide: boolean): void; + connect(signal: 'cancel', callback: (_source: this) => void): number; + connect_after(signal: 'cancel', callback: (_source: this) => void): number; + emit(signal: 'cancel'): void; + connect(signal: 'cycle-focus', callback: (_source: this, direction: DirectionType) => void): number; + connect_after(signal: 'cycle-focus', callback: (_source: this, direction: DirectionType) => void): number; + emit(signal: 'cycle-focus', direction: DirectionType): void; + connect(signal: 'deactivate', callback: (_source: this) => void): number; + connect_after(signal: 'deactivate', callback: (_source: this) => void): number; + emit(signal: 'deactivate'): void; + connect(signal: 'insert', callback: (_source: this, child: Widget, position: number) => void): number; + connect_after(signal: 'insert', callback: (_source: this, child: Widget, position: number) => void): number; + emit(signal: 'insert', child: Widget, position: number): void; + connect(signal: 'move-current', callback: (_source: this, direction: MenuDirectionType) => void): number; + connect_after(signal: 'move-current', callback: (_source: this, direction: MenuDirectionType) => void): number; + emit(signal: 'move-current', direction: MenuDirectionType): void; + connect(signal: 'move-selected', callback: (_source: this, distance: number) => boolean): number; + connect_after(signal: 'move-selected', callback: (_source: this, distance: number) => boolean): number; + emit(signal: 'move-selected', distance: number): void; + connect(signal: 'selection-done', callback: (_source: this) => void): number; + connect_after(signal: 'selection-done', callback: (_source: this) => void): number; + emit(signal: 'selection-done'): void; + // Members + activate_item(menu_item: Widget, force_deactivate: boolean): void; + append(child: MenuItem): void; + bind_model(model: Gio.MenuModel | null, action_namespace: string | null, with_separators: boolean): void; + cancel(): void; + deactivate(): void; + deselect(): void; + get_parent_shell(): Widget; + get_selected_item(): Widget; + get_take_focus(): boolean; + insert(child: Widget, position: number): void; + prepend(child: Widget): void; + select_first(search_sensitive: boolean): void; + select_item(menu_item: Widget): void; + set_take_focus(take_focus: boolean): void; + vfunc_activate_current(force_hide: boolean): void; + vfunc_cancel(): void; + vfunc_deactivate(): void; + vfunc_get_popup_delay(): number; + vfunc_insert(child: Widget, position: number): void; + vfunc_move_current(direction: MenuDirectionType): void; + vfunc_move_selected(distance: number): boolean; + vfunc_select_item(menu_item: Widget): void; + vfunc_selection_done(): void; +} +export module MenuShellAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class MenuShellAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: MenuShellAccessiblePrivate | any; + // Implemented Members + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export module MenuToolButton { + export interface ConstructorProperties extends ToolButton.ConstructorProperties { + [key: string]: any; + menu: Menu; + } +} +export class MenuToolButton extends ToolButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + menu: Menu; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'show-menu', callback: (_source: this) => void): number; + connect_after(signal: 'show-menu', callback: (_source: this) => void): number; + emit(signal: 'show-menu'): void; + // Constructors + static ["new"](icon_widget: Widget | null, label: string | null): MenuToolButton; + static ["new"](...args: never[]): never; + static new_from_stock(stock_id: string): MenuToolButton; + static new_from_stock(...args: never[]): never; + // Members + get_menu(): Widget; + set_arrow_tooltip_markup(markup: string): void; + set_arrow_tooltip_text(text: string): void; + set_menu(menu: Widget): void; + vfunc_show_menu(): void; +} +export module MessageDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + buttons: ButtonsType | ButtonsType[]; // TODO + image: Widget; + message_area: Widget; + message_type: MessageType; + secondary_text: string; + secondary_use_markup: boolean; + text: string; + use_markup: boolean; + } +} +export class MessageDialog extends Dialog implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + buttons: ButtonsType | ButtonsType[] // TODO; + image: Widget; + message_area: Widget; + message_type: MessageType; + secondary_text: string; + secondary_use_markup: boolean; + text: string; + use_markup: boolean; + // Members + get_image(): Widget; + get_message_area(): Widget; + set_image(image: Widget): void; + set_markup(str: string): void; +} +export module Misc { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + xalign: number; + xpad: number; + yalign: number; + ypad: number; + } +} +export abstract class Misc extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + xalign: number; + xpad: number; + yalign: number; + ypad: number; + // Fields + widget: Widget; + // Members + get_alignment(): [number | null, number | null]; + get_padding(): [number | null, number | null]; + set_alignment(xalign: number, yalign: number): void; + set_padding(xpad: number, ypad: number): void; +} +export module ModelButton { + export interface ConstructorProperties extends Button.ConstructorProperties { + [key: string]: any; + active: boolean; + centered: boolean; + icon: Gio.Icon; + iconic: boolean; + inverted: boolean; + menu_name: string; + role: ButtonRole; + text: string; + use_markup: boolean; + } +} +export class ModelButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + centered: boolean; + icon: Gio.Icon; + iconic: boolean; + inverted: boolean; + menu_name: string; + role: ButtonRole; + text: string; + use_markup: boolean; + // Constructors + static ["new"](): ModelButton; + static ["new"](...args: never[]): never; +} +export module MountOperation { + export interface ConstructorProperties extends Gio.MountOperation.ConstructorProperties { + [key: string]: any; + is_showing: boolean; + screen: Gdk.Screen; + } +} +export class MountOperation extends Gio.MountOperation { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + is_showing: boolean; + screen: Gdk.Screen; + // Fields + priv: MountOperationPrivate; + // Constructors + static ["new"](parent: Window | null): MountOperation; + static ["new"](...args: never[]): never; + // Members + get_parent(): Window; + get_screen(): Gdk.Screen; + set_parent(parent: Window | null): void; + set_screen(screen: Gdk.Screen): void; +} +export module NativeDialog { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + modal: boolean; + title: string; + transient_for: Window; + visible: boolean; + } +} +export abstract class NativeDialog extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + modal: boolean; + title: string; + transient_for: Window; + visible: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'response', callback: (_source: this, response_id: number) => void): number; + connect_after(signal: 'response', callback: (_source: this, response_id: number) => void): number; + emit(signal: 'response', response_id: number): void; + // Members + destroy(): void; + get_modal(): boolean; + get_title(): string | null; + get_transient_for(): Window | null; + get_visible(): boolean; + hide(): void; + run(): number; + set_modal(modal: boolean): void; + set_title(title: string): void; + set_transient_for(parent: Window | null): void; + show(): void; + vfunc_hide(): void; + vfunc_response(response_id: number): void; + vfunc_show(): void; +} +export module Notebook { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + enable_popup: boolean; + group_name: string; + page: number; + scrollable: boolean; + show_border: boolean; + show_tabs: boolean; + tab_pos: PositionType; + } +} +export class Notebook extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + enable_popup: boolean; + group_name: string; + page: number; + scrollable: boolean; + show_border: boolean; + show_tabs: boolean; + tab_pos: PositionType; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'change-current-page', callback: (_source: this, object: number) => boolean): number; + connect_after(signal: 'change-current-page', callback: (_source: this, object: number) => boolean): number; + emit(signal: 'change-current-page', object: number): void; + connect(signal: 'create-window', callback: (_source: this, page: Widget, x: number, y: number) => Notebook): number; + connect_after(signal: 'create-window', callback: (_source: this, page: Widget, x: number, y: number) => Notebook): number; + emit(signal: 'create-window', page: Widget, x: number, y: number): void; + connect(signal: 'focus-tab', callback: (_source: this, object: NotebookTab) => boolean): number; + connect_after(signal: 'focus-tab', callback: (_source: this, object: NotebookTab) => boolean): number; + emit(signal: 'focus-tab', object: NotebookTab): void; + connect(signal: 'move-focus-out', callback: (_source: this, object: DirectionType) => void): number; + connect_after(signal: 'move-focus-out', callback: (_source: this, object: DirectionType) => void): number; + emit(signal: 'move-focus-out', object: DirectionType): void; + connect(signal: 'page-added', callback: (_source: this, child: Widget, page_num: number) => void): number; + connect_after(signal: 'page-added', callback: (_source: this, child: Widget, page_num: number) => void): number; + emit(signal: 'page-added', child: Widget, page_num: number): void; + connect(signal: 'page-removed', callback: (_source: this, child: Widget, page_num: number) => void): number; + connect_after(signal: 'page-removed', callback: (_source: this, child: Widget, page_num: number) => void): number; + emit(signal: 'page-removed', child: Widget, page_num: number): void; + connect(signal: 'page-reordered', callback: (_source: this, child: Widget, page_num: number) => void): number; + connect_after(signal: 'page-reordered', callback: (_source: this, child: Widget, page_num: number) => void): number; + emit(signal: 'page-reordered', child: Widget, page_num: number): void; + connect(signal: 'reorder-tab', callback: (_source: this, object: DirectionType, p0: boolean) => boolean): number; + connect_after(signal: 'reorder-tab', callback: (_source: this, object: DirectionType, p0: boolean) => boolean): number; + emit(signal: 'reorder-tab', object: DirectionType, p0: boolean): void; + connect(signal: 'select-page', callback: (_source: this, object: boolean) => boolean): number; + connect_after(signal: 'select-page', callback: (_source: this, object: boolean) => boolean): number; + emit(signal: 'select-page', object: boolean): void; + connect(signal: 'switch-page', callback: (_source: this, page: Widget, page_num: number) => void): number; + connect_after(signal: 'switch-page', callback: (_source: this, page: Widget, page_num: number) => void): number; + emit(signal: 'switch-page', page: Widget, page_num: number): void; + // Constructors + static ["new"](): Notebook; + // Members + append_page(child: Widget, tab_label: Widget | null): number; + append_page_menu(child: Widget, tab_label: Widget | null, menu_label: Widget | null): number; + detach_tab(child: Widget): void; + get_action_widget(pack_type: PackType): Widget | null; + get_current_page(): number; + get_group_name(): string | null; + get_menu_label(child: Widget): Widget | null; + get_menu_label_text(child: Widget): string | null; + get_n_pages(): number; + get_nth_page(page_num: number): Widget | null; + get_scrollable(): boolean; + get_show_border(): boolean; + get_show_tabs(): boolean; + get_tab_detachable(child: Widget): boolean; + get_tab_hborder(): number; + get_tab_label(child: Widget): Widget | null; + get_tab_label_text(child: Widget): string | null; + get_tab_pos(): PositionType; + get_tab_reorderable(child: Widget): boolean; + get_tab_vborder(): number; + insert_page(child: Widget, tab_label: Widget | null, position: number): number; + insert_page_menu(child: Widget, tab_label: Widget | null, menu_label: Widget | null, position: number): number; + next_page(): void; + page_num(child: Widget): number; + popup_disable(): void; + popup_enable(): void; + prepend_page(child: Widget, tab_label: Widget | null): number; + prepend_page_menu(child: Widget, tab_label: Widget | null, menu_label: Widget | null): number; + prev_page(): void; + remove_page(page_num: number): void; + reorder_child(child: Widget, position: number): void; + set_action_widget(widget: Widget, pack_type: PackType): void; + set_current_page(page_num: number): void; + set_group_name(group_name: string | null): void; + set_menu_label(child: Widget, menu_label: Widget | null): void; + set_menu_label_text(child: Widget, menu_text: string): void; + set_scrollable(scrollable: boolean): void; + set_show_border(show_border: boolean): void; + set_show_tabs(show_tabs: boolean): void; + set_tab_detachable(child: Widget, detachable: boolean): void; + set_tab_label(child: Widget, tab_label: Widget | null): void; + set_tab_label_text(child: Widget, tab_text: string): void; + set_tab_pos(pos: PositionType): void; + set_tab_reorderable(child: Widget, reorderable: boolean): void; + vfunc_change_current_page(offset: number): boolean; + vfunc_focus_tab(type: NotebookTab): boolean; + vfunc_insert_page(child: Widget, tab_label: Widget, menu_label: Widget, position: number): number; + vfunc_move_focus_out(direction: DirectionType): void; + vfunc_page_added(child: Widget, page_num: number): void; + vfunc_page_removed(child: Widget, page_num: number): void; + vfunc_page_reordered(child: Widget, page_num: number): void; + vfunc_reorder_tab(direction: DirectionType, move_to_last: boolean): boolean; + vfunc_select_page(move_focus: boolean): boolean; + vfunc_switch_page(page: Widget, page_num: number): void; +} +export module NotebookAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class NotebookAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: NotebookAccessiblePrivate | any; + // Implemented Members + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; +} +export module NotebookPageAccessible { + export interface ConstructorProperties extends Atk.Object.ConstructorProperties { + [key: string]: any; + } +} +export class NotebookPageAccessible extends Atk.Object implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: NotebookPageAccessiblePrivate; + // Constructors + static ["new"](notebook: NotebookAccessible, child: Widget): NotebookPageAccessible; + // Members + invalidate(): void; + // Implemented Members + contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Atk.Layer; + get_mdi_zorder(): number; + get_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: Atk.ScrollType): boolean; + scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Atk.Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Atk.Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: Atk.ScrollType): boolean; + vfunc_scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; +} +export module NumerableIcon { + export interface ConstructorProperties extends Gio.EmblemedIcon.ConstructorProperties { + [key: string]: any; + background_icon: Gio.Icon; + background_icon_name: string; + count: number; + label: string; + style_context: StyleContext; + } +} +export class NumerableIcon extends Gio.EmblemedIcon implements Gio.Icon { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + background_icon: Gio.Icon; + background_icon_name: string; + count: number; + label: string; + style_context: StyleContext; + // Members + get_background_gicon(): Gio.Icon | null; + get_background_icon_name(): string | null; + get_count(): number; + get_label(): string | null; + get_style_context(): StyleContext | null; + set_background_gicon(icon: Gio.Icon | null): void; + set_background_icon_name(icon_name: string | null): void; + set_count(count: number): void; + set_label(label: string | null): void; + set_style_context(style: StyleContext): void; + static new(base_icon: Gio.Icon): Gio.Icon; + static new(...args: never[]): never; + static new_with_style_context(base_icon: Gio.Icon, context: StyleContext): Gio.Icon; + // Implemented Members + equal(icon2: Gio.Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Gio.Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; +} +export module OffscreenWindow { + export interface ConstructorProperties extends Window.ConstructorProperties { + [key: string]: any; + } +} +export class OffscreenWindow extends Window implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + parent_object: Window; + // Constructors + static ["new"](): OffscreenWindow; + static ["new"](...args: never[]): never; + // Members + get_pixbuf(): GdkPixbuf.Pixbuf | null; + get_surface(): cairo.Surface | null; +} +export module Overlay { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + } +} +export class Overlay extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: OverlayPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'get-child-position', callback: (_source: this, widget: Widget, allocation: Gdk.Rectangle) => boolean): number; + connect_after(signal: 'get-child-position', callback: (_source: this, widget: Widget, allocation: Gdk.Rectangle) => boolean): number; + emit(signal: 'get-child-position', widget: Widget, allocation: Gdk.Rectangle): void; + // Constructors + static ["new"](): Overlay; + // Members + add_overlay(widget: Widget): void; + get_overlay_pass_through(widget: Widget): boolean; + reorder_overlay(child: Widget, index_: number): void; + set_overlay_pass_through(widget: Widget, pass_through: boolean): void; + vfunc_get_child_position(widget: Widget, allocation: Allocation): boolean; +} +export module PadController { + export interface ConstructorProperties extends EventController.ConstructorProperties { + [key: string]: any; + action_group: Gio.ActionGroup; + pad: Gdk.Device; + } +} +export class PadController extends EventController { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + action_group: Gio.ActionGroup; + pad: Gdk.Device; + // Constructors + static ["new"](window: Window, group: Gio.ActionGroup, pad: Gdk.Device | null): PadController; + // Members + set_action(type: PadActionType, index: number, mode: number, label: string, action_name: string): void; + set_action_entries(entries: PadActionEntry[]): void; +} +export module PageSetup { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class PageSetup extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): PageSetup; + static new_from_file(file_name: string): PageSetup; + static new_from_gvariant(variant: GLib.Variant): PageSetup; + static new_from_key_file(key_file: GLib.KeyFile, group_name: string | null): PageSetup; + // Members + copy(): PageSetup; + get_bottom_margin(unit: Unit): number; + get_left_margin(unit: Unit): number; + get_orientation(): PageOrientation; + get_page_height(unit: Unit): number; + get_page_width(unit: Unit): number; + get_paper_height(unit: Unit): number; + get_paper_size(): PaperSize; + get_paper_width(unit: Unit): number; + get_right_margin(unit: Unit): number; + get_top_margin(unit: Unit): number; + load_file(file_name: string): boolean; + load_key_file(key_file: GLib.KeyFile, group_name: string | null): boolean; + set_bottom_margin(margin: number, unit: Unit): void; + set_left_margin(margin: number, unit: Unit): void; + set_orientation(orientation: PageOrientation): void; + set_paper_size(size: PaperSize): void; + set_paper_size_and_default_margins(size: PaperSize): void; + set_right_margin(margin: number, unit: Unit): void; + set_top_margin(margin: number, unit: Unit): void; + to_file(file_name: string): boolean; + to_gvariant(): GLib.Variant; + to_key_file(key_file: GLib.KeyFile, group_name: string | null): void; +} +export module Paned { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + max_position: number; + min_position: number; + position: number; + position_set: boolean; + wide_handle: boolean; + } +} +export class Paned extends Container implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + max_position: number; + min_position: number; + position: number; + position_set: boolean; + wide_handle: boolean; + // Fields + container: Container; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'accept-position', callback: (_source: this) => boolean): number; + connect_after(signal: 'accept-position', callback: (_source: this) => boolean): number; + emit(signal: 'accept-position'): void; + connect(signal: 'cancel-position', callback: (_source: this) => boolean): number; + connect_after(signal: 'cancel-position', callback: (_source: this) => boolean): number; + emit(signal: 'cancel-position'): void; + connect(signal: 'cycle-child-focus', callback: (_source: this, reversed: boolean) => boolean): number; + connect_after(signal: 'cycle-child-focus', callback: (_source: this, reversed: boolean) => boolean): number; + emit(signal: 'cycle-child-focus', reversed: boolean): void; + connect(signal: 'cycle-handle-focus', callback: (_source: this, reversed: boolean) => boolean): number; + connect_after(signal: 'cycle-handle-focus', callback: (_source: this, reversed: boolean) => boolean): number; + emit(signal: 'cycle-handle-focus', reversed: boolean): void; + connect(signal: 'move-handle', callback: (_source: this, scroll_type: ScrollType) => boolean): number; + connect_after(signal: 'move-handle', callback: (_source: this, scroll_type: ScrollType) => boolean): number; + emit(signal: 'move-handle', scroll_type: ScrollType): void; + connect(signal: 'toggle-handle-focus', callback: (_source: this) => boolean): number; + connect_after(signal: 'toggle-handle-focus', callback: (_source: this) => boolean): number; + emit(signal: 'toggle-handle-focus'): void; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](orientation: Orientation): Paned; + // Members + add1(child: Widget): void; + add2(child: Widget): void; + get_child1(): Widget | null; + get_child2(): Widget | null; + get_handle_window(): Gdk.Window; + get_position(): number; + get_wide_handle(): boolean; + pack1(child: Widget, resize: boolean, shrink: boolean): void; + pack2(child: Widget, resize: boolean, shrink: boolean): void; + set_position(position: number): void; + set_wide_handle(wide: boolean): void; + vfunc_accept_position(): boolean; + vfunc_cancel_position(): boolean; + vfunc_cycle_child_focus(reverse: boolean): boolean; + vfunc_cycle_handle_focus(reverse: boolean): boolean; + vfunc_move_handle(scroll: ScrollType): boolean; + vfunc_toggle_handle_focus(): boolean; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module PanedAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class PanedAccessible extends ContainerAccessible implements Atk.Component, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: PanedAccessiblePrivate | any; + // Implemented Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Atk.Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Atk.Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export module PlacesSidebar { + export interface ConstructorProperties extends ScrolledWindow.ConstructorProperties { + [key: string]: any; + local_only: boolean; + location: Gio.File; + open_flags: PlacesOpenFlags; + populate_all: boolean; + show_connect_to_server: boolean; + show_desktop: boolean; + show_enter_location: boolean; + show_other_locations: boolean; + show_recent: boolean; + show_starred_location: boolean; + show_trash: boolean; + } +} +export class PlacesSidebar extends ScrolledWindow implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + local_only: boolean; + location: Gio.File; + open_flags: PlacesOpenFlags; + populate_all: boolean; + show_connect_to_server: boolean; + show_desktop: boolean; + show_enter_location: boolean; + show_other_locations: boolean; + show_recent: boolean; + show_starred_location: boolean; + show_trash: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'drag-action-ask', callback: (_source: this, actions: number) => number): number; + connect_after(signal: 'drag-action-ask', callback: (_source: this, actions: number) => number): number; + emit(signal: 'drag-action-ask', actions: number): void; + connect(signal: 'drag-action-requested', callback: (_source: this, context: Gdk.DragContext, dest_file: Gio.File, source_file_list: GLib.List) => number): number; + connect_after(signal: 'drag-action-requested', callback: (_source: this, context: Gdk.DragContext, dest_file: Gio.File, source_file_list: GLib.List) => number): number; + emit(signal: 'drag-action-requested', context: Gdk.DragContext, dest_file: Gio.File, source_file_list: GLib.List): void; + connect(signal: 'drag-perform-drop', callback: (_source: this, dest_file: Gio.File, source_file_list: GLib.List, action: number) => void): number; + connect_after(signal: 'drag-perform-drop', callback: (_source: this, dest_file: Gio.File, source_file_list: GLib.List, action: number) => void): number; + emit(signal: 'drag-perform-drop', dest_file: Gio.File, source_file_list: GLib.List, action: number): void; + connect(signal: 'mount', callback: (_source: this, mount_operation: Gio.MountOperation) => void): number; + connect_after(signal: 'mount', callback: (_source: this, mount_operation: Gio.MountOperation) => void): number; + emit(signal: 'mount', mount_operation: Gio.MountOperation): void; + connect(signal: 'open-location', callback: (_source: this, location: Gio.File, open_flags: PlacesOpenFlags) => void): number; + connect_after(signal: 'open-location', callback: (_source: this, location: Gio.File, open_flags: PlacesOpenFlags) => void): number; + emit(signal: 'open-location', location: Gio.File, open_flags: PlacesOpenFlags): void; + connect(signal: 'populate-popup', callback: (_source: this, container: Widget, selected_item: Gio.File | null, selected_volume: Gio.Volume | null) => void): number; + connect_after(signal: 'populate-popup', callback: (_source: this, container: Widget, selected_item: Gio.File | null, selected_volume: Gio.Volume | null) => void): number; + emit(signal: 'populate-popup', container: Widget, selected_item: Gio.File | null, selected_volume: Gio.Volume | null): void; + connect(signal: 'show-connect-to-server', callback: (_source: this) => void): number; + connect_after(signal: 'show-connect-to-server', callback: (_source: this) => void): number; + emit(signal: 'show-connect-to-server'): void; + connect(signal: 'show-enter-location', callback: (_source: this) => void): number; + connect_after(signal: 'show-enter-location', callback: (_source: this) => void): number; + emit(signal: 'show-enter-location'): void; + connect(signal: 'show-error-message', callback: (_source: this, primary: string, secondary: string) => void): number; + connect_after(signal: 'show-error-message', callback: (_source: this, primary: string, secondary: string) => void): number; + emit(signal: 'show-error-message', primary: string, secondary: string): void; + connect(signal: 'show-other-locations', callback: (_source: this) => void): number; + connect_after(signal: 'show-other-locations', callback: (_source: this) => void): number; + emit(signal: 'show-other-locations'): void; + connect(signal: 'show-other-locations-with-flags', callback: (_source: this, open_flags: PlacesOpenFlags) => void): number; + connect_after(signal: 'show-other-locations-with-flags', callback: (_source: this, open_flags: PlacesOpenFlags) => void): number; + emit(signal: 'show-other-locations-with-flags', open_flags: PlacesOpenFlags): void; + connect(signal: 'show-starred-location', callback: (_source: this, open_flags: PlacesOpenFlags) => void): number; + connect_after(signal: 'show-starred-location', callback: (_source: this, open_flags: PlacesOpenFlags) => void): number; + emit(signal: 'show-starred-location', open_flags: PlacesOpenFlags): void; + connect(signal: 'unmount', callback: (_source: this, mount_operation: Gio.MountOperation) => void): number; + connect_after(signal: 'unmount', callback: (_source: this, mount_operation: Gio.MountOperation) => void): number; + emit(signal: 'unmount', mount_operation: Gio.MountOperation): void; + // Constructors + static ["new"](): PlacesSidebar; + static ["new"](...args: never[]): never; + // Members + add_shortcut(location: Gio.File): void; + get_local_only(): boolean; + get_location(): Gio.File | null; + get_nth_bookmark(n: number): Gio.File | null; + get_open_flags(): PlacesOpenFlags; + get_show_connect_to_server(): boolean; + get_show_desktop(): boolean; + get_show_enter_location(): boolean; + get_show_other_locations(): boolean; + get_show_recent(): boolean; + get_show_starred_location(): boolean; + get_show_trash(): boolean; + list_shortcuts(): string[]; + remove_shortcut(location: Gio.File): void; + set_drop_targets_visible(visible: boolean, context: Gdk.DragContext): void; + set_local_only(local_only: boolean): void; + set_location(location: Gio.File | null): void; + set_open_flags(flags: PlacesOpenFlags): void; + set_show_connect_to_server(show_connect_to_server: boolean): void; + set_show_desktop(show_desktop: boolean): void; + set_show_enter_location(show_enter_location: boolean): void; + set_show_other_locations(show_other_locations: boolean): void; + set_show_recent(show_recent: boolean): void; + set_show_starred_location(show_starred_location: boolean): void; + set_show_trash(show_trash: boolean): void; +} +export module Plug { + export interface ConstructorProperties extends Window.ConstructorProperties { + [key: string]: any; + embedded: boolean; + socket_window: Gdk.Window; + } +} +export class Plug extends Window implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + embedded: boolean; + socket_window: Gdk.Window; + // Fields + window: Window | any; + priv: PlugPrivate | any; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'embedded', callback: (_source: this) => void): number; + connect_after(signal: 'embedded', callback: (_source: this) => void): number; + emit(signal: 'embedded'): void; + // Constructors + static ["new"](socket_id: xlib.Window): Plug; + static ["new"](...args: never[]): never; + static new_for_display(display: Gdk.Display, socket_id: xlib.Window): Plug; + // Members + construct(socket_id: xlib.Window): void; + construct_for_display(display: Gdk.Display, socket_id: xlib.Window): void; + get_embedded(): boolean; + get_id(): xlib.Window; + get_socket_window(): Gdk.Window | null; + vfunc_embedded(): void; +} +export module Popover { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + constrain_to: PopoverConstraint; + modal: boolean; + pointing_to: Gdk.Rectangle; + position: PositionType; + relative_to: Widget; + transitions_enabled: boolean; + } +} +export class Popover extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + constrain_to: PopoverConstraint; + modal: boolean; + pointing_to: Gdk.Rectangle; + position: PositionType; + relative_to: Widget; + transitions_enabled: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'closed', callback: (_source: this) => void): number; + connect_after(signal: 'closed', callback: (_source: this) => void): number; + emit(signal: 'closed'): void; + // Constructors + static ["new"](relative_to: Widget | null): Popover; + static new_from_model(relative_to: Widget | null, model: Gio.MenuModel): Popover; + // Members + bind_model(model: Gio.MenuModel | null, action_namespace: string | null): void; + get_constrain_to(): PopoverConstraint; + get_default_widget(): Widget | null; + get_modal(): boolean; + get_pointing_to(): [boolean, Gdk.Rectangle]; + get_position(): PositionType; + get_relative_to(): Widget; + get_transitions_enabled(): boolean; + popdown(): void; + popup(): void; + set_constrain_to(constraint: PopoverConstraint): void; + set_default_widget(widget: Widget | null): void; + set_modal(modal: boolean): void; + set_pointing_to(rect: Gdk.Rectangle): void; + set_position(position: PositionType): void; + set_relative_to(relative_to: Widget | null): void; + set_transitions_enabled(transitions_enabled: boolean): void; + vfunc_closed(): void; +} +export module PopoverAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class PopoverAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); +} +export module PopoverMenu { + export interface ConstructorProperties extends Popover.ConstructorProperties { + [key: string]: any; + visible_submenu: string; + } +} +export class PopoverMenu extends Popover implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + visible_submenu: string; + // Constructors + static ["new"](): PopoverMenu; + static ["new"](...args: never[]): never; + // Members + open_submenu(name: string): void; +} +export module PrintContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class PrintContext extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Members + create_pango_context(): Pango.Context; + create_pango_layout(): Pango.Layout; + get_cairo_context(): cairo.Context; + get_dpi_x(): number; + get_dpi_y(): number; + get_hard_margins(): [boolean, number, number, number, number]; + get_height(): number; + get_page_setup(): PageSetup; + get_pango_fontmap(): Pango.FontMap; + get_width(): number; + set_cairo_context(cr: cairo.Context, dpi_x: number, dpi_y: number): void; +} +export module PrintOperation { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + allow_async: boolean; + current_page: number; + custom_tab_label: string; + default_page_setup: PageSetup; + embed_page_setup: boolean; + export_filename: string; + has_selection: boolean; + job_name: string; + n_pages: number; + n_pages_to_print: number; + print_settings: PrintSettings; + show_progress: boolean; + status: PrintStatus; + status_string: string; + support_selection: boolean; + track_print_status: boolean; + unit: Unit; + use_full_page: boolean; + } +} +export class PrintOperation extends GObject.Object implements PrintOperationPreview { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + allow_async: boolean; + current_page: number; + custom_tab_label: string; + default_page_setup: PageSetup; + embed_page_setup: boolean; + export_filename: string; + has_selection: boolean; + job_name: string; + n_pages: number; + n_pages_to_print: number; + print_settings: PrintSettings; + show_progress: boolean; + status: PrintStatus; + status_string: string; + support_selection: boolean; + track_print_status: boolean; + unit: Unit; + use_full_page: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'begin-print', callback: (_source: this, context: PrintContext) => void): number; + connect_after(signal: 'begin-print', callback: (_source: this, context: PrintContext) => void): number; + emit(signal: 'begin-print', context: PrintContext): void; + connect(signal: 'create-custom-widget', callback: (_source: this) => GObject.Object): number; + connect_after(signal: 'create-custom-widget', callback: (_source: this) => GObject.Object): number; + emit(signal: 'create-custom-widget'): void; + connect(signal: 'custom-widget-apply', callback: (_source: this, widget: Widget) => void): number; + connect_after(signal: 'custom-widget-apply', callback: (_source: this, widget: Widget) => void): number; + emit(signal: 'custom-widget-apply', widget: Widget): void; + connect(signal: 'done', callback: (_source: this, result: PrintOperationResult) => void): number; + connect_after(signal: 'done', callback: (_source: this, result: PrintOperationResult) => void): number; + emit(signal: 'done', result: PrintOperationResult): void; + connect(signal: 'draw-page', callback: (_source: this, context: PrintContext, page_nr: number) => void): number; + connect_after(signal: 'draw-page', callback: (_source: this, context: PrintContext, page_nr: number) => void): number; + emit(signal: 'draw-page', context: PrintContext, page_nr: number): void; + connect(signal: 'end-print', callback: (_source: this, context: PrintContext) => void): number; + connect_after(signal: 'end-print', callback: (_source: this, context: PrintContext) => void): number; + emit(signal: 'end-print', context: PrintContext): void; + connect(signal: 'paginate', callback: (_source: this, context: PrintContext) => boolean): number; + connect_after(signal: 'paginate', callback: (_source: this, context: PrintContext) => boolean): number; + emit(signal: 'paginate', context: PrintContext): void; + connect(signal: 'preview', callback: (_source: this, preview: PrintOperationPreview, context: PrintContext, parent: Window | null) => boolean): number; + connect_after(signal: 'preview', callback: (_source: this, preview: PrintOperationPreview, context: PrintContext, parent: Window | null) => boolean): number; + emit(signal: 'preview', preview: PrintOperationPreview, context: PrintContext, parent: Window | null): void; + connect(signal: 'request-page-setup', callback: (_source: this, context: PrintContext, page_nr: number, setup: PageSetup) => void): number; + connect_after(signal: 'request-page-setup', callback: (_source: this, context: PrintContext, page_nr: number, setup: PageSetup) => void): number; + emit(signal: 'request-page-setup', context: PrintContext, page_nr: number, setup: PageSetup): void; + connect(signal: 'status-changed', callback: (_source: this) => void): number; + connect_after(signal: 'status-changed', callback: (_source: this) => void): number; + emit(signal: 'status-changed'): void; + connect(signal: 'update-custom-widget', callback: (_source: this, widget: Widget, setup: PageSetup, settings: PrintSettings) => void): number; + connect_after(signal: 'update-custom-widget', callback: (_source: this, widget: Widget, setup: PageSetup, settings: PrintSettings) => void): number; + emit(signal: 'update-custom-widget', widget: Widget, setup: PageSetup, settings: PrintSettings): void; + // Constructors + static ["new"](): PrintOperation; + // Members + cancel(): void; + draw_page_finish(): void; + get_default_page_setup(): PageSetup; + get_embed_page_setup(): boolean; + get_error(): void; + get_has_selection(): boolean; + get_n_pages_to_print(): number; + get_print_settings(): PrintSettings; + get_status(): PrintStatus; + get_status_string(): string; + get_support_selection(): boolean; + is_finished(): boolean; + run(action: PrintOperationAction, parent: Window | null): PrintOperationResult; + set_allow_async(allow_async: boolean): void; + set_current_page(current_page: number): void; + set_custom_tab_label(label: string | null): void; + set_default_page_setup(default_page_setup: PageSetup | null): void; + set_defer_drawing(): void; + set_embed_page_setup(embed: boolean): void; + set_export_filename(filename: string): void; + set_has_selection(has_selection: boolean): void; + set_job_name(job_name: string): void; + set_n_pages(n_pages: number): void; + set_print_settings(print_settings: PrintSettings | null): void; + set_show_progress(show_progress: boolean): void; + set_support_selection(support_selection: boolean): void; + set_track_print_status(track_status: boolean): void; + set_unit(unit: Unit): void; + set_use_full_page(full_page: boolean): void; + vfunc_begin_print(context: PrintContext): void; + vfunc_custom_widget_apply(widget: Widget): void; + vfunc_done(result: PrintOperationResult): void; + vfunc_draw_page(context: PrintContext, page_nr: number): void; + vfunc_end_print(context: PrintContext): void; + vfunc_paginate(context: PrintContext): boolean; + vfunc_preview(preview: PrintOperationPreview, context: PrintContext, parent: Window): boolean; + vfunc_request_page_setup(context: PrintContext, page_nr: number, setup: PageSetup): void; + vfunc_status_changed(): void; + vfunc_update_custom_widget(widget: Widget, setup: PageSetup, settings: PrintSettings): void; + // Implemented Members + end_preview(): void; + is_selected(page_nr: number): boolean; + render_page(page_nr: number): void; + vfunc_end_preview(): void; + vfunc_got_page_size(context: PrintContext, page_setup: PageSetup): void; + vfunc_is_selected(page_nr: number): boolean; + vfunc_ready(context: PrintContext): void; + vfunc_render_page(page_nr: number): void; +} +export module PrintSettings { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class PrintSettings extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): PrintSettings; + static new_from_file(file_name: string): PrintSettings; + static new_from_gvariant(variant: GLib.Variant): PrintSettings; + static new_from_key_file(key_file: GLib.KeyFile, group_name: string | null): PrintSettings; + // Members + copy(): PrintSettings; + foreach(func: PrintSettingsFunc): void; + get(key: string): string; + get_bool(key: string): boolean; + get_collate(): boolean; + get_default_source(): string; + get_dither(): string; + get_double(key: string): number; + get_double_with_default(key: string, def: number): number; + get_duplex(): PrintDuplex; + get_finishings(): string; + get_int(key: string): number; + get_int_with_default(key: string, def: number): number; + get_length(key: string, unit: Unit): number; + get_media_type(): string; + get_n_copies(): number; + get_number_up(): number; + get_number_up_layout(): NumberUpLayout; + get_orientation(): PageOrientation; + get_output_bin(): string; + get_page_ranges(): [PageRange[], number]; + get_page_set(): PageSet; + get_paper_height(unit: Unit): number; + get_paper_size(): PaperSize; + get_paper_width(unit: Unit): number; + get_print_pages(): PrintPages; + get_printer(): string; + get_printer_lpi(): number; + get_quality(): PrintQuality; + get_resolution(): number; + get_resolution_x(): number; + get_resolution_y(): number; + get_reverse(): boolean; + get_scale(): number; + get_use_color(): boolean; + has_key(key: string): boolean; + load_file(file_name: string): boolean; + load_key_file(key_file: GLib.KeyFile, group_name: string | null): boolean; + set(key: string, value: string | null): void; + set(...args: never[]): never; + set_bool(key: string, value: boolean): void; + set_collate(collate: boolean): void; + set_default_source(default_source: string): void; + set_dither(dither: string): void; + set_double(key: string, value: number): void; + set_duplex(duplex: PrintDuplex): void; + set_finishings(finishings: string): void; + set_int(key: string, value: number): void; + set_length(key: string, value: number, unit: Unit): void; + set_media_type(media_type: string): void; + set_n_copies(num_copies: number): void; + set_number_up(number_up: number): void; + set_number_up_layout(number_up_layout: NumberUpLayout): void; + set_orientation(orientation: PageOrientation): void; + set_output_bin(output_bin: string): void; + set_page_ranges(page_ranges: PageRange[]): void; + set_page_set(page_set: PageSet): void; + set_paper_height(height: number, unit: Unit): void; + set_paper_size(paper_size: PaperSize): void; + set_paper_width(width: number, unit: Unit): void; + set_print_pages(pages: PrintPages): void; + set_printer(printer: string): void; + set_printer_lpi(lpi: number): void; + set_quality(quality: PrintQuality): void; + set_resolution(resolution: number): void; + set_resolution_xy(resolution_x: number, resolution_y: number): void; + set_reverse(reverse: boolean): void; + set_scale(scale: number): void; + set_use_color(use_color: boolean): void; + to_file(file_name: string): boolean; + to_gvariant(): GLib.Variant; + to_key_file(key_file: GLib.KeyFile, group_name: string | null): void; + unset(key: string): void; +} +export module ProgressBar { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + ellipsize: Pango.EllipsizeMode; + fraction: number; + inverted: boolean; + pulse_step: number; + show_text: boolean; + text: string; + } +} +export class ProgressBar extends Widget implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + ellipsize: Pango.EllipsizeMode; + fraction: number; + inverted: boolean; + pulse_step: number; + show_text: boolean; + text: string; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): ProgressBar; + // Members + get_ellipsize(): Pango.EllipsizeMode; + get_fraction(): number; + get_inverted(): boolean; + get_pulse_step(): number; + get_show_text(): boolean; + get_text(): string | null; + pulse(): void; + set_ellipsize(mode: Pango.EllipsizeMode): void; + set_fraction(fraction: number): void; + set_inverted(inverted: boolean): void; + set_pulse_step(fraction: number): void; + set_show_text(show_text: boolean): void; + set_text(text: string | null): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module ProgressBarAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ProgressBarAccessible extends WidgetAccessible implements Atk.Component, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ProgressBarAccessiblePrivate | any; + // Implemented Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Atk.Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Atk.Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export module RadioAction { + export interface ConstructorProperties extends ToggleAction.ConstructorProperties { + [key: string]: any; + current_value: number; + group: RadioAction; + value: number; + } +} +export class RadioAction extends ToggleAction implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + current_value: number; + group: RadioAction; + value: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this, current: RadioAction) => void): number; + connect_after(signal: 'changed', callback: (_source: this, current: RadioAction) => void): number; + emit(signal: 'changed', current: RadioAction): void; + // Constructors + static ["new"](name: string, label: string | null, tooltip: string | null, stock_id: string | null, value: number): RadioAction; + static ["new"](...args: never[]): never; + // Members + get_current_value(): number; + get_group(): string[]; + join_group(group_source: RadioAction | null): void; + set_current_value(current_value: number): void; + set_group(group: string[] | null): void; + vfunc_changed(current: RadioAction): void; +} +export module RadioButton { + export interface ConstructorProperties extends CheckButton.ConstructorProperties { + [key: string]: any; + group: RadioButton; + } +} +export class RadioButton extends CheckButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + group: RadioButton; + // Fields + check_button: CheckButton; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'group-changed', callback: (_source: this) => void): number; + connect_after(signal: 'group-changed', callback: (_source: this) => void): number; + emit(signal: 'group-changed'): void; + // Constructors + static ["new"](group: string[] | null): RadioButton; + static ["new"](...args: never[]): never; + static new_from_widget(radio_group_member: RadioButton | null): RadioButton; + static new_with_label(group: string[] | null, label: string): RadioButton; + static new_with_label(...args: never[]): never; + static new_with_label_from_widget(radio_group_member: RadioButton | null, label: string): RadioButton; + static new_with_mnemonic(group: string[] | null, label: string): RadioButton; + static new_with_mnemonic(...args: never[]): never; + static new_with_mnemonic_from_widget(radio_group_member: RadioButton | null, label: string): RadioButton; + // Members + get_group(): string[]; + join_group(group_source: RadioButton | null): void; + set_group(group: string[] | null): void; + vfunc_group_changed(): void; +} +export module RadioButtonAccessible { + export interface ConstructorProperties extends ToggleButtonAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class RadioButtonAccessible extends ToggleButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: RadioButtonAccessiblePrivate | any; +} +export module RadioMenuItem { + export interface ConstructorProperties extends CheckMenuItem.ConstructorProperties { + [key: string]: any; + group: RadioMenuItem; + } +} +export class RadioMenuItem extends CheckMenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + group: RadioMenuItem; + // Fields + check_menu_item: CheckMenuItem; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'group-changed', callback: (_source: this) => void): number; + connect_after(signal: 'group-changed', callback: (_source: this) => void): number; + emit(signal: 'group-changed'): void; + // Constructors + static ["new"](group: string[] | null): RadioMenuItem; + static ["new"](...args: never[]): never; + static new_from_widget(group: RadioMenuItem | null): RadioMenuItem; + static new_with_label(group: string[] | null, label: string): RadioMenuItem; + static new_with_label(...args: never[]): never; + static new_with_label_from_widget(group: RadioMenuItem | null, label: string | null): RadioMenuItem; + static new_with_mnemonic(group: string[] | null, label: string): RadioMenuItem; + static new_with_mnemonic(...args: never[]): never; + static new_with_mnemonic_from_widget(group: RadioMenuItem | null, label: string | null): RadioMenuItem; + // Members + get_group(): string[]; + join_group(group_source: RadioMenuItem | null): void; + set_group(group: string[] | null): void; + vfunc_group_changed(): void; +} +export module RadioMenuItemAccessible { + export interface ConstructorProperties extends CheckMenuItemAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class RadioMenuItemAccessible extends CheckMenuItemAccessible implements Atk.Action, Atk.Component, Atk.Selection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: RadioMenuItemAccessiblePrivate | any; +} +export module RadioToolButton { + export interface ConstructorProperties extends ToggleToolButton.ConstructorProperties { + [key: string]: any; + group: RadioToolButton; + } +} +export class RadioToolButton extends ToggleToolButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + group: RadioToolButton; + // Constructors + static ["new"](group: string[] | null): RadioToolButton; + static ["new"](...args: never[]): never; + static new_from_stock(group: string[] | null, stock_id: string): RadioToolButton; + static new_from_stock(...args: never[]): never; + static new_from_widget(group: RadioToolButton | null): RadioToolButton; + static new_with_stock_from_widget(group: RadioToolButton | null, stock_id: string): RadioToolButton; + // Members + get_group(): string[]; + set_group(group: string[] | null): void; +} +export module Range { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + adjustment: Adjustment; + fill_level: number; + inverted: boolean; + lower_stepper_sensitivity: SensitivityType; + restrict_to_fill_level: boolean; + round_digits: number; + show_fill_level: boolean; + upper_stepper_sensitivity: SensitivityType; + } +} +export abstract class Range extends Widget implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + adjustment: Adjustment; + fill_level: number; + inverted: boolean; + lower_stepper_sensitivity: SensitivityType; + restrict_to_fill_level: boolean; + round_digits: number; + show_fill_level: boolean; + upper_stepper_sensitivity: SensitivityType; + // Fields + widget: Widget; + priv: RangePrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'adjust-bounds', callback: (_source: this, value: number) => void): number; + connect_after(signal: 'adjust-bounds', callback: (_source: this, value: number) => void): number; + emit(signal: 'adjust-bounds', value: number): void; + connect(signal: 'change-value', callback: (_source: this, scroll: ScrollType, value: number) => boolean): number; + connect_after(signal: 'change-value', callback: (_source: this, scroll: ScrollType, value: number) => boolean): number; + emit(signal: 'change-value', scroll: ScrollType, value: number): void; + connect(signal: 'move-slider', callback: (_source: this, step: ScrollType) => void): number; + connect_after(signal: 'move-slider', callback: (_source: this, step: ScrollType) => void): number; + emit(signal: 'move-slider', step: ScrollType): void; + connect(signal: 'value-changed', callback: (_source: this) => void): number; + connect_after(signal: 'value-changed', callback: (_source: this) => void): number; + emit(signal: 'value-changed'): void; + // Implemented Properties + orientation: Orientation; + // Members + get_adjustment(): Adjustment; + get_fill_level(): number; + get_flippable(): boolean; + get_inverted(): boolean; + get_lower_stepper_sensitivity(): SensitivityType; + get_min_slider_size(): number; + get_range_rect(): Gdk.Rectangle; + get_restrict_to_fill_level(): boolean; + get_round_digits(): number; + get_show_fill_level(): boolean; + get_slider_range(): [number | null, number | null]; + get_slider_size_fixed(): boolean; + get_upper_stepper_sensitivity(): SensitivityType; + get_value(): number; + set_adjustment(adjustment: Adjustment): void; + set_fill_level(fill_level: number): void; + set_flippable(flippable: boolean): void; + set_increments(step: number, page: number): void; + set_inverted(setting: boolean): void; + set_lower_stepper_sensitivity(sensitivity: SensitivityType): void; + set_min_slider_size(min_size: number): void; + set_range(min: number, max: number): void; + set_restrict_to_fill_level(restrict_to_fill_level: boolean): void; + set_round_digits(round_digits: number): void; + set_show_fill_level(show_fill_level: boolean): void; + set_slider_size_fixed(size_fixed: boolean): void; + set_upper_stepper_sensitivity(sensitivity: SensitivityType): void; + set_value(value: number): void; + vfunc_adjust_bounds(new_value: number): void; + vfunc_change_value(scroll: ScrollType, new_value: number): boolean; + vfunc_get_range_border(border_: Border): void; + vfunc_get_range_size_request(orientation: Orientation, minimum: number, natural: number): void; + vfunc_move_slider(scroll: ScrollType): void; + vfunc_value_changed(): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module RangeAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class RangeAccessible extends WidgetAccessible implements Atk.Component, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: RangeAccessiblePrivate | any; + // Implemented Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Atk.Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Atk.Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export module RcStyle { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class RcStyle extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + name: string; + bg_pixmap_name: string[]; + font_desc: Pango.FontDescription; + color_flags: RcFlags[]; + fg: Gdk.Color[]; + bg: Gdk.Color[]; + text: Gdk.Color[]; + base: Gdk.Color[]; + xthickness: number; + ythickness: number; + // Constructors + static ["new"](): RcStyle; + // Members + copy(): RcStyle; + vfunc_merge(src: RcStyle): void; + vfunc_parse(settings: Settings, scanner: GLib.Scanner): number; +} +export module RecentAction { + export interface ConstructorProperties extends Action.ConstructorProperties { + [key: string]: any; + show_numbers: boolean; + } +} +export class RecentAction extends Action implements Buildable, RecentChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + show_numbers: boolean; + // Implemented Properties + filter: RecentFilter; + limit: number; + local_only: boolean; + recent_manager: RecentManager; + select_multiple: boolean; + show_icons: boolean; + show_not_found: boolean; + show_private: boolean; + show_tips: boolean; + sort_type: RecentSortType; + // Constructors + static ["new"](name: string, label: string | null, tooltip: string | null, stock_id: string | null): RecentAction; + static ["new"](...args: never[]): never; + static new_for_manager(name: string, label: string | null, tooltip: string | null, stock_id: string | null, manager: RecentManager | null): RecentAction; + // Members + get_show_numbers(): boolean; + set_show_numbers(show_numbers: boolean): void; + // Implemented Members + add_filter(filter: RecentFilter): void; + get_current_item(): RecentInfo; + get_current_uri(): string; + get_filter(): RecentFilter; + get_items(): GLib.List; + get_limit(): number; + get_local_only(): boolean; + get_select_multiple(): boolean; + get_show_icons(): boolean; + get_show_not_found(): boolean; + get_show_private(): boolean; + get_show_tips(): boolean; + get_sort_type(): RecentSortType; + get_uris(): [string[], number | null]; + list_filters(): string[]; + remove_filter(filter: RecentFilter): void; + select_all(): void; + select_uri(uri: string): boolean; + set_current_uri(uri: string): boolean; + set_filter(filter: RecentFilter | null): void; + set_limit(limit: number): void; + set_local_only(local_only: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_icons(show_icons: boolean): void; + set_show_not_found(show_not_found: boolean): void; + set_show_private(show_private: boolean): void; + set_show_tips(show_tips: boolean): void; + set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_type(sort_type: RecentSortType): void; + unselect_all(): void; + unselect_uri(uri: string): void; + vfunc_add_filter(filter: RecentFilter): void; + vfunc_get_current_uri(): string; + vfunc_get_items(): GLib.List; + vfunc_item_activated(): void; + vfunc_list_filters(): string[]; + vfunc_remove_filter(filter: RecentFilter): void; + vfunc_select_all(): void; + vfunc_select_uri(uri: string): boolean; + vfunc_selection_changed(): void; + vfunc_set_current_uri(uri: string): boolean; + vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_unselect_all(): void; + vfunc_unselect_uri(uri: string): void; +} +export module RecentChooserDialog { + export interface ConstructorProperties extends Dialog.ConstructorProperties { + [key: string]: any; + } +} +export class RecentChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, RecentChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Implemented Properties + filter: RecentFilter; + limit: number; + local_only: boolean; + recent_manager: RecentManager; + select_multiple: boolean; + show_icons: boolean; + show_not_found: boolean; + show_private: boolean; + show_tips: boolean; + sort_type: RecentSortType; + // Implemented Members + add_filter(filter: RecentFilter): void; + get_current_item(): RecentInfo; + get_current_uri(): string; + get_filter(): RecentFilter; + get_items(): GLib.List; + get_limit(): number; + get_local_only(): boolean; + get_select_multiple(): boolean; + get_show_icons(): boolean; + get_show_not_found(): boolean; + get_show_private(): boolean; + get_show_tips(): boolean; + get_sort_type(): RecentSortType; + get_uris(): [string[], number | null]; + list_filters(): string[]; + remove_filter(filter: RecentFilter): void; + select_all(): void; + select_uri(uri: string): boolean; + set_current_uri(uri: string): boolean; + set_filter(filter: RecentFilter | null): void; + set_limit(limit: number): void; + set_local_only(local_only: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_icons(show_icons: boolean): void; + set_show_not_found(show_not_found: boolean): void; + set_show_private(show_private: boolean): void; + set_show_tips(show_tips: boolean): void; + set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_type(sort_type: RecentSortType): void; + unselect_all(): void; + unselect_uri(uri: string): void; + vfunc_add_filter(filter: RecentFilter): void; + vfunc_get_current_uri(): string; + vfunc_get_items(): GLib.List; + vfunc_item_activated(): void; + vfunc_list_filters(): string[]; + vfunc_remove_filter(filter: RecentFilter): void; + vfunc_select_all(): void; + vfunc_select_uri(uri: string): boolean; + vfunc_selection_changed(): void; + vfunc_set_current_uri(uri: string): boolean; + vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_unselect_all(): void; + vfunc_unselect_uri(uri: string): void; +} +export module RecentChooserMenu { + export interface ConstructorProperties extends Menu.ConstructorProperties { + [key: string]: any; + show_numbers: boolean; + } +} +export class RecentChooserMenu extends Menu implements Atk.ImplementorIface, Activatable, Buildable, RecentChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + show_numbers: boolean; + // Implemented Properties + related_action: Action; + use_action_appearance: boolean; + filter: RecentFilter; + limit: number; + local_only: boolean; + recent_manager: RecentManager; + select_multiple: boolean; + show_icons: boolean; + show_not_found: boolean; + show_private: boolean; + show_tips: boolean; + sort_type: RecentSortType; + // Constructors + static ["new"](): RecentChooserMenu; + static ["new"](...args: never[]): never; + static new_for_manager(manager: RecentManager): RecentChooserMenu; + // Members + get_show_numbers(): boolean; + set_show_numbers(show_numbers: boolean): void; + // Implemented Members + do_set_related_action(action: Action): void; + get_related_action(): Action; + get_use_action_appearance(): boolean; + set_related_action(action: Action): void; + set_use_action_appearance(use_appearance: boolean): void; + sync_action_properties(action: Action | null): void; + vfunc_sync_action_properties(action: Action | null): void; + vfunc_update(action: Action, property_name: string): void; + add_filter(filter: RecentFilter): void; + get_current_item(): RecentInfo; + get_current_uri(): string; + get_filter(): RecentFilter; + get_items(): GLib.List; + get_limit(): number; + get_local_only(): boolean; + get_select_multiple(): boolean; + get_show_icons(): boolean; + get_show_not_found(): boolean; + get_show_private(): boolean; + get_show_tips(): boolean; + get_sort_type(): RecentSortType; + get_uris(): [string[], number | null]; + list_filters(): string[]; + remove_filter(filter: RecentFilter): void; + select_all(): void; + select_uri(uri: string): boolean; + set_current_uri(uri: string): boolean; + set_filter(filter: RecentFilter | null): void; + set_limit(limit: number): void; + set_local_only(local_only: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_icons(show_icons: boolean): void; + set_show_not_found(show_not_found: boolean): void; + set_show_private(show_private: boolean): void; + set_show_tips(show_tips: boolean): void; + set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_type(sort_type: RecentSortType): void; + unselect_all(): void; + unselect_uri(uri: string): void; + vfunc_add_filter(filter: RecentFilter): void; + vfunc_get_current_uri(): string; + vfunc_get_items(): GLib.List; + vfunc_item_activated(): void; + vfunc_list_filters(): string[]; + vfunc_remove_filter(filter: RecentFilter): void; + vfunc_select_all(): void; + vfunc_select_uri(uri: string): boolean; + vfunc_selection_changed(): void; + vfunc_set_current_uri(uri: string): boolean; + vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_unselect_all(): void; + vfunc_unselect_uri(uri: string): void; +} +export module RecentChooserWidget { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + } +} +export class RecentChooserWidget extends Box implements Atk.ImplementorIface, Buildable, Orientable, RecentChooser { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Implemented Properties + filter: RecentFilter; + limit: number; + local_only: boolean; + recent_manager: RecentManager; + select_multiple: boolean; + show_icons: boolean; + show_not_found: boolean; + show_private: boolean; + show_tips: boolean; + sort_type: RecentSortType; + // Constructors + static ["new"](): RecentChooserWidget; + static ["new"](...args: never[]): never; + static new_for_manager(manager: RecentManager): RecentChooserWidget; + // Implemented Members + add_filter(filter: RecentFilter): void; + get_current_item(): RecentInfo; + get_current_uri(): string; + get_filter(): RecentFilter; + get_items(): GLib.List; + get_limit(): number; + get_local_only(): boolean; + get_select_multiple(): boolean; + get_show_icons(): boolean; + get_show_not_found(): boolean; + get_show_private(): boolean; + get_show_tips(): boolean; + get_sort_type(): RecentSortType; + get_uris(): [string[], number | null]; + list_filters(): string[]; + remove_filter(filter: RecentFilter): void; + select_all(): void; + select_uri(uri: string): boolean; + set_current_uri(uri: string): boolean; + set_filter(filter: RecentFilter | null): void; + set_limit(limit: number): void; + set_local_only(local_only: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_icons(show_icons: boolean): void; + set_show_not_found(show_not_found: boolean): void; + set_show_private(show_private: boolean): void; + set_show_tips(show_tips: boolean): void; + set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_type(sort_type: RecentSortType): void; + unselect_all(): void; + unselect_uri(uri: string): void; + vfunc_add_filter(filter: RecentFilter): void; + vfunc_get_current_uri(): string; + vfunc_get_items(): GLib.List; + vfunc_item_activated(): void; + vfunc_list_filters(): string[]; + vfunc_remove_filter(filter: RecentFilter): void; + vfunc_select_all(): void; + vfunc_select_uri(uri: string): boolean; + vfunc_selection_changed(): void; + vfunc_set_current_uri(uri: string): boolean; + vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_unselect_all(): void; + vfunc_unselect_uri(uri: string): void; +} +export module RecentFilter { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + } +} +export class RecentFilter extends GObject.InitiallyUnowned implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): RecentFilter; + // Members + add_age(days: number): void; + add_application(application: string): void; + add_custom(needed: RecentFilterFlags, func: RecentFilterFunc, data: any | null, data_destroy: GLib.DestroyNotify): void; + add_group(group: string): void; + add_mime_type(mime_type: string): void; + add_pattern(pattern: string): void; + add_pixbuf_formats(): void; + filter(filter_info: RecentFilterInfo): boolean; + get_name(): string | null; + get_needed(): RecentFilterFlags; + set_name(name: string): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module RecentManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + filename: string; + size: number; + } +} +export class RecentManager extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + filename: string; + size: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + // Constructors + static ["new"](): RecentManager; + // Members + add_full(uri: string, recent_data: RecentData): boolean; + add_item(uri: string): boolean; + get_items(): GLib.List; + has_item(uri: string): boolean; + lookup_item(uri: string): RecentInfo | null; + move_item(uri: string, new_uri: string | null): boolean; + purge_items(): number; + remove_item(uri: string): boolean; + vfunc_changed(): void; + static get_default(): RecentManager; +} +export module RendererCellAccessible { + export interface ConstructorProperties extends CellAccessible.ConstructorProperties { + [key: string]: any; + renderer: CellRenderer; + } +} +export class RendererCellAccessible extends CellAccessible implements Atk.Action, Atk.Component, Atk.TableCell { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + renderer: CellRenderer; + // Fields + priv: RendererCellAccessiblePrivate | any; + // Constructors + static ["new"](renderer: CellRenderer): RendererCellAccessible; +} +export module Revealer { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + child_revealed: boolean; + reveal_child: boolean; + transition_duration: number; + transition_type: RevealerTransitionType; + } +} +export class Revealer extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + child_revealed: boolean; + reveal_child: boolean; + transition_duration: number; + transition_type: RevealerTransitionType; + // Constructors + static ["new"](): Revealer; + // Members + get_child_revealed(): boolean; + get_reveal_child(): boolean; + get_transition_duration(): number; + get_transition_type(): RevealerTransitionType; + set_reveal_child(reveal_child: boolean): void; + set_transition_duration(duration: number): void; + set_transition_type(transition: RevealerTransitionType): void; +} +export module Scale { + export interface ConstructorProperties extends Range.ConstructorProperties { + [key: string]: any; + digits: number; + draw_value: boolean; + has_origin: boolean; + value_pos: PositionType; + } +} +export class Scale extends Range implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + digits: number; + draw_value: boolean; + has_origin: boolean; + value_pos: PositionType; + // Fields + range: Range; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'format-value', callback: (_source: this, value: number) => string): number; + connect_after(signal: 'format-value', callback: (_source: this, value: number) => string): number; + emit(signal: 'format-value', value: number): void; + // Constructors + static ["new"](orientation: Orientation, adjustment: Adjustment | null): Scale; + static new_with_range(orientation: Orientation, min: number, max: number, step: number): Scale; + // Members + add_mark(value: number, position: PositionType, markup: string | null): void; + clear_marks(): void; + get_digits(): number; + get_draw_value(): boolean; + get_has_origin(): boolean; + get_layout(): Pango.Layout | null; + get_layout_offsets(): [number | null, number | null]; + get_value_pos(): PositionType; + set_digits(digits: number): void; + set_draw_value(draw_value: boolean): void; + set_has_origin(has_origin: boolean): void; + set_value_pos(pos: PositionType): void; + vfunc_draw_value(): void; + vfunc_format_value(value: number): string; + vfunc_get_layout_offsets(): [number | null, number | null]; +} +export module ScaleAccessible { + export interface ConstructorProperties extends RangeAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ScaleAccessible extends RangeAccessible implements Atk.Component, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ScaleAccessiblePrivate | any; +} +export module ScaleButton { + export interface ConstructorProperties extends Button.ConstructorProperties { + [key: string]: any; + adjustment: Adjustment; + } +} +export class ScaleButton extends Button { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + adjustment: Adjustment; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'popdown', callback: (_source: this) => void): number; + connect_after(signal: 'popdown', callback: (_source: this) => void): number; + emit(signal: 'popdown'): void; + connect(signal: 'popup', callback: (_source: this) => void): number; + connect_after(signal: 'popup', callback: (_source: this) => void): number; + emit(signal: 'popup'): void; + connect(signal: 'value-changed', callback: (_source: this, value: number) => void): number; + connect_after(signal: 'value-changed', callback: (_source: this, value: number) => void): number; + emit(signal: 'value-changed', value: number): void; + // Constructors + static ["new"](size: number, min: number, max: number, step: number, icons: string[] | null): ScaleButton; + static ["new"](...args: never[]): never; +} +export module ScaleButtonAccessible { + export interface ConstructorProperties extends ButtonAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ScaleButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.Image, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ScaleButtonAccessiblePrivate | any; + // Implemented Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Atk.Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Atk.Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export module Scrollbar { + export interface ConstructorProperties extends Range.ConstructorProperties { + [key: string]: any; + } +} +export class Scrollbar extends Range implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + range: Range; + // Constructors + static ["new"](orientation: Orientation, adjustment: Adjustment | null): Scrollbar; +} +export module ScrolledWindow { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + hadjustment: Adjustment; + hscrollbar_policy: PolicyType; + kinetic_scrolling: boolean; + max_content_height: number; + max_content_width: number; + min_content_height: number; + min_content_width: number; + overlay_scrolling: boolean; + propagate_natural_height: boolean; + propagate_natural_width: boolean; + shadow_type: ShadowType; + vadjustment: Adjustment; + vscrollbar_policy: PolicyType; + window_placement: CornerType; + window_placement_set: boolean; + } +} +export class ScrolledWindow extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + hadjustment: Adjustment; + hscrollbar_policy: PolicyType; + kinetic_scrolling: boolean; + max_content_height: number; + max_content_width: number; + min_content_height: number; + min_content_width: number; + overlay_scrolling: boolean; + propagate_natural_height: boolean; + propagate_natural_width: boolean; + shadow_type: ShadowType; + vadjustment: Adjustment; + vscrollbar_policy: PolicyType; + window_placement: CornerType; + window_placement_set: boolean; + // Fields + container: Bin | any; + priv: ScrolledWindowPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'edge-overshot', callback: (_source: this, pos: PositionType) => void): number; + connect_after(signal: 'edge-overshot', callback: (_source: this, pos: PositionType) => void): number; + emit(signal: 'edge-overshot', pos: PositionType): void; + connect(signal: 'edge-reached', callback: (_source: this, pos: PositionType) => void): number; + connect_after(signal: 'edge-reached', callback: (_source: this, pos: PositionType) => void): number; + emit(signal: 'edge-reached', pos: PositionType): void; + connect(signal: 'move-focus-out', callback: (_source: this, direction_type: DirectionType) => void): number; + connect_after(signal: 'move-focus-out', callback: (_source: this, direction_type: DirectionType) => void): number; + emit(signal: 'move-focus-out', direction_type: DirectionType): void; + connect(signal: 'scroll-child', callback: (_source: this, scroll: ScrollType, horizontal: boolean) => boolean): number; + connect_after(signal: 'scroll-child', callback: (_source: this, scroll: ScrollType, horizontal: boolean) => boolean): number; + emit(signal: 'scroll-child', scroll: ScrollType, horizontal: boolean): void; + // Constructors + static ["new"](hadjustment: Adjustment | null, vadjustment: Adjustment | null): ScrolledWindow; + // Members + add_with_viewport(child: Widget): void; + get_capture_button_press(): boolean; + get_hadjustment(): Adjustment; + get_hscrollbar(): Widget; + get_kinetic_scrolling(): boolean; + get_max_content_height(): number; + get_max_content_width(): number; + get_min_content_height(): number; + get_min_content_width(): number; + get_overlay_scrolling(): boolean; + get_placement(): CornerType; + get_policy(): [PolicyType | null, PolicyType | null]; + get_propagate_natural_height(): boolean; + get_propagate_natural_width(): boolean; + get_shadow_type(): ShadowType; + get_vadjustment(): Adjustment; + get_vscrollbar(): Widget; + set_capture_button_press(capture_button_press: boolean): void; + set_hadjustment(hadjustment: Adjustment | null): void; + set_kinetic_scrolling(kinetic_scrolling: boolean): void; + set_max_content_height(height: number): void; + set_max_content_width(width: number): void; + set_min_content_height(height: number): void; + set_min_content_width(width: number): void; + set_overlay_scrolling(overlay_scrolling: boolean): void; + set_placement(window_placement: CornerType): void; + set_policy(hscrollbar_policy: PolicyType, vscrollbar_policy: PolicyType): void; + set_propagate_natural_height(propagate: boolean): void; + set_propagate_natural_width(propagate: boolean): void; + set_shadow_type(type: ShadowType): void; + set_vadjustment(vadjustment: Adjustment | null): void; + unset_placement(): void; + vfunc_move_focus_out(direction: DirectionType): void; + vfunc_scroll_child(scroll: ScrollType, horizontal: boolean): boolean; +} +export module ScrolledWindowAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ScrolledWindowAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ScrolledWindowAccessiblePrivate | any; +} +export module SearchBar { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + search_mode_enabled: boolean; + show_close_button: boolean; + } +} +export class SearchBar extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + search_mode_enabled: boolean; + show_close_button: boolean; + // Constructors + static ["new"](): SearchBar; + // Members + connect_entry(entry: Entry): void; + get_search_mode(): boolean; + get_show_close_button(): boolean; + handle_event(event: Gdk.Event): boolean; + set_search_mode(search_mode: boolean): void; + set_show_close_button(visible: boolean): void; +} +export module SearchEntry { + export interface ConstructorProperties extends Entry.ConstructorProperties { + [key: string]: any; + } +} +export class SearchEntry extends Entry implements Atk.ImplementorIface, Buildable, CellEditable, Editable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'next-match', callback: (_source: this) => void): number; + connect_after(signal: 'next-match', callback: (_source: this) => void): number; + emit(signal: 'next-match'): void; + connect(signal: 'previous-match', callback: (_source: this) => void): number; + connect_after(signal: 'previous-match', callback: (_source: this) => void): number; + emit(signal: 'previous-match'): void; + connect(signal: 'search-changed', callback: (_source: this) => void): number; + connect_after(signal: 'search-changed', callback: (_source: this) => void): number; + emit(signal: 'search-changed'): void; + connect(signal: 'stop-search', callback: (_source: this) => void): number; + connect_after(signal: 'stop-search', callback: (_source: this) => void): number; + emit(signal: 'stop-search'): void; + // Constructors + static ["new"](): SearchEntry; + static ["new"](...args: never[]): never; + // Members + handle_event(event: Gdk.Event): boolean; + vfunc_next_match(): void; + vfunc_previous_match(): void; + vfunc_search_changed(): void; + vfunc_stop_search(): void; +} +export module Separator { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + } +} +export class Separator extends Widget implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + widget: Widget; + priv: SeparatorPrivate; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](orientation: Orientation): Separator; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module SeparatorMenuItem { + export interface ConstructorProperties extends MenuItem.ConstructorProperties { + [key: string]: any; + } +} +export class SeparatorMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + menu_item: MenuItem; + // Constructors + static ["new"](): SeparatorMenuItem; + static ["new"](...args: never[]): never; +} +export module SeparatorToolItem { + export interface ConstructorProperties extends ToolItem.ConstructorProperties { + [key: string]: any; + } +} +export class SeparatorToolItem extends ToolItem implements Atk.ImplementorIface, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): SeparatorToolItem; + static ["new"](...args: never[]): never; + // Members + get_draw(): boolean; + set_draw(draw: boolean): void; +} +export module Settings { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + color_hash: GLib.HashTable; + gtk_alternative_button_order: boolean; + gtk_alternative_sort_arrows: boolean; + gtk_application_prefer_dark_theme: boolean; + gtk_auto_mnemonics: boolean; + gtk_button_images: boolean; + gtk_can_change_accels: boolean; + gtk_color_palette: string; + gtk_color_scheme: string; + gtk_cursor_blink: boolean; + gtk_cursor_blink_time: number; + gtk_cursor_blink_timeout: number; + gtk_cursor_theme_name: string; + gtk_cursor_theme_size: number; + gtk_decoration_layout: string; + gtk_dialogs_use_header: boolean; + gtk_dnd_drag_threshold: number; + gtk_double_click_distance: number; + gtk_double_click_time: number; + gtk_enable_accels: boolean; + gtk_enable_animations: boolean; + gtk_enable_event_sounds: boolean; + gtk_enable_input_feedback_sounds: boolean; + gtk_enable_mnemonics: boolean; + gtk_enable_primary_paste: boolean; + gtk_enable_tooltips: boolean; + gtk_entry_password_hint_timeout: number; + gtk_entry_select_on_focus: boolean; + gtk_error_bell: boolean; + gtk_fallback_icon_theme: string; + gtk_file_chooser_backend: string; + gtk_font_name: string; + gtk_fontconfig_timestamp: number; + gtk_icon_sizes: string; + gtk_icon_theme_name: string; + gtk_im_module: string; + gtk_im_preedit_style: IMPreeditStyle; + gtk_im_status_style: IMStatusStyle; + gtk_key_theme_name: string; + gtk_keynav_cursor_only: boolean; + gtk_keynav_use_caret: boolean; + gtk_keynav_wrap_around: boolean; + gtk_label_select_on_focus: boolean; + gtk_long_press_time: number; + gtk_menu_bar_accel: string; + gtk_menu_bar_popup_delay: number; + gtk_menu_images: boolean; + gtk_menu_popdown_delay: number; + gtk_menu_popup_delay: number; + gtk_modules: string; + gtk_overlay_scrolling: boolean; + gtk_primary_button_warps_slider: boolean; + gtk_print_backends: string; + gtk_print_preview_command: string; + gtk_recent_files_enabled: boolean; + gtk_recent_files_limit: number; + gtk_recent_files_max_age: number; + gtk_scrolled_window_placement: CornerType; + gtk_shell_shows_app_menu: boolean; + gtk_shell_shows_desktop: boolean; + gtk_shell_shows_menubar: boolean; + gtk_show_input_method_menu: boolean; + gtk_show_unicode_menu: boolean; + gtk_sound_theme_name: string; + gtk_split_cursor: boolean; + gtk_theme_name: string; + gtk_timeout_expand: number; + gtk_timeout_initial: number; + gtk_timeout_repeat: number; + gtk_titlebar_double_click: string; + gtk_titlebar_middle_click: string; + gtk_titlebar_right_click: string; + gtk_toolbar_icon_size: IconSize; + gtk_toolbar_style: ToolbarStyle; + gtk_tooltip_browse_mode_timeout: number; + gtk_tooltip_browse_timeout: number; + gtk_tooltip_timeout: number; + gtk_touchscreen_mode: boolean; + gtk_visible_focus: PolicyType; + gtk_xft_antialias: number; + gtk_xft_dpi: number; + gtk_xft_hinting: number; + gtk_xft_hintstyle: string; + gtk_xft_rgba: string; + } +} +export class Settings extends GObject.Object implements StyleProvider { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + color_hash: GLib.HashTable; + gtk_alternative_button_order: boolean; + gtk_alternative_sort_arrows: boolean; + gtk_application_prefer_dark_theme: boolean; + gtk_auto_mnemonics: boolean; + gtk_button_images: boolean; + gtk_can_change_accels: boolean; + gtk_color_palette: string; + gtk_color_scheme: string; + gtk_cursor_blink: boolean; + gtk_cursor_blink_time: number; + gtk_cursor_blink_timeout: number; + gtk_cursor_theme_name: string; + gtk_cursor_theme_size: number; + gtk_decoration_layout: string; + gtk_dialogs_use_header: boolean; + gtk_dnd_drag_threshold: number; + gtk_double_click_distance: number; + gtk_double_click_time: number; + gtk_enable_accels: boolean; + gtk_enable_animations: boolean; + gtk_enable_event_sounds: boolean; + gtk_enable_input_feedback_sounds: boolean; + gtk_enable_mnemonics: boolean; + gtk_enable_primary_paste: boolean; + gtk_enable_tooltips: boolean; + gtk_entry_password_hint_timeout: number; + gtk_entry_select_on_focus: boolean; + gtk_error_bell: boolean; + gtk_fallback_icon_theme: string; + gtk_file_chooser_backend: string; + gtk_font_name: string; + gtk_fontconfig_timestamp: number; + gtk_icon_sizes: string; + gtk_icon_theme_name: string; + gtk_im_module: string; + gtk_im_preedit_style: IMPreeditStyle; + gtk_im_status_style: IMStatusStyle; + gtk_key_theme_name: string; + gtk_keynav_cursor_only: boolean; + gtk_keynav_use_caret: boolean; + gtk_keynav_wrap_around: boolean; + gtk_label_select_on_focus: boolean; + gtk_long_press_time: number; + gtk_menu_bar_accel: string; + gtk_menu_bar_popup_delay: number; + gtk_menu_images: boolean; + gtk_menu_popdown_delay: number; + gtk_menu_popup_delay: number; + gtk_modules: string; + gtk_overlay_scrolling: boolean; + gtk_primary_button_warps_slider: boolean; + gtk_print_backends: string; + gtk_print_preview_command: string; + gtk_recent_files_enabled: boolean; + gtk_recent_files_limit: number; + gtk_recent_files_max_age: number; + gtk_scrolled_window_placement: CornerType; + gtk_shell_shows_app_menu: boolean; + gtk_shell_shows_desktop: boolean; + gtk_shell_shows_menubar: boolean; + gtk_show_input_method_menu: boolean; + gtk_show_unicode_menu: boolean; + gtk_sound_theme_name: string; + gtk_split_cursor: boolean; + gtk_theme_name: string; + gtk_timeout_expand: number; + gtk_timeout_initial: number; + gtk_timeout_repeat: number; + gtk_titlebar_double_click: string; + gtk_titlebar_middle_click: string; + gtk_titlebar_right_click: string; + gtk_toolbar_icon_size: IconSize; + gtk_toolbar_style: ToolbarStyle; + gtk_tooltip_browse_mode_timeout: number; + gtk_tooltip_browse_timeout: number; + gtk_tooltip_timeout: number; + gtk_touchscreen_mode: boolean; + gtk_visible_focus: PolicyType; + gtk_xft_antialias: number; + gtk_xft_dpi: number; + gtk_xft_hinting: number; + gtk_xft_hintstyle: string; + gtk_xft_rgba: string; + // Members + reset_property(name: string): void; + set_double_property(name: string, v_double: number, origin: string): void; + set_long_property(name: string, v_long: number, origin: string): void; + set_property_value(name: string, svalue: SettingsValue): void; + set_string_property(name: string, v_string: string, origin: string): void; + static get_default(): Settings | null; + static get_for_screen(screen: Gdk.Screen): Settings; + static install_property(pspec: GObject.ParamSpec): void; + static install_property_parser(pspec: GObject.ParamSpec, parser: RcPropertyParser): void; + // Implemented Members + get_icon_factory(path: WidgetPath): IconFactory | null; + get_style(path: WidgetPath): StyleProperties | null; + get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; + vfunc_get_icon_factory(path: WidgetPath): IconFactory | null; + vfunc_get_style(path: WidgetPath): StyleProperties | null; + vfunc_get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; +} +export module ShortcutLabel { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + accelerator: string; + disabled_text: string; + } +} +export class ShortcutLabel extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accelerator: string; + disabled_text: string; + // Constructors + static ["new"](accelerator: string): ShortcutLabel; + static ["new"](...args: never[]): never; + // Members + get_accelerator(): string | null; + get_disabled_text(): string | null; + set_accelerator(accelerator: string): void; + set_disabled_text(disabled_text: string): void; +} +export module ShortcutsGroup { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + accel_size_group: SizeGroup; + height: number; + title: string; + title_size_group: SizeGroup; + view: string; + } +} +export class ShortcutsGroup extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_size_group: SizeGroup; + height: number; + title: string; + title_size_group: SizeGroup; + view: string; +} +export module ShortcutsSection { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + max_height: number; + section_name: string; + title: string; + view_name: string; + } +} +export class ShortcutsSection extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + max_height: number; + section_name: string; + title: string; + view_name: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'change-current-page', callback: (_source: this, object: number) => boolean): number; + connect_after(signal: 'change-current-page', callback: (_source: this, object: number) => boolean): number; + emit(signal: 'change-current-page', object: number): void; +} +export module ShortcutsShortcut { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + accel_size_group: SizeGroup; + accelerator: string; + action_name: string; + direction: TextDirection; + icon: Gio.Icon; + icon_set: boolean; + shortcut_type: ShortcutType; + subtitle: string; + subtitle_set: boolean; + title: string; + title_size_group: SizeGroup; + } +} +export class ShortcutsShortcut extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accel_size_group: SizeGroup; + accelerator: string; + action_name: string; + direction: TextDirection; + icon: Gio.Icon; + icon_set: boolean; + shortcut_type: ShortcutType; + subtitle: string; + subtitle_set: boolean; + title: string; + title_size_group: SizeGroup; +} +export module ShortcutsWindow { + export interface ConstructorProperties extends Window.ConstructorProperties { + [key: string]: any; + section_name: string; + view_name: string; + } +} +export class ShortcutsWindow extends Window implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + section_name: string; + view_name: string; + // Fields + window: Window | any; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'close', callback: (_source: this) => void): number; + connect_after(signal: 'close', callback: (_source: this) => void): number; + emit(signal: 'close'): void; + connect(signal: 'search', callback: (_source: this) => void): number; + connect_after(signal: 'search', callback: (_source: this) => void): number; + emit(signal: 'search'): void; + // Members + vfunc_close(): void; + vfunc_search(): void; +} +export module SizeGroup { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + ignore_hidden: boolean; + mode: SizeGroupMode; + } +} +export class SizeGroup extends GObject.Object implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + ignore_hidden: boolean; + mode: SizeGroupMode; + // Constructors + static ["new"](mode: SizeGroupMode): SizeGroup; + // Members + add_widget(widget: Widget): void; + get_ignore_hidden(): boolean; + get_mode(): SizeGroupMode; + get_widgets(): string[]; + remove_widget(widget: Widget): void; + set_ignore_hidden(ignore_hidden: boolean): void; + set_mode(mode: SizeGroupMode): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module Socket { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + } +} +export class Socket extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + container: Container; + priv: SocketPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'plug-added', callback: (_source: this) => void): number; + connect_after(signal: 'plug-added', callback: (_source: this) => void): number; + emit(signal: 'plug-added'): void; + connect(signal: 'plug-removed', callback: (_source: this) => boolean): number; + connect_after(signal: 'plug-removed', callback: (_source: this) => boolean): number; + emit(signal: 'plug-removed'): void; + // Constructors + static ["new"](): Socket; + // Members + add_id(window: xlib.Window): void; + get_id(): xlib.Window; + get_plug_window(): Gdk.Window | null; + vfunc_plug_added(): void; + vfunc_plug_removed(): boolean; +} +export module SpinButton { + export interface ConstructorProperties extends Entry.ConstructorProperties { + [key: string]: any; + adjustment: Adjustment; + climb_rate: number; + digits: number; + numeric: boolean; + snap_to_ticks: boolean; + update_policy: SpinButtonUpdatePolicy; + value: number; + wrap: boolean; + } +} +export class SpinButton extends Entry implements Atk.ImplementorIface, Buildable, CellEditable, Editable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + adjustment: Adjustment; + climb_rate: number; + digits: number; + numeric: boolean; + snap_to_ticks: boolean; + update_policy: SpinButtonUpdatePolicy; + value: number; + wrap: boolean; + // Fields + entry: Entry; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'change-value', callback: (_source: this, scroll: ScrollType) => void): number; + connect_after(signal: 'change-value', callback: (_source: this, scroll: ScrollType) => void): number; + emit(signal: 'change-value', scroll: ScrollType): void; + connect(signal: 'input', callback: (_source: this, new_value: number) => number): number; + connect_after(signal: 'input', callback: (_source: this, new_value: number) => number): number; + emit(signal: 'input', new_value: number): void; + connect(signal: 'output', callback: (_source: this) => boolean): number; + connect_after(signal: 'output', callback: (_source: this) => boolean): number; + emit(signal: 'output'): void; + connect(signal: 'value-changed', callback: (_source: this) => void): number; + connect_after(signal: 'value-changed', callback: (_source: this) => void): number; + emit(signal: 'value-changed'): void; + connect(signal: 'wrapped', callback: (_source: this) => void): number; + connect_after(signal: 'wrapped', callback: (_source: this) => void): number; + emit(signal: 'wrapped'): void; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](adjustment: Adjustment | null, climb_rate: number, digits: number): SpinButton; + static ["new"](...args: never[]): never; + static new_with_range(min: number, max: number, step: number): SpinButton; + // Members + configure(adjustment: Adjustment | null, climb_rate: number, digits: number): void; + get_adjustment(): Adjustment; + get_digits(): number; + get_increments(): [number | null, number | null]; + get_numeric(): boolean; + get_range(): [number | null, number | null]; + get_snap_to_ticks(): boolean; + get_update_policy(): SpinButtonUpdatePolicy; + get_value(): number; + get_value_as_int(): number; + get_wrap(): boolean; + set_adjustment(adjustment: Adjustment): void; + set_digits(digits: number): void; + set_increments(step: number, page: number): void; + set_numeric(numeric: boolean): void; + set_range(min: number, max: number): void; + set_snap_to_ticks(snap_to_ticks: boolean): void; + set_update_policy(policy: SpinButtonUpdatePolicy): void; + set_value(value: number): void; + set_wrap(wrap: boolean): void; + spin(direction: SpinType, increment: number): void; + update(): void; + vfunc_change_value(scroll: ScrollType): void; + vfunc_input(new_value: number): number; + vfunc_output(): number; + vfunc_value_changed(): void; + vfunc_wrapped(): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module SpinButtonAccessible { + export interface ConstructorProperties extends EntryAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class SpinButtonAccessible extends EntryAccessible implements Atk.Action, Atk.Component, Atk.EditableText, Atk.Text, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: SpinButtonAccessiblePrivate | any; + // Implemented Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Atk.Range | null; + get_sub_ranges(): string[]; + get_value_and_text(): [number, string | null]; + set_current_value(value: GObject.Value): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Atk.Range | null; + vfunc_get_sub_ranges(): string[]; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_value(new_value: number): void; +} +export module Spinner { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + active: boolean; + } +} +export class Spinner extends Widget implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + // Constructors + static ["new"](): Spinner; + // Members + start(): void; + stop(): void; +} +export module SpinnerAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class SpinnerAccessible extends WidgetAccessible implements Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: SpinnerAccessiblePrivate | any; + // Implemented Members + get_image_description(): string; + get_image_locale(): string | null; + get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_image_size(): [number | null, number | null]; + set_image_description(description: string): boolean; + vfunc_get_image_description(): string; + vfunc_get_image_locale(): string | null; + vfunc_get_image_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_image_size(): [number | null, number | null]; + vfunc_set_image_description(description: string): boolean; +} +export module Stack { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + hhomogeneous: boolean; + homogeneous: boolean; + interpolate_size: boolean; + transition_duration: number; + transition_running: boolean; + transition_type: StackTransitionType; + vhomogeneous: boolean; + visible_child: Widget; + visible_child_name: string; + } +} +export class Stack extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]); + // Properties + hhomogeneous: boolean; + homogeneous: boolean; + interpolate_size: boolean; + transition_duration: number; + transition_running: boolean; + transition_type: StackTransitionType; + vhomogeneous: boolean; + visible_child: Widget; + visible_child_name: string; + // Constructors + static ["new"](): Stack; + // Members + add_named(child: Widget, name: string): void; + add_titled(child: Widget, name: string, title: string): void; + get_child_by_name(name: string): Widget | null; + get_hhomogeneous(): boolean; + get_homogeneous(): boolean; + get_interpolate_size(): boolean; + get_transition_duration(): number; + get_transition_running(): boolean; + get_transition_type(): StackTransitionType; + get_vhomogeneous(): boolean; + get_visible_child(): Widget | null; + get_visible_child_name(): string | null; + set_hhomogeneous(hhomogeneous: boolean): void; + set_homogeneous(homogeneous: boolean): void; + set_interpolate_size(interpolate_size: boolean): void; + set_transition_duration(duration: number): void; + set_transition_type(transition: StackTransitionType): void; + set_vhomogeneous(vhomogeneous: boolean): void; + set_visible_child(child: Widget): void; + set_visible_child_full(name: string, transition: StackTransitionType): void; + set_visible_child_name(name: string): void; +} +export module StackAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class StackAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); +} +export module StackSidebar { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + stack: Stack; + } +} +export class StackSidebar extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + stack: Stack; + // Constructors + static ["new"](): StackSidebar; + // Members + get_stack(): Stack | null; + set_stack(stack: Stack): void; +} +export module StackSwitcher { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + icon_size: number; + stack: Stack; + } +} +export class StackSwitcher extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + icon_size: number; + stack: Stack; + // Fields + widget: Box | any; + // Constructors + static ["new"](): StackSwitcher; + static ["new"](...args: never[]): never; + // Members + get_stack(): Stack | null; + set_stack(stack: Stack | null): void; +} +export module StatusIcon { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + embedded: boolean; + file: string; + gicon: Gio.Icon; + has_tooltip: boolean; + icon_name: string; + orientation: Orientation; + pixbuf: GdkPixbuf.Pixbuf; + screen: Gdk.Screen; + size: number; + stock: string; + storage_type: ImageType; + title: string; + tooltip_markup: string; + tooltip_text: string; + visible: boolean; + } +} +export class StatusIcon extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + embedded: boolean; + file: string; + gicon: Gio.Icon; + has_tooltip: boolean; + icon_name: string; + orientation: Orientation; + pixbuf: GdkPixbuf.Pixbuf; + screen: Gdk.Screen; + size: number; + stock: string; + storage_type: ImageType; + title: string; + tooltip_markup: string; + tooltip_text: string; + visible: boolean; + // Fields + priv: StatusIconPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'button-press-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + connect_after(signal: 'button-press-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + emit(signal: 'button-press-event', event: Gdk.EventButton): void; + connect(signal: 'button-release-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + connect_after(signal: 'button-release-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + emit(signal: 'button-release-event', event: Gdk.EventButton): void; + connect(signal: 'popup-menu', callback: (_source: this, button: number, activate_time: number) => void): number; + connect_after(signal: 'popup-menu', callback: (_source: this, button: number, activate_time: number) => void): number; + emit(signal: 'popup-menu', button: number, activate_time: number): void; + connect(signal: 'query-tooltip', callback: (_source: this, x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip) => boolean): number; + connect_after(signal: 'query-tooltip', callback: (_source: this, x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip) => boolean): number; + emit(signal: 'query-tooltip', x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip): void; + connect(signal: 'scroll-event', callback: (_source: this, event: Gdk.EventScroll) => boolean): number; + connect_after(signal: 'scroll-event', callback: (_source: this, event: Gdk.EventScroll) => boolean): number; + emit(signal: 'scroll-event', event: Gdk.EventScroll): void; + connect(signal: 'size-changed', callback: (_source: this, size: number) => boolean): number; + connect_after(signal: 'size-changed', callback: (_source: this, size: number) => boolean): number; + emit(signal: 'size-changed', size: number): void; + // Constructors + static ["new"](): StatusIcon; + static new_from_file(filename: string): StatusIcon; + static new_from_gicon(icon: Gio.Icon): StatusIcon; + static new_from_icon_name(icon_name: string): StatusIcon; + static new_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf): StatusIcon; + static new_from_stock(stock_id: string): StatusIcon; + // Members + get_geometry(): [boolean, Gdk.Screen | null, Gdk.Rectangle | null, Orientation | null]; + get_gicon(): Gio.Icon | null; + get_has_tooltip(): boolean; + get_icon_name(): string | null; + get_pixbuf(): GdkPixbuf.Pixbuf | null; + get_screen(): Gdk.Screen; + get_size(): number; + get_stock(): string | null; + get_storage_type(): ImageType; + get_title(): string; + get_tooltip_markup(): string | null; + get_tooltip_text(): string | null; + get_visible(): boolean; + get_x11_window_id(): number; + is_embedded(): boolean; + set_from_file(filename: string): void; + set_from_gicon(icon: Gio.Icon): void; + set_from_icon_name(icon_name: string): void; + set_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): void; + set_from_stock(stock_id: string): void; + set_has_tooltip(has_tooltip: boolean): void; + set_name(name: string): void; + set_screen(screen: Gdk.Screen): void; + set_title(title: string): void; + set_tooltip_markup(markup: string | null): void; + set_tooltip_text(text: string): void; + set_visible(visible: boolean): void; + vfunc_activate(): void; + vfunc_button_press_event(event: Gdk.EventButton): boolean; + vfunc_button_release_event(event: Gdk.EventButton): boolean; + vfunc_popup_menu(button: number, activate_time: number): void; + vfunc_query_tooltip(x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip): boolean; + vfunc_scroll_event(event: Gdk.EventScroll): boolean; + vfunc_size_changed(size: number): boolean; + static position_menu(menu: Menu, x: number, y: number): [number, number, boolean]; +} +export module Statusbar { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + } +} +export class Statusbar extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + parent_widget: Box; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'text-popped', callback: (_source: this, context_id: number, text: string) => void): number; + connect_after(signal: 'text-popped', callback: (_source: this, context_id: number, text: string) => void): number; + emit(signal: 'text-popped', context_id: number, text: string): void; + connect(signal: 'text-pushed', callback: (_source: this, context_id: number, text: string) => void): number; + connect_after(signal: 'text-pushed', callback: (_source: this, context_id: number, text: string) => void): number; + emit(signal: 'text-pushed', context_id: number, text: string): void; + // Constructors + static ["new"](): Statusbar; + static ["new"](...args: never[]): never; + // Members + get_context_id(context_description: string): number; + get_message_area(): Box; + pop(context_id: number): void; + push(context_id: number, text: string): number; + remove(context_id: number, message_id: number): void; + remove(...args: never[]): never; + remove_all(context_id: number): void; + vfunc_text_popped(context_id: number, text: string): void; + vfunc_text_pushed(context_id: number, text: string): void; +} +export module StatusbarAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class StatusbarAccessible extends ContainerAccessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: StatusbarAccessiblePrivate | any; +} +export module Style { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + context: StyleContext; + } +} +export class Style extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + context: StyleContext; + // Fields + fg: Gdk.Color[]; + bg: Gdk.Color[]; + light: Gdk.Color[]; + dark: Gdk.Color[]; + mid: Gdk.Color[]; + text: Gdk.Color[]; + base: Gdk.Color[]; + text_aa: Gdk.Color[]; + black: Gdk.Color; + white: Gdk.Color; + font_desc: Pango.FontDescription; + xthickness: number; + ythickness: number; + background: cairo.Pattern[]; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'realize', callback: (_source: this) => void): number; + connect_after(signal: 'realize', callback: (_source: this) => void): number; + emit(signal: 'realize'): void; + connect(signal: 'unrealize', callback: (_source: this) => void): number; + connect_after(signal: 'unrealize', callback: (_source: this) => void): number; + emit(signal: 'unrealize'): void; + // Constructors + static ["new"](): Style; + // Members + apply_default_background(cr: cairo.Context, window: Gdk.Window, state_type: StateType, x: number, y: number, width: number, height: number): void; + copy(): Style; + detach(): void; + get_style_property(widget_type: GType, property_name: string): GObject.Value; + has_context(): boolean; + lookup_color(color_name: string): [boolean, Gdk.Color]; + lookup_icon_set(stock_id: string): IconSet; + render_icon(source: IconSource, direction: TextDirection, state: StateType, size: number, widget: Widget | null, detail: string | null): GdkPixbuf.Pixbuf; + set_background(window: Gdk.Window, state_type: StateType): void; + vfunc_copy(src: Style): void; + vfunc_draw_arrow(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, arrow_type: ArrowType, fill: boolean, x: number, y: number, width: number, height: number): void; + vfunc_draw_box(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_box_gap(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number, gap_side: PositionType, gap_x: number, gap_width: number): void; + vfunc_draw_check(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_diamond(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_expander(cr: cairo.Context, state_type: StateType, widget: Widget, detail: string, x: number, y: number, expander_style: ExpanderStyle): void; + vfunc_draw_extension(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number, gap_side: PositionType): void; + vfunc_draw_flat_box(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_focus(cr: cairo.Context, state_type: StateType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_handle(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number, orientation: Orientation): void; + vfunc_draw_hline(cr: cairo.Context, state_type: StateType, widget: Widget, detail: string, x1: number, x2: number, y: number): void; + vfunc_draw_layout(cr: cairo.Context, state_type: StateType, use_text: boolean, widget: Widget, detail: string, x: number, y: number, layout: Pango.Layout): void; + vfunc_draw_option(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_resize_grip(cr: cairo.Context, state_type: StateType, widget: Widget, detail: string, edge: Gdk.WindowEdge, x: number, y: number, width: number, height: number): void; + vfunc_draw_shadow(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_shadow_gap(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number, gap_side: PositionType, gap_x: number, gap_width: number): void; + vfunc_draw_slider(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number, orientation: Orientation): void; + vfunc_draw_spinner(cr: cairo.Context, state_type: StateType, widget: Widget, detail: string, step: number, x: number, y: number, width: number, height: number): void; + vfunc_draw_tab(cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: string, x: number, y: number, width: number, height: number): void; + vfunc_draw_vline(cr: cairo.Context, state_type: StateType, widget: Widget, detail: string, y1_: number, y2_: number, x: number): void; + vfunc_init_from_rc(rc_style: RcStyle): void; + vfunc_realize(): void; + vfunc_render_icon(source: IconSource, direction: TextDirection, state: StateType, size: number, widget: Widget | null, detail: string | null): GdkPixbuf.Pixbuf; + vfunc_set_background(window: Gdk.Window, state_type: StateType): void; + vfunc_unrealize(): void; +} +export module StyleContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + direction: TextDirection; + paint_clock: Gdk.FrameClock; + screen: Gdk.Screen; + } +} +export class StyleContext extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + direction: TextDirection; + paint_clock: Gdk.FrameClock; + screen: Gdk.Screen; + // Fields + parent_object: GObject.Object; + priv: StyleContextPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + // Constructors + static ["new"](): StyleContext; + // Members + add_class(class_name: string): void; + add_provider(provider: StyleProvider, priority: number): void; + add_region(region_name: string, flags: RegionFlags): void; + cancel_animations(region_id: any | null): void; + get_background_color(state: StateFlags): Gdk.RGBA; + get_border(state: StateFlags): Border; + get_border_color(state: StateFlags): Gdk.RGBA; + get_color(state: StateFlags): Gdk.RGBA; + get_direction(): TextDirection; + get_font(state: StateFlags): Pango.FontDescription; + get_frame_clock(): Gdk.FrameClock | null; + get_junction_sides(): JunctionSides; + get_margin(state: StateFlags): Border; + get_padding(state: StateFlags): Border; + get_parent(): StyleContext | null; + get_path(): WidgetPath; + get_property(property: string, state: StateFlags): GObject.Value; + get_property(...args: never[]): never; + get_scale(): number; + get_screen(): Gdk.Screen; + get_section(property: string): CssSection | null; + get_state(): StateFlags; + get_style_property(property_name: string, value: GObject.Value): void; + has_class(class_name: string): boolean; + has_region(region_name: string): [boolean, RegionFlags | null]; + invalidate(): void; + list_classes(): GLib.List; + list_regions(): GLib.List; + lookup_color(color_name: string): [boolean, Gdk.RGBA]; + lookup_icon_set(stock_id: string): IconSet | null; + notify_state_change(window: Gdk.Window, region_id: any | null, state: StateType, state_value: boolean): void; + pop_animatable_region(): void; + push_animatable_region(region_id: any | null): void; + remove_class(class_name: string): void; + remove_provider(provider: StyleProvider): void; + remove_region(region_name: string): void; + restore(): void; + save(): void; + scroll_animations(window: Gdk.Window, dx: number, dy: number): void; + set_background(window: Gdk.Window): void; + set_direction(direction: TextDirection): void; + set_frame_clock(frame_clock: Gdk.FrameClock): void; + set_junction_sides(sides: JunctionSides): void; + set_parent(parent: StyleContext | null): void; + set_path(path: WidgetPath): void; + set_scale(scale: number): void; + set_screen(screen: Gdk.Screen): void; + set_state(flags: StateFlags): void; + state_is_running(state: StateType): [boolean, number]; + to_string(flags: StyleContextPrintFlags): string; + vfunc_changed(): void; + static add_provider_for_screen(screen: Gdk.Screen, provider: StyleProvider, priority: number): void; + static remove_provider_for_screen(screen: Gdk.Screen, provider: StyleProvider): void; + static reset_widgets(screen: Gdk.Screen): void; +} +export module StyleProperties { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class StyleProperties extends GObject.Object implements StyleProvider { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): StyleProperties; + // Members + clear(): void; + get_property(property: string, state: StateFlags): [boolean, GObject.Value]; + get_property(...args: never[]): never; + lookup_color(name: string): SymbolicColor; + map_color(name: string, color: SymbolicColor): void; + merge(props_to_merge: StyleProperties, replace: boolean): void; + set_property(property: string, state: StateFlags, value: GObject.Value): void; + set_property(...args: never[]): never; + unset_property(property: string, state: StateFlags): void; + // Implemented Members + get_icon_factory(path: WidgetPath): IconFactory | null; + get_style(path: WidgetPath): StyleProperties | null; + get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; + vfunc_get_icon_factory(path: WidgetPath): IconFactory | null; + vfunc_get_style(path: WidgetPath): this; + vfunc_get_style(...args: never[]): never; + vfunc_get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; +} +export module Switch { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + active: boolean; + state: boolean; + } +} +export class Switch extends Widget implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + state: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'state-set', callback: (_source: this, state: boolean) => boolean): number; + connect_after(signal: 'state-set', callback: (_source: this, state: boolean) => boolean): number; + emit(signal: 'state-set', state: boolean): void; + // Implemented Properties + action_name: string; + action_target: GLib.Variant; + related_action: Action; + use_action_appearance: boolean; + // Constructors + static ["new"](): Switch; + // Members + get_active(): boolean; + get_state(): boolean; + get_state(...args: never[]): never; + set_active(is_active: boolean): void; + set_state(state: boolean): void; + set_state(...args: never[]): never; + vfunc_activate(): void; + vfunc_state_set(state: boolean): boolean; + // Implemented Members + get_action_name(): string | null; + get_action_target_value(): GLib.Variant; + set_action_name(action_name: string | null): void; + set_action_target_value(target_value: GLib.Variant | null): void; + set_detailed_action_name(detailed_action_name: string): void; + vfunc_get_action_name(): string | null; + vfunc_get_action_target_value(): GLib.Variant; + vfunc_set_action_name(action_name: string | null): void; + vfunc_set_action_target_value(target_value: GLib.Variant | null): void; + do_set_related_action(action: Action): void; + get_related_action(): Action; + get_use_action_appearance(): boolean; + set_related_action(action: Action): void; + set_use_action_appearance(use_appearance: boolean): void; + sync_action_properties(action: Action | null): void; + vfunc_sync_action_properties(action: Action | null): void; + vfunc_update(action: Action, property_name: string): void; +} +export module SwitchAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class SwitchAccessible extends WidgetAccessible implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: SwitchAccessiblePrivate | any; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; +} +export module Table { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + column_spacing: number; + homogeneous: boolean; + n_columns: number; + n_rows: number; + row_spacing: number; + } +} +export class Table extends Container implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + column_spacing: number; + homogeneous: boolean; + n_columns: number; + n_rows: number; + row_spacing: number; + // Fields + container: Container; + // Constructors + static ["new"](rows: number, columns: number, homogeneous: boolean): Table; + // Members + attach(child: Widget, left_attach: number, right_attach: number, top_attach: number, bottom_attach: number, xoptions: AttachOptions, yoptions: AttachOptions, xpadding: number, ypadding: number): void; + attach_defaults(widget: Widget, left_attach: number, right_attach: number, top_attach: number, bottom_attach: number): void; + get_col_spacing(column: number): number; + get_default_col_spacing(): number; + get_default_row_spacing(): number; + get_homogeneous(): boolean; + get_row_spacing(row: number): number; + get_size(): [number | null, number | null]; + resize(rows: number, columns: number): void; + set_col_spacing(column: number, spacing: number): void; + set_col_spacings(spacing: number): void; + set_homogeneous(homogeneous: boolean): void; + set_row_spacing(row: number, spacing: number): void; + set_row_spacings(spacing: number): void; +} +export module TearoffMenuItem { + export interface ConstructorProperties extends MenuItem.ConstructorProperties { + [key: string]: any; + } +} +export class TearoffMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + menu_item: MenuItem; + // Constructors + static ["new"](): TearoffMenuItem; + static ["new"](...args: never[]): never; +} +export module TextBuffer { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + copy_target_list: TargetList; + cursor_position: number; + has_selection: boolean; + paste_target_list: TargetList; + tag_table: TextTagTable; + text: string; + } +} +export class TextBuffer extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + copy_target_list: TargetList; + cursor_position: number; + has_selection: boolean; + paste_target_list: TargetList; + tag_table: TextTagTable; + text: string; + // Fields + priv: TextBufferPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'apply-tag', callback: (_source: this, tag: TextTag, start: TextIter, end: TextIter) => void): number; + connect_after(signal: 'apply-tag', callback: (_source: this, tag: TextTag, start: TextIter, end: TextIter) => void): number; + emit(signal: 'apply-tag', tag: TextTag, start: TextIter, end: TextIter): void; + connect(signal: 'begin-user-action', callback: (_source: this) => void): number; + connect_after(signal: 'begin-user-action', callback: (_source: this) => void): number; + emit(signal: 'begin-user-action'): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + connect(signal: 'delete-range', callback: (_source: this, start: TextIter, end: TextIter) => void): number; + connect_after(signal: 'delete-range', callback: (_source: this, start: TextIter, end: TextIter) => void): number; + emit(signal: 'delete-range', start: TextIter, end: TextIter): void; + connect(signal: 'end-user-action', callback: (_source: this) => void): number; + connect_after(signal: 'end-user-action', callback: (_source: this) => void): number; + emit(signal: 'end-user-action'): void; + connect(signal: 'insert-child-anchor', callback: (_source: this, location: TextIter, anchor: TextChildAnchor) => void): number; + connect_after(signal: 'insert-child-anchor', callback: (_source: this, location: TextIter, anchor: TextChildAnchor) => void): number; + emit(signal: 'insert-child-anchor', location: TextIter, anchor: TextChildAnchor): void; + connect(signal: 'insert-pixbuf', callback: (_source: this, location: TextIter, pixbuf: GdkPixbuf.Pixbuf) => void): number; + connect_after(signal: 'insert-pixbuf', callback: (_source: this, location: TextIter, pixbuf: GdkPixbuf.Pixbuf) => void): number; + emit(signal: 'insert-pixbuf', location: TextIter, pixbuf: GdkPixbuf.Pixbuf): void; + connect(signal: 'insert-text', callback: (_source: this, location: TextIter, text: string, len: number) => void): number; + connect_after(signal: 'insert-text', callback: (_source: this, location: TextIter, text: string, len: number) => void): number; + emit(signal: 'insert-text', location: TextIter, text: string, len: number): void; + connect(signal: 'mark-deleted', callback: (_source: this, mark: TextMark) => void): number; + connect_after(signal: 'mark-deleted', callback: (_source: this, mark: TextMark) => void): number; + emit(signal: 'mark-deleted', mark: TextMark): void; + connect(signal: 'mark-set', callback: (_source: this, location: TextIter, mark: TextMark) => void): number; + connect_after(signal: 'mark-set', callback: (_source: this, location: TextIter, mark: TextMark) => void): number; + emit(signal: 'mark-set', location: TextIter, mark: TextMark): void; + connect(signal: 'modified-changed', callback: (_source: this) => void): number; + connect_after(signal: 'modified-changed', callback: (_source: this) => void): number; + emit(signal: 'modified-changed'): void; + connect(signal: 'paste-done', callback: (_source: this, clipboard: Clipboard) => void): number; + connect_after(signal: 'paste-done', callback: (_source: this, clipboard: Clipboard) => void): number; + emit(signal: 'paste-done', clipboard: Clipboard): void; + connect(signal: 'remove-tag', callback: (_source: this, tag: TextTag, start: TextIter, end: TextIter) => void): number; + connect_after(signal: 'remove-tag', callback: (_source: this, tag: TextTag, start: TextIter, end: TextIter) => void): number; + emit(signal: 'remove-tag', tag: TextTag, start: TextIter, end: TextIter): void; + // Constructors + static ["new"](table: TextTagTable | null): TextBuffer; + // Members + add_mark(mark: TextMark, where: TextIter): void; + add_selection_clipboard(clipboard: Clipboard): void; + apply_tag(tag: TextTag, start: TextIter, end: TextIter): void; + apply_tag_by_name(name: string, start: TextIter, end: TextIter): void; + backspace(iter: TextIter, interactive: boolean, default_editable: boolean): boolean; + begin_user_action(): void; + copy_clipboard(clipboard: Clipboard): void; + create_child_anchor(iter: TextIter): TextChildAnchor; + create_mark(mark_name: string | null, where: TextIter, left_gravity: boolean): TextMark; + cut_clipboard(clipboard: Clipboard, default_editable: boolean): void; + ["delete"](start: TextIter, end: TextIter): void; + delete_interactive(start_iter: TextIter, end_iter: TextIter, default_editable: boolean): boolean; + delete_mark(mark: TextMark): void; + delete_mark_by_name(name: string): void; + delete_selection(interactive: boolean, default_editable: boolean): boolean; + deserialize(content_buffer: TextBuffer, format: Gdk.Atom, iter: TextIter, data: number[]): boolean; + deserialize_get_can_create_tags(format: Gdk.Atom): boolean; + deserialize_set_can_create_tags(format: Gdk.Atom, can_create_tags: boolean): void; + end_user_action(): void; + get_bounds(): [TextIter, TextIter]; + get_char_count(): number; + get_copy_target_list(): TargetList; + get_deserialize_formats(): [Gdk.Atom[], number]; + get_end_iter(): TextIter; + get_has_selection(): boolean; + get_insert(): TextMark; + get_iter_at_child_anchor(anchor: TextChildAnchor): TextIter; + get_iter_at_line(line_number: number): TextIter; + get_iter_at_line_index(line_number: number, byte_index: number): TextIter; + get_iter_at_line_offset(line_number: number, char_offset: number): TextIter; + get_iter_at_mark(mark: TextMark): TextIter; + get_iter_at_offset(char_offset: number): TextIter; + get_line_count(): number; + get_mark(name: string): TextMark | null; + get_modified(): boolean; + get_paste_target_list(): TargetList; + get_selection_bound(): TextMark; + get_selection_bounds(): [boolean, TextIter, TextIter]; + get_serialize_formats(): [Gdk.Atom[], number]; + get_slice(start: TextIter, end: TextIter, include_hidden_chars: boolean): string; + get_start_iter(): TextIter; + get_tag_table(): TextTagTable; + get_text(start: TextIter, end: TextIter, include_hidden_chars: boolean): string; + insert(iter: TextIter, text: string, len: number): void; + insert_at_cursor(text: string, len: number): void; + insert_child_anchor(iter: TextIter, anchor: TextChildAnchor): void; + insert_interactive(iter: TextIter, text: string, len: number, default_editable: boolean): boolean; + insert_interactive_at_cursor(text: string, len: number, default_editable: boolean): boolean; + insert_markup(iter: TextIter, markup: string, len: number): void; + insert_pixbuf(iter: TextIter, pixbuf: GdkPixbuf.Pixbuf): void; + insert_range(iter: TextIter, start: TextIter, end: TextIter): void; + insert_range_interactive(iter: TextIter, start: TextIter, end: TextIter, default_editable: boolean): boolean; + move_mark(mark: TextMark, where: TextIter): void; + move_mark_by_name(name: string, where: TextIter): void; + paste_clipboard(clipboard: Clipboard, override_location: TextIter | null, default_editable: boolean): void; + place_cursor(where: TextIter): void; + register_deserialize_format(mime_type: string, _function: TextBufferDeserializeFunc, user_data_destroy: GLib.DestroyNotify): Gdk.Atom; + register_deserialize_tagset(tagset_name: string | null): Gdk.Atom; + register_serialize_format(mime_type: string, _function: TextBufferSerializeFunc, user_data_destroy: GLib.DestroyNotify): Gdk.Atom; + register_serialize_tagset(tagset_name: string | null): Gdk.Atom; + remove_all_tags(start: TextIter, end: TextIter): void; + remove_selection_clipboard(clipboard: Clipboard): void; + remove_tag(tag: TextTag, start: TextIter, end: TextIter): void; + remove_tag_by_name(name: string, start: TextIter, end: TextIter): void; + select_range(ins: TextIter, bound: TextIter): void; + serialize(content_buffer: TextBuffer, format: Gdk.Atom, start: TextIter, end: TextIter): [number[], number]; + set_modified(setting: boolean): void; + set_text(text: string, len: number): void; + unregister_deserialize_format(format: Gdk.Atom): void; + unregister_serialize_format(format: Gdk.Atom): void; + vfunc_apply_tag(tag: TextTag, start: TextIter, end: TextIter): void; + vfunc_begin_user_action(): void; + vfunc_changed(): void; + vfunc_delete_range(start: TextIter, end: TextIter): void; + vfunc_end_user_action(): void; + vfunc_insert_child_anchor(iter: TextIter, anchor: TextChildAnchor): void; + vfunc_insert_pixbuf(iter: TextIter, pixbuf: GdkPixbuf.Pixbuf): void; + vfunc_insert_text(pos: TextIter, new_text: string, new_text_length: number): void; + vfunc_mark_deleted(mark: TextMark): void; + vfunc_mark_set(location: TextIter, mark: TextMark): void; + vfunc_modified_changed(): void; + vfunc_paste_done(clipboard: Clipboard): void; + vfunc_remove_tag(tag: TextTag, start: TextIter, end: TextIter): void; +} +export module TextCellAccessible { + export interface ConstructorProperties extends RendererCellAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class TextCellAccessible extends RendererCellAccessible implements Atk.Action, Atk.Component, Atk.TableCell, Atk.Text { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: TextCellAccessiblePrivate | any; + // Implemented Members + add_selection(start_offset: number, end_offset: number): boolean; + get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + get_caret_offset(): number; + get_character_at_offset(offset: number): number; + get_character_count(): number; + get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_default_attributes(): Atk.AttributeSet; + get_n_selections(): number; + get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + get_selection(selection_num: number): [string, number, number]; + get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + get_text(start_offset: number, end_offset: number): string; + get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + remove_selection(selection_num: number): boolean; + scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + set_caret_offset(offset: number): boolean; + set_selection(selection_num: number, start_offset: number, end_offset: number): boolean; + vfunc_add_selection(start_offset: number, end_offset: number): boolean; + vfunc_get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + vfunc_get_caret_offset(): number; + vfunc_get_character_at_offset(offset: number): number; + vfunc_get_character_count(): number; + vfunc_get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_default_attributes(): Atk.AttributeSet; + vfunc_get_n_selections(): number; + vfunc_get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + vfunc_get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + vfunc_get_selection(selection_num: number): [string, number, number]; + vfunc_get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + vfunc_get_text(start_offset: number, end_offset: number): string; + vfunc_get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_remove_selection(selection_num: number): boolean; + vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_caret_offset(offset: number): boolean; + 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; +} +export module TextChildAnchor { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class TextChildAnchor extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Constructors + static ["new"](): TextChildAnchor; + // Members + get_deleted(): boolean; + get_widgets(): GLib.List; +} +export module TextMark { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + left_gravity: boolean; + name: string; + } +} +export class TextMark extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + left_gravity: boolean; + name: string; + // Constructors + static ["new"](name: string | null, left_gravity: boolean): TextMark; + // Members + get_buffer(): TextBuffer; + get_deleted(): boolean; + get_left_gravity(): boolean; + get_name(): string | null; + get_visible(): boolean; + set_visible(setting: boolean): void; +} +export module TextTag { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + accumulative_margin: boolean; + background: string; + background_full_height: boolean; + background_full_height_set: boolean; + background_gdk: Gdk.Color; + background_rgba: Gdk.RGBA; + background_set: boolean; + direction: TextDirection; + editable: boolean; + editable_set: boolean; + fallback: boolean; + fallback_set: boolean; + family: string; + family_set: boolean; + font: string; + font_desc: Pango.FontDescription; + font_features: string; + font_features_set: boolean; + foreground: string; + foreground_gdk: Gdk.Color; + foreground_rgba: Gdk.RGBA; + foreground_set: boolean; + indent: number; + indent_set: boolean; + invisible: boolean; + invisible_set: boolean; + justification: Justification; + justification_set: boolean; + language: string; + language_set: boolean; + left_margin: number; + left_margin_set: boolean; + letter_spacing: number; + letter_spacing_set: boolean; + name: string; + paragraph_background: string; + paragraph_background_gdk: Gdk.Color; + paragraph_background_rgba: Gdk.RGBA; + paragraph_background_set: boolean; + pixels_above_lines: number; + pixels_above_lines_set: boolean; + pixels_below_lines: number; + pixels_below_lines_set: boolean; + pixels_inside_wrap: number; + pixels_inside_wrap_set: boolean; + right_margin: number; + right_margin_set: boolean; + rise: number; + rise_set: boolean; + scale: number; + scale_set: boolean; + size: number; + size_points: number; + size_set: boolean; + stretch: Pango.Stretch; + stretch_set: boolean; + strikethrough: boolean; + strikethrough_rgba: Gdk.RGBA; + strikethrough_rgba_set: boolean; + strikethrough_set: boolean; + style: Pango.Style; + style_set: boolean; + tabs: Pango.TabArray; + tabs_set: boolean; + underline: Pango.Underline; + underline_rgba: Gdk.RGBA; + underline_rgba_set: boolean; + underline_set: boolean; + variant: Pango.Variant; + variant_set: boolean; + weight: number; + weight_set: boolean; + wrap_mode: WrapMode; + wrap_mode_set: boolean; + } +} +export class TextTag extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accumulative_margin: boolean; + background: string; + background_full_height: boolean; + background_full_height_set: boolean; + background_gdk: Gdk.Color; + background_rgba: Gdk.RGBA; + background_set: boolean; + direction: TextDirection; + editable: boolean; + editable_set: boolean; + fallback: boolean; + fallback_set: boolean; + family: string; + family_set: boolean; + font: string; + font_desc: Pango.FontDescription; + font_features: string; + font_features_set: boolean; + foreground: string; + foreground_gdk: Gdk.Color; + foreground_rgba: Gdk.RGBA; + foreground_set: boolean; + indent: number; + indent_set: boolean; + invisible: boolean; + invisible_set: boolean; + justification: Justification; + justification_set: boolean; + language: string; + language_set: boolean; + left_margin: number; + left_margin_set: boolean; + letter_spacing: number; + letter_spacing_set: boolean; + name: string; + paragraph_background: string; + paragraph_background_gdk: Gdk.Color; + paragraph_background_rgba: Gdk.RGBA; + paragraph_background_set: boolean; + pixels_above_lines: number; + pixels_above_lines_set: boolean; + pixels_below_lines: number; + pixels_below_lines_set: boolean; + pixels_inside_wrap: number; + pixels_inside_wrap_set: boolean; + right_margin: number; + right_margin_set: boolean; + rise: number; + rise_set: boolean; + scale: number; + scale_set: boolean; + size: number; + size_points: number; + size_set: boolean; + stretch: Pango.Stretch; + stretch_set: boolean; + strikethrough: boolean; + strikethrough_rgba: Gdk.RGBA; + strikethrough_rgba_set: boolean; + strikethrough_set: boolean; + style: Pango.Style; + style_set: boolean; + tabs: Pango.TabArray; + tabs_set: boolean; + underline: Pango.Underline; + underline_rgba: Gdk.RGBA; + underline_rgba_set: boolean; + underline_set: boolean; + variant: Pango.Variant; + variant_set: boolean; + weight: number; + weight_set: boolean; + wrap_mode: WrapMode; + wrap_mode_set: boolean; + // Fields + priv: TextTagPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'event', callback: (_source: this, object: GObject.Object, event: Gdk.Event, iter: TextIter) => boolean): number; + connect_after(signal: 'event', callback: (_source: this, object: GObject.Object, event: Gdk.Event, iter: TextIter) => boolean): number; + emit(signal: 'event', object: GObject.Object, event: Gdk.Event, iter: TextIter): void; + // Constructors + static ["new"](name: string | null): TextTag; + // Members + changed(size_changed: boolean): void; + event(event_object: GObject.Object, event: Gdk.Event, iter: TextIter): boolean; + get_priority(): number; + set_priority(priority: number): void; + vfunc_event(event_object: GObject.Object, event: Gdk.Event, iter: TextIter): boolean; +} +export module TextTagTable { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class TextTagTable extends GObject.Object implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: TextTagTablePrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'tag-added', callback: (_source: this, tag: TextTag) => void): number; + connect_after(signal: 'tag-added', callback: (_source: this, tag: TextTag) => void): number; + emit(signal: 'tag-added', tag: TextTag): void; + connect(signal: 'tag-changed', callback: (_source: this, tag: TextTag, size_changed: boolean) => void): number; + connect_after(signal: 'tag-changed', callback: (_source: this, tag: TextTag, size_changed: boolean) => void): number; + emit(signal: 'tag-changed', tag: TextTag, size_changed: boolean): void; + connect(signal: 'tag-removed', callback: (_source: this, tag: TextTag) => void): number; + connect_after(signal: 'tag-removed', callback: (_source: this, tag: TextTag) => void): number; + emit(signal: 'tag-removed', tag: TextTag): void; + // Constructors + static ["new"](): TextTagTable; + // Members + add(tag: TextTag): boolean; + foreach(func: TextTagTableForeach, data: any | null): void; + get_size(): number; + lookup(name: string): TextTag | null; + remove(tag: TextTag): void; + vfunc_tag_added(tag: TextTag): void; + vfunc_tag_changed(tag: TextTag, size_changed: boolean): void; + vfunc_tag_removed(tag: TextTag): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module TextView { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + accepts_tab: boolean; + bottom_margin: number; + buffer: TextBuffer; + cursor_visible: boolean; + editable: boolean; + im_module: string; + indent: number; + input_hints: InputHints; + input_purpose: InputPurpose; + justification: Justification; + left_margin: number; + monospace: boolean; + overwrite: boolean; + pixels_above_lines: number; + pixels_below_lines: number; + pixels_inside_wrap: number; + populate_all: boolean; + right_margin: number; + tabs: Pango.TabArray; + top_margin: number; + wrap_mode: WrapMode; + } +} +export class TextView extends Container implements Atk.ImplementorIface, Buildable, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accepts_tab: boolean; + bottom_margin: number; + buffer: TextBuffer; + cursor_visible: boolean; + editable: boolean; + im_module: string; + indent: number; + input_hints: InputHints; + input_purpose: InputPurpose; + justification: Justification; + left_margin: number; + monospace: boolean; + overwrite: boolean; + pixels_above_lines: number; + pixels_below_lines: number; + pixels_inside_wrap: number; + populate_all: boolean; + right_margin: number; + tabs: Pango.TabArray; + top_margin: number; + wrap_mode: WrapMode; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'backspace', callback: (_source: this) => void): number; + connect_after(signal: 'backspace', callback: (_source: this) => void): number; + emit(signal: 'backspace'): void; + connect(signal: 'copy-clipboard', callback: (_source: this) => void): number; + connect_after(signal: 'copy-clipboard', callback: (_source: this) => void): number; + emit(signal: 'copy-clipboard'): void; + connect(signal: 'cut-clipboard', callback: (_source: this) => void): number; + connect_after(signal: 'cut-clipboard', callback: (_source: this) => void): number; + emit(signal: 'cut-clipboard'): void; + connect(signal: 'delete-from-cursor', callback: (_source: this, type: DeleteType, count: number) => void): number; + connect_after(signal: 'delete-from-cursor', callback: (_source: this, type: DeleteType, count: number) => void): number; + emit(signal: 'delete-from-cursor', type: DeleteType, count: number): void; + connect(signal: 'extend-selection', callback: (_source: this, granularity: TextExtendSelection, location: TextIter, start: TextIter, end: TextIter) => boolean): number; + connect_after(signal: 'extend-selection', callback: (_source: this, granularity: TextExtendSelection, location: TextIter, start: TextIter, end: TextIter) => boolean): number; + emit(signal: 'extend-selection', granularity: TextExtendSelection, location: TextIter, start: TextIter, end: TextIter): void; + connect(signal: 'insert-at-cursor', callback: (_source: this, string: string) => void): number; + connect_after(signal: 'insert-at-cursor', callback: (_source: this, string: string) => void): number; + emit(signal: 'insert-at-cursor', string: string): void; + connect(signal: 'insert-emoji', callback: (_source: this) => void): number; + connect_after(signal: 'insert-emoji', callback: (_source: this) => void): number; + emit(signal: 'insert-emoji'): void; + connect(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number, extend_selection: boolean) => void): number; + connect_after(signal: 'move-cursor', callback: (_source: this, step: MovementStep, count: number, extend_selection: boolean) => void): number; + emit(signal: 'move-cursor', step: MovementStep, count: number, extend_selection: boolean): void; + connect(signal: 'move-viewport', callback: (_source: this, step: ScrollStep, count: number) => void): number; + connect_after(signal: 'move-viewport', callback: (_source: this, step: ScrollStep, count: number) => void): number; + emit(signal: 'move-viewport', step: ScrollStep, count: number): void; + connect(signal: 'paste-clipboard', callback: (_source: this) => void): number; + connect_after(signal: 'paste-clipboard', callback: (_source: this) => void): number; + emit(signal: 'paste-clipboard'): void; + connect(signal: 'populate-popup', callback: (_source: this, popup: Widget) => void): number; + connect_after(signal: 'populate-popup', callback: (_source: this, popup: Widget) => void): number; + emit(signal: 'populate-popup', popup: Widget): void; + connect(signal: 'preedit-changed', callback: (_source: this, preedit: string) => void): number; + connect_after(signal: 'preedit-changed', callback: (_source: this, preedit: string) => void): number; + emit(signal: 'preedit-changed', preedit: string): void; + connect(signal: 'select-all', callback: (_source: this, select: boolean) => void): number; + connect_after(signal: 'select-all', callback: (_source: this, select: boolean) => void): number; + emit(signal: 'select-all', select: boolean): void; + connect(signal: 'set-anchor', callback: (_source: this) => void): number; + connect_after(signal: 'set-anchor', callback: (_source: this) => void): number; + emit(signal: 'set-anchor'): void; + connect(signal: 'toggle-cursor-visible', callback: (_source: this) => void): number; + connect_after(signal: 'toggle-cursor-visible', callback: (_source: this) => void): number; + emit(signal: 'toggle-cursor-visible'): void; + connect(signal: 'toggle-overwrite', callback: (_source: this) => void): number; + connect_after(signal: 'toggle-overwrite', callback: (_source: this) => void): number; + emit(signal: 'toggle-overwrite'): void; + // Implemented Properties + hadjustment: Adjustment; + hscroll_policy: ScrollablePolicy; + vadjustment: Adjustment; + vscroll_policy: ScrollablePolicy; + // Constructors + static ["new"](): TextView; + static new_with_buffer(buffer: TextBuffer): TextView; + // Members + add_child_at_anchor(child: Widget, anchor: TextChildAnchor): void; + add_child_in_window(child: Widget, which_window: TextWindowType, xpos: number, ypos: number): void; + backward_display_line(iter: TextIter): boolean; + backward_display_line_start(iter: TextIter): boolean; + buffer_to_window_coords(win: TextWindowType, buffer_x: number, buffer_y: number): [number | null, number | null]; + forward_display_line(iter: TextIter): boolean; + forward_display_line_end(iter: TextIter): boolean; + get_accepts_tab(): boolean; + get_border_window_size(type: TextWindowType): number; + get_bottom_margin(): number; + get_buffer(): TextBuffer; + get_cursor_locations(iter: TextIter | null): [Gdk.Rectangle | null, Gdk.Rectangle | null]; + get_cursor_visible(): boolean; + get_default_attributes(): TextAttributes; + get_editable(): boolean; + get_hadjustment(): Adjustment; + get_indent(): number; + get_input_hints(): InputHints; + get_input_purpose(): InputPurpose; + get_iter_at_location(x: number, y: number): [boolean, TextIter]; + get_iter_at_position(x: number, y: number): [boolean, TextIter, number | null]; + get_iter_location(iter: TextIter): Gdk.Rectangle; + get_justification(): Justification; + get_left_margin(): number; + get_line_at_y(y: number): [TextIter, number]; + get_line_yrange(iter: TextIter): [number, number]; + get_monospace(): boolean; + get_overwrite(): boolean; + get_pixels_above_lines(): number; + get_pixels_below_lines(): number; + get_pixels_inside_wrap(): number; + get_right_margin(): number; + get_tabs(): Pango.TabArray | null; + get_top_margin(): number; + get_vadjustment(): Adjustment; + get_visible_rect(): Gdk.Rectangle; + get_window(win: TextWindowType): Gdk.Window | null; + get_window(...args: never[]): never; + get_window_type(window: Gdk.Window): TextWindowType; + get_wrap_mode(): WrapMode; + im_context_filter_keypress(event: Gdk.EventKey): boolean; + move_child(child: Widget, xpos: number, ypos: number): void; + move_mark_onscreen(mark: TextMark): boolean; + move_visually(iter: TextIter, count: number): boolean; + place_cursor_onscreen(): boolean; + reset_cursor_blink(): void; + reset_im_context(): void; + scroll_mark_onscreen(mark: TextMark): void; + scroll_to_iter(iter: TextIter, within_margin: number, use_align: boolean, xalign: number, yalign: number): boolean; + scroll_to_mark(mark: TextMark, within_margin: number, use_align: boolean, xalign: number, yalign: number): void; + set_accepts_tab(accepts_tab: boolean): void; + set_border_window_size(type: TextWindowType, size: number): void; + set_bottom_margin(bottom_margin: number): void; + set_buffer(buffer: TextBuffer | null): void; + set_cursor_visible(setting: boolean): void; + set_editable(setting: boolean): void; + set_indent(indent: number): void; + set_input_hints(hints: InputHints): void; + set_input_purpose(purpose: InputPurpose): void; + set_justification(justification: Justification): void; + set_left_margin(left_margin: number): void; + set_monospace(monospace: boolean): void; + set_overwrite(overwrite: boolean): void; + set_pixels_above_lines(pixels_above_lines: number): void; + set_pixels_below_lines(pixels_below_lines: number): void; + set_pixels_inside_wrap(pixels_inside_wrap: number): void; + set_right_margin(right_margin: number): void; + set_tabs(tabs: Pango.TabArray): void; + set_top_margin(top_margin: number): void; + set_wrap_mode(wrap_mode: WrapMode): void; + starts_display_line(iter: TextIter): boolean; + window_to_buffer_coords(win: TextWindowType, window_x: number, window_y: number): [number | null, number | null]; + vfunc_backspace(): void; + vfunc_copy_clipboard(): void; + vfunc_cut_clipboard(): void; + vfunc_delete_from_cursor(type: DeleteType, count: number): void; + vfunc_draw_layer(layer: TextViewLayer, cr: cairo.Context): void; + vfunc_extend_selection(granularity: TextExtendSelection, location: TextIter, start: TextIter, end: TextIter): boolean; + vfunc_insert_at_cursor(str: string): void; + vfunc_insert_emoji(): void; + vfunc_move_cursor(step: MovementStep, count: number, extend_selection: boolean): void; + vfunc_paste_clipboard(): void; + vfunc_populate_popup(popup: Widget): void; + vfunc_set_anchor(): void; + vfunc_toggle_overwrite(): void; + // Implemented Members + get_border(): [boolean, Border]; + get_hscroll_policy(): ScrollablePolicy; + get_vscroll_policy(): ScrollablePolicy; + set_hadjustment(hadjustment: Adjustment | null): void; + set_hscroll_policy(policy: ScrollablePolicy): void; + set_vadjustment(vadjustment: Adjustment | null): void; + set_vscroll_policy(policy: ScrollablePolicy): void; + vfunc_get_border(): [boolean, Border]; +} +export module TextViewAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class TextViewAccessible extends ContainerAccessible implements Atk.Component, Atk.EditableText, Atk.StreamableContent, Atk.Text { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: TextViewAccessiblePrivate | any; + // Implemented Members + copy_text(start_pos: number, end_pos: number): void; + cut_text(start_pos: number, end_pos: number): void; + delete_text(start_pos: number, end_pos: number): void; + insert_text(string: string, length: number, position: number): void; + paste_text(position: number): void; + set_run_attributes(attrib_set: Atk.AttributeSet, start_offset: number, end_offset: number): boolean; + set_text_contents(string: string): void; + vfunc_copy_text(start_pos: number, end_pos: number): void; + vfunc_cut_text(start_pos: number, end_pos: number): void; + vfunc_delete_text(start_pos: number, end_pos: number): void; + vfunc_insert_text(string: string, length: number, position: number): void; + vfunc_paste_text(position: number): void; + vfunc_set_run_attributes(attrib_set: Atk.AttributeSet, start_offset: number, end_offset: number): boolean; + vfunc_set_text_contents(string: string): void; + get_mime_type(i: number): string; + get_n_mime_types(): number; + get_stream(mime_type: string): GLib.IOChannel; + get_uri(mime_type: string): string | null; + vfunc_get_mime_type(i: number): string; + vfunc_get_n_mime_types(): number; + vfunc_get_stream(mime_type: string): GLib.IOChannel; + vfunc_get_uri(mime_type: string): string | null; + add_selection(start_offset: number, end_offset: number): boolean; + get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + get_caret_offset(): number; + get_character_at_offset(offset: number): number; + get_character_count(): number; + get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_default_attributes(): Atk.AttributeSet; + get_n_selections(): number; + get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + get_selection(selection_num: number): [string, number, number]; + get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + get_text(start_offset: number, end_offset: number): string; + get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + remove_selection(selection_num: number): boolean; + scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + set_caret_offset(offset: number): boolean; + set_selection(selection_num: number, start_offset: number, end_offset: number): boolean; + vfunc_add_selection(start_offset: number, end_offset: number): boolean; + vfunc_get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + vfunc_get_caret_offset(): number; + vfunc_get_character_at_offset(offset: number): number; + vfunc_get_character_count(): number; + vfunc_get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_default_attributes(): Atk.AttributeSet; + vfunc_get_n_selections(): number; + vfunc_get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + vfunc_get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + vfunc_get_selection(selection_num: number): [string, number, number]; + vfunc_get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + vfunc_get_text(start_offset: number, end_offset: number): string; + vfunc_get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_remove_selection(selection_num: number): boolean; + vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_caret_offset(offset: number): boolean; + 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; +} +export module ThemingEngine { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + name: string; + } +} +export class ThemingEngine extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + name: string; + // Fields + parent_object: GObject.Object; + priv: ThemingEnginePrivate; + // Members + get_background_color(state: StateFlags): Gdk.RGBA; + get_border(state: StateFlags): Border; + get_border_color(state: StateFlags): Gdk.RGBA; + get_color(state: StateFlags): Gdk.RGBA; + get_direction(): TextDirection; + get_font(state: StateFlags): Pango.FontDescription; + get_junction_sides(): JunctionSides; + get_margin(state: StateFlags): Border; + get_padding(state: StateFlags): Border; + get_path(): WidgetPath; + get_property(property: string, state: StateFlags): GObject.Value; + get_property(...args: never[]): never; + get_screen(): Gdk.Screen | null; + get_state(): StateFlags; + get_style_property(property_name: string): GObject.Value; + has_class(style_class: string): boolean; + has_region(style_region: string): [boolean, RegionFlags | null]; + lookup_color(color_name: string): [boolean, Gdk.RGBA]; + state_is_running(state: StateType): [boolean, number]; + vfunc_render_activity(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_arrow(cr: cairo.Context, angle: number, x: number, y: number, size: number): void; + vfunc_render_background(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_check(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_expander(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_extension(cr: cairo.Context, x: number, y: number, width: number, height: number, gap_side: PositionType): void; + vfunc_render_focus(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_frame(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_frame_gap(cr: cairo.Context, x: number, y: number, width: number, height: number, gap_side: PositionType, xy0_gap: number, xy1_gap: number): void; + vfunc_render_handle(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_icon(cr: cairo.Context, pixbuf: GdkPixbuf.Pixbuf, x: number, y: number): void; + vfunc_render_icon_surface(cr: cairo.Context, surface: cairo.Surface, x: number, y: number): void; + vfunc_render_layout(cr: cairo.Context, x: number, y: number, layout: Pango.Layout): void; + vfunc_render_line(cr: cairo.Context, x0: number, y0: number, x1: number, y1: number): void; + vfunc_render_option(cr: cairo.Context, x: number, y: number, width: number, height: number): void; + vfunc_render_slider(cr: cairo.Context, x: number, y: number, width: number, height: number, orientation: Orientation): void; + static load(name: string): ThemingEngine | null; +} +export module ToggleAction { + export interface ConstructorProperties extends Action.ConstructorProperties { + [key: string]: any; + active: boolean; + draw_as_radio: boolean; + } +} +export class ToggleAction extends Action implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + draw_as_radio: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'toggled', callback: (_source: this) => void): number; + connect_after(signal: 'toggled', callback: (_source: this) => void): number; + emit(signal: 'toggled'): void; + // Constructors + static ["new"](name: string, label: string | null, tooltip: string | null, stock_id: string | null): ToggleAction; + static ["new"](...args: never[]): never; + // Members + get_active(): boolean; + get_draw_as_radio(): boolean; + set_active(is_active: boolean): void; + set_draw_as_radio(draw_as_radio: boolean): void; + toggled(): void; + vfunc_toggled(): void; +} +export module ToggleButton { + export interface ConstructorProperties extends Button.ConstructorProperties { + [key: string]: any; + active: boolean; + draw_indicator: boolean; + inconsistent: boolean; + } +} +export class ToggleButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + draw_indicator: boolean; + inconsistent: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'toggled', callback: (_source: this) => void): number; + connect_after(signal: 'toggled', callback: (_source: this) => void): number; + emit(signal: 'toggled'): void; + // Constructors + static ["new"](): ToggleButton; + static ["new"](...args: never[]): never; + static new_with_label(label: string): ToggleButton; + static new_with_label(...args: never[]): never; + static new_with_mnemonic(label: string): ToggleButton; + static new_with_mnemonic(...args: never[]): never; + // Members + get_active(): boolean; + get_inconsistent(): boolean; + get_mode(): boolean; + set_active(is_active: boolean): void; + set_inconsistent(setting: boolean): void; + set_mode(draw_indicator: boolean): void; + toggled(): void; + vfunc_toggled(): void; +} +export module ToggleButtonAccessible { + export interface ConstructorProperties extends ButtonAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class ToggleButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ToggleButtonAccessiblePrivate | any; +} +export module ToggleToolButton { + export interface ConstructorProperties extends ToolButton.ConstructorProperties { + [key: string]: any; + active: boolean; + } +} +export class ToggleToolButton extends ToolButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + active: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'toggled', callback: (_source: this) => void): number; + connect_after(signal: 'toggled', callback: (_source: this) => void): number; + emit(signal: 'toggled'): void; + // Constructors + static ["new"](): ToggleToolButton; + static ["new"](...args: never[]): never; + static new_from_stock(stock_id: string): ToggleToolButton; + static new_from_stock(...args: never[]): never; + // Members + get_active(): boolean; + set_active(is_active: boolean): void; + vfunc_toggled(): void; +} +export module ToolButton { + export interface ConstructorProperties extends ToolItem.ConstructorProperties { + [key: string]: any; + icon_name: string; + icon_widget: Widget; + label: string; + label_widget: Widget; + stock_id: string; + use_underline: boolean; + } +} +export class ToolButton extends ToolItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + icon_name: string; + icon_widget: Widget; + label: string; + label_widget: Widget; + stock_id: string; + use_underline: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'clicked', callback: (_source: this) => void): number; + connect_after(signal: 'clicked', callback: (_source: this) => void): number; + emit(signal: 'clicked'): void; + // Implemented Properties + action_name: string; + action_target: GLib.Variant; + // Constructors + static ["new"](icon_widget: Widget | null, label: string | null): ToolButton; + static ["new"](...args: never[]): never; + static new_from_stock(stock_id: string): ToolButton; + // Members + get_icon_name(): string | null; + get_icon_widget(): Widget | null; + get_label(): string | null; + get_label_widget(): Widget | null; + get_stock_id(): string; + get_use_underline(): boolean; + set_icon_name(icon_name: string | null): void; + set_icon_widget(icon_widget: Widget | null): void; + set_label(label: string | null): void; + set_label_widget(label_widget: Widget | null): void; + set_stock_id(stock_id: string | null): void; + set_use_underline(use_underline: boolean): void; + vfunc_clicked(): void; + // Implemented Members + get_action_name(): string | null; + get_action_target_value(): GLib.Variant; + set_action_name(action_name: string | null): void; + set_action_target_value(target_value: GLib.Variant | null): void; + set_detailed_action_name(detailed_action_name: string): void; + vfunc_get_action_name(): string | null; + vfunc_get_action_target_value(): GLib.Variant; + vfunc_set_action_name(action_name: string | null): void; + vfunc_set_action_target_value(target_value: GLib.Variant | null): void; +} +export module ToolItem { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + is_important: boolean; + visible_horizontal: boolean; + visible_vertical: boolean; + } +} +export class ToolItem extends Bin implements Atk.ImplementorIface, Activatable, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + is_important: boolean; + visible_horizontal: boolean; + visible_vertical: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'create-menu-proxy', callback: (_source: this) => boolean): number; + connect_after(signal: 'create-menu-proxy', callback: (_source: this) => boolean): number; + emit(signal: 'create-menu-proxy'): void; + connect(signal: 'toolbar-reconfigured', callback: (_source: this) => void): number; + connect_after(signal: 'toolbar-reconfigured', callback: (_source: this) => void): number; + emit(signal: 'toolbar-reconfigured'): void; + // Implemented Properties + related_action: Action; + use_action_appearance: boolean; + // Constructors + static ["new"](): ToolItem; + // Members + get_ellipsize_mode(): Pango.EllipsizeMode; + get_expand(): boolean; + get_homogeneous(): boolean; + get_icon_size(): number; + get_is_important(): boolean; + get_orientation(): Orientation; + get_proxy_menu_item(menu_item_id: string): Widget | null; + get_relief_style(): ReliefStyle; + get_text_alignment(): number; + get_text_orientation(): Orientation; + get_text_size_group(): SizeGroup; + get_toolbar_style(): ToolbarStyle; + get_use_drag_window(): boolean; + get_visible_horizontal(): boolean; + get_visible_vertical(): boolean; + rebuild_menu(): void; + retrieve_proxy_menu_item(): Widget; + set_expand(expand: boolean): void; + set_homogeneous(homogeneous: boolean): void; + set_is_important(is_important: boolean): void; + set_proxy_menu_item(menu_item_id: string, menu_item: Widget | null): void; + set_tooltip_markup(markup: string): void; + set_tooltip_text(text: string): void; + set_use_drag_window(use_drag_window: boolean): void; + set_visible_horizontal(visible_horizontal: boolean): void; + set_visible_vertical(visible_vertical: boolean): void; + toolbar_reconfigured(): void; + vfunc_create_menu_proxy(): boolean; + vfunc_toolbar_reconfigured(): void; + // Implemented Members + do_set_related_action(action: Action): void; + get_related_action(): Action; + get_use_action_appearance(): boolean; + set_related_action(action: Action): void; + set_use_action_appearance(use_appearance: boolean): void; + sync_action_properties(action: Action | null): void; + vfunc_sync_action_properties(action: Action | null): void; + vfunc_update(action: Action, property_name: string): void; +} +export module ToolItemGroup { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + collapsed: boolean; + ellipsize: Pango.EllipsizeMode; + header_relief: ReliefStyle; + label: string; + label_widget: Widget; + } +} +export class ToolItemGroup extends Container implements Atk.ImplementorIface, Buildable, ToolShell { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + collapsed: boolean; + ellipsize: Pango.EllipsizeMode; + header_relief: ReliefStyle; + label: string; + label_widget: Widget; + // Fields + priv: ToolItemGroupPrivate; + // Constructors + static ["new"](label: string): ToolItemGroup; + // Members + get_collapsed(): boolean; + get_drop_item(x: number, y: number): ToolItem; + get_ellipsize(): Pango.EllipsizeMode; + get_header_relief(): ReliefStyle; + get_item_position(item: ToolItem): number; + get_label(): string; + get_label_widget(): Widget; + get_n_items(): number; + get_nth_item(index: number): ToolItem; + insert(item: ToolItem, position: number): void; + set_collapsed(collapsed: boolean): void; + set_ellipsize(ellipsize: Pango.EllipsizeMode): void; + set_header_relief(style: ReliefStyle): void; + set_item_position(item: ToolItem, position: number): void; + set_label(label: string): void; + set_label_widget(label_widget: Widget): void; + // Implemented Members + get_ellipsize_mode(): Pango.EllipsizeMode; + get_icon_size(): number; + get_orientation(): Orientation; + get_relief_style(): ReliefStyle; + get_style(): ToolbarStyle; + get_style(...args: never[]): never; + get_text_alignment(): number; + get_text_orientation(): Orientation; + get_text_size_group(): SizeGroup; + rebuild_menu(): void; + vfunc_get_ellipsize_mode(): Pango.EllipsizeMode; + vfunc_get_icon_size(): IconSize; + vfunc_get_orientation(): Orientation; + vfunc_get_relief_style(): ReliefStyle; + vfunc_get_style(): ToolbarStyle; + vfunc_get_text_alignment(): number; + vfunc_get_text_orientation(): Orientation; + vfunc_get_text_size_group(): SizeGroup; + vfunc_rebuild_menu(): void; +} +export module ToolPalette { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + icon_size: IconSize; + icon_size_set: boolean; + toolbar_style: ToolbarStyle; + } +} +export class ToolPalette extends Container implements Atk.ImplementorIface, Buildable, Orientable, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + icon_size: IconSize; + icon_size_set: boolean; + toolbar_style: ToolbarStyle; + // Fields + priv: ToolPalettePrivate; + // Implemented Properties + orientation: Orientation; + hadjustment: Adjustment; + hscroll_policy: ScrollablePolicy; + vadjustment: Adjustment; + vscroll_policy: ScrollablePolicy; + // Constructors + static ["new"](): ToolPalette; + // Members + add_drag_dest(widget: Widget, flags: DestDefaults, targets: ToolPaletteDragTargets, actions: Gdk.DragAction): void; + get_drag_item(selection: SelectionData): Widget; + get_drop_group(x: number, y: number): ToolItemGroup | null; + get_drop_item(x: number, y: number): ToolItem | null; + get_exclusive(group: ToolItemGroup): boolean; + get_expand(group: ToolItemGroup): boolean; + get_group_position(group: ToolItemGroup): number; + get_hadjustment(): Adjustment; + get_icon_size(): number; + get_style(): ToolbarStyle; + get_style(...args: never[]): never; + get_vadjustment(): Adjustment; + set_drag_source(targets: ToolPaletteDragTargets): void; + set_exclusive(group: ToolItemGroup, exclusive: boolean): void; + set_expand(group: ToolItemGroup, expand: boolean): void; + set_group_position(group: ToolItemGroup, position: number): void; + set_icon_size(icon_size: number): void; + set_style(style: ToolbarStyle): void; + set_style(...args: never[]): never; + unset_icon_size(): void; + unset_style(): void; + static get_drag_target_group(): TargetEntry; + static get_drag_target_item(): TargetEntry; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; + get_border(): [boolean, Border]; + get_hscroll_policy(): ScrollablePolicy; + get_vscroll_policy(): ScrollablePolicy; + set_hadjustment(hadjustment: Adjustment | null): void; + set_hscroll_policy(policy: ScrollablePolicy): void; + set_vadjustment(vadjustment: Adjustment | null): void; + set_vscroll_policy(policy: ScrollablePolicy): void; + vfunc_get_border(): [boolean, Border]; +} +export module Toolbar { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + icon_size: IconSize; + icon_size_set: boolean; + show_arrow: boolean; + toolbar_style: ToolbarStyle; + } +} +export class Toolbar extends Container implements Atk.ImplementorIface, Buildable, Orientable, ToolShell { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + icon_size: IconSize; + icon_size_set: boolean; + show_arrow: boolean; + toolbar_style: ToolbarStyle; + // Fields + container: Container; + priv: ToolbarPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'focus-home-or-end', callback: (_source: this, focus_home: boolean) => boolean): number; + connect_after(signal: 'focus-home-or-end', callback: (_source: this, focus_home: boolean) => boolean): number; + emit(signal: 'focus-home-or-end', focus_home: boolean): void; + connect(signal: 'orientation-changed', callback: (_source: this, orientation: Orientation) => void): number; + connect_after(signal: 'orientation-changed', callback: (_source: this, orientation: Orientation) => void): number; + emit(signal: 'orientation-changed', orientation: Orientation): void; + connect(signal: 'popup-context-menu', callback: (_source: this, x: number, y: number, button: number) => boolean): number; + connect_after(signal: 'popup-context-menu', callback: (_source: this, x: number, y: number, button: number) => boolean): number; + emit(signal: 'popup-context-menu', x: number, y: number, button: number): void; + connect(signal: 'style-changed', callback: (_source: this, style: ToolbarStyle) => void): number; + connect_after(signal: 'style-changed', callback: (_source: this, style: ToolbarStyle) => void): number; + emit(signal: 'style-changed', style: ToolbarStyle): void; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): Toolbar; + // Members + get_drop_index(x: number, y: number): number; + get_icon_size(): IconSize; + get_icon_size(...args: never[]): never; + get_item_index(item: ToolItem): number; + get_n_items(): number; + get_nth_item(n: number): ToolItem | null; + get_relief_style(): ReliefStyle; + get_show_arrow(): boolean; + get_style(): ToolbarStyle; + get_style(...args: never[]): never; + insert(item: ToolItem, pos: number): void; + set_drop_highlight_item(tool_item: ToolItem | null, index_: number): void; + set_icon_size(icon_size: IconSize): void; + set_show_arrow(show_arrow: boolean): void; + set_style(style: ToolbarStyle): void; + set_style(...args: never[]): never; + unset_icon_size(): void; + unset_style(): void; + vfunc_orientation_changed(orientation: Orientation): void; + vfunc_popup_context_menu(x: number, y: number, button_number: number): boolean; + vfunc_style_changed(style: ToolbarStyle): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; + get_ellipsize_mode(): Pango.EllipsizeMode; + get_orientation(): Orientation; + get_text_alignment(): number; + get_text_orientation(): Orientation; + get_text_size_group(): SizeGroup; + rebuild_menu(): void; + vfunc_get_ellipsize_mode(): Pango.EllipsizeMode; + vfunc_get_icon_size(): IconSize; + vfunc_get_orientation(): Orientation; + vfunc_get_relief_style(): ReliefStyle; + vfunc_get_style(): ToolbarStyle; + vfunc_get_text_alignment(): number; + vfunc_get_text_orientation(): Orientation; + vfunc_get_text_size_group(): SizeGroup; + vfunc_rebuild_menu(): void; +} +export module Tooltip { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Tooltip extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Members + set_custom(custom_widget: Widget | null): void; + set_icon(pixbuf: GdkPixbuf.Pixbuf | null): void; + set_icon_from_gicon(gicon: Gio.Icon | null, size: number): void; + set_icon_from_icon_name(icon_name: string | null, size: number): void; + set_icon_from_stock(stock_id: string | null, size: number): void; + set_markup(markup: string | null): void; + set_text(text: string | null): void; + set_tip_area(rect: Gdk.Rectangle): void; + static trigger_tooltip_query(display: Gdk.Display): void; +} +export module ToplevelAccessible { + export interface ConstructorProperties extends Atk.Object.ConstructorProperties { + [key: string]: any; + } +} +export class ToplevelAccessible extends Atk.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: ToplevelAccessiblePrivate; + // Members + get_children(): GLib.List; +} +export module TreeModelFilter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + child_model: TreeModel; + virtual_root: TreePath; + } +} +export class TreeModelFilter extends GObject.Object implements TreeDragSource, TreeModel { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + child_model: TreeModel; + virtual_root: TreePath; + // Members + clear_cache(): void; + convert_child_iter_to_iter(child_iter: TreeIter): [boolean, TreeIter]; + convert_child_path_to_path(child_path: TreePath): TreePath | null; + convert_iter_to_child_iter(filter_iter: TreeIter): TreeIter; + convert_path_to_child_path(filter_path: TreePath): TreePath | null; + get_model(): TreeModel; + refilter(): void; + set_modify_func(types: GType[], func: TreeModelFilterModifyFunc, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_visible_column(column: number): void; + set_visible_func(func: TreeModelFilterVisibleFunc, data: any | null, destroy: GLib.DestroyNotify | null): void; + vfunc_modify(child_model: TreeModel, iter: TreeIter, value: GObject.Value, column: number): void; + vfunc_visible(child_model: TreeModel, iter: TreeIter): boolean; + // Implemented Members + drag_data_delete(path: TreePath): boolean; + drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + row_draggable(path: TreePath): boolean; + vfunc_drag_data_delete(path: TreePath): boolean; + vfunc_drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + vfunc_row_draggable(path: TreePath): boolean; + filter_new(root: TreePath | null): TreeModel; + foreach(func: TreeModelForeachFunc): void; + get_column_type(index_: number): GType; + get_flags(): TreeModelFlags; + get_iter(path: TreePath): [boolean, TreeIter]; + get_iter_first(): [boolean, TreeIter]; + get_iter_from_string(path_string: string): [boolean, TreeIter]; + get_n_columns(): number; + get_path(iter: TreeIter): TreePath; + get_string_from_iter(iter: TreeIter): string; + get_value(iter: TreeIter, column: number): GObject.Value; + iter_children(parent: TreeIter | null): [boolean, TreeIter]; + iter_has_child(iter: TreeIter): boolean; + iter_n_children(iter: TreeIter | null): number; + iter_next(iter: TreeIter): boolean; + iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + iter_parent(child: TreeIter): [boolean, TreeIter]; + iter_previous(iter: TreeIter): boolean; + ref_node(iter: TreeIter): void; + row_changed(path: TreePath, iter: TreeIter): void; + row_deleted(path: TreePath): void; + row_has_child_toggled(path: TreePath, iter: TreeIter): void; + row_inserted(path: TreePath, iter: TreeIter): void; + rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + unref_node(iter: TreeIter): void; + vfunc_get_column_type(index_: number): GType; + vfunc_get_flags(): TreeModelFlags; + vfunc_get_iter(path: TreePath): [boolean, TreeIter]; + vfunc_get_n_columns(): number; + vfunc_get_path(iter: TreeIter): TreePath; + vfunc_get_value(iter: TreeIter, column: number): GObject.Value; + vfunc_iter_children(parent: TreeIter | null): [boolean, TreeIter]; + vfunc_iter_has_child(iter: TreeIter): boolean; + vfunc_iter_n_children(iter: TreeIter | null): number; + vfunc_iter_next(iter: TreeIter): boolean; + vfunc_iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + vfunc_iter_parent(child: TreeIter): [boolean, TreeIter]; + vfunc_iter_previous(iter: TreeIter): boolean; + vfunc_ref_node(iter: TreeIter): void; + vfunc_row_changed(path: TreePath, iter: TreeIter): void; + vfunc_row_deleted(path: TreePath): void; + vfunc_row_has_child_toggled(path: TreePath, iter: TreeIter): void; + vfunc_row_inserted(path: TreePath, iter: TreeIter): void; + vfunc_unref_node(iter: TreeIter): void; +} +export module TreeModelSort { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + model: TreeModel; + } +} +export class TreeModelSort extends GObject.Object implements TreeDragSource, TreeModel, TreeSortable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + model: TreeModel; + // Constructors + static new_with_model(child_model: TreeModel): TreeModelSort; + // Members + clear_cache(): void; + convert_child_iter_to_iter(child_iter: TreeIter): [boolean, TreeIter]; + convert_child_path_to_path(child_path: TreePath): TreePath | null; + convert_iter_to_child_iter(sorted_iter: TreeIter): TreeIter; + convert_path_to_child_path(sorted_path: TreePath): TreePath | null; + get_model(): TreeModel; + iter_is_valid(iter: TreeIter): boolean; + reset_default_sort_func(): void; + // Implemented Members + drag_data_delete(path: TreePath): boolean; + drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + row_draggable(path: TreePath): boolean; + vfunc_drag_data_delete(path: TreePath): boolean; + vfunc_drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + vfunc_row_draggable(path: TreePath): boolean; + filter_new(root: TreePath | null): TreeModel; + foreach(func: TreeModelForeachFunc): void; + get_column_type(index_: number): GType; + get_flags(): TreeModelFlags; + get_iter(path: TreePath): [boolean, TreeIter]; + get_iter_first(): [boolean, TreeIter]; + get_iter_from_string(path_string: string): [boolean, TreeIter]; + get_n_columns(): number; + get_path(iter: TreeIter): TreePath; + get_string_from_iter(iter: TreeIter): string; + get_value(iter: TreeIter, column: number): GObject.Value; + iter_children(parent: TreeIter | null): [boolean, TreeIter]; + iter_has_child(iter: TreeIter): boolean; + iter_n_children(iter: TreeIter | null): number; + iter_next(iter: TreeIter): boolean; + iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + iter_parent(child: TreeIter): [boolean, TreeIter]; + iter_previous(iter: TreeIter): boolean; + ref_node(iter: TreeIter): void; + row_changed(path: TreePath, iter: TreeIter): void; + row_deleted(path: TreePath): void; + row_has_child_toggled(path: TreePath, iter: TreeIter): void; + row_inserted(path: TreePath, iter: TreeIter): void; + rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + unref_node(iter: TreeIter): void; + vfunc_get_column_type(index_: number): GType; + vfunc_get_flags(): TreeModelFlags; + vfunc_get_iter(path: TreePath): [boolean, TreeIter]; + vfunc_get_n_columns(): number; + vfunc_get_path(iter: TreeIter): TreePath; + vfunc_get_value(iter: TreeIter, column: number): GObject.Value; + vfunc_iter_children(parent: TreeIter | null): [boolean, TreeIter]; + vfunc_iter_has_child(iter: TreeIter): boolean; + vfunc_iter_n_children(iter: TreeIter | null): number; + vfunc_iter_next(iter: TreeIter): boolean; + vfunc_iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + vfunc_iter_parent(child: TreeIter): [boolean, TreeIter]; + vfunc_iter_previous(iter: TreeIter): boolean; + vfunc_ref_node(iter: TreeIter): void; + vfunc_row_changed(path: TreePath, iter: TreeIter): void; + vfunc_row_deleted(path: TreePath): void; + vfunc_row_has_child_toggled(path: TreePath, iter: TreeIter): void; + vfunc_row_inserted(path: TreePath, iter: TreeIter): void; + vfunc_unref_node(iter: TreeIter): void; + get_sort_column_id(): [boolean, number, SortType]; + has_default_sort_func(): boolean; + set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + set_sort_column_id(sort_column_id: number, order: SortType): void; + set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + sort_column_changed(): void; + vfunc_get_sort_column_id(): [boolean, number, SortType]; + vfunc_has_default_sort_func(): boolean; + vfunc_set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_column_id(sort_column_id: number, order: SortType): void; + vfunc_set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_sort_column_changed(): void; +} +export module TreeSelection { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + mode: SelectionMode; + } +} +export class TreeSelection extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + mode: SelectionMode; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + // Members + count_selected_rows(): number; + get_mode(): SelectionMode; + get_selected(): [boolean, TreeModel | null, TreeIter | null]; + get_selected_rows(): [GLib.List, TreeModel | null]; + get_tree_view(): TreeView; + iter_is_selected(iter: TreeIter): boolean; + path_is_selected(path: TreePath): boolean; + select_all(): void; + select_iter(iter: TreeIter): void; + select_path(path: TreePath): void; + select_range(start_path: TreePath, end_path: TreePath): void; + selected_foreach(func: TreeSelectionForeachFunc, data: any | null): void; + set_mode(type: SelectionMode): void; + set_select_function(func: TreeSelectionFunc | null, data: any | null, destroy: GLib.DestroyNotify): void; + unselect_all(): void; + unselect_iter(iter: TreeIter): void; + unselect_path(path: TreePath): void; + unselect_range(start_path: TreePath, end_path: TreePath): void; + vfunc_changed(): void; +} +export module TreeStore { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class TreeStore extends GObject.Object implements Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: TreeStorePrivate; + // Constructors + static newv(types: GType[]): TreeStore; + static newv(...args: never[]): never; + // Members + append(parent: TreeIter | null): TreeIter; + clear(): void; + insert(parent: TreeIter | null, position: number): TreeIter; + insert_after(parent: TreeIter | null, sibling: TreeIter | null): TreeIter; + insert_before(parent: TreeIter | null, sibling: TreeIter | null): TreeIter; + insert_with_valuesv(parent: TreeIter | null, position: number, columns: number[], values: GObject.Value[]): TreeIter | null; + is_ancestor(iter: TreeIter, descendant: TreeIter): boolean; + iter_depth(iter: TreeIter): number; + iter_is_valid(iter: TreeIter): boolean; + move_after(iter: TreeIter, position: TreeIter | null): void; + move_before(iter: TreeIter, position: TreeIter | null): void; + prepend(parent: TreeIter | null): TreeIter; + remove(iter: TreeIter): boolean; + set_column_types(types: GType[]): void; + set_value(iter: TreeIter, column: number, value: GObject.Value): void; + set_valuesv(iter: TreeIter, columns: number[], values: GObject.Value[]): void; + swap(a: TreeIter, b: TreeIter): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; + drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; + row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; + vfunc_drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; + vfunc_row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; + drag_data_delete(path: TreePath): boolean; + drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + row_draggable(path: TreePath): boolean; + vfunc_drag_data_delete(path: TreePath): boolean; + vfunc_drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + vfunc_row_draggable(path: TreePath): boolean; + filter_new(root: TreePath | null): TreeModel; + foreach(func: TreeModelForeachFunc): void; + get_column_type(index_: number): GType; + get_flags(): TreeModelFlags; + get_iter(path: TreePath): [boolean, TreeIter]; + get_iter_first(): [boolean, TreeIter]; + get_iter_from_string(path_string: string): [boolean, TreeIter]; + get_n_columns(): number; + get_path(iter: TreeIter): TreePath; + get_string_from_iter(iter: TreeIter): string; + get_value(iter: TreeIter, column: number): GObject.Value; + iter_children(parent: TreeIter | null): [boolean, TreeIter]; + iter_has_child(iter: TreeIter): boolean; + iter_n_children(iter: TreeIter | null): number; + iter_next(iter: TreeIter): boolean; + iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + iter_parent(child: TreeIter): [boolean, TreeIter]; + iter_previous(iter: TreeIter): boolean; + ref_node(iter: TreeIter): void; + row_changed(path: TreePath, iter: TreeIter): void; + row_deleted(path: TreePath): void; + row_has_child_toggled(path: TreePath, iter: TreeIter): void; + row_inserted(path: TreePath, iter: TreeIter): void; + rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + unref_node(iter: TreeIter): void; + vfunc_get_column_type(index_: number): GType; + vfunc_get_flags(): TreeModelFlags; + vfunc_get_iter(path: TreePath): [boolean, TreeIter]; + vfunc_get_n_columns(): number; + vfunc_get_path(iter: TreeIter): TreePath; + vfunc_get_value(iter: TreeIter, column: number): GObject.Value; + vfunc_iter_children(parent: TreeIter | null): [boolean, TreeIter]; + vfunc_iter_has_child(iter: TreeIter): boolean; + vfunc_iter_n_children(iter: TreeIter | null): number; + vfunc_iter_next(iter: TreeIter): boolean; + vfunc_iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + vfunc_iter_parent(child: TreeIter): [boolean, TreeIter]; + vfunc_iter_previous(iter: TreeIter): boolean; + vfunc_ref_node(iter: TreeIter): void; + vfunc_row_changed(path: TreePath, iter: TreeIter): void; + vfunc_row_deleted(path: TreePath): void; + vfunc_row_has_child_toggled(path: TreePath, iter: TreeIter): void; + vfunc_row_inserted(path: TreePath, iter: TreeIter): void; + vfunc_unref_node(iter: TreeIter): void; + get_sort_column_id(): [boolean, number, SortType]; + has_default_sort_func(): boolean; + set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + set_sort_column_id(sort_column_id: number, order: SortType): void; + set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + sort_column_changed(): void; + vfunc_get_sort_column_id(): [boolean, number, SortType]; + vfunc_has_default_sort_func(): boolean; + vfunc_set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_column_id(sort_column_id: number, order: SortType): void; + vfunc_set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_sort_column_changed(): void; +} +export module TreeView { + export interface ConstructorProperties extends Container.ConstructorProperties { + [key: string]: any; + activate_on_single_click: boolean; + enable_grid_lines: TreeViewGridLines; + enable_search: boolean; + enable_tree_lines: boolean; + expander_column: TreeViewColumn; + fixed_height_mode: boolean; + headers_clickable: boolean; + headers_visible: boolean; + hover_expand: boolean; + hover_selection: boolean; + level_indentation: number; + model: TreeModel; + reorderable: boolean; + rubber_banding: boolean; + rules_hint: boolean; + search_column: number; + show_expanders: boolean; + tooltip_column: number; + } +} +export class TreeView extends Container implements Atk.ImplementorIface, Buildable, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + activate_on_single_click: boolean; + enable_grid_lines: TreeViewGridLines; + enable_search: boolean; + enable_tree_lines: boolean; + expander_column: TreeViewColumn; + fixed_height_mode: boolean; + headers_clickable: boolean; + headers_visible: boolean; + hover_expand: boolean; + hover_selection: boolean; + level_indentation: number; + model: TreeModel; + reorderable: boolean; + rubber_banding: boolean; + rules_hint: boolean; + search_column: number; + show_expanders: boolean; + tooltip_column: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'columns-changed', callback: (_source: this) => void): number; + connect_after(signal: 'columns-changed', callback: (_source: this) => void): number; + emit(signal: 'columns-changed'): void; + connect(signal: 'cursor-changed', callback: (_source: this) => void): number; + connect_after(signal: 'cursor-changed', callback: (_source: this) => void): number; + emit(signal: 'cursor-changed'): void; + connect(signal: 'expand-collapse-cursor-row', callback: (_source: this, object: boolean, p0: boolean, p1: boolean) => boolean): number; + connect_after(signal: 'expand-collapse-cursor-row', callback: (_source: this, object: boolean, p0: boolean, p1: boolean) => boolean): number; + emit(signal: 'expand-collapse-cursor-row', object: boolean, p0: boolean, p1: boolean): void; + connect(signal: 'move-cursor', callback: (_source: this, step: MovementStep, direction: number) => boolean): number; + connect_after(signal: 'move-cursor', callback: (_source: this, step: MovementStep, direction: number) => boolean): number; + emit(signal: 'move-cursor', step: MovementStep, direction: number): void; + connect(signal: 'row-activated', callback: (_source: this, path: TreePath, column: TreeViewColumn) => void): number; + connect_after(signal: 'row-activated', callback: (_source: this, path: TreePath, column: TreeViewColumn) => void): number; + emit(signal: 'row-activated', path: TreePath, column: TreeViewColumn): void; + connect(signal: 'row-collapsed', callback: (_source: this, iter: TreeIter, path: TreePath) => void): number; + connect_after(signal: 'row-collapsed', callback: (_source: this, iter: TreeIter, path: TreePath) => void): number; + emit(signal: 'row-collapsed', iter: TreeIter, path: TreePath): void; + connect(signal: 'row-expanded', callback: (_source: this, iter: TreeIter, path: TreePath) => void): number; + connect_after(signal: 'row-expanded', callback: (_source: this, iter: TreeIter, path: TreePath) => void): number; + emit(signal: 'row-expanded', iter: TreeIter, path: TreePath): void; + connect(signal: 'select-all', callback: (_source: this) => boolean): number; + connect_after(signal: 'select-all', callback: (_source: this) => boolean): number; + emit(signal: 'select-all'): void; + connect(signal: 'select-cursor-parent', callback: (_source: this) => boolean): number; + connect_after(signal: 'select-cursor-parent', callback: (_source: this) => boolean): number; + emit(signal: 'select-cursor-parent'): void; + connect(signal: 'select-cursor-row', callback: (_source: this, object: boolean) => boolean): number; + connect_after(signal: 'select-cursor-row', callback: (_source: this, object: boolean) => boolean): number; + emit(signal: 'select-cursor-row', object: boolean): void; + connect(signal: 'start-interactive-search', callback: (_source: this) => boolean): number; + connect_after(signal: 'start-interactive-search', callback: (_source: this) => boolean): number; + emit(signal: 'start-interactive-search'): void; + connect(signal: 'test-collapse-row', callback: (_source: this, iter: TreeIter, path: TreePath) => boolean): number; + connect_after(signal: 'test-collapse-row', callback: (_source: this, iter: TreeIter, path: TreePath) => boolean): number; + emit(signal: 'test-collapse-row', iter: TreeIter, path: TreePath): void; + connect(signal: 'test-expand-row', callback: (_source: this, iter: TreeIter, path: TreePath) => boolean): number; + connect_after(signal: 'test-expand-row', callback: (_source: this, iter: TreeIter, path: TreePath) => boolean): number; + emit(signal: 'test-expand-row', iter: TreeIter, path: TreePath): void; + connect(signal: 'toggle-cursor-row', callback: (_source: this) => boolean): number; + connect_after(signal: 'toggle-cursor-row', callback: (_source: this) => boolean): number; + emit(signal: 'toggle-cursor-row'): void; + connect(signal: 'unselect-all', callback: (_source: this) => boolean): number; + connect_after(signal: 'unselect-all', callback: (_source: this) => boolean): number; + emit(signal: 'unselect-all'): void; + // Implemented Properties + hadjustment: Adjustment; + hscroll_policy: ScrollablePolicy; + vadjustment: Adjustment; + vscroll_policy: ScrollablePolicy; + // Constructors + static ["new"](): TreeView; + static new_with_model(model: TreeModel): TreeView; + // Members + append_column(column: TreeViewColumn): number; + collapse_all(): void; + collapse_row(path: TreePath): boolean; + columns_autosize(): void; + convert_bin_window_to_tree_coords(bx: number, by: number): [number, number]; + convert_bin_window_to_widget_coords(bx: number, by: number): [number, number]; + convert_tree_to_bin_window_coords(tx: number, ty: number): [number, number]; + convert_tree_to_widget_coords(tx: number, ty: number): [number, number]; + convert_widget_to_bin_window_coords(wx: number, wy: number): [number, number]; + convert_widget_to_tree_coords(wx: number, wy: number): [number, number]; + create_row_drag_icon(path: TreePath): cairo.Surface; + enable_model_drag_dest(targets: TargetEntry[], actions: Gdk.DragAction): void; + enable_model_drag_source(start_button_mask: Gdk.ModifierType, targets: TargetEntry[], actions: Gdk.DragAction): void; + expand_all(): void; + expand_row(path: TreePath, open_all: boolean): boolean; + expand_to_path(path: TreePath): void; + get_activate_on_single_click(): boolean; + get_background_area(path: TreePath | null, column: TreeViewColumn | null): Gdk.Rectangle; + get_bin_window(): Gdk.Window | null; + get_cell_area(path: TreePath | null, column: TreeViewColumn | null): Gdk.Rectangle; + get_column(n: number): TreeViewColumn | null; + get_columns(): GLib.List; + get_cursor(): [TreePath | null, TreeViewColumn | null]; + get_dest_row_at_pos(drag_x: number, drag_y: number): [boolean, TreePath | null, TreeViewDropPosition | null]; + get_drag_dest_row(): [TreePath | null, TreeViewDropPosition | null]; + get_enable_search(): boolean; + get_enable_tree_lines(): boolean; + get_expander_column(): TreeViewColumn; + get_fixed_height_mode(): boolean; + get_grid_lines(): TreeViewGridLines; + get_hadjustment(): Adjustment; + get_headers_clickable(): boolean; + get_headers_visible(): boolean; + get_hover_expand(): boolean; + get_hover_selection(): boolean; + get_level_indentation(): number; + get_model(): TreeModel | null; + get_n_columns(): number; + get_path_at_pos(x: number, y: number): [boolean, TreePath | null, TreeViewColumn | null, number | null, number | null]; + get_reorderable(): boolean; + get_rubber_banding(): boolean; + get_rules_hint(): boolean; + get_search_column(): number; + get_search_entry(): Entry; + get_selection(): TreeSelection; + get_show_expanders(): boolean; + get_tooltip_column(): number; + get_tooltip_context(x: number, y: number, keyboard_tip: boolean): [boolean, number, number, TreeModel | null, TreePath | null, TreeIter | null]; + get_vadjustment(): Adjustment; + get_visible_range(): [boolean, TreePath | null, TreePath | null]; + get_visible_rect(): Gdk.Rectangle; + insert_column(column: TreeViewColumn, position: number): number; + insert_column_with_data_func(position: number, title: string, cell: CellRenderer, func: TreeCellDataFunc, data: any | null, dnotify: GLib.DestroyNotify): number; + is_blank_at_pos(x: number, y: number): [boolean, TreePath | null, TreeViewColumn | null, number | null, number | null]; + is_rubber_banding_active(): boolean; + map_expanded_rows(func: TreeViewMappingFunc, data: any | null): void; + move_column_after(column: TreeViewColumn, base_column: TreeViewColumn | null): void; + remove_column(column: TreeViewColumn): number; + row_activated(path: TreePath, column: TreeViewColumn): void; + row_expanded(path: TreePath): boolean; + scroll_to_cell(path: TreePath | null, column: TreeViewColumn | null, use_align: boolean, row_align: number, col_align: number): void; + scroll_to_point(tree_x: number, tree_y: number): void; + set_activate_on_single_click(single: boolean): void; + set_column_drag_function(func: TreeViewColumnDropFunc | null, destroy: GLib.DestroyNotify | null): void; + set_cursor(path: TreePath, focus_column: TreeViewColumn | null, start_editing: boolean): void; + set_cursor_on_cell(path: TreePath, focus_column: TreeViewColumn | null, focus_cell: CellRenderer | null, start_editing: boolean): void; + set_destroy_count_func(func: TreeDestroyCountFunc | null, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_drag_dest_row(path: TreePath | null, pos: TreeViewDropPosition): void; + set_enable_search(enable_search: boolean): void; + set_enable_tree_lines(enabled: boolean): void; + set_expander_column(column: TreeViewColumn | null): void; + set_fixed_height_mode(enable: boolean): void; + set_grid_lines(grid_lines: TreeViewGridLines): void; + set_hadjustment(adjustment: Adjustment | null): void; + set_headers_clickable(setting: boolean): void; + set_headers_visible(headers_visible: boolean): void; + set_hover_expand(expand: boolean): void; + set_hover_selection(hover: boolean): void; + set_level_indentation(indentation: number): void; + set_model(model: TreeModel | null): void; + set_reorderable(reorderable: boolean): void; + set_row_separator_func(func: TreeViewRowSeparatorFunc | null, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_rubber_banding(enable: boolean): void; + set_rules_hint(setting: boolean): void; + set_search_column(column: number): void; + set_search_entry(entry: Entry | null): void; + set_search_equal_func(search_equal_func: TreeViewSearchEqualFunc, search_user_data: any | null, search_destroy: GLib.DestroyNotify | null): void; + set_search_position_func(func: TreeViewSearchPositionFunc | null, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_show_expanders(enabled: boolean): void; + set_tooltip_cell(tooltip: Tooltip, path: TreePath | null, column: TreeViewColumn | null, cell: CellRenderer | null): void; + set_tooltip_column(column: number): void; + set_tooltip_row(tooltip: Tooltip, path: TreePath): void; + set_vadjustment(adjustment: Adjustment | null): void; + unset_rows_drag_dest(): void; + unset_rows_drag_source(): void; + vfunc_columns_changed(): void; + vfunc_cursor_changed(): void; + vfunc_expand_collapse_cursor_row(logical: boolean, expand: boolean, open_all: boolean): boolean; + vfunc_move_cursor(step: MovementStep, count: number): boolean; + vfunc_row_activated(path: TreePath, column: TreeViewColumn): void; + vfunc_row_collapsed(iter: TreeIter, path: TreePath): void; + vfunc_row_expanded(iter: TreeIter, path: TreePath): void; + vfunc_select_all(): boolean; + vfunc_select_cursor_parent(): boolean; + vfunc_select_cursor_row(start_editing: boolean): boolean; + vfunc_start_interactive_search(): boolean; + vfunc_test_collapse_row(iter: TreeIter, path: TreePath): boolean; + vfunc_test_expand_row(iter: TreeIter, path: TreePath): boolean; + vfunc_toggle_cursor_row(): boolean; + vfunc_unselect_all(): boolean; + // Implemented Members + get_border(): [boolean, Border]; + get_hscroll_policy(): ScrollablePolicy; + get_vscroll_policy(): ScrollablePolicy; + set_hscroll_policy(policy: ScrollablePolicy): void; + set_vscroll_policy(policy: ScrollablePolicy): void; + vfunc_get_border(): [boolean, Border]; +} +export module TreeViewAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class TreeViewAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection, Atk.Table, CellAccessibleParent { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: TreeViewAccessiblePrivate | any; + // Implemented Members + add_selection(i: number): boolean; + clear_selection(): boolean; + get_selection_count(): number; + is_child_selected(i: number): boolean; + ref_selection(i: number): Atk.Object | null; + remove_selection(i: number): boolean; + select_all_selection(): boolean; + vfunc_add_selection(i: number): boolean; + vfunc_clear_selection(): boolean; + vfunc_get_selection_count(): number; + vfunc_is_child_selected(i: number): boolean; + vfunc_ref_selection(i: number): Atk.Object | null; + vfunc_remove_selection(i: number): boolean; + vfunc_select_all_selection(): boolean; + vfunc_selection_changed(): void; + add_column_selection(column: number): boolean; + add_row_selection(row: number): boolean; + get_caption(): Atk.Object | null; + get_column_at_index(index_: number): number; + get_column_description(column: number): string; + get_column_extent_at(row: number, column: number): number; + get_column_header(column: number): Atk.Object | null; + get_index_at(row: number, column: number): number; + get_n_columns(): number; + get_n_rows(): number; + get_row_at_index(index_: number): number; + get_row_description(row: number): string | null; + get_row_extent_at(row: number, column: number): number; + get_row_header(row: number): Atk.Object | null; + get_selected_columns(selected: number): number; + get_selected_rows(selected: number): number; + get_summary(): Atk.Object; + is_column_selected(column: number): boolean; + is_row_selected(row: number): boolean; + is_selected(row: number, column: number): boolean; + ref_at(row: number, column: number): Atk.Object; + remove_column_selection(column: number): boolean; + remove_row_selection(row: number): boolean; + set_caption(caption: Atk.Object): void; + set_column_description(column: number, description: string): void; + set_column_header(column: number, header: Atk.Object): void; + set_row_description(row: number, description: string): void; + set_row_header(row: number, header: Atk.Object): void; + set_summary(accessible: Atk.Object): void; + vfunc_add_column_selection(column: number): boolean; + 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; + vfunc_get_caption(): Atk.Object | null; + vfunc_get_column_at_index(index_: number): number; + vfunc_get_column_description(column: number): string; + vfunc_get_column_extent_at(row: number, column: number): number; + vfunc_get_column_header(column: number): Atk.Object | null; + vfunc_get_index_at(row: number, column: number): number; + vfunc_get_n_columns(): number; + vfunc_get_n_rows(): number; + vfunc_get_row_at_index(index_: number): number; + vfunc_get_row_description(row: number): string | null; + vfunc_get_row_extent_at(row: number, column: number): number; + vfunc_get_row_header(row: number): Atk.Object | null; + vfunc_get_selected_columns(selected: number): number; + vfunc_get_selected_rows(selected: number): number; + vfunc_get_summary(): Atk.Object; + vfunc_is_column_selected(column: number): boolean; + vfunc_is_row_selected(row: number): boolean; + vfunc_is_selected(row: number, column: number): boolean; + vfunc_model_changed(): void; + vfunc_ref_at(row: number, column: number): Atk.Object; + vfunc_remove_column_selection(column: number): boolean; + 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; + vfunc_set_caption(caption: Atk.Object): void; + vfunc_set_column_description(column: number, description: string): void; + vfunc_set_column_header(column: number, header: Atk.Object): void; + vfunc_set_row_description(row: number, description: string): void; + vfunc_set_row_header(row: number, header: Atk.Object): void; + vfunc_set_summary(accessible: Atk.Object): void; + activate(cell: CellAccessible): void; + edit(cell: CellAccessible): void; + expand_collapse(cell: CellAccessible): void; + get_cell_area(cell: CellAccessible): Gdk.Rectangle; + get_cell_extents(cell: CellAccessible, coord_type: Atk.CoordType): [number, number, number, number]; + get_cell_position(cell: CellAccessible): [number, number]; + get_child_index(cell: CellAccessible): number; + get_column_header_cells(cell: CellAccessible): Atk.Object[]; + get_renderer_state(cell: CellAccessible): CellRendererState; + get_row_header_cells(cell: CellAccessible): Atk.Object[]; + grab_focus(cell: CellAccessible): boolean; + grab_focus(...args: never[]): never; + update_relationset(cell: CellAccessible, relationset: Atk.RelationSet): void; + vfunc_activate(cell: CellAccessible): void; + vfunc_edit(cell: CellAccessible): void; + vfunc_expand_collapse(cell: CellAccessible): void; + vfunc_get_cell_area(cell: CellAccessible): Gdk.Rectangle; + vfunc_get_cell_extents(cell: CellAccessible, coord_type: Atk.CoordType): [number, number, number, number]; + vfunc_get_cell_position(cell: CellAccessible): [number, number]; + vfunc_get_child_index(cell: CellAccessible): number; + vfunc_get_column_header_cells(cell: CellAccessible): Atk.Object[]; + vfunc_get_renderer_state(cell: CellAccessible): CellRendererState; + vfunc_get_row_header_cells(cell: CellAccessible): Atk.Object[]; + vfunc_grab_focus(cell: CellAccessible): boolean; + vfunc_grab_focus(...args: never[]): never; + vfunc_update_relationset(cell: CellAccessible, relationset: Atk.RelationSet): void; +} +export module TreeViewColumn { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + alignment: number; + cell_area: CellArea; + clickable: boolean; + expand: boolean; + fixed_width: number; + max_width: number; + min_width: number; + reorderable: boolean; + resizable: boolean; + sizing: TreeViewColumnSizing; + sort_column_id: number; + sort_indicator: boolean; + sort_order: SortType; + spacing: number; + title: string; + visible: boolean; + widget: Widget; + width: number; + x_offset: number; + } +} +export class TreeViewColumn extends GObject.InitiallyUnowned implements Buildable, CellLayout { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + alignment: number; + cell_area: CellArea; + clickable: boolean; + expand: boolean; + fixed_width: number; + max_width: number; + min_width: number; + reorderable: boolean; + resizable: boolean; + sizing: TreeViewColumnSizing; + sort_column_id: number; + sort_indicator: boolean; + sort_order: SortType; + spacing: number; + title: string; + visible: boolean; + widget: Widget; + width: number; + x_offset: number; + // Fields + priv: TreeViewColumnPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'clicked', callback: (_source: this) => void): number; + connect_after(signal: 'clicked', callback: (_source: this) => void): number; + emit(signal: 'clicked'): void; + // Constructors + static ["new"](): TreeViewColumn; + static new_with_area(area: CellArea): TreeViewColumn; + // Members + add_attribute(cell_renderer: CellRenderer, attribute: string, column: number): void; + cell_get_position(cell_renderer: CellRenderer): [boolean, number | null, number | null]; + cell_get_size(cell_area: Gdk.Rectangle | null): [number | null, number | null, number | null, number | null]; + cell_is_visible(): boolean; + cell_set_cell_data(tree_model: TreeModel, iter: TreeIter, is_expander: boolean, is_expanded: boolean): void; + clear(): void; + clear_attributes(cell_renderer: CellRenderer): void; + clicked(): void; + focus_cell(cell: CellRenderer): void; + get_alignment(): number; + get_button(): Widget; + get_clickable(): boolean; + get_expand(): boolean; + get_fixed_width(): number; + get_max_width(): number; + get_min_width(): number; + get_reorderable(): boolean; + get_resizable(): boolean; + get_sizing(): TreeViewColumnSizing; + get_sort_column_id(): number; + get_sort_indicator(): boolean; + get_sort_order(): SortType; + get_spacing(): number; + get_title(): string; + get_tree_view(): Widget | null; + get_visible(): boolean; + get_widget(): Widget | null; + get_width(): number; + get_x_offset(): number; + pack_end(cell: CellRenderer, expand: boolean): void; + pack_start(cell: CellRenderer, expand: boolean): void; + queue_resize(): void; + set_alignment(xalign: number): void; + set_cell_data_func(cell_renderer: CellRenderer, func: TreeCellDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(...args: never[]): never; + set_clickable(clickable: boolean): void; + set_expand(expand: boolean): void; + set_fixed_width(fixed_width: number): void; + set_max_width(max_width: number): void; + set_min_width(min_width: number): void; + set_reorderable(reorderable: boolean): void; + set_resizable(resizable: boolean): void; + set_sizing(type: TreeViewColumnSizing): void; + set_sort_column_id(sort_column_id: number): void; + set_sort_indicator(setting: boolean): void; + set_sort_order(order: SortType): void; + set_spacing(spacing: number): void; + set_title(title: string): void; + set_visible(visible: boolean): void; + set_widget(widget: Widget | null): void; + vfunc_clicked(): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; + get_area(): CellArea | null; + get_cells(): GLib.List; + reorder(cell: CellRenderer, position: number): void; + vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; + vfunc_clear(): void; + vfunc_clear_attributes(cell: CellRenderer): void; + vfunc_get_area(): CellArea | null; + vfunc_get_cells(): GLib.List; + vfunc_pack_end(cell: CellRenderer, expand: boolean): void; + vfunc_pack_start(cell: CellRenderer, expand: boolean): void; + vfunc_reorder(cell: CellRenderer, position: number): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; +} +export module UIManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + add_tearoffs: boolean; + ui: string; + } +} +export class UIManager extends GObject.Object implements Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + add_tearoffs: boolean; + ui: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'actions-changed', callback: (_source: this) => void): number; + connect_after(signal: 'actions-changed', callback: (_source: this) => void): number; + emit(signal: 'actions-changed'): void; + connect(signal: 'add-widget', callback: (_source: this, widget: Widget) => void): number; + connect_after(signal: 'add-widget', callback: (_source: this, widget: Widget) => void): number; + emit(signal: 'add-widget', widget: Widget): void; + connect(signal: 'connect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + connect_after(signal: 'connect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + emit(signal: 'connect-proxy', action: Action, proxy: Widget): void; + connect(signal: 'disconnect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + connect_after(signal: 'disconnect-proxy', callback: (_source: this, action: Action, proxy: Widget) => void): number; + emit(signal: 'disconnect-proxy', action: Action, proxy: Widget): void; + connect(signal: 'post-activate', callback: (_source: this, action: Action) => void): number; + connect_after(signal: 'post-activate', callback: (_source: this, action: Action) => void): number; + emit(signal: 'post-activate', action: Action): void; + connect(signal: 'pre-activate', callback: (_source: this, action: Action) => void): number; + connect_after(signal: 'pre-activate', callback: (_source: this, action: Action) => void): number; + emit(signal: 'pre-activate', action: Action): void; + // Constructors + static ["new"](): UIManager; + // Members + add_ui(merge_id: number, path: string, name: string, action: string | null, type: UIManagerItemType, top: boolean): void; + add_ui_from_file(filename: string): number; + add_ui_from_resource(resource_path: string): number; + add_ui_from_string(buffer: string, length: number): number; + ensure_update(): void; + get_accel_group(): AccelGroup; + get_action(path: string): Action; + get_action_groups(): GLib.List; + get_add_tearoffs(): boolean; + get_toplevels(types: UIManagerItemType): string[]; + get_ui(): string; + get_widget(path: string): Widget; + insert_action_group(action_group: ActionGroup, pos: number): void; + new_merge_id(): number; + remove_action_group(action_group: ActionGroup): void; + remove_ui(merge_id: number): void; + set_add_tearoffs(add_tearoffs: boolean): void; + vfunc_actions_changed(): void; + vfunc_add_widget(widget: Widget): void; + vfunc_connect_proxy(action: Action, proxy: Widget): void; + vfunc_disconnect_proxy(action: Action, proxy: Widget): void; + vfunc_get_action(path: string): Action; + vfunc_get_widget(path: string): Widget; + vfunc_post_activate(action: Action): void; + vfunc_pre_activate(action: Action): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module VBox { + export interface ConstructorProperties extends Box.ConstructorProperties { + [key: string]: any; + } +} +export class VBox extends Box implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + box: Box; + // Constructors + static ["new"](homogeneous: boolean, spacing: number): VBox; + static ["new"](...args: never[]): never; +} +export module VButtonBox { + export interface ConstructorProperties extends ButtonBox.ConstructorProperties { + [key: string]: any; + } +} +export class VButtonBox extends ButtonBox implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + button_box: ButtonBox; + // Constructors + static ["new"](): VButtonBox; + static ["new"](...args: never[]): never; +} +export module VPaned { + export interface ConstructorProperties extends Paned.ConstructorProperties { + [key: string]: any; + } +} +export class VPaned extends Paned implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + paned: Paned; + // Constructors + static ["new"](): VPaned; + static ["new"](...args: never[]): never; +} +export module VScale { + export interface ConstructorProperties extends Scale.ConstructorProperties { + [key: string]: any; + } +} +export class VScale extends Scale implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + scale: Scale; + // Constructors + static ["new"](adjustment: Adjustment): VScale; + static ["new"](...args: never[]): never; + static new_with_range(min: number, max: number, step: number): VScale; + static new_with_range(...args: never[]): never; +} +export module VScrollbar { + export interface ConstructorProperties extends Scrollbar.ConstructorProperties { + [key: string]: any; + } +} +export class VScrollbar extends Scrollbar implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + scrollbar: Scrollbar; + // Constructors + static ["new"](adjustment: Adjustment | null): VScrollbar; + static ["new"](...args: never[]): never; +} +export module VSeparator { + export interface ConstructorProperties extends Separator.ConstructorProperties { + [key: string]: any; + } +} +export class VSeparator extends Separator implements Atk.ImplementorIface, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + separator: Separator; + // Constructors + static ["new"](): VSeparator; + static ["new"](...args: never[]): never; +} +export module Viewport { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + shadow_type: ShadowType; + } +} +export class Viewport extends Bin implements Atk.ImplementorIface, Buildable, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + shadow_type: ShadowType; + // Fields + bin: Bin; + // Implemented Properties + hadjustment: Adjustment; + hscroll_policy: ScrollablePolicy; + vadjustment: Adjustment; + vscroll_policy: ScrollablePolicy; + // Constructors + static ["new"](hadjustment: Adjustment | null, vadjustment: Adjustment | null): Viewport; + // Members + get_bin_window(): Gdk.Window; + get_hadjustment(): Adjustment; + get_shadow_type(): ShadowType; + get_vadjustment(): Adjustment; + get_view_window(): Gdk.Window; + set_hadjustment(adjustment: Adjustment | null): void; + set_shadow_type(type: ShadowType): void; + set_vadjustment(adjustment: Adjustment | null): void; + // Implemented Members + get_border(): [boolean, Border]; + get_hscroll_policy(): ScrollablePolicy; + get_vscroll_policy(): ScrollablePolicy; + set_hscroll_policy(policy: ScrollablePolicy): void; + set_vscroll_policy(policy: ScrollablePolicy): void; + vfunc_get_border(): [boolean, Border]; +} +export module VolumeButton { + export interface ConstructorProperties extends ScaleButton.ConstructorProperties { + [key: string]: any; + use_symbolic: boolean; + } +} +export class VolumeButton extends ScaleButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable, Orientable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + use_symbolic: boolean; + // Implemented Properties + orientation: Orientation; + // Constructors + static ["new"](): VolumeButton; + static ["new"](...args: never[]): never; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export module Widget { + export interface ConstructorProperties { + [key: string]: any; + app_paintable: boolean; + can_default: boolean; + can_focus: boolean; + composite_child: boolean; + double_buffered: boolean; + events: Gdk.EventMask; + expand: boolean; + focus_on_click: boolean; + halign: Align; + has_default: boolean; + has_focus: boolean; + has_tooltip: boolean; + height_request: number; + hexpand: boolean; + hexpand_set: boolean; + is_focus: boolean; + margin: number; + margin_bottom: number; + margin_end: number; + margin_left: number; + margin_right: number; + margin_start: number; + margin_top: number; + name: string; + no_show_all: boolean; + opacity: number; + receives_default: boolean; + scale_factor: number; + sensitive: boolean; + style: Style; + tooltip_markup: string; + tooltip_text: string; + valign: Align; + vexpand: boolean; + vexpand_set: boolean; + visible: boolean; + width_request: number; + window: Gdk.Window; + } +} +export abstract class Widget extends GObject.InitiallyUnowned implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]); + // Properties + app_paintable: boolean; + can_default: boolean; + can_focus: boolean; + composite_child: boolean; + double_buffered: boolean; + events: Gdk.EventMask; + expand: boolean; + focus_on_click: boolean; + halign: Align; + has_default: boolean; + has_focus: boolean; + has_tooltip: boolean; + height_request: number; + hexpand: boolean; + hexpand_set: boolean; + is_focus: boolean; + margin: number; + margin_bottom: number; + margin_end: number; + margin_left: number; + margin_right: number; + margin_start: number; + margin_top: number; + name: string; + no_show_all: boolean; + opacity: number; + receives_default: boolean; + scale_factor: number; + sensitive: boolean; + style: Style; + tooltip_markup: string; + tooltip_text: string; + valign: Align; + vexpand: boolean; + vexpand_set: boolean; + visible: boolean; + width_request: number; + window: Gdk.Window; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'accel-closures-changed', callback: (_source: this) => void): number; + connect_after(signal: 'accel-closures-changed', callback: (_source: this) => void): number; + emit(signal: 'accel-closures-changed'): void; + connect(signal: 'button-press-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + connect_after(signal: 'button-press-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + emit(signal: 'button-press-event', event: Gdk.EventButton): void; + connect(signal: 'button-release-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + connect_after(signal: 'button-release-event', callback: (_source: this, event: Gdk.EventButton) => boolean): number; + emit(signal: 'button-release-event', event: Gdk.EventButton): void; + connect(signal: 'can-activate-accel', callback: (_source: this, signal_id: number) => boolean): number; + connect_after(signal: 'can-activate-accel', callback: (_source: this, signal_id: number) => boolean): number; + emit(signal: 'can-activate-accel', signal_id: number): void; + connect(signal: 'child-notify', callback: (_source: this, child_property: GObject.ParamSpec) => void): number; + connect_after(signal: 'child-notify', callback: (_source: this, child_property: GObject.ParamSpec) => void): number; + emit(signal: 'child-notify', child_property: GObject.ParamSpec): void; + connect(signal: 'composited-changed', callback: (_source: this) => void): number; + connect_after(signal: 'composited-changed', callback: (_source: this) => void): number; + emit(signal: 'composited-changed'): void; + connect(signal: 'configure-event', callback: (_source: this, event: Gdk.EventConfigure) => boolean): number; + connect_after(signal: 'configure-event', callback: (_source: this, event: Gdk.EventConfigure) => boolean): number; + emit(signal: 'configure-event', event: Gdk.EventConfigure): void; + connect(signal: 'damage-event', callback: (_source: this, event: Gdk.EventExpose) => boolean): number; + connect_after(signal: 'damage-event', callback: (_source: this, event: Gdk.EventExpose) => boolean): number; + emit(signal: 'damage-event', event: Gdk.EventExpose): void; + connect(signal: 'delete-event', callback: (_source: this, event: Gdk.Event) => boolean): number; + connect_after(signal: 'delete-event', callback: (_source: this, event: Gdk.Event) => boolean): number; + emit(signal: 'delete-event', event: Gdk.Event): void; + connect(signal: 'destroy', callback: (_source: this) => void): number; + connect_after(signal: 'destroy', callback: (_source: this) => void): number; + emit(signal: 'destroy'): void; + connect(signal: 'destroy-event', callback: (_source: this, event: Gdk.Event) => boolean): number; + connect_after(signal: 'destroy-event', callback: (_source: this, event: Gdk.Event) => boolean): number; + emit(signal: 'destroy-event', event: Gdk.Event): void; + connect(signal: 'direction-changed', callback: (_source: this, previous_direction: TextDirection) => void): number; + connect_after(signal: 'direction-changed', callback: (_source: this, previous_direction: TextDirection) => void): number; + emit(signal: 'direction-changed', previous_direction: TextDirection): void; + connect(signal: 'drag-begin', callback: (_source: this, context: Gdk.DragContext) => void): number; + connect_after(signal: 'drag-begin', callback: (_source: this, context: Gdk.DragContext) => void): number; + emit(signal: 'drag-begin', context: Gdk.DragContext): void; + connect(signal: 'drag-data-delete', callback: (_source: this, context: Gdk.DragContext) => void): number; + connect_after(signal: 'drag-data-delete', callback: (_source: this, context: Gdk.DragContext) => void): number; + emit(signal: 'drag-data-delete', context: Gdk.DragContext): void; + connect(signal: 'drag-data-get', callback: (_source: this, context: Gdk.DragContext, data: SelectionData, info: number, time: number) => void): number; + connect_after(signal: 'drag-data-get', callback: (_source: this, context: Gdk.DragContext, data: SelectionData, info: number, time: number) => void): number; + emit(signal: 'drag-data-get', context: Gdk.DragContext, data: SelectionData, info: number, time: number): void; + connect(signal: 'drag-data-received', callback: (_source: this, context: Gdk.DragContext, x: number, y: number, data: SelectionData, info: number, time: number) => void): number; + connect_after(signal: 'drag-data-received', callback: (_source: this, context: Gdk.DragContext, x: number, y: number, data: SelectionData, info: number, time: number) => void): number; + emit(signal: 'drag-data-received', context: Gdk.DragContext, x: number, y: number, data: SelectionData, info: number, time: number): void; + connect(signal: 'drag-drop', callback: (_source: this, context: Gdk.DragContext, x: number, y: number, time: number) => boolean): number; + connect_after(signal: 'drag-drop', callback: (_source: this, context: Gdk.DragContext, x: number, y: number, time: number) => boolean): number; + emit(signal: 'drag-drop', context: Gdk.DragContext, x: number, y: number, time: number): void; + connect(signal: 'drag-end', callback: (_source: this, context: Gdk.DragContext) => void): number; + connect_after(signal: 'drag-end', callback: (_source: this, context: Gdk.DragContext) => void): number; + emit(signal: 'drag-end', context: Gdk.DragContext): void; + connect(signal: 'drag-failed', callback: (_source: this, context: Gdk.DragContext, result: DragResult) => boolean): number; + connect_after(signal: 'drag-failed', callback: (_source: this, context: Gdk.DragContext, result: DragResult) => boolean): number; + emit(signal: 'drag-failed', context: Gdk.DragContext, result: DragResult): void; + connect(signal: 'drag-leave', callback: (_source: this, context: Gdk.DragContext, time: number) => void): number; + connect_after(signal: 'drag-leave', callback: (_source: this, context: Gdk.DragContext, time: number) => void): number; + emit(signal: 'drag-leave', context: Gdk.DragContext, time: number): void; + connect(signal: 'drag-motion', callback: (_source: this, context: Gdk.DragContext, x: number, y: number, time: number) => boolean): number; + connect_after(signal: 'drag-motion', callback: (_source: this, context: Gdk.DragContext, x: number, y: number, time: number) => boolean): number; + emit(signal: 'drag-motion', context: Gdk.DragContext, x: number, y: number, time: number): void; + connect(signal: 'draw', callback: (_source: this, cr: cairo.Context) => boolean): number; + connect_after(signal: 'draw', callback: (_source: this, cr: cairo.Context) => boolean): number; + emit(signal: 'draw', cr: cairo.Context): void; + connect(signal: 'enter-notify-event', callback: (_source: this, event: Gdk.EventCrossing) => boolean): number; + connect_after(signal: 'enter-notify-event', callback: (_source: this, event: Gdk.EventCrossing) => boolean): number; + emit(signal: 'enter-notify-event', event: Gdk.EventCrossing): void; + connect(signal: 'event', callback: (_source: this, event: Gdk.Event) => boolean): number; + connect_after(signal: 'event', callback: (_source: this, event: Gdk.Event) => boolean): number; + emit(signal: 'event', event: Gdk.Event): void; + connect(signal: 'event-after', callback: (_source: this, event: Gdk.Event) => void): number; + connect_after(signal: 'event-after', callback: (_source: this, event: Gdk.Event) => void): number; + emit(signal: 'event-after', event: Gdk.Event): void; + connect(signal: 'focus', callback: (_source: this, direction: DirectionType) => boolean): number; + connect_after(signal: 'focus', callback: (_source: this, direction: DirectionType) => boolean): number; + emit(signal: 'focus', direction: DirectionType): void; + connect(signal: 'focus-in-event', callback: (_source: this, event: Gdk.EventFocus) => boolean): number; + connect_after(signal: 'focus-in-event', callback: (_source: this, event: Gdk.EventFocus) => boolean): number; + emit(signal: 'focus-in-event', event: Gdk.EventFocus): void; + connect(signal: 'focus-out-event', callback: (_source: this, event: Gdk.EventFocus) => boolean): number; + connect_after(signal: 'focus-out-event', callback: (_source: this, event: Gdk.EventFocus) => boolean): number; + emit(signal: 'focus-out-event', event: Gdk.EventFocus): void; + connect(signal: 'grab-broken-event', callback: (_source: this, event: Gdk.EventGrabBroken) => boolean): number; + connect_after(signal: 'grab-broken-event', callback: (_source: this, event: Gdk.EventGrabBroken) => boolean): number; + emit(signal: 'grab-broken-event', event: Gdk.EventGrabBroken): void; + connect(signal: 'grab-focus', callback: (_source: this) => void): number; + connect_after(signal: 'grab-focus', callback: (_source: this) => void): number; + emit(signal: 'grab-focus'): void; + connect(signal: 'grab-notify', callback: (_source: this, was_grabbed: boolean) => void): number; + connect_after(signal: 'grab-notify', callback: (_source: this, was_grabbed: boolean) => void): number; + emit(signal: 'grab-notify', was_grabbed: boolean): void; + connect(signal: 'hide', callback: (_source: this) => void): number; + connect_after(signal: 'hide', callback: (_source: this) => void): number; + emit(signal: 'hide'): void; + connect(signal: 'hierarchy-changed', callback: (_source: this, previous_toplevel: Widget | null) => void): number; + connect_after(signal: 'hierarchy-changed', callback: (_source: this, previous_toplevel: Widget | null) => void): number; + emit(signal: 'hierarchy-changed', previous_toplevel: Widget | null): void; + connect(signal: 'key-press-event', callback: (_source: this, event: Gdk.EventKey) => boolean): number; + connect_after(signal: 'key-press-event', callback: (_source: this, event: Gdk.EventKey) => boolean): number; + emit(signal: 'key-press-event', event: Gdk.EventKey): void; + connect(signal: 'key-release-event', callback: (_source: this, event: Gdk.EventKey) => boolean): number; + connect_after(signal: 'key-release-event', callback: (_source: this, event: Gdk.EventKey) => boolean): number; + emit(signal: 'key-release-event', event: Gdk.EventKey): void; + connect(signal: 'keynav-failed', callback: (_source: this, direction: DirectionType) => boolean): number; + connect_after(signal: 'keynav-failed', callback: (_source: this, direction: DirectionType) => boolean): number; + emit(signal: 'keynav-failed', direction: DirectionType): void; + connect(signal: 'leave-notify-event', callback: (_source: this, event: Gdk.EventCrossing) => boolean): number; + connect_after(signal: 'leave-notify-event', callback: (_source: this, event: Gdk.EventCrossing) => boolean): number; + emit(signal: 'leave-notify-event', event: Gdk.EventCrossing): void; + connect(signal: 'map', callback: (_source: this) => void): number; + connect_after(signal: 'map', callback: (_source: this) => void): number; + emit(signal: 'map'): void; + connect(signal: 'map-event', callback: (_source: this, event: Gdk.EventAny) => boolean): number; + connect_after(signal: 'map-event', callback: (_source: this, event: Gdk.EventAny) => boolean): number; + emit(signal: 'map-event', event: Gdk.EventAny): void; + connect(signal: 'mnemonic-activate', callback: (_source: this, group_cycling: boolean) => boolean): number; + connect_after(signal: 'mnemonic-activate', callback: (_source: this, group_cycling: boolean) => boolean): number; + emit(signal: 'mnemonic-activate', group_cycling: boolean): void; + connect(signal: 'motion-notify-event', callback: (_source: this, event: Gdk.EventMotion) => boolean): number; + connect_after(signal: 'motion-notify-event', callback: (_source: this, event: Gdk.EventMotion) => boolean): number; + emit(signal: 'motion-notify-event', event: Gdk.EventMotion): void; + connect(signal: 'move-focus', callback: (_source: this, direction: DirectionType) => void): number; + connect_after(signal: 'move-focus', callback: (_source: this, direction: DirectionType) => void): number; + emit(signal: 'move-focus', direction: DirectionType): void; + connect(signal: 'parent-set', callback: (_source: this, old_parent: Widget | null) => void): number; + connect_after(signal: 'parent-set', callback: (_source: this, old_parent: Widget | null) => void): number; + emit(signal: 'parent-set', old_parent: Widget | null): void; + connect(signal: 'popup-menu', callback: (_source: this) => boolean): number; + connect_after(signal: 'popup-menu', callback: (_source: this) => boolean): number; + emit(signal: 'popup-menu'): void; + connect(signal: 'property-notify-event', callback: (_source: this, event: Gdk.EventProperty) => boolean): number; + connect_after(signal: 'property-notify-event', callback: (_source: this, event: Gdk.EventProperty) => boolean): number; + emit(signal: 'property-notify-event', event: Gdk.EventProperty): void; + connect(signal: 'proximity-in-event', callback: (_source: this, event: Gdk.EventProximity) => boolean): number; + connect_after(signal: 'proximity-in-event', callback: (_source: this, event: Gdk.EventProximity) => boolean): number; + emit(signal: 'proximity-in-event', event: Gdk.EventProximity): void; + connect(signal: 'proximity-out-event', callback: (_source: this, event: Gdk.EventProximity) => boolean): number; + connect_after(signal: 'proximity-out-event', callback: (_source: this, event: Gdk.EventProximity) => boolean): number; + emit(signal: 'proximity-out-event', event: Gdk.EventProximity): void; + connect(signal: 'query-tooltip', callback: (_source: this, x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip) => boolean): number; + connect_after(signal: 'query-tooltip', callback: (_source: this, x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip) => boolean): number; + emit(signal: 'query-tooltip', x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip): void; + connect(signal: 'realize', callback: (_source: this) => void): number; + connect_after(signal: 'realize', callback: (_source: this) => void): number; + emit(signal: 'realize'): void; + connect(signal: 'screen-changed', callback: (_source: this, previous_screen: Gdk.Screen | null) => void): number; + connect_after(signal: 'screen-changed', callback: (_source: this, previous_screen: Gdk.Screen | null) => void): number; + emit(signal: 'screen-changed', previous_screen: Gdk.Screen | null): void; + connect(signal: 'scroll-event', callback: (_source: this, event: Gdk.EventScroll) => boolean): number; + connect_after(signal: 'scroll-event', callback: (_source: this, event: Gdk.EventScroll) => boolean): number; + emit(signal: 'scroll-event', event: Gdk.EventScroll): void; + connect(signal: 'selection-clear-event', callback: (_source: this, event: Gdk.EventSelection) => boolean): number; + connect_after(signal: 'selection-clear-event', callback: (_source: this, event: Gdk.EventSelection) => boolean): number; + emit(signal: 'selection-clear-event', event: Gdk.EventSelection): void; + connect(signal: 'selection-get', callback: (_source: this, data: SelectionData, info: number, time: number) => void): number; + connect_after(signal: 'selection-get', callback: (_source: this, data: SelectionData, info: number, time: number) => void): number; + emit(signal: 'selection-get', data: SelectionData, info: number, time: number): void; + connect(signal: 'selection-notify-event', callback: (_source: this, event: Gdk.EventSelection) => boolean): number; + connect_after(signal: 'selection-notify-event', callback: (_source: this, event: Gdk.EventSelection) => boolean): number; + emit(signal: 'selection-notify-event', event: Gdk.EventSelection): void; + connect(signal: 'selection-received', callback: (_source: this, data: SelectionData, time: number) => void): number; + connect_after(signal: 'selection-received', callback: (_source: this, data: SelectionData, time: number) => void): number; + emit(signal: 'selection-received', data: SelectionData, time: number): void; + connect(signal: 'selection-request-event', callback: (_source: this, event: Gdk.EventSelection) => boolean): number; + connect_after(signal: 'selection-request-event', callback: (_source: this, event: Gdk.EventSelection) => boolean): number; + emit(signal: 'selection-request-event', event: Gdk.EventSelection): void; + connect(signal: 'show', callback: (_source: this) => void): number; + connect_after(signal: 'show', callback: (_source: this) => void): number; + emit(signal: 'show'): void; + connect(signal: 'show-help', callback: (_source: this, help_type: WidgetHelpType) => boolean): number; + connect_after(signal: 'show-help', callback: (_source: this, help_type: WidgetHelpType) => boolean): number; + emit(signal: 'show-help', help_type: WidgetHelpType): void; + connect(signal: 'size-allocate', callback: (_source: this, allocation: Allocation) => void): number; + connect_after(signal: 'size-allocate', callback: (_source: this, allocation: Allocation) => void): number; + emit(signal: 'size-allocate', allocation: Allocation): void; + connect(signal: 'state-changed', callback: (_source: this, state: StateType) => void): number; + connect_after(signal: 'state-changed', callback: (_source: this, state: StateType) => void): number; + emit(signal: 'state-changed', state: StateType): void; + connect(signal: 'state-flags-changed', callback: (_source: this, flags: StateFlags) => void): number; + connect_after(signal: 'state-flags-changed', callback: (_source: this, flags: StateFlags) => void): number; + emit(signal: 'state-flags-changed', flags: StateFlags): void; + connect(signal: 'style-set', callback: (_source: this, previous_style: Style | null) => void): number; + connect_after(signal: 'style-set', callback: (_source: this, previous_style: Style | null) => void): number; + emit(signal: 'style-set', previous_style: Style | null): void; + connect(signal: 'style-updated', callback: (_source: this) => void): number; + connect_after(signal: 'style-updated', callback: (_source: this) => void): number; + emit(signal: 'style-updated'): void; + connect(signal: 'touch-event', callback: (_source: this, object: Gdk.Event) => boolean): number; + connect_after(signal: 'touch-event', callback: (_source: this, object: Gdk.Event) => boolean): number; + emit(signal: 'touch-event', object: Gdk.Event): void; + connect(signal: 'unmap', callback: (_source: this) => void): number; + connect_after(signal: 'unmap', callback: (_source: this) => void): number; + emit(signal: 'unmap'): void; + connect(signal: 'unmap-event', callback: (_source: this, event: Gdk.EventAny) => boolean): number; + connect_after(signal: 'unmap-event', callback: (_source: this, event: Gdk.EventAny) => boolean): number; + emit(signal: 'unmap-event', event: Gdk.EventAny): void; + connect(signal: 'unrealize', callback: (_source: this) => void): number; + connect_after(signal: 'unrealize', callback: (_source: this) => void): number; + emit(signal: 'unrealize'): void; + connect(signal: 'visibility-notify-event', callback: (_source: this, event: Gdk.EventVisibility) => boolean): number; + connect_after(signal: 'visibility-notify-event', callback: (_source: this, event: Gdk.EventVisibility) => boolean): number; + emit(signal: 'visibility-notify-event', event: Gdk.EventVisibility): void; + connect(signal: 'window-state-event', callback: (_source: this, event: Gdk.EventWindowState) => boolean): number; + connect_after(signal: 'window-state-event', callback: (_source: this, event: Gdk.EventWindowState) => boolean): number; + emit(signal: 'window-state-event', event: Gdk.EventWindowState): void; + // Members + activate(): boolean; + add_accelerator(accel_signal: string, accel_group: AccelGroup, accel_key: number, accel_mods: Gdk.ModifierType, accel_flags: AccelFlags): void; + add_device_events(device: Gdk.Device, events: Gdk.EventMask): void; + add_events(events: number): void; + add_mnemonic_label(label: Widget): void; + add_tick_callback(callback: TickCallback, notify: GLib.DestroyNotify): number; + can_activate_accel(signal_id: number): boolean; + child_focus(direction: DirectionType): boolean; + child_notify(child_property: string): void; + class_path(): [number | null, string | null, string | null]; + compute_expand(orientation: Orientation): boolean; + create_pango_context(): Pango.Context; + create_pango_layout(text: string | null): Pango.Layout; + destroy(): void; + destroyed(widget_pointer: Widget): Widget; + device_is_shadowed(device: Gdk.Device): boolean; + drag_begin(targets: TargetList, actions: Gdk.DragAction, button: number, event: Gdk.Event | null): Gdk.DragContext; + drag_begin_with_coordinates(targets: TargetList, actions: Gdk.DragAction, button: number, event: Gdk.Event | null, x: number, y: number): Gdk.DragContext; + drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean; + drag_dest_add_image_targets(): void; + drag_dest_add_text_targets(): void; + drag_dest_add_uri_targets(): void; + drag_dest_find_target(context: Gdk.DragContext, target_list: TargetList | null): Gdk.Atom; + drag_dest_get_target_list(): TargetList | null; + drag_dest_get_track_motion(): boolean; + drag_dest_set(flags: DestDefaults, targets: TargetEntry[] | null, actions: Gdk.DragAction): void; + drag_dest_set_proxy(proxy_window: Gdk.Window, protocol: Gdk.DragProtocol, use_coordinates: boolean): void; + drag_dest_set_target_list(target_list: TargetList | null): void; + drag_dest_set_track_motion(track_motion: boolean): void; + drag_dest_unset(): void; + drag_get_data(context: Gdk.DragContext, target: Gdk.Atom, time_: number): void; + drag_highlight(): void; + drag_source_add_image_targets(): void; + drag_source_add_text_targets(): void; + drag_source_add_uri_targets(): void; + drag_source_get_target_list(): TargetList | null; + drag_source_set(start_button_mask: Gdk.ModifierType, targets: TargetEntry[] | null, actions: Gdk.DragAction): void; + drag_source_set_icon_gicon(icon: Gio.Icon): void; + drag_source_set_icon_name(icon_name: string): void; + drag_source_set_icon_pixbuf(pixbuf: GdkPixbuf.Pixbuf): void; + drag_source_set_icon_stock(stock_id: string): void; + drag_source_set_target_list(target_list: TargetList | null): void; + drag_source_unset(): void; + drag_unhighlight(): void; + draw(cr: cairo.Context): void; + ensure_style(): void; + error_bell(): void; + event(event: Gdk.Event): boolean; + freeze_child_notify(): void; + get_accessible(): Atk.Object; + get_action_group(prefix: string): Gio.ActionGroup | null; + get_allocated_baseline(): number; + get_allocated_height(): number; + get_allocated_size(): [Allocation, number | null]; + get_allocated_width(): number; + get_allocation(): Allocation; + get_ancestor(widget_type: GType): Widget | null; + get_app_paintable(): boolean; + get_can_default(): boolean; + get_can_focus(): boolean; + get_child_requisition(): Requisition; + get_child_visible(): boolean; + get_clip(): Allocation; + get_clipboard(selection: Gdk.Atom): Clipboard; + get_composite_name(): string; + get_device_enabled(device: Gdk.Device): boolean; + get_device_events(device: Gdk.Device): Gdk.EventMask; + get_direction(): TextDirection; + get_display(): Gdk.Display; + get_double_buffered(): boolean; + get_events(): number; + get_focus_on_click(): boolean; + get_font_map(): Pango.FontMap | null; + get_font_options(): cairo.FontOptions | null; + get_frame_clock(): Gdk.FrameClock | null; + get_halign(): Align; + get_has_tooltip(): boolean; + get_has_window(): boolean; + get_hexpand(): boolean; + get_hexpand_set(): boolean; + get_mapped(): boolean; + get_margin_bottom(): number; + get_margin_end(): number; + get_margin_left(): number; + get_margin_right(): number; + get_margin_start(): number; + get_margin_top(): number; + get_modifier_mask(intent: Gdk.ModifierIntent): Gdk.ModifierType; + get_modifier_style(): RcStyle; + get_name(): string; + get_no_show_all(): boolean; + get_opacity(): number; + get_pango_context(): Pango.Context; + get_parent(): Widget | null; + get_parent_window(): Gdk.Window | null; + get_path(): WidgetPath; + get_pointer(): [number | null, number | null]; + get_preferred_height(): [number | null, number | null]; + get_preferred_height_and_baseline_for_width(width: number): [number | null, number | null, number | null, number | null]; + get_preferred_height_for_width(width: number): [number | null, number | null]; + get_preferred_size(): [Requisition | null, Requisition | null]; + get_preferred_width(): [number | null, number | null]; + get_preferred_width_for_height(height: number): [number | null, number | null]; + get_realized(): boolean; + get_receives_default(): boolean; + get_request_mode(): SizeRequestMode; + get_requisition(): Requisition; + get_root_window(): Gdk.Window; + get_scale_factor(): number; + get_screen(): Gdk.Screen; + get_sensitive(): boolean; + get_settings(): Settings; + get_size_request(): [number | null, number | null]; + get_state(): StateType; + get_state_flags(): StateFlags; + get_style(): Style; + get_style_context(): StyleContext; + get_support_multidevice(): boolean; + get_template_child(widget_type: GType, name: string): GObject.Object; + get_tooltip_markup(): string | null; + get_tooltip_text(): string | null; + get_tooltip_window(): Window; + get_toplevel(): Widget; + get_valign(): Align; + get_valign_with_baseline(): Align; + get_vexpand(): boolean; + get_vexpand_set(): boolean; + get_visible(): boolean; + get_visual(): Gdk.Visual; + get_window(): Gdk.Window | null; + grab_add(): void; + grab_default(): void; + grab_focus(): void; + grab_remove(): void; + has_grab(): boolean; + has_rc_style(): boolean; + has_screen(): boolean; + has_visible_focus(): boolean; + hide(): void; + hide_on_delete(): boolean; + in_destruction(): boolean; + init_template(): void; + input_shape_combine_region(region: cairo.Region | null): void; + insert_action_group(name: string, group: Gio.ActionGroup | null): void; + intersect(area: Gdk.Rectangle): [boolean, Gdk.Rectangle | null]; + is_ancestor(ancestor: Widget): boolean; + is_composited(): boolean; + is_drawable(): boolean; + is_sensitive(): boolean; + is_toplevel(): boolean; + is_visible(): boolean; + keynav_failed(direction: DirectionType): boolean; + list_accel_closures(): GLib.List; + list_action_prefixes(): string[]; + list_mnemonic_labels(): GLib.List; + map(): void; + mnemonic_activate(group_cycling: boolean): boolean; + modify_base(state: StateType, color: Gdk.Color | null): void; + modify_bg(state: StateType, color: Gdk.Color | null): void; + modify_cursor(primary: Gdk.Color | null, secondary: Gdk.Color | null): void; + modify_fg(state: StateType, color: Gdk.Color | null): void; + modify_font(font_desc: Pango.FontDescription | null): void; + modify_style(style: RcStyle): void; + modify_text(state: StateType, color: Gdk.Color | null): void; + override_background_color(state: StateFlags, color: Gdk.RGBA | null): void; + override_color(state: StateFlags, color: Gdk.RGBA | null): void; + override_cursor(cursor: Gdk.RGBA | null, secondary_cursor: Gdk.RGBA | null): void; + override_font(font_desc: Pango.FontDescription | null): void; + override_symbolic_color(name: string, color: Gdk.RGBA | null): void; + path(): [number | null, string | null, string | null]; + queue_allocate(): void; + queue_compute_expand(): void; + queue_draw(): void; + queue_draw_area(x: number, y: number, width: number, height: number): void; + queue_draw_region(region: cairo.Region): void; + queue_resize(): void; + queue_resize_no_redraw(): void; + realize(): void; + region_intersect(region: cairo.Region): cairo.Region; + register_window(window: Gdk.Window): void; + remove_accelerator(accel_group: AccelGroup, accel_key: number, accel_mods: Gdk.ModifierType): boolean; + remove_mnemonic_label(label: Widget): void; + remove_tick_callback(id: number): void; + render_icon(stock_id: string, size: number, detail: string | null): GdkPixbuf.Pixbuf | null; + render_icon_pixbuf(stock_id: string, size: number): GdkPixbuf.Pixbuf | null; + reparent(new_parent: Widget): void; + reset_rc_styles(): void; + reset_style(): void; + send_expose(event: Gdk.Event): number; + send_focus_change(event: Gdk.Event): boolean; + set_accel_path(accel_path: string | null, accel_group: AccelGroup | null): void; + set_allocation(allocation: Allocation): void; + set_app_paintable(app_paintable: boolean): void; + set_can_default(can_default: boolean): void; + set_can_focus(can_focus: boolean): void; + set_child_visible(is_visible: boolean): void; + set_clip(clip: Allocation): void; + set_composite_name(name: string): void; + set_device_enabled(device: Gdk.Device, enabled: boolean): void; + set_device_events(device: Gdk.Device, events: Gdk.EventMask): void; + set_direction(dir: TextDirection): void; + set_double_buffered(double_buffered: boolean): void; + set_events(events: number): void; + set_focus_on_click(focus_on_click: boolean): void; + set_font_map(font_map: Pango.FontMap | null): void; + set_font_options(options: cairo.FontOptions | null): void; + set_halign(align: Align): void; + set_has_tooltip(has_tooltip: boolean): void; + set_has_window(has_window: boolean): void; + set_hexpand(expand: boolean): void; + set_hexpand_set(set: boolean): void; + set_mapped(mapped: boolean): void; + set_margin_bottom(margin: number): void; + set_margin_end(margin: number): void; + set_margin_left(margin: number): void; + set_margin_right(margin: number): void; + set_margin_start(margin: number): void; + set_margin_top(margin: number): void; + set_name(name: string): void; + set_no_show_all(no_show_all: boolean): void; + set_opacity(opacity: number): void; + set_parent(parent: Widget): void; + set_parent_window(parent_window: Gdk.Window): void; + set_realized(realized: boolean): void; + set_receives_default(receives_default: boolean): void; + set_redraw_on_allocate(redraw_on_allocate: boolean): void; + set_sensitive(sensitive: boolean): void; + set_size_request(width: number, height: number): void; + set_state(state: StateType): void; + set_state_flags(flags: StateFlags, clear: boolean): void; + set_style(style: Style | null): void; + set_support_multidevice(support_multidevice: boolean): void; + set_tooltip_markup(markup: string | null): void; + set_tooltip_text(text: string | null): void; + set_tooltip_window(custom_window: Window | null): void; + set_valign(align: Align): void; + set_vexpand(expand: boolean): void; + set_vexpand_set(set: boolean): void; + set_visible(visible: boolean): void; + set_visual(visual: Gdk.Visual | null): void; + set_window(window: Gdk.Window): void; + shape_combine_region(region: cairo.Region | null): void; + show(): void; + show_all(): void; + show_now(): void; + size_allocate(allocation: Allocation): void; + size_allocate_with_baseline(allocation: Allocation, baseline: number): void; + size_request(): Requisition; + style_attach(): void; + style_get_property(property_name: string, value: GObject.Value): void; + thaw_child_notify(): void; + translate_coordinates(dest_widget: Widget, src_x: number, src_y: number): [boolean, number | null, number | null]; + trigger_tooltip_query(): void; + unmap(): void; + unparent(): void; + unrealize(): void; + unregister_window(window: Gdk.Window): void; + unset_state_flags(flags: StateFlags): void; + vfunc_adjust_baseline_allocation(baseline: number): void; + vfunc_adjust_baseline_request(minimum_baseline: number, natural_baseline: number): void; + vfunc_adjust_size_allocation(orientation: Orientation, minimum_size: number, natural_size: number, allocated_pos: number, allocated_size: number): void; + vfunc_adjust_size_request(orientation: Orientation, minimum_size: number, natural_size: number): void; + vfunc_button_press_event(event: Gdk.EventButton): boolean; + vfunc_button_release_event(event: Gdk.EventButton): boolean; + vfunc_can_activate_accel(signal_id: number): boolean; + vfunc_child_notify(child_property: GObject.ParamSpec): void; + vfunc_composited_changed(): void; + vfunc_compute_expand(hexpand_p: boolean, vexpand_p: boolean): void; + vfunc_configure_event(event: Gdk.EventConfigure): boolean; + vfunc_damage_event(event: Gdk.EventExpose): boolean; + vfunc_delete_event(event: Gdk.EventAny): boolean; + vfunc_destroy(): void; + vfunc_destroy_event(event: Gdk.EventAny): boolean; + vfunc_direction_changed(previous_direction: TextDirection): void; + vfunc_dispatch_child_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void; + vfunc_drag_begin(context: Gdk.DragContext): void; + vfunc_drag_data_delete(context: Gdk.DragContext): void; + vfunc_drag_data_get(context: Gdk.DragContext, selection_data: SelectionData, info: number, time_: number): void; + vfunc_drag_data_received(context: Gdk.DragContext, x: number, y: number, selection_data: SelectionData, info: number, time_: number): void; + vfunc_drag_drop(context: Gdk.DragContext, x: number, y: number, time_: number): boolean; + vfunc_drag_end(context: Gdk.DragContext): void; + vfunc_drag_failed(context: Gdk.DragContext, result: DragResult): boolean; + vfunc_drag_leave(context: Gdk.DragContext, time_: number): void; + vfunc_drag_motion(context: Gdk.DragContext, x: number, y: number, time_: number): boolean; + vfunc_draw(cr: cairo.Context): boolean; + vfunc_enter_notify_event(event: Gdk.EventCrossing): boolean; + vfunc_event(event: Gdk.Event): boolean; + vfunc_focus(direction: DirectionType): boolean; + vfunc_focus_in_event(event: Gdk.EventFocus): boolean; + vfunc_focus_out_event(event: Gdk.EventFocus): boolean; + vfunc_get_accessible(): Atk.Object; + vfunc_get_preferred_height(): [number | null, number | null]; + vfunc_get_preferred_height_and_baseline_for_width(width: number): [number | null, number | null, number | null, number | null]; + vfunc_get_preferred_height_for_width(width: number): [number | null, number | null]; + vfunc_get_preferred_width(): [number | null, number | null]; + vfunc_get_preferred_width_for_height(height: number): [number | null, number | null]; + vfunc_get_request_mode(): SizeRequestMode; + vfunc_grab_broken_event(event: Gdk.EventGrabBroken): boolean; + vfunc_grab_focus(): void; + vfunc_grab_notify(was_grabbed: boolean): void; + vfunc_hide(): void; + vfunc_hierarchy_changed(previous_toplevel: Widget): void; + vfunc_key_press_event(event: Gdk.EventKey): boolean; + vfunc_key_release_event(event: Gdk.EventKey): boolean; + vfunc_keynav_failed(direction: DirectionType): boolean; + vfunc_leave_notify_event(event: Gdk.EventCrossing): boolean; + vfunc_map(): void; + vfunc_map_event(event: Gdk.EventAny): boolean; + vfunc_mnemonic_activate(group_cycling: boolean): boolean; + vfunc_motion_notify_event(event: Gdk.EventMotion): boolean; + vfunc_move_focus(direction: DirectionType): void; + vfunc_parent_set(previous_parent: Widget): void; + vfunc_popup_menu(): boolean; + vfunc_property_notify_event(event: Gdk.EventProperty): boolean; + vfunc_proximity_in_event(event: Gdk.EventProximity): boolean; + vfunc_proximity_out_event(event: Gdk.EventProximity): boolean; + vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: Tooltip): boolean; + vfunc_queue_draw_region(region: cairo.Region): void; + vfunc_realize(): void; + vfunc_screen_changed(previous_screen: Gdk.Screen): void; + vfunc_scroll_event(event: Gdk.EventScroll): boolean; + vfunc_selection_clear_event(event: Gdk.EventSelection): boolean; + vfunc_selection_get(selection_data: SelectionData, info: number, time_: number): void; + vfunc_selection_notify_event(event: Gdk.EventSelection): boolean; + vfunc_selection_received(selection_data: SelectionData, time_: number): void; + vfunc_selection_request_event(event: Gdk.EventSelection): boolean; + vfunc_show(): void; + vfunc_show_all(): void; + vfunc_show_help(help_type: WidgetHelpType): boolean; + vfunc_size_allocate(allocation: Allocation): void; + vfunc_state_changed(previous_state: StateType): void; + vfunc_state_flags_changed(previous_state_flags: StateFlags): void; + vfunc_style_set(previous_style: Style): void; + vfunc_style_updated(): void; + vfunc_touch_event(event: Gdk.EventTouch): boolean; + vfunc_unmap(): void; + vfunc_unmap_event(event: Gdk.EventAny): boolean; + vfunc_unrealize(): void; + vfunc_visibility_notify_event(event: Gdk.EventVisibility): boolean; + vfunc_window_state_event(event: Gdk.EventWindowState): boolean; + static get_default_direction(): TextDirection; + static get_default_style(): Style; + static pop_composite_child(): void; + static push_composite_child(): void; + static set_default_direction(dir: TextDirection): void; + // Implemented Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export module WidgetAccessible { + export interface ConstructorProperties extends Accessible.ConstructorProperties { + [key: string]: any; + } +} +export class WidgetAccessible extends Accessible implements Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: WidgetAccessiblePrivate; + // Implemented Members + contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Atk.Layer; + get_mdi_zorder(): number; + get_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: Atk.ScrollType): boolean; + scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Atk.Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Atk.Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: Atk.ScrollType): boolean; + vfunc_scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; +} +export module Window { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + accept_focus: boolean; + application: Application; + attached_to: Widget; + decorated: boolean; + default_height: number; + default_width: number; + deletable: boolean; + destroy_with_parent: boolean; + focus_on_map: boolean; + focus_visible: boolean; + gravity: Gdk.Gravity; + has_resize_grip: boolean; + has_toplevel_focus: boolean; + hide_titlebar_when_maximized: boolean; + icon: GdkPixbuf.Pixbuf; + icon_name: string; + is_active: boolean; + is_maximized: boolean; + mnemonics_visible: boolean; + modal: boolean; + resizable: boolean; + resize_grip_visible: boolean; + role: string; + screen: Gdk.Screen; + skip_pager_hint: boolean; + skip_taskbar_hint: boolean; + startup_id: string; + title: string; + transient_for: Window; + type: WindowType; + type_hint: Gdk.WindowTypeHint; + urgency_hint: boolean; + window_position: WindowPosition; + } +} +export class Window extends Bin implements Atk.ImplementorIface, Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Properties + accept_focus: boolean; + application: Application; + attached_to: Widget; + decorated: boolean; + default_height: number; + default_width: number; + deletable: boolean; + destroy_with_parent: boolean; + focus_on_map: boolean; + focus_visible: boolean; + gravity: Gdk.Gravity; + has_resize_grip: boolean; + has_toplevel_focus: boolean; + hide_titlebar_when_maximized: boolean; + icon: GdkPixbuf.Pixbuf; + icon_name: string; + is_active: boolean; + is_maximized: boolean; + mnemonics_visible: boolean; + modal: boolean; + resizable: boolean; + resize_grip_visible: boolean; + role: string; + screen: Gdk.Screen; + skip_pager_hint: boolean; + skip_taskbar_hint: boolean; + startup_id: string; + title: string; + transient_for: Window; + type: WindowType; + type_hint: Gdk.WindowTypeHint; + urgency_hint: boolean; + window_position: WindowPosition; + // Fields + bin: Bin; + priv: WindowPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate-default', callback: (_source: this) => void): number; + connect_after(signal: 'activate-default', callback: (_source: this) => void): number; + emit(signal: 'activate-default'): void; + connect(signal: 'activate-focus', callback: (_source: this) => void): number; + connect_after(signal: 'activate-focus', callback: (_source: this) => void): number; + emit(signal: 'activate-focus'): void; + connect(signal: 'enable-debugging', callback: (_source: this, toggle: boolean) => boolean): number; + connect_after(signal: 'enable-debugging', callback: (_source: this, toggle: boolean) => boolean): number; + emit(signal: 'enable-debugging', toggle: boolean): void; + connect(signal: 'keys-changed', callback: (_source: this) => void): number; + connect_after(signal: 'keys-changed', callback: (_source: this) => void): number; + emit(signal: 'keys-changed'): void; + connect(signal: 'set-focus', callback: (_source: this, object: Widget) => void): number; + connect_after(signal: 'set-focus', callback: (_source: this, object: Widget) => void): number; + emit(signal: 'set-focus', object: Widget): void; + // Constructors + static ["new"](type: WindowType): Window; + // Members + activate_default(): boolean; + activate_focus(): boolean; + activate_key(event: Gdk.EventKey): boolean; + add_accel_group(accel_group: AccelGroup): void; + add_mnemonic(keyval: number, target: Widget): void; + begin_move_drag(button: number, root_x: number, root_y: number, timestamp: number): void; + begin_resize_drag(edge: Gdk.WindowEdge, button: number, root_x: number, root_y: number, timestamp: number): void; + close(): void; + deiconify(): void; + fullscreen(): void; + fullscreen_on_monitor(screen: Gdk.Screen, monitor: number): void; + get_accept_focus(): boolean; + get_application(): Application | null; + get_attached_to(): Widget | null; + get_decorated(): boolean; + get_default_size(): [number | null, number | null]; + get_default_widget(): Widget | null; + get_deletable(): boolean; + get_destroy_with_parent(): boolean; + get_focus(): Widget | null; + get_focus_on_map(): boolean; + get_focus_visible(): boolean; + get_gravity(): Gdk.Gravity; + get_group(): WindowGroup; + get_has_resize_grip(): boolean; + get_hide_titlebar_when_maximized(): boolean; + get_icon(): GdkPixbuf.Pixbuf | null; + get_icon_list(): GLib.List; + get_icon_name(): string | null; + get_mnemonic_modifier(): Gdk.ModifierType; + get_mnemonics_visible(): boolean; + get_modal(): boolean; + get_opacity(): number; + get_position(): [number | null, number | null]; + get_resizable(): boolean; + get_resize_grip_area(): [boolean, Gdk.Rectangle]; + get_role(): string | null; + get_screen(): Gdk.Screen; + get_size(): [number | null, number | null]; + get_skip_pager_hint(): boolean; + get_skip_taskbar_hint(): boolean; + get_title(): string | null; + get_titlebar(): Widget | null; + get_transient_for(): Window | null; + get_type_hint(): Gdk.WindowTypeHint; + get_urgency_hint(): boolean; + get_window_type(): WindowType; + has_group(): boolean; + iconify(): void; + maximize(): void; + mnemonic_activate(keyval: number, modifier: Gdk.ModifierType): boolean; + mnemonic_activate(...args: never[]): never; + move(x: number, y: number): void; + parse_geometry(geometry: string): boolean; + present(): void; + present_with_time(timestamp: number): void; + propagate_key_event(event: Gdk.EventKey): boolean; + remove_accel_group(accel_group: AccelGroup): void; + remove_mnemonic(keyval: number, target: Widget): void; + reshow_with_initial_size(): void; + resize(width: number, height: number): void; + resize_grip_is_visible(): boolean; + resize_to_geometry(width: number, height: number): void; + set_accept_focus(setting: boolean): void; + set_application(application: Application | null): void; + set_attached_to(attach_widget: Widget | null): void; + set_decorated(setting: boolean): void; + set_default(default_widget: Widget | null): void; + set_default_geometry(width: number, height: number): void; + set_default_size(width: number, height: number): void; + set_deletable(setting: boolean): void; + set_destroy_with_parent(setting: boolean): void; + set_focus(focus: Widget | null): void; + set_focus_on_map(setting: boolean): void; + set_focus_visible(setting: boolean): void; + set_geometry_hints(geometry_widget: Widget | null, geometry: Gdk.Geometry | null, geom_mask: Gdk.WindowHints): void; + set_gravity(gravity: Gdk.Gravity): void; + set_has_resize_grip(value: boolean): void; + set_has_user_ref_count(setting: boolean): void; + set_hide_titlebar_when_maximized(setting: boolean): void; + set_icon(icon: GdkPixbuf.Pixbuf | null): void; + set_icon_from_file(filename: string): boolean; + set_icon_list(list: GLib.List): void; + set_icon_name(name: string | null): void; + set_keep_above(setting: boolean): void; + set_keep_below(setting: boolean): void; + set_mnemonic_modifier(modifier: Gdk.ModifierType): void; + set_mnemonics_visible(setting: boolean): void; + set_modal(modal: boolean): void; + set_opacity(opacity: number): void; + set_position(position: WindowPosition): void; + set_resizable(resizable: boolean): void; + set_role(role: string): void; + set_screen(screen: Gdk.Screen): void; + set_skip_pager_hint(setting: boolean): void; + set_skip_taskbar_hint(setting: boolean): void; + set_startup_id(startup_id: string): void; + set_title(title: string): void; + set_titlebar(titlebar: Widget | null): void; + set_transient_for(parent: Window | null): void; + set_type_hint(hint: Gdk.WindowTypeHint): void; + set_urgency_hint(setting: boolean): void; + set_wmclass(wmclass_name: string, wmclass_class: string): void; + stick(): void; + unfullscreen(): void; + unmaximize(): void; + unstick(): void; + vfunc_activate_default(): void; + vfunc_activate_focus(): void; + vfunc_enable_debugging(toggle: boolean): boolean; + vfunc_keys_changed(): void; + vfunc_set_focus(focus: Widget | null): void; + static get_default_icon_list(): GLib.List; + static get_default_icon_name(): string; + static list_toplevels(): GLib.List; + static set_auto_startup_notification(setting: boolean): void; + static set_default_icon(icon: GdkPixbuf.Pixbuf): void; + static set_default_icon_from_file(filename: string): boolean; + static set_default_icon_list(list: GLib.List): void; + static set_default_icon_name(name: string): void; + static set_interactive_debugging(enable: boolean): void; +} +export module WindowAccessible { + export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class WindowAccessible extends ContainerAccessible implements Atk.Component, Atk.Window { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: WindowAccessiblePrivate | any; +} +export module WindowGroup { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class WindowGroup extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial); + // Fields + priv: WindowGroupPrivate; + // Constructors + static ["new"](): WindowGroup; + // Members + add_window(window: Window): void; + get_current_device_grab(device: Gdk.Device): Widget | null; + get_current_grab(): Widget; + list_windows(): GLib.List; + remove_window(window: Window): void; +} +export class AboutDialogPrivate { + constructor(copy: AboutDialogPrivate); +} +export class AccelGroupEntry { + constructor(copy: AccelGroupEntry); + // Fields + key: AccelKey; + closure: GObject.Closure; + accel_path_quark: GLib.Quark; +} +export class AccelGroupPrivate { + constructor(copy: AccelGroupPrivate); +} +export class AccelKey { + constructor(copy: AccelKey); + // Fields + accel_key: number; + accel_mods: Gdk.ModifierType; + accel_flags: number; +} +export class AccelLabelPrivate { + constructor(copy: AccelLabelPrivate); +} +export class AccessiblePrivate { + constructor(copy: AccessiblePrivate); +} +export class ActionBarPrivate { + constructor(copy: ActionBarPrivate); +} +export class ActionEntry { + constructor(copy: ActionEntry); + // Fields + name: string; + stock_id: string; + label: string; + accelerator: string; + tooltip: string; + callback: GObject.Callback; +} +export class ActionGroupPrivate { + constructor(copy: ActionGroupPrivate); +} +export class ActionPrivate { + constructor(copy: ActionPrivate); +} +export class AdjustmentPrivate { + constructor(copy: AdjustmentPrivate); +} +export class AlignmentPrivate { + constructor(copy: AlignmentPrivate); +} +export class AppChooserButtonPrivate { + constructor(copy: AppChooserButtonPrivate); +} +export class AppChooserDialogPrivate { + constructor(copy: AppChooserDialogPrivate); +} +export class AppChooserWidgetPrivate { + constructor(copy: AppChooserWidgetPrivate); +} +export class ApplicationPrivate { + constructor(copy: ApplicationPrivate); +} +export class ApplicationWindowPrivate { + constructor(copy: ApplicationWindowPrivate); +} +export class ArrowAccessiblePrivate { + constructor(copy: ArrowAccessiblePrivate); +} +export class ArrowPrivate { + constructor(copy: ArrowPrivate); +} +export class AspectFramePrivate { + constructor(copy: AspectFramePrivate); +} +export class AssistantPrivate { + constructor(copy: AssistantPrivate); +} +export class BinPrivate { + constructor(copy: BinPrivate); +} +export class BindingArg { + constructor(copy: BindingArg); + // Fields + arg_type: GType; +} +export class BindingEntry { + constructor(copy: BindingEntry); + // Fields + keyval: number; + modifiers: Gdk.ModifierType; + binding_set: BindingSet; + destroyed: number; + in_emission: number; + marks_unbound: number; + set_next: BindingEntry; + hash_next: BindingEntry; + signals: BindingSignal; + // Members + static add_signal_from_string(binding_set: BindingSet, signal_desc: string): GLib.TokenType; + static add_signall(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType, signal_name: string, binding_args: string[]): void; + static remove(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType): void; + static skip(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType): void; +} +export class BindingSet { + constructor(copy: BindingSet); + // Fields + set_name: string; + priority: number; + widget_path_pspecs: string[]; + widget_class_pspecs: string[]; + class_branch_pspecs: string[]; + entries: BindingEntry; + current: BindingEntry; + parsed: number; + // Members + activate(keyval: number, modifiers: Gdk.ModifierType, object: GObject.Object): boolean; + add_path(path_type: PathType, path_pattern: string, priority: PathPriorityType): void; + static find(set_name: string): BindingSet | null; +} +export class BindingSignal { + constructor(copy: BindingSignal); + // Fields + next: BindingSignal; + signal_name: string; + n_args: number; + args: BindingArg[]; +} +export class BooleanCellAccessiblePrivate { + constructor(copy: BooleanCellAccessiblePrivate); +} +export class Border { + constructor(); + constructor(copy: Border); + // Fields + left: number; + right: number; + top: number; + bottom: number; + // Constructors + static ["new"](): Border; + // Members + copy(): Border; + free(): void; +} +export class BoxPrivate { + constructor(copy: BoxPrivate); +} +export class BuilderPrivate { + constructor(copy: BuilderPrivate); +} +export class ButtonAccessiblePrivate { + constructor(copy: ButtonAccessiblePrivate); +} +export class ButtonBoxPrivate { + constructor(copy: ButtonBoxPrivate); +} +export class ButtonPrivate { + constructor(copy: ButtonPrivate); +} +export class CalendarPrivate { + constructor(copy: CalendarPrivate); +} +export class CellAccessiblePrivate { + constructor(copy: CellAccessiblePrivate); +} +export class CellAreaBoxPrivate { + constructor(copy: CellAreaBoxPrivate); +} +export class CellAreaContextPrivate { + constructor(copy: CellAreaContextPrivate); +} +export class CellAreaPrivate { + constructor(copy: CellAreaPrivate); +} +export class CellRendererAccelPrivate { + constructor(copy: CellRendererAccelPrivate); +} +export class CellRendererClassPrivate { + constructor(copy: CellRendererClassPrivate); +} +export class CellRendererComboPrivate { + constructor(copy: CellRendererComboPrivate); +} +export class CellRendererPixbufPrivate { + constructor(copy: CellRendererPixbufPrivate); +} +export class CellRendererPrivate { + constructor(copy: CellRendererPrivate); +} +export class CellRendererProgressPrivate { + constructor(copy: CellRendererProgressPrivate); +} +export class CellRendererSpinPrivate { + constructor(copy: CellRendererSpinPrivate); +} +export class CellRendererSpinnerPrivate { + constructor(copy: CellRendererSpinnerPrivate); +} +export class CellRendererTextPrivate { + constructor(copy: CellRendererTextPrivate); +} +export class CellRendererTogglePrivate { + constructor(copy: CellRendererTogglePrivate); +} +export class CellViewPrivate { + constructor(copy: CellViewPrivate); +} +export class CheckMenuItemAccessiblePrivate { + constructor(copy: CheckMenuItemAccessiblePrivate); +} +export class CheckMenuItemPrivate { + constructor(copy: CheckMenuItemPrivate); +} +export class ColorButtonPrivate { + constructor(copy: ColorButtonPrivate); +} +export class ColorChooserDialogPrivate { + constructor(copy: ColorChooserDialogPrivate); +} +export class ColorChooserWidgetPrivate { + constructor(copy: ColorChooserWidgetPrivate); +} +export class ColorSelectionDialogPrivate { + constructor(copy: ColorSelectionDialogPrivate); +} +export class ColorSelectionPrivate { + constructor(copy: ColorSelectionPrivate); +} +export class ComboBoxAccessiblePrivate { + constructor(copy: ComboBoxAccessiblePrivate); +} +export class ComboBoxPrivate { + constructor(copy: ComboBoxPrivate); +} +export class ComboBoxTextPrivate { + constructor(copy: ComboBoxTextPrivate); +} +export class ContainerAccessiblePrivate { + constructor(copy: ContainerAccessiblePrivate); +} +export class ContainerCellAccessiblePrivate { + constructor(copy: ContainerCellAccessiblePrivate); +} +export class ContainerPrivate { + constructor(copy: ContainerPrivate); +} +export class CssProviderPrivate { + constructor(copy: CssProviderPrivate); +} +export class CssSection { + constructor(copy: CssSection); + // Members + get_end_line(): number; + get_end_position(): number; + get_file(): Gio.File; + get_parent(): CssSection | null; + get_section_type(): CssSectionType; + get_start_line(): number; + get_start_position(): number; + ref(): CssSection; + unref(): void; +} +export class DialogPrivate { + constructor(copy: DialogPrivate); +} +export class EntryAccessiblePrivate { + constructor(copy: EntryAccessiblePrivate); +} +export class EntryBufferPrivate { + constructor(copy: EntryBufferPrivate); +} +export class EntryCompletionPrivate { + constructor(copy: EntryCompletionPrivate); +} +export class EntryPrivate { + constructor(copy: EntryPrivate); +} +export class EventBoxPrivate { + constructor(copy: EventBoxPrivate); +} +export class ExpanderAccessiblePrivate { + constructor(copy: ExpanderAccessiblePrivate); +} +export class ExpanderPrivate { + constructor(copy: ExpanderPrivate); +} +export class FileChooserButtonPrivate { + constructor(copy: FileChooserButtonPrivate); +} +export class FileChooserDialogPrivate { + constructor(copy: FileChooserDialogPrivate); +} +export class FileChooserWidgetPrivate { + constructor(copy: FileChooserWidgetPrivate); +} +export class FileFilterInfo { + constructor(copy: FileFilterInfo); + // Fields + contains: FileFilterFlags; + filename: string; + uri: string; + display_name: string; + mime_type: string; +} +export class FixedChild { + constructor(copy: FixedChild); + // Fields + widget: Widget; + x: number; + y: number; +} +export class FixedPrivate { + constructor(copy: FixedPrivate); +} +export class FlowBoxAccessiblePrivate { + constructor(copy: FlowBoxAccessiblePrivate); +} +export class FontButtonPrivate { + constructor(copy: FontButtonPrivate); +} +export class FontChooserDialogPrivate { + constructor(copy: FontChooserDialogPrivate); +} +export class FontChooserWidgetPrivate { + constructor(copy: FontChooserWidgetPrivate); +} +export class FontSelectionDialogPrivate { + constructor(copy: FontSelectionDialogPrivate); +} +export class FontSelectionPrivate { + constructor(copy: FontSelectionPrivate); +} +export class FrameAccessiblePrivate { + constructor(copy: FrameAccessiblePrivate); +} +export class FramePrivate { + constructor(copy: FramePrivate); +} +export class Gradient { + constructor(x0: number, y0: number, x1: number, y1: number); + constructor(copy: Gradient); + // Constructors + static new_linear(x0: number, y0: number, x1: number, y1: number): Gradient; + static new_radial(x0: number, y0: number, radius0: number, x1: number, y1: number, radius1: number): Gradient; + // Members + add_color_stop(offset: number, color: SymbolicColor): void; + ref(): Gradient; + resolve(props: StyleProperties): [boolean, cairo.Pattern]; + resolve_for_context(context: StyleContext): cairo.Pattern; + to_string(): string; + unref(): void; +} +export class GridPrivate { + constructor(copy: GridPrivate); +} +export class HSVPrivate { + constructor(copy: HSVPrivate); +} +export class HandleBoxPrivate { + constructor(copy: HandleBoxPrivate); +} +export class HeaderBarAccessiblePrivate { + constructor(copy: HeaderBarAccessiblePrivate); +} +export class HeaderBarPrivate { + constructor(copy: HeaderBarPrivate); +} +export class IMContextInfo { + constructor(copy: IMContextInfo); + // Fields + context_id: string; + context_name: string; + domain: string; + domain_dirname: string; + default_locales: string; +} +export class IMContextSimplePrivate { + constructor(copy: IMContextSimplePrivate); +} +export class IMMulticontextPrivate { + constructor(copy: IMMulticontextPrivate); +} +export class IconFactoryPrivate { + constructor(copy: IconFactoryPrivate); +} +export class IconSet { + constructor(); + constructor(copy: IconSet); + // Constructors + static ["new"](): IconSet; + static new_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf): IconSet; + // Members + add_source(source: IconSource): void; + copy(): IconSet; + get_sizes(): number[]; + ref(): IconSet; + render_icon(style: Style | null, direction: TextDirection, state: StateType, size: number, widget: Widget | null, detail: string | null): GdkPixbuf.Pixbuf; + render_icon_pixbuf(context: StyleContext, size: number): GdkPixbuf.Pixbuf; + render_icon_surface(context: StyleContext, size: number, scale: number, for_window: Gdk.Window | null): cairo.Surface; + unref(): void; +} +export class IconSource { + constructor(); + constructor(copy: IconSource); + // Constructors + static ["new"](): IconSource; + // Members + copy(): IconSource; + free(): void; + get_direction(): TextDirection; + get_direction_wildcarded(): boolean; + get_filename(): string; + get_icon_name(): string; + get_pixbuf(): GdkPixbuf.Pixbuf; + get_size(): number; + get_size_wildcarded(): boolean; + get_state(): StateType; + get_state_wildcarded(): boolean; + set_direction(direction: TextDirection): void; + set_direction_wildcarded(setting: boolean): void; + set_filename(filename: string): void; + set_icon_name(icon_name: string | null): void; + set_pixbuf(pixbuf: GdkPixbuf.Pixbuf): void; + set_size(size: number): void; + set_size_wildcarded(setting: boolean): void; + set_state(state: StateType): void; + set_state_wildcarded(setting: boolean): void; +} +export class IconThemePrivate { + constructor(copy: IconThemePrivate); +} +export class IconViewAccessiblePrivate { + constructor(copy: IconViewAccessiblePrivate); +} +export class IconViewPrivate { + constructor(copy: IconViewPrivate); +} +export class ImageAccessiblePrivate { + constructor(copy: ImageAccessiblePrivate); +} +export class ImageCellAccessiblePrivate { + constructor(copy: ImageCellAccessiblePrivate); +} +export class ImageMenuItemPrivate { + constructor(copy: ImageMenuItemPrivate); +} +export class ImagePrivate { + constructor(copy: ImagePrivate); +} +export class InfoBarPrivate { + constructor(copy: InfoBarPrivate); +} +export class InvisiblePrivate { + constructor(copy: InvisiblePrivate); +} +export class LabelAccessiblePrivate { + constructor(copy: LabelAccessiblePrivate); +} +export class LabelPrivate { + constructor(copy: LabelPrivate); +} +export class LabelSelectionInfo { + constructor(copy: LabelSelectionInfo); +} +export class LayoutPrivate { + constructor(copy: LayoutPrivate); +} +export class LevelBarAccessiblePrivate { + constructor(copy: LevelBarAccessiblePrivate); +} +export class LevelBarPrivate { + constructor(copy: LevelBarPrivate); +} +export class LinkButtonAccessiblePrivate { + constructor(copy: LinkButtonAccessiblePrivate); +} +export class LinkButtonPrivate { + constructor(copy: LinkButtonPrivate); +} +export class ListBoxAccessiblePrivate { + constructor(copy: ListBoxAccessiblePrivate); +} +export class ListStorePrivate { + constructor(copy: ListStorePrivate); +} +export class LockButtonAccessiblePrivate { + constructor(copy: LockButtonAccessiblePrivate); +} +export class LockButtonPrivate { + constructor(copy: LockButtonPrivate); +} +export class MenuAccessiblePrivate { + constructor(copy: MenuAccessiblePrivate); +} +export class MenuBarPrivate { + constructor(copy: MenuBarPrivate); +} +export class MenuButtonAccessiblePrivate { + constructor(copy: MenuButtonAccessiblePrivate); +} +export class MenuButtonPrivate { + constructor(copy: MenuButtonPrivate); +} +export class MenuItemAccessiblePrivate { + constructor(copy: MenuItemAccessiblePrivate); +} +export class MenuItemPrivate { + constructor(copy: MenuItemPrivate); +} +export class MenuPrivate { + constructor(copy: MenuPrivate); +} +export class MenuShellAccessiblePrivate { + constructor(copy: MenuShellAccessiblePrivate); +} +export class MenuShellPrivate { + constructor(copy: MenuShellPrivate); +} +export class MenuToolButtonPrivate { + constructor(copy: MenuToolButtonPrivate); +} +export class MessageDialogPrivate { + constructor(copy: MessageDialogPrivate); +} +export class MiscPrivate { + constructor(copy: MiscPrivate); +} +export class MountOperationPrivate { + constructor(copy: MountOperationPrivate); +} +export class NotebookAccessiblePrivate { + constructor(copy: NotebookAccessiblePrivate); +} +export class NotebookPageAccessiblePrivate { + constructor(copy: NotebookPageAccessiblePrivate); +} +export class NotebookPrivate { + constructor(copy: NotebookPrivate); +} +export class NumerableIconPrivate { + constructor(copy: NumerableIconPrivate); +} +export class OverlayPrivate { + constructor(copy: OverlayPrivate); +} +export class PadActionEntry { + constructor(copy: PadActionEntry); + // Fields + type: PadActionType; + index: number; + mode: number; + label: string; + action_name: string; +} +export class PageRange { + constructor(copy: PageRange); + // Fields + start: number; + end: number; +} +export class PanedAccessiblePrivate { + constructor(copy: PanedAccessiblePrivate); +} +export class PanedPrivate { + constructor(copy: PanedPrivate); +} +export class PaperSize { + constructor(name: string | null); + constructor(copy: PaperSize); + // Constructors + static ["new"](name: string | null): PaperSize; + static new_custom(name: string, display_name: string, width: number, height: number, unit: Unit): PaperSize; + static new_from_gvariant(variant: GLib.Variant): PaperSize; + static new_from_ipp(ipp_name: string, width: number, height: number): PaperSize; + static new_from_key_file(key_file: GLib.KeyFile, group_name: string | null): PaperSize; + static new_from_ppd(ppd_name: string, ppd_display_name: string, width: number, height: number): PaperSize; + // Members + copy(): PaperSize; + free(): void; + get_default_bottom_margin(unit: Unit): number; + get_default_left_margin(unit: Unit): number; + get_default_right_margin(unit: Unit): number; + get_default_top_margin(unit: Unit): number; + get_display_name(): string; + get_height(unit: Unit): number; + get_name(): string; + get_ppd_name(): string; + get_width(unit: Unit): number; + is_custom(): boolean; + is_equal(size2: PaperSize): boolean; + is_ipp(): boolean; + set_size(width: number, height: number, unit: Unit): void; + to_gvariant(): GLib.Variant; + to_key_file(key_file: GLib.KeyFile, group_name: string): void; + static get_default(): string; + static get_paper_sizes(include_custom: boolean): GLib.List; +} +export class PlugPrivate { + constructor(copy: PlugPrivate); +} +export class PopoverPrivate { + constructor(copy: PopoverPrivate); +} +export class PrintOperationPrivate { + constructor(copy: PrintOperationPrivate); +} +export class ProgressBarAccessiblePrivate { + constructor(copy: ProgressBarAccessiblePrivate); +} +export class ProgressBarPrivate { + constructor(copy: ProgressBarPrivate); +} +export class RadioActionEntry { + constructor(copy: RadioActionEntry); + // Fields + name: string; + stock_id: string; + label: string; + accelerator: string; + tooltip: string; + value: number; +} +export class RadioActionPrivate { + constructor(copy: RadioActionPrivate); +} +export class RadioButtonAccessiblePrivate { + constructor(copy: RadioButtonAccessiblePrivate); +} +export class RadioButtonPrivate { + constructor(copy: RadioButtonPrivate); +} +export class RadioMenuItemAccessiblePrivate { + constructor(copy: RadioMenuItemAccessiblePrivate); +} +export class RadioMenuItemPrivate { + constructor(copy: RadioMenuItemPrivate); +} +export class RangeAccessiblePrivate { + constructor(copy: RangeAccessiblePrivate); +} +export class RangePrivate { + constructor(copy: RangePrivate); +} +export class RcContext { + constructor(copy: RcContext); +} +export class RcProperty { + constructor(copy: RcProperty); + // Fields + type_name: GLib.Quark; + property_name: GLib.Quark; + origin: string; + value: GObject.Value; + // Members + static parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + static parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + static parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + static parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + static parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; +} +export class RecentActionPrivate { + constructor(copy: RecentActionPrivate); +} +export class RecentChooserDialogPrivate { + constructor(copy: RecentChooserDialogPrivate); +} +export class RecentChooserMenuPrivate { + constructor(copy: RecentChooserMenuPrivate); +} +export class RecentChooserWidgetPrivate { + constructor(copy: RecentChooserWidgetPrivate); +} +export class RecentData { + constructor(copy: RecentData); + // Fields + display_name: string; + description: string; + mime_type: string; + app_name: string; + app_exec: string; + groups: string[]; + is_private: boolean; +} +export class RecentFilterInfo { + constructor(copy: RecentFilterInfo); + // Fields + contains: RecentFilterFlags; + uri: string; + display_name: string; + mime_type: string; + applications: string[]; + groups: string[]; + age: number; +} +export class RecentInfo { + constructor(copy: RecentInfo); + // Members + create_app_info(app_name: string | null): Gio.AppInfo | null; + exists(): boolean; + get_added(): number; + get_age(): number; + get_application_info(app_name: string): [boolean, string, number, number]; + get_applications(): [string[], number | null]; + get_description(): string; + get_display_name(): string; + get_gicon(): Gio.Icon | null; + get_groups(): [string[], number | null]; + get_icon(size: number): GdkPixbuf.Pixbuf | null; + get_mime_type(): string; + get_modified(): number; + get_private_hint(): boolean; + get_short_name(): string; + get_uri(): string; + get_uri_display(): string | null; + get_visited(): number; + has_application(app_name: string): boolean; + has_group(group_name: string): boolean; + is_local(): boolean; + last_application(): string; + match(info_b: RecentInfo): boolean; + ref(): RecentInfo; + unref(): void; +} +export class RecentManagerPrivate { + constructor(copy: RecentManagerPrivate); +} +export class RendererCellAccessiblePrivate { + constructor(copy: RendererCellAccessiblePrivate); +} +export class RequestedSize { + constructor(copy: RequestedSize); + // Fields + data: any; + minimum_size: number; + natural_size: number; +} +export class Requisition { + constructor(); + constructor(copy: Requisition); + // Fields + width: number; + height: number; + // Constructors + static ["new"](): Requisition; + // Members + copy(): Requisition; + free(): void; +} +export class ScaleAccessiblePrivate { + constructor(copy: ScaleAccessiblePrivate); +} +export class ScaleButtonAccessiblePrivate { + constructor(copy: ScaleButtonAccessiblePrivate); +} +export class ScaleButtonPrivate { + constructor(copy: ScaleButtonPrivate); +} +export class ScalePrivate { + constructor(copy: ScalePrivate); +} +export class ScrolledWindowAccessiblePrivate { + constructor(copy: ScrolledWindowAccessiblePrivate); +} +export class ScrolledWindowPrivate { + constructor(copy: ScrolledWindowPrivate); +} +export class SelectionData { + constructor(copy: SelectionData); + // Members + copy(): SelectionData; + free(): void; + get_data_type(): Gdk.Atom; + get_data_with_length(): [number[], number]; + get_display(): Gdk.Display; + get_format(): number; + get_length(): number; + get_pixbuf(): GdkPixbuf.Pixbuf | null; + get_selection(): Gdk.Atom; + get_target(): Gdk.Atom; + get_targets(): [boolean, Gdk.Atom[]]; + get_text(): string | null; + get_uris(): string[]; + set(type: Gdk.Atom, format: number, data: number[]): void; + set_pixbuf(pixbuf: GdkPixbuf.Pixbuf): boolean; + set_text(str: string, len: number): boolean; + set_uris(uris: string[]): boolean; + targets_include_image(writable: boolean): boolean; + targets_include_rich_text(buffer: TextBuffer): boolean; + targets_include_text(): boolean; + targets_include_uri(): boolean; +} +export class SeparatorPrivate { + constructor(copy: SeparatorPrivate); +} +export class SeparatorToolItemPrivate { + constructor(copy: SeparatorToolItemPrivate); +} +export class SettingsPrivate { + constructor(copy: SettingsPrivate); +} +export class SettingsValue { + constructor(copy: SettingsValue); + // Fields + origin: string; + value: GObject.Value; +} +export class SizeGroupPrivate { + constructor(copy: SizeGroupPrivate); +} +export class SocketPrivate { + constructor(copy: SocketPrivate); +} +export class SpinButtonAccessiblePrivate { + constructor(copy: SpinButtonAccessiblePrivate); +} +export class SpinButtonPrivate { + constructor(copy: SpinButtonPrivate); +} +export class SpinnerAccessiblePrivate { + constructor(copy: SpinnerAccessiblePrivate); +} +export class SpinnerPrivate { + constructor(copy: SpinnerPrivate); +} +export class StackSidebarPrivate { + constructor(copy: StackSidebarPrivate); +} +export class StatusIconPrivate { + constructor(copy: StatusIconPrivate); +} +export class StatusbarAccessiblePrivate { + constructor(copy: StatusbarAccessiblePrivate); +} +export class StatusbarPrivate { + constructor(copy: StatusbarPrivate); +} +export class StockItem { + constructor(copy: StockItem); + // Fields + stock_id: string; + label: string; + modifier: Gdk.ModifierType; + keyval: number; + translation_domain: string; + // Members + free(): void; +} +export class StyleContextPrivate { + constructor(copy: StyleContextPrivate); +} +export class StylePropertiesPrivate { + constructor(copy: StylePropertiesPrivate); +} +export class SwitchAccessiblePrivate { + constructor(copy: SwitchAccessiblePrivate); +} +export class SwitchPrivate { + constructor(copy: SwitchPrivate); +} +export class SymbolicColor { + constructor(color: SymbolicColor, factor: number); + constructor(copy: SymbolicColor); + // Constructors + static new_alpha(color: SymbolicColor, factor: number): SymbolicColor; + static new_literal(color: Gdk.RGBA): SymbolicColor; + static new_mix(color1: SymbolicColor, color2: SymbolicColor, factor: number): SymbolicColor; + static new_name(name: string): SymbolicColor; + static new_shade(color: SymbolicColor, factor: number): SymbolicColor; + static new_win32(theme_class: string, id: number): SymbolicColor; + // Members + ref(): SymbolicColor; + resolve(props: StyleProperties | null): [boolean, Gdk.RGBA]; + to_string(): string; + unref(): void; +} +export class TableChild { + constructor(copy: TableChild); + // Fields + widget: Widget; + left_attach: number; + right_attach: number; + top_attach: number; + bottom_attach: number; + xpadding: number; + ypadding: number; + xexpand: number; + yexpand: number; + xshrink: number; + yshrink: number; + xfill: number; + yfill: number; +} +export class TablePrivate { + constructor(copy: TablePrivate); +} +export class TableRowCol { + constructor(copy: TableRowCol); + // Fields + requisition: number; + allocation: number; + spacing: number; + need_expand: number; + need_shrink: number; + expand: number; + shrink: number; + empty: number; +} +export class TargetEntry { + constructor(target: string, flags: number, info: number); + constructor(copy: TargetEntry); + // Fields + target: string; + flags: number; + info: number; + // Constructors + static ["new"](target: string, flags: number, info: number): TargetEntry; + // Members + copy(): TargetEntry; + free(): void; +} +export class TargetList { + constructor(targets: TargetEntry[] | null); + constructor(copy: TargetList); + // Constructors + static ["new"](targets: TargetEntry[] | null): TargetList; + // Members + add(target: Gdk.Atom, flags: number, info: number): void; + add_image_targets(info: number, writable: boolean): void; + add_rich_text_targets(info: number, deserializable: boolean, buffer: TextBuffer): void; + add_table(targets: TargetEntry[]): void; + add_text_targets(info: number): void; + add_uri_targets(info: number): void; + find(target: Gdk.Atom): [boolean, number | null]; + ref(): TargetList; + remove(target: Gdk.Atom): void; + unref(): void; +} +export class TargetPair { + constructor(copy: TargetPair); + // Fields + target: Gdk.Atom; + flags: number; + info: number; +} +export class TearoffMenuItemPrivate { + constructor(copy: TearoffMenuItemPrivate); +} +export class TextAppearance { + constructor(copy: TextAppearance); + // Fields + bg_color: Gdk.Color; + fg_color: Gdk.Color; + rise: number; + underline: number; + strikethrough: number; + draw_bg: number; + inside_selection: number; + is_text: number; +} +export class TextAttributes { + constructor(); + constructor(copy: TextAttributes); + // Fields + refcount: number; + appearance: TextAppearance; + justification: Justification; + direction: TextDirection; + font: Pango.FontDescription; + font_scale: number; + left_margin: number; + right_margin: number; + indent: number; + pixels_above_lines: number; + pixels_below_lines: number; + pixels_inside_wrap: number; + tabs: Pango.TabArray; + wrap_mode: WrapMode; + language: Pango.Language; + pg_bg_color: Gdk.Color; + invisible: number; + bg_full_height: number; + editable: number; + no_fallback: number; + pg_bg_rgba: Gdk.RGBA; + letter_spacing: number; + // Constructors + static ["new"](): TextAttributes; + // Members + copy(): TextAttributes; + copy_values(dest: TextAttributes): void; + ref(): TextAttributes; + unref(): void; +} +export class TextBTree { + constructor(copy: TextBTree); +} +export class TextBufferPrivate { + constructor(copy: TextBufferPrivate); +} +export class TextCellAccessiblePrivate { + constructor(copy: TextCellAccessiblePrivate); +} +export class TextIter { + constructor(copy: TextIter); + // Fields + dummy1: any; + dummy2: any; + dummy3: number; + dummy4: number; + dummy5: number; + dummy6: number; + dummy7: number; + dummy8: number; + dummy9: any; + dummy10: any; + dummy11: number; + dummy12: number; + dummy13: number; + dummy14: any; + // Members + assign(other: TextIter): void; + backward_char(): boolean; + backward_chars(count: number): boolean; + backward_cursor_position(): boolean; + backward_cursor_positions(count: number): boolean; + backward_find_char(pred: TextCharPredicate, limit: TextIter | null): boolean; + backward_line(): boolean; + backward_lines(count: number): boolean; + backward_search(str: string, flags: TextSearchFlags, limit: TextIter | null): [boolean, TextIter | null, TextIter | null]; + backward_sentence_start(): boolean; + backward_sentence_starts(count: number): boolean; + backward_to_tag_toggle(tag: TextTag | null): boolean; + backward_visible_cursor_position(): boolean; + backward_visible_cursor_positions(count: number): boolean; + backward_visible_line(): boolean; + backward_visible_lines(count: number): boolean; + backward_visible_word_start(): boolean; + backward_visible_word_starts(count: number): boolean; + backward_word_start(): boolean; + backward_word_starts(count: number): boolean; + begins_tag(tag: TextTag | null): boolean; + can_insert(default_editability: boolean): boolean; + compare(rhs: TextIter): number; + copy(): TextIter; + editable(default_setting: boolean): boolean; + ends_line(): boolean; + ends_sentence(): boolean; + ends_tag(tag: TextTag | null): boolean; + ends_word(): boolean; + equal(rhs: TextIter): boolean; + forward_char(): boolean; + forward_chars(count: number): boolean; + forward_cursor_position(): boolean; + forward_cursor_positions(count: number): boolean; + forward_find_char(pred: TextCharPredicate, limit: TextIter | null): boolean; + forward_line(): boolean; + forward_lines(count: number): boolean; + forward_search(str: string, flags: TextSearchFlags, limit: TextIter | null): [boolean, TextIter | null, TextIter | null]; + forward_sentence_end(): boolean; + forward_sentence_ends(count: number): boolean; + forward_to_end(): void; + forward_to_line_end(): boolean; + forward_to_tag_toggle(tag: TextTag | null): boolean; + forward_visible_cursor_position(): boolean; + forward_visible_cursor_positions(count: number): boolean; + forward_visible_line(): boolean; + forward_visible_lines(count: number): boolean; + forward_visible_word_end(): boolean; + forward_visible_word_ends(count: number): boolean; + forward_word_end(): boolean; + forward_word_ends(count: number): boolean; + free(): void; + get_attributes(): [boolean, TextAttributes]; + get_buffer(): TextBuffer; + get_bytes_in_line(): number; + get_char(): number; + get_chars_in_line(): number; + get_child_anchor(): TextChildAnchor; + get_language(): Pango.Language; + get_line(): number; + get_line_index(): number; + get_line_offset(): number; + get_marks(): string[]; + get_offset(): number; + get_pixbuf(): GdkPixbuf.Pixbuf; + get_slice(end: TextIter): string; + get_tags(): string[]; + get_text(end: TextIter): string; + get_toggled_tags(toggled_on: boolean): string[]; + get_visible_line_index(): number; + get_visible_line_offset(): number; + get_visible_slice(end: TextIter): string; + get_visible_text(end: TextIter): string; + has_tag(tag: TextTag): boolean; + in_range(start: TextIter, end: TextIter): boolean; + inside_sentence(): boolean; + inside_word(): boolean; + is_cursor_position(): boolean; + is_end(): boolean; + is_start(): boolean; + order(second: TextIter): void; + set_line(line_number: number): void; + set_line_index(byte_on_line: number): void; + set_line_offset(char_on_line: number): void; + set_offset(char_offset: number): void; + set_visible_line_index(byte_on_line: number): void; + set_visible_line_offset(char_on_line: number): void; + starts_line(): boolean; + starts_sentence(): boolean; + starts_tag(tag: TextTag | null): boolean; + starts_word(): boolean; + toggles_tag(tag: TextTag | null): boolean; +} +export class TextTagPrivate { + constructor(copy: TextTagPrivate); +} +export class TextTagTablePrivate { + constructor(copy: TextTagTablePrivate); +} +export class TextViewAccessiblePrivate { + constructor(copy: TextViewAccessiblePrivate); +} +export class TextViewPrivate { + constructor(copy: TextViewPrivate); +} +export class ThemeEngine { + constructor(copy: ThemeEngine); +} +export class ThemingEnginePrivate { + constructor(copy: ThemingEnginePrivate); +} +export class ToggleActionEntry { + constructor(copy: ToggleActionEntry); + // Fields + name: string; + stock_id: string; + label: string; + accelerator: string; + tooltip: string; + callback: GObject.Callback; + is_active: boolean; +} +export class ToggleActionPrivate { + constructor(copy: ToggleActionPrivate); +} +export class ToggleButtonAccessiblePrivate { + constructor(copy: ToggleButtonAccessiblePrivate); +} +export class ToggleButtonPrivate { + constructor(copy: ToggleButtonPrivate); +} +export class ToggleToolButtonPrivate { + constructor(copy: ToggleToolButtonPrivate); +} +export class ToolButtonPrivate { + constructor(copy: ToolButtonPrivate); +} +export class ToolItemGroupPrivate { + constructor(copy: ToolItemGroupPrivate); +} +export class ToolItemPrivate { + constructor(copy: ToolItemPrivate); +} +export class ToolPalettePrivate { + constructor(copy: ToolPalettePrivate); +} +export class ToolbarPrivate { + constructor(copy: ToolbarPrivate); +} +export class ToplevelAccessiblePrivate { + constructor(copy: ToplevelAccessiblePrivate); +} +export class TreeIter { + constructor(copy: TreeIter); + // Fields + stamp: number; + user_data: any; + user_data2: any; + user_data3: any; + // Members + copy(): TreeIter; + free(): void; +} +export class TreeModelFilterPrivate { + constructor(copy: TreeModelFilterPrivate); +} +export class TreeModelSortPrivate { + constructor(copy: TreeModelSortPrivate); +} +export class TreePath { + constructor(); + constructor(copy: TreePath); + // Constructors + static ["new"](): TreePath; + static new_first(): TreePath; + static new_from_indicesv(indices: number[]): TreePath; + static new_from_string(path: string): TreePath; + // Members + append_index(index_: number): void; + compare(b: TreePath): number; + copy(): TreePath; + down(): void; + free(): void; + get_depth(): number; + get_indices_with_depth(): [number[], number | null]; + is_ancestor(descendant: TreePath): boolean; + is_descendant(ancestor: TreePath): boolean; + next(): void; + prepend_index(index_: number): void; + prev(): boolean; + to_string(): string; + up(): boolean; +} +export class TreeRowReference { + constructor(model: TreeModel, path: TreePath); + constructor(copy: TreeRowReference); + // Constructors + static ["new"](model: TreeModel, path: TreePath): TreeRowReference; + static new_proxy(proxy: GObject.Object, model: TreeModel, path: TreePath): TreeRowReference; + // Members + copy(): TreeRowReference; + free(): void; + get_model(): TreeModel; + get_path(): TreePath | null; + valid(): boolean; + static deleted(proxy: GObject.Object, path: TreePath): void; + static inserted(proxy: GObject.Object, path: TreePath): void; +} +export class TreeSelectionPrivate { + constructor(copy: TreeSelectionPrivate); +} +export class TreeStorePrivate { + constructor(copy: TreeStorePrivate); +} +export class TreeViewAccessiblePrivate { + constructor(copy: TreeViewAccessiblePrivate); +} +export class TreeViewColumnPrivate { + constructor(copy: TreeViewColumnPrivate); +} +export class TreeViewPrivate { + constructor(copy: TreeViewPrivate); +} +export class UIManagerPrivate { + constructor(copy: UIManagerPrivate); +} +export class ViewportPrivate { + constructor(copy: ViewportPrivate); +} +export class WidgetAccessiblePrivate { + constructor(copy: WidgetAccessiblePrivate); +} +export class WidgetClassPrivate { + constructor(copy: WidgetClassPrivate); +} +export class WidgetPath { + constructor(); + constructor(copy: WidgetPath); + // Constructors + static ["new"](): WidgetPath; + // Members + append_for_widget(widget: Widget): number; + append_type(type: GType): number; + append_with_siblings(siblings: WidgetPath, sibling_index: number): number; + copy(): WidgetPath; + free(): void; + get_object_type(): GType; + has_parent(type: GType): boolean; + is_type(type: GType): boolean; + iter_add_class(pos: number, name: string): void; + iter_add_region(pos: number, name: string, flags: RegionFlags): void; + iter_clear_classes(pos: number): void; + iter_clear_regions(pos: number): void; + iter_get_name(pos: number): string | null; + iter_get_object_name(pos: number): string | null; + iter_get_object_type(pos: number): GType; + iter_get_sibling_index(pos: number): number; + iter_get_siblings(pos: number): WidgetPath; + iter_get_state(pos: number): StateFlags; + iter_has_class(pos: number, name: string): boolean; + iter_has_name(pos: number, name: string): boolean; + iter_has_qclass(pos: number, qname: GLib.Quark): boolean; + iter_has_qname(pos: number, qname: GLib.Quark): boolean; + iter_has_qregion(pos: number, qname: GLib.Quark): [boolean, RegionFlags]; + iter_has_region(pos: number, name: string): [boolean, RegionFlags]; + iter_list_classes(pos: number): string[]; + iter_list_regions(pos: number): string[]; + iter_remove_class(pos: number, name: string): void; + iter_remove_region(pos: number, name: string): void; + iter_set_name(pos: number, name: string): void; + iter_set_object_name(pos: number, name: string | null): void; + iter_set_object_type(pos: number, type: GType): void; + iter_set_state(pos: number, state: StateFlags): void; + length(): number; + prepend_type(type: GType): void; + ref(): WidgetPath; + to_string(): string; + unref(): void; +} +export class WidgetPrivate { + constructor(copy: WidgetPrivate); +} +export class WindowAccessiblePrivate { + constructor(copy: WindowAccessiblePrivate); +} +export class WindowGeometryInfo { + constructor(copy: WindowGeometryInfo); +} +export class WindowGroupPrivate { + constructor(copy: WindowGroupPrivate); +} +export class WindowPrivate { + constructor(copy: WindowPrivate); +} +export interface Actionable { + // Properties + action_name: string; + action_target: GLib.Variant; + // Members + get_action_name(): string | null; + get_action_target_value(): GLib.Variant; + set_action_name(action_name: string | null): void; + set_action_target_value(target_value: GLib.Variant | null): void; + set_detailed_action_name(detailed_action_name: string): void; + vfunc_get_action_name(): string | null; + vfunc_get_action_target_value(): GLib.Variant; + vfunc_set_action_name(action_name: string | null): void; + vfunc_set_action_target_value(target_value: GLib.Variant | null): void; +} +export interface Activatable { + // Properties + related_action: Action; + use_action_appearance: boolean; + // Members + do_set_related_action(action: Action): void; + get_related_action(): Action; + get_use_action_appearance(): boolean; + set_related_action(action: Action): void; + set_use_action_appearance(use_appearance: boolean): void; + sync_action_properties(action: Action | null): void; + vfunc_sync_action_properties(action: Action | null): void; + vfunc_update(action: Action, property_name: string): void; +} +export interface AppChooser { + // Properties + content_type: string; + // Members + get_app_info(): Gio.AppInfo | null; + get_content_type(): string; + refresh(): void; +} +export interface Buildable { + // Members + add_child(builder: Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Builder, name: string): GObject.Object; + custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Builder, childname: string): GObject.Object; + get_name(): string; + parser_finished(builder: Builder): void; + set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_name(name: string): void; + vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Builder): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_name(name: string): void; +} +export interface CellAccessibleParent { + // Members + activate(cell: CellAccessible): void; + edit(cell: CellAccessible): void; + expand_collapse(cell: CellAccessible): void; + get_cell_area(cell: CellAccessible): Gdk.Rectangle; + get_cell_extents(cell: CellAccessible, coord_type: Atk.CoordType): [number, number, number, number]; + get_cell_position(cell: CellAccessible): [number, number]; + get_child_index(cell: CellAccessible): number; + get_column_header_cells(cell: CellAccessible): Atk.Object[]; + get_renderer_state(cell: CellAccessible): CellRendererState; + get_row_header_cells(cell: CellAccessible): Atk.Object[]; + grab_focus(cell: CellAccessible): boolean; + update_relationset(cell: CellAccessible, relationset: Atk.RelationSet): void; + vfunc_activate(cell: CellAccessible): void; + vfunc_edit(cell: CellAccessible): void; + vfunc_expand_collapse(cell: CellAccessible): void; + vfunc_get_cell_area(cell: CellAccessible): Gdk.Rectangle; + vfunc_get_cell_extents(cell: CellAccessible, coord_type: Atk.CoordType): [number, number, number, number]; + vfunc_get_cell_position(cell: CellAccessible): [number, number]; + vfunc_get_child_index(cell: CellAccessible): number; + vfunc_get_column_header_cells(cell: CellAccessible): Atk.Object[]; + vfunc_get_renderer_state(cell: CellAccessible): CellRendererState; + vfunc_get_row_header_cells(cell: CellAccessible): Atk.Object[]; + vfunc_grab_focus(cell: CellAccessible): boolean; + vfunc_update_relationset(cell: CellAccessible, relationset: Atk.RelationSet): void; +} +export interface CellEditable { + // Properties + editing_canceled: boolean; + // Members + editing_done(): void; + remove_widget(): void; + start_editing(event: Gdk.Event | null): void; + vfunc_editing_done(): void; + vfunc_remove_widget(): void; + vfunc_start_editing(event: Gdk.Event | null): void; +} +export interface CellLayout { + // Members + add_attribute(cell: CellRenderer, attribute: string, column: number): void; + clear(): void; + clear_attributes(cell: CellRenderer): void; + get_area(): CellArea | null; + get_cells(): GLib.List; + pack_end(cell: CellRenderer, expand: boolean): void; + pack_start(cell: CellRenderer, expand: boolean): void; + reorder(cell: CellRenderer, position: number): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; + vfunc_clear(): void; + vfunc_clear_attributes(cell: CellRenderer): void; + vfunc_get_area(): CellArea | null; + vfunc_get_cells(): GLib.List; + vfunc_pack_end(cell: CellRenderer, expand: boolean): void; + vfunc_pack_start(cell: CellRenderer, expand: boolean): void; + vfunc_reorder(cell: CellRenderer, position: number): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; +} +export interface ColorChooser { + // Properties + rgba: Gdk.RGBA; + use_alpha: boolean; + // Members + add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + get_rgba(): Gdk.RGBA; + get_use_alpha(): boolean; + set_rgba(color: Gdk.RGBA): void; + set_use_alpha(use_alpha: boolean): void; + vfunc_add_palette(orientation: Orientation, colors_per_line: number, colors: Gdk.RGBA[] | null): void; + vfunc_color_activated(color: Gdk.RGBA): void; + vfunc_get_rgba(): Gdk.RGBA; + vfunc_set_rgba(color: Gdk.RGBA): void; +} +export interface Editable { + // Members + copy_clipboard(): void; + cut_clipboard(): void; + delete_selection(): void; + delete_text(start_pos: number, end_pos: number): void; + get_chars(start_pos: number, end_pos: number): string; + get_editable(): boolean; + get_position(): number; + get_selection_bounds(): [boolean, number | null, number | null]; + insert_text(new_text: string, new_text_length: number, position: number): number; + paste_clipboard(): void; + select_region(start_pos: number, end_pos: number): void; + set_editable(is_editable: boolean): void; + set_position(position: number): void; + vfunc_changed(): void; + vfunc_delete_text(start_pos: number, end_pos: number): void; + vfunc_do_delete_text(start_pos: number, end_pos: number): void; + vfunc_do_insert_text(new_text: string, new_text_length: number, position: number): number; + vfunc_get_chars(start_pos: number, end_pos: number): string; + vfunc_get_position(): number; + vfunc_get_selection_bounds(): [boolean, number | null, number | null]; + vfunc_insert_text(new_text: string, new_text_length: number, position: number): number; + vfunc_set_position(position: number): void; + vfunc_set_selection_bounds(start_pos: number, end_pos: number): void; +} +export interface FileChooser { + // Properties + action: FileChooserAction; + create_folders: boolean; + do_overwrite_confirmation: boolean; + extra_widget: Widget; + filter: FileFilter; + local_only: boolean; + preview_widget: Widget; + preview_widget_active: boolean; + select_multiple: boolean; + show_hidden: boolean; + use_preview_label: boolean; + // Members + add_choice(id: string, label: string, options: string[] | null, option_labels: string[] | null): void; + add_filter(filter: FileFilter): void; + add_shortcut_folder(folder: string): boolean; + add_shortcut_folder_uri(uri: string): boolean; + get_action(): FileChooserAction; + get_choice(id: string): string; + get_create_folders(): boolean; + get_current_folder(): string | null; + get_current_folder_file(): Gio.File; + get_current_folder_uri(): string | null; + get_current_name(): string; + get_do_overwrite_confirmation(): boolean; + get_extra_widget(): Widget | null; + get_file(): Gio.File; + get_filename(): string | null; + get_filenames(): string[]; + get_files(): string[]; + get_filter(): FileFilter | null; + get_local_only(): boolean; + get_preview_file(): Gio.File | null; + get_preview_filename(): string | null; + get_preview_uri(): string | null; + get_preview_widget(): Widget | null; + get_preview_widget_active(): boolean; + get_select_multiple(): boolean; + get_show_hidden(): boolean; + get_uri(): string | null; + get_uris(): string[]; + get_use_preview_label(): boolean; + list_filters(): string[]; + list_shortcut_folder_uris(): string[] | null; + list_shortcut_folders(): string[] | null; + remove_choice(id: string): void; + remove_filter(filter: FileFilter): void; + remove_shortcut_folder(folder: string): boolean; + remove_shortcut_folder_uri(uri: string): boolean; + select_all(): void; + select_file(file: Gio.File): boolean; + select_filename(filename: string): boolean; + select_uri(uri: string): boolean; + set_action(action: FileChooserAction): void; + set_choice(id: string, option: string): void; + set_create_folders(create_folders: boolean): void; + set_current_folder(filename: string): boolean; + set_current_folder_file(file: Gio.File): boolean; + set_current_folder_uri(uri: string): boolean; + set_current_name(name: string): void; + set_do_overwrite_confirmation(do_overwrite_confirmation: boolean): void; + set_extra_widget(extra_widget: Widget): void; + set_file(file: Gio.File): boolean; + set_filename(filename: string): boolean; + set_filter(filter: FileFilter): void; + set_local_only(local_only: boolean): void; + set_preview_widget(preview_widget: Widget): void; + set_preview_widget_active(active: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_hidden(show_hidden: boolean): void; + set_uri(uri: string): boolean; + set_use_preview_label(use_label: boolean): void; + unselect_all(): void; + unselect_file(file: Gio.File): void; + unselect_filename(filename: string): void; + unselect_uri(uri: string): void; +} +export interface FontChooser { + // Properties + font: string; + font_desc: Pango.FontDescription; + font_features: string; + language: string; + level: FontChooserLevel; + preview_text: string; + show_preview_entry: boolean; + // Members + get_font(): string | null; + get_font_desc(): Pango.FontDescription | null; + get_font_face(): Pango.FontFace | null; + get_font_family(): Pango.FontFamily | null; + get_font_features(): string; + get_font_map(): Pango.FontMap | null; + get_font_size(): number; + get_language(): string; + get_level(): FontChooserLevel; + get_preview_text(): string; + get_show_preview_entry(): boolean; + set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + set_font(fontname: string): void; + set_font_desc(font_desc: Pango.FontDescription): void; + set_font_map(fontmap: Pango.FontMap | null): void; + set_language(language: string): void; + set_level(level: FontChooserLevel): void; + set_preview_text(text: string): void; + set_show_preview_entry(show_preview_entry: boolean): void; + vfunc_font_activated(fontname: string): void; + vfunc_get_font_face(): Pango.FontFace | null; + vfunc_get_font_family(): Pango.FontFamily | null; + vfunc_get_font_map(): Pango.FontMap | null; + vfunc_get_font_size(): number; + vfunc_set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; + vfunc_set_font_map(fontmap: Pango.FontMap | null): void; +} +export interface Orientable { + // Properties + orientation: Orientation; + // Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; +} +export interface PrintOperationPreview { + // Members + end_preview(): void; + is_selected(page_nr: number): boolean; + render_page(page_nr: number): void; + vfunc_end_preview(): void; + vfunc_got_page_size(context: PrintContext, page_setup: PageSetup): void; + vfunc_is_selected(page_nr: number): boolean; + vfunc_ready(context: PrintContext): void; + vfunc_render_page(page_nr: number): void; +} +export interface RecentChooser { + // Properties + filter: RecentFilter; + limit: number; + local_only: boolean; + recent_manager: RecentManager; + select_multiple: boolean; + show_icons: boolean; + show_not_found: boolean; + show_private: boolean; + show_tips: boolean; + sort_type: RecentSortType; + // Members + add_filter(filter: RecentFilter): void; + get_current_item(): RecentInfo; + get_current_uri(): string; + get_filter(): RecentFilter; + get_items(): GLib.List; + get_limit(): number; + get_local_only(): boolean; + get_select_multiple(): boolean; + get_show_icons(): boolean; + get_show_not_found(): boolean; + get_show_private(): boolean; + get_show_tips(): boolean; + get_sort_type(): RecentSortType; + get_uris(): [string[], number | null]; + list_filters(): string[]; + remove_filter(filter: RecentFilter): void; + select_all(): void; + select_uri(uri: string): boolean; + set_current_uri(uri: string): boolean; + set_filter(filter: RecentFilter | null): void; + set_limit(limit: number): void; + set_local_only(local_only: boolean): void; + set_select_multiple(select_multiple: boolean): void; + set_show_icons(show_icons: boolean): void; + set_show_not_found(show_not_found: boolean): void; + set_show_private(show_private: boolean): void; + set_show_tips(show_tips: boolean): void; + set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_type(sort_type: RecentSortType): void; + unselect_all(): void; + unselect_uri(uri: string): void; + vfunc_add_filter(filter: RecentFilter): void; + vfunc_get_current_uri(): string; + vfunc_get_items(): GLib.List; + vfunc_item_activated(): void; + vfunc_list_filters(): string[]; + vfunc_remove_filter(filter: RecentFilter): void; + vfunc_select_all(): void; + vfunc_select_uri(uri: string): boolean; + vfunc_selection_changed(): void; + vfunc_set_current_uri(uri: string): boolean; + vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_unselect_all(): void; + vfunc_unselect_uri(uri: string): void; +} +export interface Scrollable { + // Properties + hadjustment: Adjustment; + hscroll_policy: ScrollablePolicy; + vadjustment: Adjustment; + vscroll_policy: ScrollablePolicy; + // Members + get_border(): [boolean, Border]; + get_hadjustment(): Adjustment; + get_hscroll_policy(): ScrollablePolicy; + get_vadjustment(): Adjustment; + get_vscroll_policy(): ScrollablePolicy; + set_hadjustment(hadjustment: Adjustment | null): void; + set_hscroll_policy(policy: ScrollablePolicy): void; + set_vadjustment(vadjustment: Adjustment | null): void; + set_vscroll_policy(policy: ScrollablePolicy): void; + vfunc_get_border(): [boolean, Border]; +} +export interface StyleProvider { + // Members + get_icon_factory(path: WidgetPath): IconFactory | null; + get_style(path: WidgetPath): StyleProperties | null; + get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; + vfunc_get_icon_factory(path: WidgetPath): IconFactory | null; + vfunc_get_style(path: WidgetPath): StyleProperties | null; + vfunc_get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; +} +export interface ToolShell { + // Members + get_ellipsize_mode(): Pango.EllipsizeMode; + get_icon_size(): number; + get_orientation(): Orientation; + get_relief_style(): ReliefStyle; + get_style(): ToolbarStyle; + get_text_alignment(): number; + get_text_orientation(): Orientation; + get_text_size_group(): SizeGroup; + rebuild_menu(): void; + vfunc_get_ellipsize_mode(): Pango.EllipsizeMode; + vfunc_get_icon_size(): IconSize; + vfunc_get_orientation(): Orientation; + vfunc_get_relief_style(): ReliefStyle; + vfunc_get_style(): ToolbarStyle; + vfunc_get_text_alignment(): number; + vfunc_get_text_orientation(): Orientation; + vfunc_get_text_size_group(): SizeGroup; + vfunc_rebuild_menu(): void; +} +export interface TreeDragDest { + // Members + drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; + row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; + vfunc_drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; + vfunc_row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; +} +export interface TreeDragSource { + // Members + drag_data_delete(path: TreePath): boolean; + drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + row_draggable(path: TreePath): boolean; + vfunc_drag_data_delete(path: TreePath): boolean; + vfunc_drag_data_get(path: TreePath, selection_data: SelectionData): boolean; + vfunc_row_draggable(path: TreePath): boolean; +} +export interface TreeModel { + // Members + filter_new(root: TreePath | null): TreeModel; + foreach(func: TreeModelForeachFunc): void; + get_column_type(index_: number): GType; + get_flags(): TreeModelFlags; + get_iter(path: TreePath): [boolean, TreeIter]; + get_iter_first(): [boolean, TreeIter]; + get_iter_from_string(path_string: string): [boolean, TreeIter]; + get_n_columns(): number; + get_path(iter: TreeIter): TreePath; + get_string_from_iter(iter: TreeIter): string; + get_value(iter: TreeIter, column: number): GObject.Value; + iter_children(parent: TreeIter | null): [boolean, TreeIter]; + iter_has_child(iter: TreeIter): boolean; + iter_n_children(iter: TreeIter | null): number; + iter_next(iter: TreeIter): boolean; + iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + iter_parent(child: TreeIter): [boolean, TreeIter]; + iter_previous(iter: TreeIter): boolean; + ref_node(iter: TreeIter): void; + row_changed(path: TreePath, iter: TreeIter): void; + row_deleted(path: TreePath): void; + row_has_child_toggled(path: TreePath, iter: TreeIter): void; + row_inserted(path: TreePath, iter: TreeIter): void; + rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + unref_node(iter: TreeIter): void; + vfunc_get_column_type(index_: number): GType; + vfunc_get_flags(): TreeModelFlags; + vfunc_get_iter(path: TreePath): [boolean, TreeIter]; + vfunc_get_n_columns(): number; + vfunc_get_path(iter: TreeIter): TreePath; + vfunc_get_value(iter: TreeIter, column: number): GObject.Value; + vfunc_iter_children(parent: TreeIter | null): [boolean, TreeIter]; + vfunc_iter_has_child(iter: TreeIter): boolean; + vfunc_iter_n_children(iter: TreeIter | null): number; + vfunc_iter_next(iter: TreeIter): boolean; + vfunc_iter_nth_child(parent: TreeIter | null, n: number): [boolean, TreeIter]; + vfunc_iter_parent(child: TreeIter): [boolean, TreeIter]; + vfunc_iter_previous(iter: TreeIter): boolean; + vfunc_ref_node(iter: TreeIter): void; + vfunc_row_changed(path: TreePath, iter: TreeIter): void; + vfunc_row_deleted(path: TreePath): void; + vfunc_row_has_child_toggled(path: TreePath, iter: TreeIter): void; + vfunc_row_inserted(path: TreePath, iter: TreeIter): void; + vfunc_unref_node(iter: TreeIter): void; +} +export interface TreeSortable { + // Members + get_sort_column_id(): [boolean, number, SortType]; + has_default_sort_func(): boolean; + set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + set_sort_column_id(sort_column_id: number, order: SortType): void; + set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + sort_column_changed(): void; + vfunc_get_sort_column_id(): [boolean, number, SortType]; + vfunc_has_default_sort_func(): boolean; + vfunc_set_default_sort_func(sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_column_id(sort_column_id: number, order: SortType): void; + vfunc_set_sort_func(sort_column_id: number, sort_func: TreeIterCompareFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_sort_column_changed(): void; +} + +export type Allocation = Gdk.Rectangle; + +export type Stock = string; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/pango.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/pango.d.ts new file mode 100644 index 0000000..a3390e4 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/pango.d.ts @@ -0,0 +1,1257 @@ + + +/** + * Pango + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as cairo from "cairo"; +type GType = object; + +export const ANALYSIS_FLAG_CENTERED_BASELINE: number; + +export const ANALYSIS_FLAG_IS_ELLIPSIS: number; + +export const ANALYSIS_FLAG_NEED_HYPHEN: number; + +export const ATTR_INDEX_FROM_TEXT_BEGINNING: number; + +export const ENGINE_TYPE_LANG: string; + +export const ENGINE_TYPE_SHAPE: string; + +export const GLYPH_EMPTY: Glyph; + +export const GLYPH_INVALID_INPUT: Glyph; + +export const GLYPH_UNKNOWN_FLAG: Glyph; + +export const RENDER_TYPE_NONE: string; + +export const SCALE: number; + +export const UNKNOWN_GLYPH_HEIGHT: number; + +export const UNKNOWN_GLYPH_WIDTH: number; + +export const VERSION_MIN_REQUIRED: number; + +export function attr_allow_breaks_new(allow_breaks: boolean): Attribute; + +export function attr_background_alpha_new(alpha: number): Attribute; + +export function attr_background_new(red: number, green: number, blue: number): Attribute; + +export function attr_fallback_new(enable_fallback: boolean): Attribute; + +export function attr_family_new(family: string): Attribute; + +export function attr_font_desc_new(desc: FontDescription): Attribute; + +export function attr_font_features_new(features: string): Attribute; + +export function attr_foreground_alpha_new(alpha: number): Attribute; + +export function attr_foreground_new(red: number, green: number, blue: number): Attribute; + +export function attr_gravity_hint_new(hint: GravityHint): Attribute; + +export function attr_gravity_new(gravity: Gravity): Attribute; + +export function attr_insert_hyphens_new(insert_hyphens: boolean): Attribute; + +export function attr_language_new(language: Language): Attribute; + +export function attr_letter_spacing_new(letter_spacing: number): Attribute; + +export function attr_rise_new(rise: number): Attribute; + +export function attr_scale_new(scale_factor: number): Attribute; + +export function attr_shape_new(ink_rect: Rectangle, logical_rect: Rectangle): Attribute; + +export function attr_shape_new_with_data(ink_rect: Rectangle, logical_rect: Rectangle, data: any | null, copy_func: AttrDataCopyFunc | null, destroy_func: GLib.DestroyNotify | null): Attribute; + +export function attr_show_new(flags: ShowFlags): Attribute; + +export function attr_size_new(size: number): Attribute; + +export function attr_size_new_absolute(size: number): Attribute; + +export function attr_stretch_new(stretch: Stretch): Attribute; + +export function attr_strikethrough_color_new(red: number, green: number, blue: number): Attribute; + +export function attr_strikethrough_new(strikethrough: boolean): Attribute; + +export function attr_style_new(style: Style): Attribute; + +export function attr_type_get_name(type: AttrType): string | null; + +export function attr_type_register(name: string): AttrType; + +export function attr_underline_color_new(red: number, green: number, blue: number): Attribute; + +export function attr_underline_new(underline: Underline): Attribute; + +export function attr_variant_new(variant: Variant): Attribute; + +export function attr_weight_new(weight: Weight): Attribute; + +export function bidi_type_for_unichar(ch: number): BidiType; + +export function __break(text: string, length: number, analysis: Analysis, attrs: LogAttr[]): void; + +export function default_break(text: string, length: number, analysis: Analysis | null, attrs: LogAttr, attrs_len: number): void; + +export function extents_to_pixels(inclusive: Rectangle | null, nearest: Rectangle | null): void; + +export function find_base_dir(text: string, length: number): Direction; + +export function find_paragraph_boundary(text: string, length: number): [number, number]; + +export function font_description_from_string(str: string): FontDescription; + +export function get_log_attrs(text: string, length: number, level: number, language: Language, log_attrs: LogAttr[]): void; + +export function get_mirror_char(ch: number, mirrored_ch: number): boolean; + +export function gravity_get_for_matrix(matrix: Matrix | null): Gravity; + +export function gravity_get_for_script(script: Script, base_gravity: Gravity, hint: GravityHint): Gravity; + +export function gravity_get_for_script_and_width(script: Script, wide: boolean, base_gravity: Gravity, hint: GravityHint): Gravity; + +export function gravity_to_rotation(gravity: Gravity): number; + +export function is_zero_width(ch: number): boolean; + +export function itemize(context: Context, text: string, start_index: number, length: number, attrs: AttrList, cached_iter: AttrIterator | null): GLib.List; + +export function itemize_with_base_dir(context: Context, base_dir: Direction, text: string, start_index: number, length: number, attrs: AttrList, cached_iter: AttrIterator | null): GLib.List; + +export function language_from_string(language: string | null): Language | null; + +export function language_get_default(): Language; + +export function log2vis_get_embedding_levels(text: string, length: number, pbase_dir: Direction): number; + +export function markup_parser_finish(context: GLib.MarkupParseContext): [boolean, AttrList | null, string | null, number | null]; + +export function markup_parser_new(accel_marker: number): GLib.MarkupParseContext; + +export function parse_enum(type: GType, str: string | null, warn: boolean): [boolean, number | null, string | null]; + +export function parse_markup(markup_text: string, length: number, accel_marker: number): [boolean, AttrList | null, string | null, number | null]; + +export function parse_stretch(str: string, warn: boolean): [boolean, Stretch]; + +export function parse_style(str: string, warn: boolean): [boolean, Style]; + +export function parse_variant(str: string, warn: boolean): [boolean, Variant]; + +export function parse_weight(str: string, warn: boolean): [boolean, Weight]; + +export function quantize_line_geometry(thickness: number, position: number): [number, number]; + +export function read_line(stream: any | null, str: GLib.String): number; + +export function reorder_items(logical_items: GLib.List): GLib.List; + +export function scan_int(pos: string): [boolean, string, number]; + +export function scan_string(pos: string, out: GLib.String): [boolean, string]; + +export function scan_word(pos: string, out: GLib.String): [boolean, string]; + +export function script_for_unichar(ch: number): Script; + +export function script_get_sample_language(script: Script): Language | null; + +export function shape(text: string, length: number, analysis: Analysis, glyphs: GlyphString): void; + +export function shape_full(item_text: string, item_length: number, paragraph_text: string | null, paragraph_length: number, analysis: Analysis, glyphs: GlyphString): void; + +export function shape_with_flags(item_text: string, item_length: number, paragraph_text: string | null, paragraph_length: number, analysis: Analysis, glyphs: GlyphString, flags: ShapeFlags): void; + +export function skip_space(pos: string): [boolean, string]; + +export function split_file_list(str: string): string[]; + +export function tailor_break(text: string, length: number, analysis: Analysis, offset: number, log_attrs: LogAttr[]): void; + +export function trim_string(str: string): string; + +export function unichar_direction(ch: number): Direction; + +export function units_from_double(d: number): number; + +export function units_to_double(i: number): number; + +export function version(): number; + +export function version_check(required_major: number, required_minor: number, required_micro: number): string | null; + +export function version_string(): string; + +export type AttrDataCopyFunc = () => any | null; + +export type AttrFilterFunc = (attribute: Attribute) => boolean; + +export type FontsetForeachFunc = (fontset: Fontset, font: Font) => boolean; +export enum Alignment { + LEFT = 0, + CENTER = 1, + RIGHT = 2, +} +export enum AttrType { + INVALID = 0, + LANGUAGE = 1, + FAMILY = 2, + STYLE = 3, + WEIGHT = 4, + VARIANT = 5, + STRETCH = 6, + SIZE = 7, + FONT_DESC = 8, + FOREGROUND = 9, + BACKGROUND = 10, + UNDERLINE = 11, + STRIKETHROUGH = 12, + RISE = 13, + SHAPE = 14, + SCALE = 15, + FALLBACK = 16, + LETTER_SPACING = 17, + UNDERLINE_COLOR = 18, + STRIKETHROUGH_COLOR = 19, + ABSOLUTE_SIZE = 20, + GRAVITY = 21, + GRAVITY_HINT = 22, + FONT_FEATURES = 23, + FOREGROUND_ALPHA = 24, + BACKGROUND_ALPHA = 25, + ALLOW_BREAKS = 26, + SHOW = 27, + INSERT_HYPHENS = 28, +} +export enum BidiType { + L = 0, + LRE = 1, + LRO = 2, + R = 3, + AL = 4, + RLE = 5, + RLO = 6, + PDF = 7, + EN = 8, + ES = 9, + ET = 10, + AN = 11, + CS = 12, + NSM = 13, + BN = 14, + B = 15, + S = 16, + WS = 17, + ON = 18, +} +export enum CoverageLevel { + NONE = 0, + FALLBACK = 1, + APPROXIMATE = 2, + EXACT = 3, +} +export enum Direction { + LTR = 0, + RTL = 1, + TTB_LTR = 2, + TTB_RTL = 3, + WEAK_LTR = 4, + WEAK_RTL = 5, + NEUTRAL = 6, +} +export enum EllipsizeMode { + NONE = 0, + START = 1, + MIDDLE = 2, + END = 3, +} +export enum Gravity { + SOUTH = 0, + EAST = 1, + NORTH = 2, + WEST = 3, + AUTO = 4, +} +export enum GravityHint { + NATURAL = 0, + STRONG = 1, + LINE = 2, +} +export enum RenderPart { + FOREGROUND = 0, + BACKGROUND = 1, + UNDERLINE = 2, + STRIKETHROUGH = 3, +} +export enum Script { + INVALID_CODE = -1, + COMMON = 0, + INHERITED = 1, + ARABIC = 2, + ARMENIAN = 3, + BENGALI = 4, + BOPOMOFO = 5, + CHEROKEE = 6, + COPTIC = 7, + CYRILLIC = 8, + DESERET = 9, + DEVANAGARI = 10, + ETHIOPIC = 11, + GEORGIAN = 12, + GOTHIC = 13, + GREEK = 14, + GUJARATI = 15, + GURMUKHI = 16, + HAN = 17, + HANGUL = 18, + HEBREW = 19, + HIRAGANA = 20, + KANNADA = 21, + KATAKANA = 22, + KHMER = 23, + LAO = 24, + LATIN = 25, + MALAYALAM = 26, + MONGOLIAN = 27, + MYANMAR = 28, + OGHAM = 29, + OLD_ITALIC = 30, + ORIYA = 31, + RUNIC = 32, + SINHALA = 33, + SYRIAC = 34, + TAMIL = 35, + TELUGU = 36, + THAANA = 37, + THAI = 38, + TIBETAN = 39, + CANADIAN_ABORIGINAL = 40, + YI = 41, + TAGALOG = 42, + HANUNOO = 43, + BUHID = 44, + TAGBANWA = 45, + BRAILLE = 46, + CYPRIOT = 47, + LIMBU = 48, + OSMANYA = 49, + SHAVIAN = 50, + LINEAR_B = 51, + TAI_LE = 52, + UGARITIC = 53, + NEW_TAI_LUE = 54, + BUGINESE = 55, + GLAGOLITIC = 56, + TIFINAGH = 57, + SYLOTI_NAGRI = 58, + OLD_PERSIAN = 59, + KHAROSHTHI = 60, + UNKNOWN = 61, + BALINESE = 62, + CUNEIFORM = 63, + PHOENICIAN = 64, + PHAGS_PA = 65, + NKO = 66, + KAYAH_LI = 67, + LEPCHA = 68, + REJANG = 69, + SUNDANESE = 70, + SAURASHTRA = 71, + CHAM = 72, + OL_CHIKI = 73, + VAI = 74, + CARIAN = 75, + LYCIAN = 76, + LYDIAN = 77, + BATAK = 78, + BRAHMI = 79, + MANDAIC = 80, + CHAKMA = 81, + MEROITIC_CURSIVE = 82, + MEROITIC_HIEROGLYPHS = 83, + MIAO = 84, + SHARADA = 85, + SORA_SOMPENG = 86, + TAKRI = 87, + BASSA_VAH = 88, + CAUCASIAN_ALBANIAN = 89, + DUPLOYAN = 90, + ELBASAN = 91, + GRANTHA = 92, + KHOJKI = 93, + KHUDAWADI = 94, + LINEAR_A = 95, + MAHAJANI = 96, + MANICHAEAN = 97, + MENDE_KIKAKUI = 98, + MODI = 99, + MRO = 100, + NABATAEAN = 101, + OLD_NORTH_ARABIAN = 102, + OLD_PERMIC = 103, + PAHAWH_HMONG = 104, + PALMYRENE = 105, + PAU_CIN_HAU = 106, + PSALTER_PAHLAVI = 107, + SIDDHAM = 108, + TIRHUTA = 109, + WARANG_CITI = 110, + AHOM = 111, + ANATOLIAN_HIEROGLYPHS = 112, + HATRAN = 113, + MULTANI = 114, + OLD_HUNGARIAN = 115, + SIGNWRITING = 116, +} +export enum Stretch { + ULTRA_CONDENSED = 0, + EXTRA_CONDENSED = 1, + CONDENSED = 2, + SEMI_CONDENSED = 3, + NORMAL = 4, + SEMI_EXPANDED = 5, + EXPANDED = 6, + EXTRA_EXPANDED = 7, + ULTRA_EXPANDED = 8, +} +export enum Style { + NORMAL = 0, + OBLIQUE = 1, + ITALIC = 2, +} +export enum TabAlign { + LEFT = 0, +} +export enum Underline { + NONE = 0, + SINGLE = 1, + DOUBLE = 2, + LOW = 3, + ERROR = 4, +} +export enum Variant { + NORMAL = 0, + SMALL_CAPS = 1, +} +export enum Weight { + THIN = 100, + ULTRALIGHT = 200, + LIGHT = 300, + SEMILIGHT = 350, + BOOK = 380, + NORMAL = 400, + MEDIUM = 500, + SEMIBOLD = 600, + BOLD = 700, + ULTRABOLD = 800, + HEAVY = 900, + ULTRAHEAVY = 1000, +} +export enum WrapMode { + WORD = 0, + CHAR = 1, + WORD_CHAR = 2, +} +export enum FontMask { + FAMILY = 1, + STYLE = 2, + VARIANT = 4, + WEIGHT = 8, + STRETCH = 16, + SIZE = 32, + GRAVITY = 64, + VARIATIONS = 128, +} +export enum ShapeFlags { + NONE = 0, + ROUND_POSITIONS = 1, +} +export enum ShowFlags { + NONE = 0, + SPACES = 1, + LINE_BREAKS = 2, + IGNORABLES = 4, +} +export module Context { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Context extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): Context; + // Members + changed(): void; + get_base_dir(): Direction; + get_base_gravity(): Gravity; + get_font_description(): FontDescription; + get_font_map(): FontMap; + get_gravity(): Gravity; + get_gravity_hint(): GravityHint; + get_language(): Language; + get_matrix(): Matrix | null; + get_metrics(desc: FontDescription | null, language: Language | null): FontMetrics; + get_round_glyph_positions(): boolean; + get_serial(): number; + list_families(): FontFamily[]; + load_font(desc: FontDescription): Font | null; + load_fontset(desc: FontDescription, language: Language): Fontset | null; + set_base_dir(direction: Direction): void; + set_base_gravity(gravity: Gravity): void; + set_font_description(desc: FontDescription): void; + set_font_map(font_map: FontMap): void; + set_gravity_hint(hint: GravityHint): void; + set_language(language: Language): void; + set_matrix(matrix: Matrix | null): void; + set_round_glyph_positions(round_positions: boolean): void; +} +export module Coverage { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Coverage extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](): Coverage; + // Members + copy(): Coverage; + get(index_: number): CoverageLevel; + max(other: Coverage): void; + ref(): Coverage; + ref(...args: never[]): never; + set(index_: number, level: CoverageLevel): void; + set(...args: never[]): never; + to_bytes(): number[]; + unref(): void; + static from_bytes(bytes: number[]): Coverage | null; +} +export module Engine { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Engine extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); +} +export module EngineLang { + export interface ConstructorProperties extends Engine.ConstructorProperties { + [key: string]: any; + } +} +export abstract class EngineLang extends Engine { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + vfunc_script_break(text: string, len: number, analysis: Analysis, attrs: LogAttr, attrs_len: number): void; +} +export module EngineShape { + export interface ConstructorProperties extends Engine.ConstructorProperties { + [key: string]: any; + } +} +export abstract class EngineShape extends Engine { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + vfunc_covers(font: Font, language: Language, wc: number): CoverageLevel; + vfunc_script_shape(font: Font, item_text: string, item_length: number, analysis: Analysis, glyphs: GlyphString, paragraph_text: string, paragraph_length: number): void; +} +export module Font { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Font extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + describe(): FontDescription; + describe_with_absolute_size(): FontDescription; + find_shaper(language: Language, ch: number): EngineShape; + get_coverage(language: Language): Coverage; + get_font_map(): FontMap | null; + get_glyph_extents(glyph: Glyph): [Rectangle | null, Rectangle | null]; + get_metrics(language: Language | null): FontMetrics; + has_char(wc: number): boolean; + vfunc_describe(): FontDescription; + vfunc_describe_absolute(): FontDescription; + vfunc_get_coverage(language: Language): Coverage; + vfunc_get_font_map(): FontMap | null; + vfunc_get_glyph_extents(glyph: Glyph): [Rectangle | null, Rectangle | null]; + vfunc_get_metrics(language: Language | null): FontMetrics; + static descriptions_free(descs: FontDescription[] | null): void; +} +export module FontFace { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class FontFace extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + describe(): FontDescription; + get_face_name(): string; + is_synthesized(): boolean; + list_sizes(): number[] | null; + vfunc_describe(): FontDescription; + vfunc_get_face_name(): string; + vfunc_is_synthesized(): boolean; + vfunc_list_sizes(): number[] | null; +} +export module FontFamily { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class FontFamily extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + get_name(): string; + is_monospace(): boolean; + is_variable(): boolean; + list_faces(): FontFace[] | null; + vfunc_get_name(): string; + vfunc_is_monospace(): boolean; + vfunc_is_variable(): boolean; + vfunc_list_faces(): FontFace[] | null; +} +export module FontMap { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class FontMap extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + changed(): void; + create_context(): Context; + get_serial(): number; + list_families(): FontFamily[]; + load_font(context: Context, desc: FontDescription): Font | null; + load_fontset(context: Context, desc: FontDescription, language: Language): Fontset | null; + vfunc_changed(): void; + vfunc_get_serial(): number; + vfunc_list_families(): FontFamily[]; + vfunc_load_font(context: Context, desc: FontDescription): Font | null; + vfunc_load_fontset(context: Context, desc: FontDescription, language: Language): Fontset | null; +} +export module Fontset { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Fontset extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Members + foreach(func: FontsetForeachFunc, data: any | null): void; + get_font(wc: number): Font; + get_metrics(): FontMetrics; + vfunc_foreach(func: FontsetForeachFunc, data: any | null): void; + vfunc_get_font(wc: number): Font; + vfunc_get_language(): Language; + vfunc_get_metrics(): FontMetrics; +} +export module FontsetSimple { + export interface ConstructorProperties extends Fontset.ConstructorProperties { + [key: string]: any; + } +} +export class FontsetSimple extends Fontset { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](language: Language): FontsetSimple; + // Members + append(font: Font): void; + size(): number; +} +export module Layout { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Layout extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Constructors + static ["new"](context: Context): Layout; + // Members + context_changed(): void; + copy(): Layout; + get_alignment(): Alignment; + get_attributes(): AttrList; + get_auto_dir(): boolean; + get_baseline(): number; + get_character_count(): number; + get_context(): Context; + get_cursor_pos(index_: number): [Rectangle | null, Rectangle | null]; + get_ellipsize(): EllipsizeMode; + get_extents(): [Rectangle | null, Rectangle | null]; + get_font_description(): FontDescription | null; + get_height(): number; + get_indent(): number; + get_iter(): LayoutIter; + get_justify(): boolean; + get_line(line: number): LayoutLine | null; + get_line_count(): number; + get_line_readonly(line: number): LayoutLine | null; + get_line_spacing(): number; + get_lines(): string[]; + get_lines_readonly(): string[]; + get_log_attrs(): LogAttr[]; + get_log_attrs_readonly(): [LogAttr[], number]; + get_pixel_extents(): [Rectangle | null, Rectangle | null]; + get_pixel_size(): [number | null, number | null]; + get_serial(): number; + get_single_paragraph_mode(): boolean; + get_size(): [number | null, number | null]; + get_spacing(): number; + get_tabs(): TabArray | null; + get_text(): string; + get_unknown_glyphs_count(): number; + get_width(): number; + get_wrap(): WrapMode; + index_to_line_x(index_: number, trailing: boolean): [number | null, number | null]; + index_to_pos(index_: number): Rectangle; + is_ellipsized(): boolean; + is_wrapped(): boolean; + move_cursor_visually(strong: boolean, old_index: number, old_trailing: number, direction: number): [number, number]; + set_alignment(alignment: Alignment): void; + set_attributes(attrs: AttrList | null): void; + set_auto_dir(auto_dir: boolean): void; + set_ellipsize(ellipsize: EllipsizeMode): void; + set_font_description(desc: FontDescription | null): void; + set_height(height: number): void; + set_indent(indent: number): void; + set_justify(justify: boolean): void; + set_line_spacing(factor: number): void; + set_markup(markup: string, length: number): void; + set_markup_with_accel(markup: string, length: number, accel_marker: number): number | null; + set_single_paragraph_mode(setting: boolean): void; + set_spacing(spacing: number): void; + set_tabs(tabs: TabArray | null): void; + set_text(text: string, length: number): void; + set_width(width: number): void; + set_wrap(wrap: WrapMode): void; + xy_to_index(x: number, y: number): [boolean, number, number]; +} +export module Renderer { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Renderer extends GObject.Object { + constructor(properties: Partial, ...args: any[]); + _init(properties: Partial); + // Fields + matrix: Matrix; + // Members + activate(): void; + deactivate(): void; + draw_error_underline(x: number, y: number, width: number, height: number): void; + draw_glyph(font: Font, glyph: Glyph, x: number, y: number): void; + draw_glyph_item(text: string | null, glyph_item: GlyphItem, x: number, y: number): void; + draw_glyphs(font: Font, glyphs: GlyphString, x: number, y: number): void; + draw_layout(layout: Layout, x: number, y: number): void; + draw_layout_line(line: LayoutLine, x: number, y: number): void; + draw_rectangle(part: RenderPart, x: number, y: number, width: number, height: number): void; + draw_trapezoid(part: RenderPart, y1_: number, x11: number, x21: number, y2: number, x12: number, x22: number): void; + get_alpha(part: RenderPart): number; + get_color(part: RenderPart): Color | null; + get_layout(): Layout | null; + get_layout_line(): LayoutLine | null; + get_matrix(): Matrix | null; + part_changed(part: RenderPart): void; + set_alpha(part: RenderPart, alpha: number): void; + set_color(part: RenderPart, color: Color | null): void; + set_matrix(matrix: Matrix | null): void; + vfunc_begin(): void; + vfunc_draw_error_underline(x: number, y: number, width: number, height: number): void; + vfunc_draw_glyph(font: Font, glyph: Glyph, x: number, y: number): void; + vfunc_draw_glyph_item(text: string | null, glyph_item: GlyphItem, x: number, y: number): void; + vfunc_draw_glyphs(font: Font, glyphs: GlyphString, x: number, y: number): void; + vfunc_draw_rectangle(part: RenderPart, x: number, y: number, width: number, height: number): void; + vfunc_draw_shape(attr: AttrShape, x: number, y: number): void; + vfunc_draw_trapezoid(part: RenderPart, y1_: number, x11: number, x21: number, y2: number, x12: number, x22: number): void; + vfunc_end(): void; + vfunc_part_changed(part: RenderPart): void; + vfunc_prepare_run(run: LayoutRun): void; +} +export class Analysis { + constructor(copy: Analysis); + // Fields + shape_engine: EngineShape; + lang_engine: EngineLang; + font: Font; + level: number; + gravity: number; + flags: number; + script: number; + language: Language; + extra_attrs: string[]; +} +export class AttrClass { + constructor(copy: AttrClass); + // Fields + type: AttrType; +} +export class AttrColor { + constructor(copy: AttrColor); + // Fields + attr: Attribute; + color: Color; +} +export class AttrFloat { + constructor(copy: AttrFloat); + // Fields + attr: Attribute; + value: number; +} +export class AttrFontDesc { + constructor(copy: AttrFontDesc); + // Fields + attr: Attribute; + desc: FontDescription; + // Members + static new(desc: FontDescription): Attribute; +} +export class AttrFontFeatures { + constructor(copy: AttrFontFeatures); + // Fields + attr: Attribute; + features: string; + // Members + static new(features: string): Attribute; +} +export class AttrInt { + constructor(copy: AttrInt); + // Fields + attr: Attribute; + value: number; +} +export class AttrIterator { + constructor(copy: AttrIterator); + // Members + copy(): AttrIterator; + destroy(): void; + get(type: AttrType): Attribute | null; + get_attrs(): string[]; + get_font(desc: FontDescription, language: Language | null, extra_attrs: string[] | null): void; + next(): boolean; + range(): [number, number]; +} +export class AttrLanguage { + constructor(copy: AttrLanguage); + // Fields + attr: Attribute; + value: Language; + // Members + static new(language: Language): Attribute; +} +export class AttrList { + constructor(); + constructor(copy: AttrList); + // Constructors + static ["new"](): AttrList; + // Members + change(attr: Attribute): void; + copy(): AttrList | null; + filter(func: AttrFilterFunc, data: any | null): AttrList | null; + get_attributes(): string[]; + get_iterator(): AttrIterator; + insert(attr: Attribute): void; + insert_before(attr: Attribute): void; + ref(): AttrList; + splice(other: AttrList, pos: number, len: number): void; + unref(): void; + update(pos: number, remove: number, add: number): void; +} +export class AttrShape { + constructor(copy: AttrShape); + // Fields + attr: Attribute; + ink_rect: Rectangle; + logical_rect: Rectangle; + data: any; + copy_func: AttrDataCopyFunc; + destroy_func: GLib.DestroyNotify; + // Members + static new(ink_rect: Rectangle, logical_rect: Rectangle): Attribute; + static new_with_data(ink_rect: Rectangle, logical_rect: Rectangle, data: any | null, copy_func: AttrDataCopyFunc | null, destroy_func: GLib.DestroyNotify | null): Attribute; +} +export class AttrSize { + constructor(copy: AttrSize); + // Fields + attr: Attribute; + size: number; + absolute: number; + // Members + static new(size: number): Attribute; + static new_absolute(size: number): Attribute; +} +export class AttrString { + constructor(copy: AttrString); + // Fields + attr: Attribute; + value: string; +} +export class Attribute { + constructor(copy: Attribute); + // Fields + klass: AttrClass; + start_index: number; + end_index: number; + // Members + copy(): Attribute; + destroy(): void; + equal(attr2: Attribute): boolean; + init(klass: AttrClass): void; +} +export class Color { + constructor(copy: Color); + // Fields + red: number; + green: number; + blue: number; + // Members + copy(): Color | null; + free(): void; + parse(spec: string): boolean; + to_string(): string; +} +export class EngineInfo { + constructor(copy: EngineInfo); + // Fields + id: string; + engine_type: string; + render_type: string; + scripts: EngineScriptInfo; + n_scripts: number; +} +export class EngineScriptInfo { + constructor(copy: EngineScriptInfo); + // Fields + script: Script; + langs: string; +} +export class FontDescription { + constructor(); + constructor(copy: FontDescription); + // Constructors + static ["new"](): FontDescription; + // Members + better_match(old_match: FontDescription | null, new_match: FontDescription): boolean; + copy(): FontDescription | null; + copy_static(): FontDescription | null; + equal(desc2: FontDescription): boolean; + free(): void; + get_family(): string | null; + get_gravity(): Gravity; + get_set_fields(): FontMask; + get_size(): number; + get_size_is_absolute(): boolean; + get_stretch(): Stretch; + get_style(): Style; + get_variant(): Variant; + get_variations(): string | null; + get_weight(): Weight; + hash(): number; + merge(desc_to_merge: FontDescription | null, replace_existing: boolean): void; + merge_static(desc_to_merge: FontDescription, replace_existing: boolean): void; + set_absolute_size(size: number): void; + set_family(family: string): void; + set_family_static(family: string): void; + set_gravity(gravity: Gravity): void; + set_size(size: number): void; + set_stretch(stretch: Stretch): void; + set_style(style: Style): void; + set_variant(variant: Variant): void; + set_variations(variations: string): void; + set_variations_static(variations: string): void; + set_weight(weight: Weight): void; + to_filename(): string; + to_string(): string; + unset_fields(to_unset: FontMask): void; + static from_string(str: string): FontDescription; +} +export class FontMetrics { + constructor(copy: FontMetrics); + // Fields + ref_count: number; + ascent: number; + descent: number; + height: number; + approximate_char_width: number; + approximate_digit_width: number; + underline_position: number; + underline_thickness: number; + strikethrough_position: number; + strikethrough_thickness: number; + // Members + get_approximate_char_width(): number; + get_approximate_digit_width(): number; + get_ascent(): number; + get_descent(): number; + get_height(): number; + get_strikethrough_position(): number; + get_strikethrough_thickness(): number; + get_underline_position(): number; + get_underline_thickness(): number; + ref(): FontMetrics | null; + unref(): void; +} +export class GlyphGeometry { + constructor(copy: GlyphGeometry); + // Fields + width: GlyphUnit; + x_offset: GlyphUnit; + y_offset: GlyphUnit; +} +export class GlyphInfo { + constructor(copy: GlyphInfo); + // Fields + glyph: Glyph; + geometry: GlyphGeometry; + attr: GlyphVisAttr; +} +export class GlyphItem { + constructor(copy: GlyphItem); + // Fields + item: Item; + glyphs: GlyphString; + // Members + apply_attrs(text: string, list: AttrList): string[]; + copy(): GlyphItem | null; + free(): void; + get_logical_widths(text: string, logical_widths: number[]): void; + letter_space(text: string, log_attrs: LogAttr[], letter_spacing: number): void; + split(text: string, split_index: number): GlyphItem; +} +export class GlyphItemIter { + constructor(copy: GlyphItemIter); + // Fields + glyph_item: GlyphItem; + text: string; + start_glyph: number; + start_index: number; + start_char: number; + end_glyph: number; + end_index: number; + end_char: number; + // Members + copy(): GlyphItemIter | null; + free(): void; + init_end(glyph_item: GlyphItem, text: string): boolean; + init_start(glyph_item: GlyphItem, text: string): boolean; + next_cluster(): boolean; + prev_cluster(): boolean; +} +export class GlyphString { + constructor(); + constructor(copy: GlyphString); + // Fields + num_glyphs: number; + glyphs: GlyphInfo[]; + log_clusters: number; + space: number; + // Constructors + static ["new"](): GlyphString; + // Members + copy(): GlyphString | null; + extents(font: Font): [Rectangle | null, Rectangle | null]; + extents_range(start: number, end: number, font: Font): [Rectangle | null, Rectangle | null]; + free(): void; + get_logical_widths(text: string, length: number, embedding_level: number, logical_widths: number[]): void; + get_width(): number; + index_to_x(text: string, length: number, analysis: Analysis, index_: number, trailing: boolean): number; + set_size(new_len: number): void; + x_to_index(text: string, length: number, analysis: Analysis, x_pos: number): [number, number]; +} +export class GlyphVisAttr { + constructor(copy: GlyphVisAttr); + // Fields + is_cluster_start: number; +} +export class IncludedModule { + constructor(copy: IncludedModule); +} +export class Item { + constructor(); + constructor(copy: Item); + // Fields + offset: number; + length: number; + num_chars: number; + analysis: Analysis; + // Constructors + static ["new"](): Item; + // Members + apply_attrs(iter: AttrIterator): void; + copy(): Item | null; + free(): void; + split(split_index: number, split_offset: number): Item; +} +export class Language { + constructor(copy: Language); + // Members + get_sample_string(): string; + get_scripts(): [Script[] | null, number | null]; + includes_script(script: Script): boolean; + matches(range_list: string): boolean; + to_string(): string; + static from_string(language: string | null): Language | null; + static get_default(): Language; +} +export class LayoutIter { + constructor(copy: LayoutIter); + // Members + at_last_line(): boolean; + copy(): LayoutIter | null; + free(): void; + get_baseline(): number; + get_char_extents(): Rectangle; + get_cluster_extents(): [Rectangle | null, Rectangle | null]; + get_index(): number; + get_layout(): Layout; + get_layout_extents(): [Rectangle | null, Rectangle | null]; + get_line(): LayoutLine; + get_line_extents(): [Rectangle | null, Rectangle | null]; + get_line_readonly(): LayoutLine; + get_line_yrange(): [number | null, number | null]; + get_run(): LayoutRun | null; + get_run_extents(): [Rectangle | null, Rectangle | null]; + get_run_readonly(): LayoutRun | null; + next_char(): boolean; + next_cluster(): boolean; + next_line(): boolean; + next_run(): boolean; +} +export class LayoutLine { + constructor(copy: LayoutLine); + // Fields + layout: Layout; + start_index: number; + length: number; + runs: string[]; + is_paragraph_start: number; + resolved_dir: number; + // Members + get_extents(): [Rectangle | null, Rectangle | null]; + get_height(): number | null; + get_pixel_extents(): [Rectangle | null, Rectangle | null]; + get_x_ranges(start_index: number, end_index: number): number[]; + index_to_x(index_: number, trailing: boolean): number; + ref(): LayoutLine; + unref(): void; + x_to_index(x_pos: number): [boolean, number, number]; +} +export class LogAttr { + constructor(copy: LogAttr); + // Fields + is_line_break: number; + is_mandatory_break: number; + is_char_break: number; + is_white: number; + is_cursor_position: number; + is_word_start: number; + is_word_end: number; + is_sentence_boundary: number; + is_sentence_start: number; + is_sentence_end: number; + backspace_deletes_character: number; + is_expandable_space: number; + is_word_boundary: number; +} +export class Map { + constructor(copy: Map); +} +export class MapEntry { + constructor(copy: MapEntry); +} +export class Matrix { + constructor(copy: Matrix); + // Fields + xx: number; + xy: number; + yx: number; + yy: number; + x0: number; + y0: number; + // Members + concat(new_matrix: Matrix): void; + copy(): Matrix | null; + free(): void; + get_font_scale_factor(): number; + get_font_scale_factors(): [number | null, number | null]; + rotate(degrees: number): void; + scale(scale_x: number, scale_y: number): void; + transform_distance(dx: number, dy: number): [number, number]; + transform_pixel_rectangle(rect: Rectangle | null): Rectangle | null; + transform_point(x: number, y: number): [number, number]; + transform_rectangle(rect: Rectangle | null): Rectangle | null; + translate(tx: number, ty: number): void; +} +export class Rectangle { + constructor(copy: Rectangle); + // Fields + x: number; + y: number; + width: number; + height: number; +} +export class RendererPrivate { + constructor(copy: RendererPrivate); +} +export class ScriptIter { + constructor(text: string, length: number); + constructor(copy: ScriptIter); + // Constructors + static ["new"](text: string, length: number): ScriptIter; + // Members + free(): void; + get_range(): [string | null, string | null, Script | null]; + next(): boolean; +} +export class TabArray { + constructor(initial_size: number, positions_in_pixels: boolean); + constructor(copy: TabArray); + // Constructors + static ["new"](initial_size: number, positions_in_pixels: boolean): TabArray; + // Members + copy(): TabArray; + free(): void; + get_positions_in_pixels(): boolean; + get_size(): number; + get_tab(tab_index: number): [TabAlign | null, number | null]; + get_tabs(): [TabAlign | null, number[] | null]; + resize(new_size: number): void; + set_tab(tab_index: number, alignment: TabAlign, location: number): void; +} + +export type Glyph = number; + +export type GlyphUnit = number; + +export type LayoutRun = GlyphItem; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/xlib.d.ts b/dynamic-panel-transparency@rockon999.github.io/gi/xlib.d.ts new file mode 100644 index 0000000..85cb7c8 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/gi/xlib.d.ts @@ -0,0 +1,67 @@ + + +/** + * xlib + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +type GType = object; + +export function open_display(): void; +export class Display { + constructor(copy: Display); +} +export class Screen { + constructor(copy: Screen); +} +export class Visual { + constructor(copy: Visual); +} +export class XConfigureEvent { + constructor(copy: XConfigureEvent); +} +export class XImage { + constructor(copy: XImage); +} +export class XFontStruct { + constructor(copy: XFontStruct); +} +export class XTrapezoid { + constructor(copy: XTrapezoid); +} +export class XVisualInfo { + constructor(copy: XVisualInfo); +} +export class XWindowAttributes { + constructor(copy: XWindowAttributes); +} +export class XEvent { + constructor(copy: XEvent); +} + +export type Atom = number; + +export type Colormap = number; + +export type Cursor = number; + +export type Drawable = number; + +export type GC = any; + +export type KeyCode = number; + +export type KeySym = number; + +export type Picture = number; + +export type Time = number; + +export type VisualID = number; + +export type Window = number; + +export type XID = number; + +export type Pixmap = number; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/intellifade.js b/dynamic-panel-transparency@rockon999.github.io/intellifade.js index 8140c36..7824209 100644 --- a/dynamic-panel-transparency@rockon999.github.io/intellifade.js +++ b/dynamic-panel-transparency@rockon999.github.io/intellifade.js @@ -1,12 +1,8 @@ -/* exported init, cleanup, asyncCheck, syncCheck, forceAsyncCheck, forceSyncCheck, get_current_maximized_window */ +/** @type {Module} */ +const module = {}; -const GLib = imports.gi.GLib; +const { GLib, Meta, Shell, St } = imports.gi; const Mainloop = imports.mainloop; -const Lang = imports.lang; - -const Meta = imports.gi.Meta; -const Shell = imports.gi.Shell; -const St = imports.gi.St; const Main = imports.ui.main; @@ -14,279 +10,270 @@ const Me = imports.misc.extensionUtils.getCurrentExtension(); const Settings = Me.imports.settings; const Util = Me.imports.util; -const Compat = Me.imports.compat; -const Transitions = Me.imports.transitions; -const Theming = Me.imports.theming; - -/* Determines whether to continue the async loop checks. */ -let continueCheck = false; -/* Variable for current detected maximized window... */ -let maximized_window = null; -/* Run the next change regardless of the whether it is the same as the current status. */ -// TODO: Find a nicer way to override optimization code. -let override_optimization = false; -/* Current ID of the async loop (0 if no loop is running) */ -let timeoutId = 0; +const { TransitionManager } = Me.imports.transitions; +const { Themer } = Me.imports.theming; /* How often the asynchronous loop should run in milliseconds... */ const ASYNC_UPDATE_FREQUENCY = 200; // ms -function init() { - this._wm_tracker = Shell.WindowTracker.get_default(); +var Intellifader = class Intellifader { + /** + * @param {typeof TransitionManager.prototype} transitions + * @param {typeof Themer.prototype} themer + */ + constructor(transitions, themer) { + this.transitions = transitions; + this.themer = themer; - _updateBounds(); -} -function cleanup() { - this._wm_tracker = null; + /* Determines whether to continue the async loop checks. */ + this.continueCheck = false; + /* Variable for current detected maximized window... */ - if (timeoutId > 0) { - Mainloop.source_remove(timeoutId); - } -} + /* Run the next change regardless of the whether it is the same as the current status. */ + this.override_optimization = false; + /* Current ID of the async loop (0 if no loop is running) */ + this.timeoutId = 0; -function forceSyncCheck() { - override_optimization = true; - syncCheck(); -} + this.maximized_window = null; + + this._wm_tracker = Shell.WindowTracker.get_default(); -function syncCheck() { - if (Settings.check_overrides() || Settings.check_triggers()) { - override_optimization = true; + this._updateBounds(); } - /* Prevent any asynchronous checks from occuring in the loop. */ - continueCheck = false; - /* Stop the asynchronous loop... */ - if (timeoutId > 0) - Mainloop.source_remove(timeoutId); - /* Remove the old loop ID */ - timeoutId = 0; - /* Update bounds when a check is done in sync. */ - _updateBounds(); - /* Run a check. */ - _check(); -} + cleanup() { + this._wm_tracker = null; -function forceAsyncCheck() { - override_optimization = true; - asyncCheck(); -} - -function asyncCheck() { - if (Settings.check_overrides() || Settings.check_triggers()) { - override_optimization = true; + if (this.timeoutId > 0) { + Mainloop.source_remove(this.timeoutId); + } } - if (timeoutId <= 0) { - _check(); + forceSyncCheck() { + this.override_optimization = true; + this.syncCheck(); + } - timeoutId = Mainloop.timeout_add(ASYNC_UPDATE_FREQUENCY, (function() { - _check(); + syncCheck() { + /* Prevent any asynchronous checks from occurring in the loop. */ + this.continueCheck = false; + /* Stop the asynchronous loop... */ + if (this.timeoutId > 0) + Mainloop.source_remove(this.timeoutId); + /* Remove the old loop ID */ + this.timeoutId = 0; + /* Update bounds when a check is done in sync. */ + this._updateBounds(); + /* Run a check. */ + this._check(); + } - if (continueCheck) { - continueCheck = false; - return GLib.SOURCE_CONTINUE; - } else { - timeoutId = 0; - return GLib.SOURCE_REMOVE; - } - }).bind(this)); - } else { - continueCheck = true; + forceAsyncCheck() { + this.override_optimization = true; + this.asyncCheck(); } -} + asyncCheck() { + if (this.timeoutId <= 0) { + this._check(); + this.timeoutId = Mainloop.timeout_add(ASYNC_UPDATE_FREQUENCY, () => { + this._check(); -function _updateBounds() { - const panel = Compat.getActorOf(Main.panel); + if (this.continueCheck) { + this.continueCheck = false; + return GLib.SOURCE_CONTINUE; + } else { + this.timeoutId = 0; + return GLib.SOURCE_REMOVE; + } + }); + } else { + this.continueCheck = true; + } + + } - this.panel_bounds = { - x: panel.get_x(), - y: panel.get_y(), - height: panel.get_height(), - width: panel.get_width(), - is_top: true - }; - this.scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor; + _updateBounds() { + const { panel } = Main; - let anchor_y = -Main.layoutManager.panelBox.get_anchor_point()[1]; - let pivot_y = -Main.layoutManager.panelBox.get_pivot_point()[1]; + this.panel_bounds = { + x: panel.get_x(), + y: panel.get_y(), + height: panel.get_height(), + width: panel.get_width(), + is_top: true + }; - // Adjust for bottom panel. - if (anchor_y > 0) { - this.panel_bounds.y = anchor_y; - this.panel_bounds.is_top = false; - } else if (pivot_y > 0) { - this.panel_bounds.y = pivot_y; - this.panel_bounds.is_top = false; - } -} + this.scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor; -/* Main extension logic. Modified to fit Gnome Shell 3.26 design patterns. */ + const box = Main.layoutManager.panelBox; -// TODO: Cleanup use of variable flags. -function _check() { - if (Main.overview._shown) { - return; - } + if ('get_anchor_point' in box) { + let [, anchor_y] = box.get_anchor_point(); - let workspace = null; + if (anchor_y <= 0) { + this.panel_bounds.y = -anchor_y; + this.panel_bounds.is_top = false; - const manager = global.screen || global.workspace_manager; + return; + } + } - if (manager) { - workspace = manager.get_active_workspace(); - } else { - log('[Dynamic Panel Transparency] Error could not get active workspace.'); + let [, pivot_y] = Main.layoutManager.panelBox.get_pivot_point(); + + // Adjust for bottom panel. + if (pivot_y <= 0) { + this.panel_bounds.y = -pivot_y; + this.panel_bounds.is_top = false; + } } - let windows = workspace.list_windows(); - windows = global.display.sort_windows_by_stacking(windows); + /* Main extension logic. Modified to fit Gnome Shell 3.26 design patterns. */ - let focused_window = global.display.get_focus_window(); + // TODO: Cleanup use of variable flags. + _check() { + if (Main.overview._shown) { + return; + } - maximized_window = null; + const settings = Settings.get(); - let add_transparency = true; - let force_transparency = false; + let workspace = null; - /* Handle desktop icons (they're a window too) */ - if (focused_window && focused_window.get_window_type() === Meta.WindowType.DESKTOP) { - add_transparency = true; - maximized_window = focused_window; - } else { - // TODO: Always negative? Is pivot negative? - for (let i = windows.length - 1; i >= 0; i--) { + const manager = global.screen || global.workspace_manager; - let current_window = windows[i]; + if (manager) { + workspace = manager.get_active_workspace(); + } else { + log('[Dynamic Panel Transparency] Error could not get active workspace.'); + } - if (!current_window.showing_on_its_workspace() || !current_window.is_on_primary_monitor()) { - continue; - } + let windows = workspace.list_windows(); + windows = global.display.sort_windows_by_stacking(windows); - if (Settings.check_triggers()) { - /* Check if the current WM_CLASS is a trigger. */ - if (Settings.get_trigger_windows().indexOf(current_window.get_wm_class()) !== -1) { - add_transparency = false; - maximized_window = current_window; + let focused_window = global.display.get_focus_window(); - break; - } + this.maximized_window = null; - let app = this._wm_tracker.get_window_app(current_window); + let add_transparency = true; + let force_transparency = false; - /* Check if the found app exists and if it is a trigger app. */ - if (app && Settings.get_trigger_apps().indexOf(app.get_id()) !== -1) { - add_transparency = false; - maximized_window = current_window; + /* Handle desktop icons (they're a window too) */ + if (focused_window && focused_window.get_window_type() === Meta.WindowType.DESKTOP) { + add_transparency = true; + this.maximized_window = focused_window; + } else { + // TODO: Always negative? Is pivot negative? + for (let i = windows.length - 1; i >= 0; i--) { - break; - } - } + let current_window = windows[i]; - /* Make sure the window is on the correct monitor, isn't minimized, isn't supposed to be excluded, and is actually maximized. */ - if (!Util.is_valid(current_window)) { - continue; - } + if (!current_window.showing_on_its_workspace() || !current_window.is_on_primary_monitor()) { + continue; + } - if (current_window.maximized_vertically) { - /* Make sure the top-most window is selected */ - if (maximized_window === null && !force_transparency) { - maximized_window = current_window; + /* Make sure the window is on the correct monitor, isn't minimized, isn't supposed to be excluded, and is actually maximized. */ + if (!Util.is_valid(current_window)) { + continue; } - add_transparency = false; + if (current_window.maximized_vertically) { + /* Make sure the top-most window is selected */ + if (this.maximized_window === null && !force_transparency) { + this.maximized_window = current_window; + } + + add_transparency = false; - if (!Settings.check_triggers()) { break; } - } - let frame = current_window.get_frame_rect(); + let frame = current_window.get_frame_rect(); - if (Main.layoutManager._rightPanelBarrier) { - let overlap = this.panel_bounds.x < frame.x + frame.width && - this.panel_bounds.x + this.panel_bounds.width > frame.x && - this.panel_bounds.y < frame.y + frame.height && - this.panel_bounds.height + this.panel_bounds.y > frame.y; + if (Main.layoutManager._rightPanelBarrier) { + let overlap = this.panel_bounds.x < frame.x + frame.width && + this.panel_bounds.x + this.panel_bounds.width > frame.x && + this.panel_bounds.y < frame.y + frame.height && + this.panel_bounds.height + this.panel_bounds.y > frame.y; - if (overlap) { - force_transparency = true; - maximized_window = null; + if (overlap) { + force_transparency = true; + this.maximized_window = null; - if (!Settings.check_triggers()) { break; } } - } - if (Settings.transition_when_windows_touch_panel()) { - let touching_panel = false; + if (settings._transition_windows_touch()) { + let touching_panel = false; - if (this.panel_bounds.is_top) { - touching_panel = frame.y >= (this.panel_bounds.y + this.panel_bounds.height) && - frame.y <= (this.panel_bounds.y + this.panel_bounds.height); - } else { - touching_panel = (frame.y + frame.height) >= (this.panel_bounds.y) && - (frame.y + frame.height) <= (this.panel_bounds.y); - } + if (this.panel_bounds.is_top) { + touching_panel = frame.y >= (this.panel_bounds.y + this.panel_bounds.height) && + frame.y <= (this.panel_bounds.y + this.panel_bounds.height); + } else { + touching_panel = (frame.y + frame.height) >= (this.panel_bounds.y) && + (frame.y + frame.height) <= (this.panel_bounds.y); + } - if (!force_transparency && touching_panel) { - add_transparency = false; + if (!force_transparency && touching_panel) { + add_transparency = false; - if (maximized_window === null && !force_transparency) { - maximized_window = current_window; - } + if (this.maximized_window === null && !force_transparency) { + this.maximized_window = current_window; + } - if (!Settings.check_triggers()) { break; } } } } - } - if (force_transparency) { - Transitions.fade_out(); - force_transparency = false; - /* Only change if the transparency isn't already correct or if override_optimization has been called */ - } else if (Transitions.get_transparency_status().is_blank()) { - if (add_transparency) { - Transitions.minimum_fade_in(); - } else { - Transitions.fade_in(); + log(`current state: ${add_transparency} vs. X(${this.transitions.is_transparent()})`) + + if (force_transparency) { + this.transitions.fade_out(); + force_transparency = false; + /* Only change if the transparency isn't already correct or if override_optimization has been called */ + } else if (this.transitions.is_blank()) { + if (add_transparency) { + this.transitions.minimum_fade_in(); + } else { + this.transitions.fade_in(); + } + } else if (this.override_optimization || (this.transitions.is_transparent() !== add_transparency)) { + this.override_optimization = false; + + if (add_transparency) { + this.transitions.fade_out(); + } else { + this.transitions.fade_in(); + } } - } else if (override_optimization || (Transitions.get_transparency_status().is_transparent() !== add_transparency)) { - override_optimization = false; - if (add_transparency) { - Transitions.fade_out(); - } else { - Transitions.fade_in(); + /* Reset text coloring. */ + if (settings.enableTextColor() && (settings.enableMaximizedTextColor() || settings.enableOverviewTextColor())) { + if (!add_transparency && settings.enableMaximizedTextColor()) { + this.themer.remove_text_color(); + this.themer.set_text_color(); + } else { + this.themer.remove_text_color(); + this.themer.set_text_color(); + } } } - /* Reset text coloring. */ - if (Settings.get_enable_text_color() && (Settings.get_enable_maximized_text_color() || Settings.get_enable_overview_text_color())) { - if (!add_transparency && Settings.get_enable_maximized_text_color()) { - Theming.remove_text_color(); - Theming.set_text_color('maximized'); - } else { - Theming.remove_text_color('maximized'); - Theming.set_text_color(); - } + /** + * Returns the current visible maximized window as understood by the events' logic. + * The maximized window is not necessarily the highest window in the z-order. + * + * @returns {Object} The current visible maximized window. + */ + get_current_maximized_window() { + return this.maximized_window; } } -/** - * Returns the current visible maximized window as understood by the events' logic. - * The maximized window is not necessarily the highest window in the z-order. - * - * @returns {Object} The current visible maximized window. - */ -function get_current_maximized_window() { - return maximized_window; -} \ No newline at end of file +module.exports = { Intellifader }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/metadata.json b/dynamic-panel-transparency@rockon999.github.io/metadata.json index 573dfa5..85a3cd8 100644 --- a/dynamic-panel-transparency@rockon999.github.io/metadata.json +++ b/dynamic-panel-transparency@rockon999.github.io/metadata.json @@ -2,13 +2,8 @@ "description": "This extension fades your top panel to nothingness when there are no maximized windows present. Never again will the panel be abruptly darkened!", "name": "Dynamic Panel Transparency", "shell-version": [ - "3.22.3", - "3.24", - "3.26", - "3.28", - "3.30", - "3.32", - "3.34" + "3.34", + "3.36" ], "uuid": "dynamic-panel-transparency@rockon999.github.io", "settings-schema": "org.gnome.shell.extensions.dynamic-panel-transparency", diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js b/dynamic-panel-transparency@rockon999.github.io/prefs.js new file mode 100644 index 0000000..519a8cd --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/prefs.js @@ -0,0 +1,398 @@ +/** @type {Module} */ +const module = {}; + +const { GLib, Gdk, Gtk } = imports.gi; + +const Me = imports.misc.extensionUtils.getCurrentExtension(); + +const Convenience = Me.imports.convenience; +const Util = Me.imports.util; + +const Gettext = imports.gettext.domain('dynamic-panel-transparency'); +const _ = Gettext.gettext; + +const gtk30_ = imports.gettext.domain('gtk30').gettext; + +/* Settings Keys */ +const SETTINGS_ENABLE_BACKGROUND_COLOR = 'enable-background-color'; +const SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR = 'enable-maximized-text-color'; +const SETTINGS_ENABLE_OPACITY = 'enable-opacity'; +const SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR = 'enable-overview-text-color'; +const SETTINGS_ENABLE_TEXT_COLOR = 'enable-text-color'; +const SETTINGS_ICON_SHADOW = 'icon-shadow'; +const SETTINGS_MAXIMIZED_OPACITY = 'maximized-opacity'; +const SETTINGS_MAXIMIZED_TEXT_COLOR = 'maximized-text-color'; +const SETTINGS_PANEL_COLOR = 'panel-color'; +const SETTINGS_REMOVE_PANEL_STYLING = 'remove-panel-styling'; +const SETTINGS_TEXT_COLOR = 'text-color'; +const SETTINGS_TEXT_SHADOW = 'text-shadow'; +const SETTINGS_TRANSITION_SPEED = 'transition-speed'; +const SETTINGS_TRANSITION_WITH_OVERVIEW = 'transition-with-overview'; +const SETTINGS_TRANSITION_WINDOWS_TOUCH = 'transition-windows-touch'; +const SETTINGS_UNMAXIMIZED_OPACITY = 'unmaximized-opacity'; + +const Page = { TRANSITIONS: 0, FOREGROUND: 1, BACKGROUND: 2, APP_TWEAKS: 3, ABOUT: 4 }; +Object.freeze(Page); + +/* Color Array Indices */ +const RED = 0; +const GREEN = 1; +const BLUE = 2; +const ALPHA = 3; + +/* UI spacing & similar values. */ +const WEBSITE_LABEL_BOTTOM_MARGIN = 50; +const WEBSITE_LABEL_TOP_MARGIN = 20; + +/* Color Scaling Factor (Byte to Decimal) */ +const SCALE_FACTOR = 255.9999999; + +function init() { + Convenience.initTranslations(); +} + +/* UI Setup */ +function buildPrefsWidget() { + /* Stores settings until the user applies them. */ + + /* Get Settings */ + let settings = Convenience.getSettings(); + /* Create a UI Builder */ + let builder = new Gtk.Builder(); + /* Setup Translation */ + builder.set_translation_domain(Me.metadata['gettext-domain']); + /* Get UI File */ + builder.add_from_file(Me.path + '/prefs.ui'); + + /* Main Widget (Grid) */ + /** @type {import('gtk').Grid} */ + let main_widget = (builder.get_object('main_box')); + + /* Tabs */ + /** @type {import('gtk').Notebook} */ + let main_notebook = (builder.get_object('main_notebook')); + + /* Used for special functions occasionally. */ + /** @type {import('gtk').Button} */ + let extra_btn = (builder.get_object('extra_btn')); + + /* Only show the panel & extra button on relevant pages. */ + main_notebook.connect('switch-page', function(notebook, page, index) { + if (index === Page.APP_TWEAKS) { + extra_btn.show(); + } else { + extra_btn.hide(); + } + }); + + { + /* Transition speed control */ + /** @type {import('gtk').Scale} */ + let speed_scale = (builder.get_object('speed_scale')); + /* Init value. */ + speed_scale.adjustment.set_value(settings.get_int(SETTINGS_TRANSITION_SPEED)); + /* Add default marking. */ + speed_scale.add_mark(settings.get_default_value(SETTINGS_TRANSITION_SPEED).unpack(), Gtk.PositionType.BOTTOM, _("default")); + /* Add formatting */ + speed_scale.connect('format-value', (scale, value) => { + return value + 'ms'; + }); + speed_scale.connect('value-changed', (widget) => { + settings.set_value(SETTINGS_TRANSITION_SPEED, new GLib.Variant('i', widget.adjustment.get_value())); + }); + + + /** @type {import('gtk').CheckButton} */ + let transition_windows_touch = (builder.get_object('transition_windows_touch_check')); + transition_windows_touch.set_active(settings.get_boolean(SETTINGS_TRANSITION_WINDOWS_TOUCH)); + + transition_windows_touch.connect('toggled', (widget) => { + settings.set_value(SETTINGS_TRANSITION_WINDOWS_TOUCH, new GLib.Variant('b', widget.get_active())); + }); + + /** @type {import('gtk').CheckButton} */ + let transition_with_overview = (builder.get_object('transition_with_overview_check')); + transition_with_overview.set_active(settings.get_boolean(SETTINGS_TRANSITION_WITH_OVERVIEW)); + + transition_with_overview.connect('toggled', (widget) => { + settings.set_value(SETTINGS_TRANSITION_WITH_OVERVIEW, new GLib.Variant('b', widget.get_active())); + + }); + } + + /* Setup foreground tab */ + { + /** @type {import('gtk').Switch} */ + let text_color_switch = (builder.get_object('text_color_switch')); + /** @type {import('gtk').Revealer} */ + let text_color_revealer = (builder.get_object('text_color_revealer')); + + text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_TEXT_COLOR)); + text_color_switch.connect('state-set', (widget, state) => { + settings.set_value(SETTINGS_ENABLE_TEXT_COLOR, new GLib.Variant('b', state)); + text_color_revealer.set_reveal_child(state); + + }); + + /** @type {import('gtk').CheckButton} */ + let maximized_text_color_switch = (builder.get_object('maximized_text_color_check')); + maximized_text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR)); + + maximized_text_color_switch.connect('toggled', (widget) => { + settings.set_value(SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR, new GLib.Variant('b', widget.get_active())); + }); + + /** @type {import('gtk').CheckButton} */ + let overview_text_color_switch = (builder.get_object('overview_text_color_check')); + overview_text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR)); + + overview_text_color_switch.connect('toggled', (widget) => { + settings.set_value(SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR, new GLib.Variant('b', widget.get_active())); + }); + + /** @type {import('gtk').CheckButton} */ + let remove_panel_styling_check = (builder.get_object('remove_panel_styling_check')); + remove_panel_styling_check.set_active(settings.get_boolean(SETTINGS_REMOVE_PANEL_STYLING)); + + remove_panel_styling_check.connect('toggled', (widget) => { + settings.set_value(SETTINGS_REMOVE_PANEL_STYLING, new GLib.Variant('b', widget.get_active())); + }); + + /** @type {import('gtk').ColorButton} */ + let maximized_text_color_btn = (builder.get_object('maximized_text_color_btn')); + let maximized_text_color = settings.get_value(SETTINGS_MAXIMIZED_TEXT_COLOR).deep_unpack(); + + let css_color = 'rgba(' + maximized_text_color[RED] + ',' + maximized_text_color[GREEN] + ',' + maximized_text_color[BLUE] + ', 1.0)'; + let scaled_color = new Gdk.RGBA(); + + if (scaled_color.parse(css_color)) { + maximized_text_color_btn.set_rgba(scaled_color); + } + + maximized_text_color_btn.connect('color-set', (color_btn) => { + let color = Util.gdk_to_css_color(color_btn.get_rgba()); + let rgb = [color.red, color.green, color.blue]; + + settings.set_value(SETTINGS_MAXIMIZED_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); + }); + + /** @type {import('gtk').ColorButton} */ + let text_color_btn = (builder.get_object('text_color_btn')); + let text_color = settings.get_value(SETTINGS_TEXT_COLOR).deep_unpack(); + + css_color = 'rgba(' + text_color[RED] + ',' + text_color[GREEN] + ',' + text_color[BLUE] + ', 1.0)'; + scaled_color = new Gdk.RGBA(); + + if (scaled_color.parse(css_color)) { + text_color_btn.set_rgba(scaled_color); + } + + text_color_btn.connect('color-set', color_btn => { + let color = Util.gdk_to_css_color(color_btn.get_rgba()); + let rgb = [color.red, color.green, color.blue]; + + settings.set_value(SETTINGS_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); + + }); + + /** @type {import('gtk').Switch} */ + let text_shadow_switch = (builder.get_object('text_shadow_switch')); + + text_shadow_switch.set_active(settings.get_boolean(SETTINGS_TEXT_SHADOW)); + + text_shadow_switch.connect('state-set', (widget, state) => { + settings.set_value(SETTINGS_TEXT_SHADOW, new GLib.Variant('b', state)); + + }); + + /** @type {import('gtk').Switch} */ + let icon_shadow = (builder.get_object('icon_shadow_switch')); + + icon_shadow.set_active(settings.get_boolean(SETTINGS_ICON_SHADOW)); + + icon_shadow.connect('state-set', (widget, state) => { + settings.set_value(SETTINGS_ICON_SHADOW, new GLib.Variant('b', state)); + }); + + /** @type {import('gtk').SpinButton} */ + let icon_shadow_vertical_offset = (builder.get_object('icon_shadow_vertical_offset')); + } + + /* Setup Background Tab */ + { + /** @type {import('gtk').Switch} */ + let background_color_switch = (builder.get_object('background_color_switch')); + /** @type {import('gtk').Switch} */ + let opacity_switch = (builder.get_object('opacity_switch')); + /** @type {import('gtk').Revealer} */ + let background_color_revealer = (builder.get_object('background_color_revealer')); + /** @type {import('gtk').Revealer} */ + let opacity_revealer = (builder.get_object('opacity_revealer')); + + background_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_COLOR)); + background_color_switch.connect('state-set', (widget, state) => { + settings.set_value(SETTINGS_ENABLE_BACKGROUND_COLOR, new GLib.Variant('b', state)); + background_color_revealer.set_reveal_child(state); + }); + + opacity_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_OPACITY)); + opacity_switch.connect('state-set', (widget, state) => { + settings.set_value(SETTINGS_ENABLE_OPACITY, new GLib.Variant('b', state)); + opacity_revealer.set_reveal_child(state); + + }); + + /* Maximum opacity control */ + /** @type {import('gtk').Scale} */ + let maximum_scale = (builder.get_object('maximum_scale')); + /* Init value. */ + maximum_scale.adjustment.set_value(settings.get_int(SETTINGS_MAXIMIZED_OPACITY)); + /* Add formatting */ + maximum_scale.connect('format-value', (scale, value) => { + return (((value / SCALE_FACTOR) * 100).toFixed(0) + '%'); // eslint-disable-line no-magic-numbers + }); + maximum_scale.connect('value-changed', (widget) => { + settings.set_value(SETTINGS_MAXIMIZED_OPACITY, new GLib.Variant('i', widget.adjustment.get_value())); + }); + + /* Minimum opacity control */ + /** @type {import('gtk').Scale} */ + let minimum_scale = (builder.get_object('minimum_scale')); + /* Init value. */ + minimum_scale.adjustment.set_value(settings.get_int(SETTINGS_UNMAXIMIZED_OPACITY)); + /* Add formatting */ + minimum_scale.connect('format-value', (scale, value) => { + return ((value / SCALE_FACTOR) * 100).toFixed(0) + '%'; // eslint-disable-line no-magic-numbers + }); + minimum_scale.connect('value-changed', (widget) => { + settings.set_value(SETTINGS_UNMAXIMIZED_OPACITY, new GLib.Variant('i', widget.adjustment.get_value())); + }); + + /* Convert & scale color. */ + let panel_color = settings.get_value(SETTINGS_PANEL_COLOR).deep_unpack(); + + /** @type {import('gtk').ColorButton} */ + let color_btn = (builder.get_object('color_btn')); + let css_color = 'rgba(' + panel_color[RED] + ',' + panel_color[GREEN] + ',' + panel_color[BLUE] + ', 1.0)'; + + let scaled_color = new Gdk.RGBA(); + if (scaled_color.parse(css_color)) { + color_btn.set_rgba(scaled_color); + } + color_btn.connect('color-set', (color_btn) => { + let color = Util.gdk_to_css_color(color_btn.get_rgba()); + let rgb = [color.red, color.green, color.blue]; + + settings.set_value(SETTINGS_PANEL_COLOR, new GLib.Variant('ai', rgb)); + }); + } + + /* Util function to find UI elements in a GTK dialog. */ + /** + * + * @param {import('gtk').Container} container + * @param {string[]} names + * @param {number} level + * + * @returns {import('gtk').Widget} + */ + function find(container, names, level = 0) { + let target = null; + container.forall((child, data) => { + if (child instanceof Gtk.Container) { // TODO - check this addition + if (child.get_name() === names[level]) { + if (++level === names.length) { + target = child; + } else { + target = find(child, names, level); + } + } + } + }); + return target; + } + + /* Setup About Tab */ + { + /* Find the stack */ + /** @type {import('gtk').AboutDialog} */ + let about_dialog = (builder.get_object('about_dialog')); + about_dialog.set_version('v' + Me.metadata['version']); + + let contents = about_dialog.get_child(); + + if (contents instanceof Gtk.Container) { + let stack = find(contents, ['box', 'stack']); + if (stack instanceof Gtk.Stack) { + /* Find the license page. */ + let license_page = find(stack, ['license_page']); + + /* Get rid of that pesky license page. */ + stack.remove(license_page); + + /* Strip the dialog of its content. */ + about_dialog.remove(contents); + + /* Link the stack switcher (I hate header bars sometimes.) */ + /** @type {import('gtk').StackSwitcher} */ + let stack_switcher = (builder.get_object('about_switcher')); + stack_switcher.set_stack(stack); + + /* Transfer the contents. */ + + /** @type {import('gtk').Box} */ + let about_box = (builder.get_object('about_box')); + about_box.add(contents); + + /* Add some space to the about page. Was a little cramped... */ + let found_box = find(stack, ['page_vbox', 'hbox']); + if (found_box === null) { + found_box = find(stack, ['page_vbox']); + } + + if (found_box instanceof Gtk.Box) { + let website_label = find(found_box, ['website_label']); + + if (website_label !== null) { + found_box.remove(website_label); + + let new_label = Gtk.LinkButton.new_with_label('http://evanwelsh.com/dynamic-panel-transparency', gtk30_('Website')); + + new_label.set_margin_top(WEBSITE_LABEL_TOP_MARGIN); + new_label.set_margin_bottom(WEBSITE_LABEL_BOTTOM_MARGIN); + found_box.add(new_label); + } + } + } + } + } + + let widget_parent = main_widget.get_toplevel(); + + /* Fix revealer sizing issues. */ + widget_parent.connect('realize', () => { + extra_btn.hide(); + /* We have to re-grab this object as it isn't in this scope. */ + /** @type {import('gtk').Revealer} */ + let text_color_revealer = (builder.get_object('text_color_revealer')); + text_color_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_TEXT_COLOR)); + /** @type {import('gtk').Revealer} */ + let background_color_revealer = (builder.get_object('background_color_revealer')); + background_color_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_COLOR)); + /** @type {import('gtk').Revealer} */ + let opacity_revealer = (builder.get_object('opacity_revealer')); + opacity_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_OPACITY)); + /** @type {import('gtk').Revealer} */ + let text_shadow_revealer = (builder.get_object('text_shadow_revealer')); + text_shadow_revealer.set_reveal_child(settings.get_boolean(SETTINGS_TEXT_SHADOW)); + /** @type {import('gtk').Revealer} */ + let icon_shadow_revealer = (builder.get_object('icon_shadow_revealer')); + icon_shadow_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ICON_SHADOW)); + }); + + /* Return main widget. */ + main_widget.show_all(); + return main_widget; +} + +module.exports = { init, buildPrefsWidget }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appChooser.js b/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appChooser.js deleted file mode 100644 index 5d5ccda..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appChooser.js +++ /dev/null @@ -1,254 +0,0 @@ -/* exported AppChooser */ - -const Lang = imports.lang; - -const GObject = imports.gi.GObject; -const Gdk = imports.gi.Gdk; -const Gio = imports.gi.Gio; -const Gtk = imports.gi.Gtk; - -const ExtensionUtils = imports.misc.extensionUtils; - -const Tweaks = imports.preferences.tweaks; - -const gtk30_ = imports.gettext.domain('gtk30').gettext; - -/* Translated and modified from gnome-tweak-tool's StartupTweak.py */ -// TODO: Transition UI to XML. - -var AppChooser = new Lang.Class({ - Name: 'DynamicPanelTransparency_AppChooser', - Extends: Gtk.Dialog, - _init: function(main_window, excluded_apps) { - this.parent({ - title: gtk30_("Select Application"), - use_header_bar: true - }); - this.entry = new Gtk.SearchEntry(); - this.entry.set_width_chars(30); - this.entry.activates_default = true; - this.searchbar = new Gtk.SearchBar(); - this.searchbar.add(this.entry); - this.searchbar.hexpand = true; - let list_box = new Gtk.ListBox(); - list_box.activate_on_single_click = false; - list_box.set_sort_func(this.sort_apps.bind(this)); - list_box.set_header_func(this.list_header_func.bind(this)); - list_box.set_filter_func(this.list_filter_func.bind(this)); - this.entry.connect( - 'search-changed', - this.on_search_entry_changed.bind(this) - ); - list_box.connect( - 'row-activated', - function(b, r) { - return this.response(Gtk.ResponseType.OK) ? r.get_mapped() : null; - }.bind(this) - ); - list_box.connect('row-selected', this.on_row_selected.bind(this)); - - let apps = Gio.app_info_get_all(); - for (let x = 0; x < apps.length; x++) { - let app_info = apps[x]; - if ( - app_info.should_show() && - excluded_apps.indexOf(app_info.get_id()) === -1 - ) { - let app_widget = this.build_widget( - app_info.get_name(), - app_info.get_icon() - ); - if (app_widget) { - list_box.add(app_widget); - app_widget.__dpt__info = app_info; - } - } - } - - for (let tweak of Tweaks.get_tweaks()) { - const exists = uuid => { - // Support pre-3.34 - if (ExtensionUtils.extensions) { - return ExtensionUtils.extensions[uuid]; - } - - // No easy way to support 3.34 as GNOME Shell moved the extension state into the shell UI code. - return true; - }; - - if (exists(tweak.uuid)) { - let app_widget = this.build_widget(tweak.name, null); - if (app_widget) { - list_box.add(app_widget); - app_widget.__dpt__info = tweak.uuid; - } - } - } - - let scrolled_window = new Gtk.ScrolledWindow(); - scrolled_window.hscrollist_boxar_policy = Gtk.PolicyType.NEVER; - scrolled_window.add(list_box); - scrolled_window.margin = 5; - - this.add_button(gtk30_("_Close"), Gtk.ResponseType.CANCEL); - this.add_button(gtk30_("_Select"), Gtk.ResponseType.OK); - this.set_default_response(Gtk.ResponseType.OK); - let searchbtn = new Gtk.ToggleButton(); - searchbtn.valign = Gtk.Align.CENTER; - let image = new Gtk.Image({ - icon_name: 'edit-find-symbolic', - icon_size: Gtk.IconSize.MENU - }); - searchbtn.add(image); - let context = searchbtn.get_style_context(); - context.add_class('image-button'); - context.remove_class('text-button'); - this.get_header_bar().pack_end(searchbtn); - this._binding = searchbtn.bind_property( - 'active', - this.searchbar, - 'search-mode-enabled', - GObject.BindingFlags.BIDIRECTIONAL - ); - this.get_content_area().pack_start(this.searchbar, false, false, 0); - this.get_content_area().pack_start(scrolled_window, true, true, 0); - this.set_modal(true); - this.set_transient_for(main_window); - this.set_size_request(400, 300); - this.listbox = list_box; - this.connect('key-press-event', this.on_key_press.bind(this)); - }, - - sort_apps: function(a, b) { - let a_info = a.__dpt__info || {}; - let b_info = b.__dpt__info || {}; - - const aname = typeof a_info === 'string' ? Tweaks.by_uuid(a_info).name : a_info.get_name(); - const bname = typeof b_info === 'string' ? Tweaks.by_uuid(b_info).name : b_info.get_name(); - - - return (aname && aname.localeCompare(bname)) || 1; - }, - - build_widget: function(name, icon) { - let row = new Gtk.ListBoxRow(); - - let row_grid = new Gtk.Grid(); - - row_grid.set_margin_start(10); - row_grid.set_margin_end(10); - row_grid.set_column_spacing(5); - - if (!name) { - return null; - } - - let img = null; - - if (icon) { - img = Gtk.Image.new_from_gicon(icon, Gtk.IconSize.DIALOG); - } else { - img = Gtk.Image.new_from_icon_name('dialog-question', Gtk.IconSize.DIALOG); - } - - row_grid.attach(img, 0, 0, 1, 1); - - img.hexpand = false; - - const [, , h] = Gtk.IconSize.lookup(Gtk.IconSize.DIALOG); - img.set_pixel_size(h); - - let list_box = new Gtk.Label({ - label: name, - xalign: 0, - hexpand: true, - vexpand: false, - halign: Gtk.Align.START, - valign: Gtk.Align.CENTER - }); - row_grid.attach_next_to(list_box, img, Gtk.PositionType.RIGHT, 1, 1); - - row.add(row_grid); - row.show_all(); - - return row; - }, - list_header_func: function(row, before, user_data) { - if (before && !row.get_header()) { - row.set_header( - new Gtk.Separator({ - orientation: Gtk.Orientation.HORIZONTAL - }) - ); - } - }, - list_filter_func: function(row, unused) { - let txt = this.entry.get_text().toLowerCase(); - let grid = row.get_child(); - for (let sib of grid.get_children()) { - if (sib.constructor === Gtk.Label) { - if ( - sib - .get_text() - .toLowerCase() - .indexOf(txt) !== -1 - ) { - return true; - } - } - } - return false; - }, - on_search_entry_changed: function(editable) { - this.listbox.invalidate_filter(); - let selected = this.listbox.get_selected_row(); - if (selected && selected.get_mapped()) { - this.set_response_sensitive(Gtk.ResponseType.OK, true); - } else { - this.set_response_sensitive(Gtk.ResponseType.OK, false); - } - }, - - on_row_selected: function(box, row) { - this.set_response_sensitive(Gtk.ResponseType.OK, row && row.get_mapped()); - }, - - on_key_press: function(widget, event) { - let mods = event.state & Gtk.accelerator_get_default_mod_mask(); - if (event.keyval === this.search_key && mods === this.search_mods) { - this.searchbar.set_search_mode(!this.searchbar.get_search_mode()); - return true; - } - - let keyname = Gdk.keyval_name(event.keyval); - if (keyname === 'Escape') { - if (this.searchbar.get_search_mode()) { - this.searchbar.set_search_mode(false); - return true; - } - } else if (!(keyname === 'Up' || keyname === 'Down')) { - if (!this.entry.has_focus && this.searchbar.get_search_mode()) { - if (this.entry.im_context_filter_keypress(event)) { - this.entry.grab_focus(); - let l = this.entry.get_text_length(); - this.entry.select_region(l, l); - return true; - } - return this.searchbar.handle_event(event); - } - return false; - } - return false; - }, - - get_selected_app: function() { - let row = this.listbox.get_selected_row(); - - if (row) { - let rowData = row.__dpt__info; - return rowData; - } - - return null; - } -}); diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appRow.js b/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appRow.js deleted file mode 100644 index 86e8711..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/appRow.js +++ /dev/null @@ -1,161 +0,0 @@ -/* exported AppRow, CustomRow, AddAppRow */ - -const Lang = imports.lang; - -const Gdk = imports.gi.Gdk; -const Gtk = imports.gi.Gtk; - -const C_gtk30_ = imports.gettext.domain("gtk30").pgettext; -const gtk30_ = imports.gettext.domain("gtk30").gettext; - -/* Translated and modified from gnome-tweak-tool's StartupTweak.py */ -// TODO: Transition UI to XML. - -var AppRow = new Lang.Class({ - Name: "DynamicPanelTransparency_AppRow", - Extends: Gtk.ListBoxRow, - _init: function(app_info, on_configure, on_remove) { - this.parent(); - - this.on_configure = on_configure; - this.on_remove = on_remove; - this.app_name = app_info.get_name(); - this.app_id = app_info.get_id(); - - let grid = new Gtk.Grid({ column_spacing: 10 }); - - let icn = app_info.get_icon(); - let img = null; - - if (typeof icn !== "undefined" && icn !== null) { - img = Gtk.Image.new_from_gicon(icn, Gtk.IconSize.DIALOG); - - const [,,h] = Gtk.IconSize.lookup(Gtk.IconSize.DIALOG); - img.set_pixel_size(h); - img.set_hexpand(false); - - grid.attach(img, 0, 0, 1, 1); - } - - let lbl = new Gtk.Label({ label: app_info.get_name(), xalign: 0.0 }); - grid.attach_next_to(lbl, img, Gtk.PositionType.RIGHT, 1, 1); - lbl.hexpand = true; - lbl.halign = Gtk.Align.START; - let btn = Gtk.Button.new_with_mnemonic(C_gtk30_("Action name", "Edit")); - grid.attach_next_to(btn, lbl, Gtk.PositionType.RIGHT, 1, 1); - btn.vexpand = false; - btn.valign = Gtk.Align.CENTER; - this.btn = btn; - this.btn.connect("clicked", this.configure.bind(this)); - - let remove_btn = Gtk.Button.new_with_mnemonic(gtk30_("_Remove")); - grid.attach_next_to(remove_btn, btn, Gtk.PositionType.RIGHT, 1, 1); - remove_btn.vexpand = false; - remove_btn.valign = Gtk.Align.CENTER; - this.remove_btn = remove_btn; - this.remove_btn.connect("clicked", this.remove.bind(this)); - - this.add(grid); - this.margin_start = 1; - this.margin_end = 1; - this.connect("key-press-event", this.on_key_press_event.bind(this)); - }, - on_key_press_event: function(row, event) { - if ( - event.keyval === Gdk.KEY_Delete || - event.keyval === Gdk.KEY_KP_Delete || - event.keyval === Gdk.KEY_BackSpace - ) { - this.remove_btn.activate(); - return true; - } - return false; - }, - configure: function() { - this.on_configure.call(this, this.app_name, this.app_id); - }, - remove: function() { - this.on_remove.call(this, this.app_id, this); - } -}); - -var CustomRow = new Lang.Class({ - Name: "DynamicPanelTransparency_CustomRow", - Extends: Gtk.ListBoxRow, - _init: function( - name, - wm_class, - on_configure, - on_remove, - wm_class_extra = [] - ) { - this.parent(); - - this.on_configure = on_configure; - this.on_remove = on_remove; - this.app_name = wm_class; - this.app_id = wm_class; - this.wm_class = wm_class; - this.wm_class_extra = wm_class_extra; - this.name = name; - - let grid = new Gtk.Grid({ column_spacing: 10 }); - - let lbl = new Gtk.Label({ label: this.name, xalign: 0.0 }); - grid.attach(lbl, 0, 0, 1, 1); - lbl.hexpand = true; - lbl.halign = Gtk.Align.START; - let btn = Gtk.Button.new_with_mnemonic(C_gtk30_("Action name", "Edit")); - grid.attach_next_to(btn, lbl, Gtk.PositionType.RIGHT, 1, 1); - btn.vexpand = false; - btn.valign = Gtk.Align.CENTER; - this.btn = btn; - this.btn.connect("clicked", this.configure.bind(this)); - - let remove_btn = Gtk.Button.new_with_mnemonic(gtk30_("_Remove")); - grid.attach_next_to(remove_btn, btn, Gtk.PositionType.RIGHT, 1, 1); - remove_btn.vexpand = false; - remove_btn.valign = Gtk.Align.CENTER; - this.remove_btn = remove_btn; - this.remove_btn.connect("clicked", this.remove.bind(this)); - - this.add(grid); - this.margin_start = 1; - this.margin_end = 1; - this.connect("key-press-event", this.on_key_press_event.bind(this)); - }, - on_key_press_event: function(row, event) { - if ( - event.keyval === Gdk.KEY_Delete || - event.keyval === Gdk.KEY_KP_Delete || - event.keyval === Gdk.KEY_BackSpace - ) { - this.remove_btn.activate(); - return true; - } - return false; - }, - configure: function() { - this.on_configure.call(this, this.name, this.wm_class, this.wm_class_extra); - }, - remove: function() { - this.on_remove.call(this, this.wm_class, this, this.wm_class_extra); - } -}); - -var AddAppRow = new Lang.Class({ - Name: "DynamicPanelTransparency_AddAppRow", - Extends: Gtk.ListBoxRow, - _init: function(options) { - this.parent(); - let img = new Gtk.Image(); - img.set_from_icon_name("list-add-symbolic", Gtk.IconSize.BUTTON); - this.btn = new Gtk.Button({ - label: "", - image: img, - always_show_image: true - }); - this.btn.get_style_context().remove_class("button"); - this.add(this.btn); - } -}); diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/main.js b/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/main.js deleted file mode 100644 index c3fe537..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/main.js +++ /dev/null @@ -1,866 +0,0 @@ -/* exported init, buildPrefsWidget */ - -const Lang = imports.lang; - -const GLib = imports.gi.GLib; -const GObject = imports.gi.GObject; -const Gdk = imports.gi.Gdk; -const Gio = imports.gi.Gio; -const Gtk = imports.gi.Gtk; - -const Me = imports.misc.extensionUtils.getCurrentExtension(); - -const Convenience = Me.imports.convenience; -const Util = Me.imports.util; - -const AppChooser = imports.preferences.appChooser; -const AppRow = imports.preferences.appRow; -const Tweaks = imports.preferences.tweaks; - -const Gettext = imports.gettext.domain('dynamic-panel-transparency'); -const _ = Gettext.gettext; - -const gtk30_ = imports.gettext.domain('gtk30').gettext; - -/* Settings Keys */ -const SETTINGS_ENABLE_BACKGROUND_COLOR = 'enable-background-color'; -const SETTINGS_ENABLE_BACKGROUND_TWEAKS = 'enable-background-tweaks'; -const SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR = 'enable-maximized-text-color'; -const SETTINGS_ENABLE_OPACITY = 'enable-opacity'; -const SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR = 'enable-overview-text-color'; -const SETTINGS_ENABLE_TEXT_COLOR = 'enable-text-color'; -const SETTINGS_HIDE_CORNERS = 'hide-corners'; -const SETTINGS_ICON_SHADOW = 'icon-shadow'; -const SETTINGS_ICON_SHADOW_COLOR = 'icon-shadow-color'; -const SETTINGS_ICON_SHADOW_POSITION = 'icon-shadow-position'; -const SETTINGS_MAXIMIZED_OPACITY = 'maximized-opacity'; -const SETTINGS_MAXIMIZED_TEXT_COLOR = 'maximized-text-color'; -const SETTINGS_PANEL_COLOR = 'panel-color'; -const SETTINGS_REMOVE_PANEL_STYLING = 'remove-panel-styling'; -const SETTINGS_TEXT_COLOR = 'text-color'; -const SETTINGS_TEXT_SHADOW = 'text-shadow'; -const SETTINGS_TEXT_SHADOW_COLOR = 'text-shadow-color'; -const SETTINGS_TEXT_SHADOW_POSITION = 'text-shadow-position'; -const SETTINGS_TRANSITION_SPEED = 'transition-speed'; -const SETTINGS_TRANSITION_WITH_OVERVIEW = 'transition-with-overview'; -const SETTINGS_TRANSITION_WINDOWS_TOUCH = 'transition-windows-touch'; -const SETTINGS_UNMAXIMIZED_OPACITY = 'unmaximized-opacity'; - -const Page = { TRANSITIONS: 0, FOREGROUND: 1, BACKGROUND: 2, APP_TWEAKS: 3, ABOUT: 4 }; -Object.freeze(Page); - -/* Color Array Indices */ -const RED = 0; -const GREEN = 1; -const BLUE = 2; -const ALPHA = 3; - -/* Shadow Positioning Indices */ -const HORIZONTAL_OFFSET = 0; -const VERTICAL_OFFSET = 1; -const BLUR_RADIUS = 2; - -/* UI spacing & similar values. */ -const WEBSITE_LABEL_BOTTOM_MARGIN = 50; -const WEBSITE_LABEL_TOP_MARGIN = 20; - -/* Color Scaling Factor (Byte to Decimal) */ -const SCALE_FACTOR = 255.9999999; - -function init() { - Convenience.initTranslations(); -} - -/* UI Setup */ -function buildPrefsWidget() { - /* Stores settings until the user applies them. */ - - /* Get Settings */ - let settings = Convenience.getSettings(); - /* Create a UI Builder */ - let builder = new Gtk.Builder(); - /* Setup Translation */ - builder.set_translation_domain(Me.metadata['gettext-domain']); - /* Get UI File */ - builder.add_from_file(Me.path + '/prefs.js/ui/prefs.ui'); - - /* Main Widget (Grid) */ - let main_widget = builder.get_object('main_box'); - - /* Tabs */ - let main_notebook = builder.get_object('main_notebook'); - - /* Used for special functions occasionally. */ - let extra_btn = builder.get_object('extra_btn'); - - /* Only show the panel & extra button on relevant pages. */ - main_notebook.connect('switch-page', (function(notebook, page, index) { - if (index === Page.APP_TWEAKS) { - extra_btn.show(); - } else { - extra_btn.hide(); - } - }).bind(this)); - - { - /* Transition speed control */ - let speed_scale = builder.get_object('speed_scale'); - /* Init value. */ - speed_scale.adjustment.set_value(settings.get_int(SETTINGS_TRANSITION_SPEED)); - /* Add default marking. */ - speed_scale.add_mark(settings.get_default_value(SETTINGS_TRANSITION_SPEED).unpack(), Gtk.PositionType.BOTTOM, _("default")); - /* Add formatting */ - speed_scale.connect('format-value', (function(scale, value) { - return value + 'ms'; - }).bind(this)); - speed_scale.connect('value-changed', (function(widget) { - settings.set_value(SETTINGS_TRANSITION_SPEED, new GLib.Variant('i', widget.adjustment.get_value())); - }).bind(this)); - - let transition_windows_touch = builder.get_object('transition_windows_touch_check'); - transition_windows_touch.set_active(settings.get_boolean(SETTINGS_TRANSITION_WINDOWS_TOUCH)); - - transition_windows_touch.connect('toggled', (function(widget) { - settings.set_value(SETTINGS_TRANSITION_WINDOWS_TOUCH, new GLib.Variant('b', widget.get_active())); - - }).bind(this)); - - let transition_with_overview = builder.get_object('transition_with_overview_check'); - transition_with_overview.set_active(settings.get_boolean(SETTINGS_TRANSITION_WITH_OVERVIEW)); - - transition_with_overview.connect('toggled', (function(widget) { - settings.set_value(SETTINGS_TRANSITION_WITH_OVERVIEW, new GLib.Variant('b', widget.get_active())); - - }).bind(this)); - } - - /* Setup foreground tab */ - { - let text_color_switch = builder.get_object('text_color_switch'); - let text_color_revealer = builder.get_object('text_color_revealer'); - - text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_TEXT_COLOR)); - text_color_switch.connect('state-set', (function(widget, state) { - settings.set_value(SETTINGS_ENABLE_TEXT_COLOR, new GLib.Variant('b', state)); - text_color_revealer.set_reveal_child(state); - - }).bind(this)); - - let maximized_text_color_switch = builder.get_object('maximized_text_color_check'); - maximized_text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR)); - - maximized_text_color_switch.connect('toggled', (function(widget) { - settings.set_value(SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR, new GLib.Variant('b', widget.get_active())); - }).bind(this)); - - let overview_text_color_switch = builder.get_object('overview_text_color_check'); - overview_text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR)); - - overview_text_color_switch.connect('toggled', (function(widget) { - settings.set_value(SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR, new GLib.Variant('b', widget.get_active())); - }).bind(this)); - - let remove_panel_styling_check = builder.get_object('remove_panel_styling_check'); - remove_panel_styling_check.set_active(settings.get_boolean(SETTINGS_REMOVE_PANEL_STYLING)); - - remove_panel_styling_check.connect('toggled', (function(widget) { - settings.set_value(SETTINGS_REMOVE_PANEL_STYLING, new GLib.Variant('b', widget.get_active())); - }).bind(this)); - - let maximized_text_color_btn = builder.get_object('maximized_text_color_btn'); - let maximized_text_color = settings.get_value(SETTINGS_MAXIMIZED_TEXT_COLOR).deep_unpack(); - - let css_color = 'rgba(' + maximized_text_color[RED] + ',' + maximized_text_color[GREEN] + ',' + maximized_text_color[BLUE] + ', 1.0)'; - let scaled_color = new Gdk.RGBA(); - - if (scaled_color.parse(css_color)) { - maximized_text_color_btn.set_rgba(scaled_color); - } - - maximized_text_color_btn.connect('color-set', (function(color_btn) { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let rgb = [color.red, color.green, color.blue]; - - settings.set_value(SETTINGS_MAXIMIZED_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); - }).bind(this)); - - let text_color_btn = builder.get_object('text_color_btn'); - let text_color = settings.get_value(SETTINGS_TEXT_COLOR).deep_unpack(); - - css_color = 'rgba(' + text_color[RED] + ',' + text_color[GREEN] + ',' + text_color[BLUE] + ', 1.0)'; - scaled_color = new Gdk.RGBA(); - - if (scaled_color.parse(css_color)) { - text_color_btn.set_rgba(scaled_color); - } - - text_color_btn.connect('color-set', (function(color_btn) { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let rgb = [color.red, color.green, color.blue]; - - settings.set_value(SETTINGS_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); - - }).bind(this)); - - let text_shadow_switch = builder.get_object('text_shadow_switch'); - let text_shadow_revealer = builder.get_object('text_shadow_revealer'); - - text_shadow_switch.set_active(settings.get_boolean(SETTINGS_TEXT_SHADOW)); - - text_shadow_switch.connect('state-set', (function(widget, state) { - settings.set_value(SETTINGS_TEXT_SHADOW, new GLib.Variant('b', state)); - text_shadow_revealer.set_reveal_child(state); - }).bind(this)); - - let text_shadow_vertical_offset = builder.get_object('text_shadow_vertical_offset'); - settings.set_value(SETTINGS_TEXT_SHADOW_POSITION, settings.get_value(SETTINGS_TEXT_SHADOW_POSITION)); - text_shadow_vertical_offset.set_value(settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack()[VERTICAL_OFFSET]); - text_shadow_vertical_offset.connect('value-changed', (function(widget) { - let position = settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack(); - position[VERTICAL_OFFSET] = widget.get_value_as_int(); - settings.set_value(SETTINGS_TEXT_SHADOW_POSITION, new GLib.Variant('(iii)', position)); - }).bind(this)); - - let text_shadow_horizontal_offset = builder.get_object('text_shadow_horizontal_offset'); - text_shadow_horizontal_offset.set_value(settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack()[HORIZONTAL_OFFSET]); - text_shadow_horizontal_offset.connect('value-changed', (function(widget) { - let position = settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack(); - position[HORIZONTAL_OFFSET] = widget.get_value_as_int(); - settings.set_value(SETTINGS_TEXT_SHADOW_POSITION, new GLib.Variant('(iii)', position)); - }).bind(this)); - - let text_shadow_radius = builder.get_object('text_shadow_radius'); - text_shadow_radius.set_value(settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack()[BLUR_RADIUS]); - text_shadow_radius.connect('value-changed', (function(widget) { - let position = settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack(); - position[BLUR_RADIUS] = widget.get_value_as_int(); - settings.set_value(SETTINGS_TEXT_SHADOW_POSITION, new GLib.Variant('(iii)', position)); - }).bind(this)); - - let text_shadow_color_btn = builder.get_object('text_shadow_color'); - text_shadow_color_btn.show_editor = true; - - let text_shadow_color = settings.get_value(SETTINGS_TEXT_SHADOW_COLOR).deep_unpack(); - - css_color = 'rgba(' + text_shadow_color[RED] + ',' + text_shadow_color[GREEN] + ',' + text_shadow_color[BLUE] + ',' + text_shadow_color[ALPHA].toFixed(2) + ')'; - scaled_color = new Gdk.RGBA(); - if (scaled_color.parse(css_color)) - text_shadow_color_btn.set_rgba(scaled_color); - - text_shadow_color_btn.connect('color-set', (function(color_btn) { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let alpha = +(color_btn.get_rgba().alpha.toFixed(2)); - - let rgba = [color.red, color.green, color.blue, alpha]; - settings.set_value(SETTINGS_TEXT_SHADOW_COLOR, new GLib.Variant('(iiid)', rgba)); - }).bind(this)); - - let icon_shadow = builder.get_object('icon_shadow_switch'); - let icon_shadow_revealer = builder.get_object('icon_shadow_revealer'); - - icon_shadow.set_active(settings.get_boolean(SETTINGS_ICON_SHADOW)); - - icon_shadow.connect('state-set', (function(widget, state) { - settings.set_value(SETTINGS_ICON_SHADOW, new GLib.Variant('b', state)); - icon_shadow_revealer.set_reveal_child(state); - }).bind(this)); - - let icon_shadow_vertical_offset = builder.get_object('icon_shadow_vertical_offset'); - - settings.set_value(SETTINGS_ICON_SHADOW_POSITION, settings.get_value(SETTINGS_ICON_SHADOW_POSITION)); - icon_shadow_vertical_offset.set_value(settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack()[VERTICAL_OFFSET]); - icon_shadow_vertical_offset.connect('value-changed', (function(widget) { - let position = settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack(); - position[VERTICAL_OFFSET] = widget.get_value_as_int(); - settings.set_value(SETTINGS_ICON_SHADOW_POSITION, new GLib.Variant('(iii)', position)); - }).bind(this)); - let icon_shadow_horizontal_offset = builder.get_object('icon_shadow_horizontal_offset'); - icon_shadow_horizontal_offset.set_value(settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack()[HORIZONTAL_OFFSET]); - icon_shadow_horizontal_offset.connect('value-changed', (function(widget) { - let position = settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack(); - position[HORIZONTAL_OFFSET] = widget.get_value_as_int(); - settings.set_value(SETTINGS_ICON_SHADOW_POSITION, new GLib.Variant('(iii)', position)); - }).bind(this)); - let icon_shadow_radius = builder.get_object('icon_shadow_radius'); - icon_shadow_radius.set_value(settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack()[BLUR_RADIUS]); - icon_shadow_radius.connect('value-changed', (function(widget) { - let position = settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack(); - position[BLUR_RADIUS] = widget.get_value_as_int(); - settings.set_value(SETTINGS_ICON_SHADOW_POSITION, new GLib.Variant('(iii)', position)); - }).bind(this)); - - let icon_shadow_color_btn = builder.get_object('icon_shadow_color'); - icon_shadow_color_btn.show_editor = true; - - let icon_shadow_color = settings.get_value(SETTINGS_ICON_SHADOW_COLOR).deep_unpack(); - - css_color = 'rgba(' + icon_shadow_color[RED] + ',' + icon_shadow_color[GREEN] + ',' + icon_shadow_color[BLUE] + ',' + icon_shadow_color[ALPHA].toFixed(2) + ')'; - scaled_color = new Gdk.RGBA(); - if (scaled_color.parse(css_color)) { - icon_shadow_color_btn.set_rgba(scaled_color); - } - - icon_shadow_color_btn.connect('color-set', (function(color_btn) { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let alpha = +(color_btn.get_rgba().alpha.toFixed(2)); - - let rgba = [color.red, color.green, color.blue, alpha]; - - settings.set_value(SETTINGS_ICON_SHADOW_COLOR, new GLib.Variant('(iiid)', rgba)); - }).bind(this)); - } - - /* Setup Background Tab */ - { - let background_color_switch = builder.get_object('background_color_switch'); - let opacity_switch = builder.get_object('opacity_switch'); - let background_color_revealer = builder.get_object('background_color_revealer'); - let opacity_revealer = builder.get_object('opacity_revealer'); - - background_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_COLOR)); - background_color_switch.connect('state-set', (function(widget, state) { - settings.set_value(SETTINGS_ENABLE_BACKGROUND_COLOR, new GLib.Variant('b', state)); - background_color_revealer.set_reveal_child(state); - }).bind(this)); - - opacity_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_OPACITY)); - opacity_switch.connect('state-set', (function(widget, state) { - settings.set_value(SETTINGS_ENABLE_OPACITY, new GLib.Variant('b', state)); - opacity_revealer.set_reveal_child(state); - - }).bind(this)); - - /* Maximum opacity control */ - let maximum_scale = builder.get_object('maximum_scale'); - /* Init value. */ - maximum_scale.adjustment.set_value(settings.get_int(SETTINGS_MAXIMIZED_OPACITY)); - /* Add formatting */ - maximum_scale.connect('format-value', (function(scale, value) { - return (((value / SCALE_FACTOR) * 100).toFixed(0) + '%'); // eslint-disable-line no-magic-numbers - }).bind(this)); - maximum_scale.connect('value-changed', (function(widget) { - settings.set_value(SETTINGS_MAXIMIZED_OPACITY, new GLib.Variant('i', widget.adjustment.get_value())); - }).bind(this)); - - /* Minimum opacity control */ - let minimum_scale = builder.get_object('minimum_scale'); - /* Init value. */ - minimum_scale.adjustment.set_value(settings.get_int(SETTINGS_UNMAXIMIZED_OPACITY)); - /* Add formatting */ - minimum_scale.connect('format-value', (function(scale, value) { - return ((value / SCALE_FACTOR) * 100).toFixed(0) + '%'; // eslint-disable-line no-magic-numbers - }).bind(this)); - minimum_scale.connect('value-changed', (function(widget) { - settings.set_value(SETTINGS_UNMAXIMIZED_OPACITY, new GLib.Variant('i', widget.adjustment.get_value())); - }).bind(this)); - - /* Convert & scale color. */ - let panel_color = settings.get_value(SETTINGS_PANEL_COLOR).deep_unpack(); - - let color_btn = builder.get_object('color_btn'); - let css_color = 'rgba(' + panel_color[RED] + ',' + panel_color[GREEN] + ',' + panel_color[BLUE] + ', 1.0)'; - - let scaled_color = new Gdk.RGBA(); - if (scaled_color.parse(css_color)) { - color_btn.set_rgba(scaled_color); - } - color_btn.connect('color-set', (function(color_btn) { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let rgb = [color.red, color.green, color.blue]; - - settings.set_value(SETTINGS_PANEL_COLOR, new GLib.Variant('ai', rgb)); - }).bind(this)); - - let hide_corners = builder.get_object('hide_corners_check'); - hide_corners.set_active(settings.get_boolean(SETTINGS_HIDE_CORNERS)); - - hide_corners.connect('toggled', (function(widget) { - settings.set_value(SETTINGS_HIDE_CORNERS, new GLib.Variant('b', widget.get_active())); - }).bind(this)); - } - - /* Setup App Settings Tab */ - { - let app_list = builder.get_object('app_list'); - app_list.set_sort_func((function(a, b) { - if (a.constructor === AppRow.AddAppRow) { - return 1; - } else if (b.constructor === AppRow.AddAppRow) { - return -1; - } - - if (a.constructor !== AppRow.AppRow) { - return 1; - } else if (b.constructor !== AppRow.AppRow) { - return -1; - } - let aname = a.app_name; - let bname = b.app_name; - if (aname < bname) { - return -1; - } else if (aname > bname) { - return 1; - } else { - return 0; - } - }).bind(this)); - - let app_overrides = settings.get_strv('app-overrides'); - let window_overrides = settings.get_strv('window-overrides'); - - let window_rmv = (function(wm_class, row) { - let overrides = settings.get_strv('window-overrides'); - let index = overrides.indexOf(wm_class); - if (index !== -1) { - overrides.splice(index, 1); - } - settings.set_strv('window-overrides', overrides); - - let triggers = settings.get_strv('trigger-windows'); - index = triggers.indexOf(wm_class); - if (index !== -1) { - triggers.splice(index, 1); - } - settings.set_strv('trigger-windows', triggers); - - app_list.remove(row); - }).bind(this); - let tweak_rmv = (function(wm_class, row, extra_wm_class) { - let overrides = settings.get_strv('window-overrides'); - let index = overrides.indexOf(wm_class); - if (index !== -1) { - overrides.splice(index, 1); - } - settings.set_strv('window-overrides', overrides); - - let triggers = settings.get_strv('trigger-windows'); - index = triggers.indexOf(wm_class); - if (index !== -1) { - triggers.splice(index, 1); - } - settings.set_strv('trigger-windows', triggers); - - for (let extra of extra_wm_class) { - let overrides = settings.get_strv('window-overrides'); - let index = overrides.indexOf(extra); - if (index !== -1) { - overrides.splice(index, 1); - } - settings.set_strv('window-overrides', overrides); - - let triggers = settings.get_strv('trigger-windows'); - index = triggers.indexOf(extra); - if (index !== -1) { - triggers.splice(index, 1); - } - settings.set_strv('trigger-windows', triggers); - } - - app_list.remove(row); - }).bind(this); - let rmv = (function(app_id, row) { - let overrides = settings.get_strv('app-overrides'); - let index = overrides.indexOf(app_id); - if (index !== -1) { - overrides.splice(index, 1); - } - settings.set_strv('app-overrides', overrides); - - let triggers = settings.get_strv('trigger-apps'); - index = triggers.indexOf(app_id); - if (index !== -1) { - triggers.splice(index, 1); - } - settings.set_strv('trigger-apps', triggers); - - app_list.remove(row); - }).bind(this); - - let cfg = (function(app_name, app_id, path, extras = []) { - let temp_app_settings = { - background_tweaks: null, - maximum_opacity: null, - panel_color: null, - always_trigger: null - }; - - let app_prefs_builder = new Gtk.Builder(); - /* Setup Translation */ - app_prefs_builder.set_translation_domain(Me.metadata['gettext-domain']); - /* Get UI File */ - app_prefs_builder.add_from_file(Me.path + '/prefs.js/ui/app-prefs.ui'); - - let dialog = new Gtk.Dialog({ - use_header_bar: true, - modal: true, - title: app_name - }); - - dialog.get_header_bar().set_subtitle(_("App Tweaks")); - - dialog.add_button(gtk30_("_Cancel"), Gtk.ResponseType.CANCEL); - dialog.add_button(gtk30_("_Apply"), Gtk.ResponseType.APPLY); - - dialog.transient_for = main_widget.get_toplevel(); - let custom_path = path + '' + app_id + '/'; - let obj = Convenience.getSchemaObj('org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides'); - let app_settings = new Gio.Settings({ path: custom_path, settings_schema: obj }); - - let content_area = dialog.get_content_area(); - content_area.add(app_prefs_builder.get_object('main_box')); - - let background_tweaks_switch = app_prefs_builder.get_object('background_tweaks_switch'); - let background_tweaks_revealer = app_prefs_builder.get_object('background_tweaks_revealer'); - background_tweaks_switch.set_active(app_settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_TWEAKS)); - background_tweaks_revealer.set_reveal_child(background_tweaks_switch.get_active()); - background_tweaks_switch.connect('state-set', (function(widget, state) { - temp_app_settings.background_tweaks = state; - background_tweaks_revealer.set_reveal_child(state); - }).bind(this)); - - let _maximum_scale = app_prefs_builder.get_object('maximum_scale'); - /* Init value. */ - _maximum_scale.adjustment.set_value(app_settings.get_int(SETTINGS_MAXIMIZED_OPACITY)); - /* Add formatting */ - _maximum_scale.connect('format-value', (function(scale, value) { - return (((value / SCALE_FACTOR) * 100).toFixed(0) + '%'); // eslint-disable-line no-magic-numbers - }).bind(this)); - _maximum_scale.connect('value-changed', (function(widget) { - temp_app_settings.maximum_opacity = widget.adjustment.get_value(); - }).bind(this)); - - let _always_trigger = app_prefs_builder.get_object('always_trigger'); - _always_trigger.connect('toggled', (function(widget) { - temp_app_settings.always_trigger = widget.get_active(); - }).bind(this)); - - { - let trigger_key = null; - if (path.indexOf('windowOverrides') !== -1) { - trigger_key = 'trigger-windows'; - } else { - trigger_key = 'trigger-apps'; - } - let triggers = settings.get_strv(trigger_key); - _always_trigger.set_active(triggers.indexOf(app_id) !== -1); - } - - let _color_btn = app_prefs_builder.get_object('color_btn'); - - let _panel_color = app_settings.get_value(SETTINGS_PANEL_COLOR).deep_unpack(); - - let css_color = 'rgba(' + _panel_color[RED] + ',' + _panel_color[GREEN] + ',' + _panel_color[BLUE] + ', 1.0)'; - let scaled_color = new Gdk.RGBA(); - if (scaled_color.parse(css_color)) - _color_btn.set_rgba(scaled_color); - - _color_btn.connect('color-set', (function(color_btn) { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let rgb = [color.red, color.green, color.blue]; - - temp_app_settings.panel_color = rgb; - }).bind(this)); - - dialog.show_all(); - - let response = dialog.run(); - - if (response === Gtk.ResponseType.APPLY) { - if (temp_app_settings.background_tweaks !== null) - app_settings.set_value(SETTINGS_ENABLE_BACKGROUND_TWEAKS, new GLib.Variant('b', temp_app_settings.background_tweaks)); - if (temp_app_settings.panel_color !== null) - app_settings.set_value(SETTINGS_PANEL_COLOR, new GLib.Variant('(iii)', temp_app_settings.panel_color)); - if (temp_app_settings.maximum_opacity !== null) - app_settings.set_value(SETTINGS_MAXIMIZED_OPACITY, new GLib.Variant('i', temp_app_settings.maximum_opacity)); - if (temp_app_settings.always_trigger !== null) { - let trigger_key = null; - - if (path.indexOf('windowOverrides') !== -1) { - trigger_key = 'trigger-windows'; - } else { - trigger_key = 'trigger-apps'; - } - - let triggers = settings.get_strv(trigger_key); - let index = triggers.indexOf(app_id); - - if (temp_app_settings.always_trigger && index === -1) { - triggers.push(app_id); - } else if (!temp_app_settings.always_trigger && index !== -1) { - triggers.splice(index, 1); - } - settings.set_strv(trigger_key, triggers); - } - - for (let extra of extras) { - let extra_custom_path = path + '' + extra + '/'; - let extra_obj = Convenience.getSchemaObj('org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides'); - let extra_settings = new Gio.Settings({ path: extra_custom_path, settings_schema: extra_obj }); - - if (temp_app_settings.background_tweaks !== null) - extra_settings.set_value(SETTINGS_ENABLE_BACKGROUND_TWEAKS, new GLib.Variant('b', temp_app_settings.background_tweaks)); - if (temp_app_settings.panel_color !== null) - extra_settings.set_value(SETTINGS_PANEL_COLOR, new GLib.Variant('(iii)', temp_app_settings.panel_color)); - if (temp_app_settings.maximum_opacity !== null) - extra_settings.set_value(SETTINGS_MAXIMIZED_OPACITY, new GLib.Variant('i', temp_app_settings.maximum_opacity)); - if (temp_app_settings.always_trigger !== null) { - let trigger_key = null; - - if (path.indexOf('windowOverrides') !== -1) { - trigger_key = 'trigger-windows'; - } else { - trigger_key = 'trigger-apps'; - } - - let triggers = settings.get_strv(trigger_key); - let index = triggers.indexOf(app_id); - - if (temp_app_settings.always_trigger && index === -1) { - triggers.push(app_id); - } else if (!temp_app_settings.always_trigger && index !== -1) { - triggers.splice(index, 1); - } - settings.set_strv(trigger_key, triggers); - } - } - } - - content_area.remove(app_prefs_builder.get_object('main_box')); - dialog.destroy(); - }).bind(this); - - let app_cfg = function(app_name, app_id) { - cfg.call(this, app_name, app_id, '/org/gnome/shell/extensions/dynamic-panel-transparency/appOverrides/'); - }; - let window_cfg = function(name, wm_class) { - cfg.call(this, wm_class, wm_class, '/org/gnome/shell/extensions/dynamic-panel-transparency/windowOverrides/'); - }; - let tweak_cfg = function(name, wm_class, extra_wm_class) { - cfg.call(this, name, wm_class, '/org/gnome/shell/extensions/dynamic-panel-transparency/windowOverrides/', extra_wm_class); - }; - - for (let override of app_overrides) { - let app_info = Gio.DesktopAppInfo.new(override); - if (app_info) { - let row = new AppRow.AppRow(app_info, app_cfg, rmv); - row.show_all(); - app_list.add(row); - } - } - - let current_tweaks = []; - - for (let override of window_overrides) { - let tweak = Tweaks.by_wm_class(override); - if (tweak) { - let found = false; - - for (let added_tweak of current_tweaks) { - for (let wm_class of added_tweak.wm_class) { - if (tweak.wm_class.indexOf(wm_class) !== -1) { - found = true; - } - } - } - if (!found) { - let extra_wm_class = tweak.wm_class.length <= 1 ? [] : tweak.wm_class.slice(1); - let row = new AppRow.CustomRow(tweak.name, tweak.wm_class[0], tweak_cfg, tweak_rmv, extra_wm_class); - row.show_all(); - app_list.add(row); - current_tweaks.push(tweak); - } - } else { - let row = new AppRow.CustomRow(override, override, window_cfg, window_rmv); - row.show_all(); - app_list.add(row); - } - } - - let add = new AppRow.AddAppRow(); - add.btn.connect('clicked', (function() { - Gio.Application.get_default().mark_busy(); - let overrides = settings.get_strv('app-overrides'); - let a2 = new AppChooser.AppChooser(main_widget.get_toplevel(), overrides); - a2.show_all(); - Gio.Application.get_default().unmark_busy(); - let response = a2.run(); - if (response === Gtk.ResponseType.OK) { - let selected_app = a2.get_selected_app(); - if (selected_app) { - if (typeof selected_app === 'string') { - let tweak = Tweaks.by_uuid(selected_app); - if (tweak) { - let row = new AppRow.CustomRow(tweak.name, tweak.wm_class[0], tweak_cfg, tweak_rmv, tweak.wm_class.slice(1)); - row.show_all(); - app_list.add(row); - overrides = settings.get_strv('window-overrides'); - for (let wm_class of tweak.wm_class) { - if (overrides.indexOf(wm_class) === -1) { - overrides.push(wm_class); - } - } - settings.set_strv('window-overrides', overrides); - - if (typeof (tweak.trigger) !== 'undefined' && tweak.trigger !== null) { - let triggers = settings.get_strv('trigger-windows'); - for (let wm_class of tweak.wm_class) { - if (triggers.indexOf(wm_class) === -1) { - triggers.push(wm_class); - } - } - settings.set_strv('trigger-windows', triggers); - } - } - } else { - let row = new AppRow.AppRow(selected_app, app_cfg, rmv); - row.show_all(); - app_list.add(row); - overrides = settings.get_strv('app-overrides'); - if (overrides.indexOf(selected_app.get_id()) === -1) { - overrides.push(selected_app.get_id()); - } - settings.set_strv('app-overrides', overrides); - } - } - } - a2.destroy(); - }).bind(this)); - - extra_btn.connect('clicked', (function() { - if (main_notebook.get_current_page() === Page.APP_TWEAKS) { - - let dialog = new Gtk.Dialog({ - modal: true, - title: _("Add a Custom WM_CLASS") - }); - - dialog.transient_for = main_widget.get_toplevel(); - - dialog.add_button(gtk30_("_Cancel"), Gtk.ResponseType.CANCEL); - dialog.add_button(gtk30_("_OK"), Gtk.ResponseType.OK); - - let content_area = dialog.get_content_area(); - content_area.add(builder.get_object('wm_class_contents')); - - let revealer = builder.get_object('error_revealer'); - let entry = builder.get_object('wm_class_entry'); - - dialog.connect('response', (function(dialog, response) { - if (response === Gtk.ResponseType.OK) { - let text = entry.get_text(); - if (!text) { - revealer.set_reveal_child(true); - GObject.signal_stop_emission_by_name(dialog, 'response'); - } - } - }).bind(this)); - - dialog.set_size_request(400, 100); // eslint-disable-line - dialog.show_all(); - - let response = dialog.run(); - let text = entry.get_text(); - - if (response === Gtk.ResponseType.OK) { - let row = new AppRow.CustomRow(text, window_cfg, window_rmv); - row.show_all(); - app_list.add(row); - let overrides = settings.get_strv('window-overrides'); - if (overrides.indexOf(text) === -1) { - overrides.push(text); - settings.set_strv('window-overrides', overrides); - } - } - - content_area.remove(builder.get_object('wm_class_contents')); - dialog.destroy(); - } - }).bind(this)); - app_list.add(add); - } - - /* Util function to find UI elements in a GTK dialog. */ - function find(container, names, level = 0) { - let target = null; - container.forall(function(child) { - if (child.get_name() === names[level]) { - if (++level === names.length) { - target = child; - } else { - target = find(child, names, level); - } - } - }); - return target; - } - - /* Setup About Tab */ - { - /* Find the stack */ - let about_dialog = builder.get_object('about_dialog'); - about_dialog.set_version('v' + Me.metadata['version']); - - let contents = about_dialog.get_child(); - - let stack = find(contents, ['box', 'stack']); - - /* Find the license page. */ - let license_page = find(stack, ['license_page']); - - /* Get rid of that pesky license page. */ - stack.remove(license_page); - - /* Strip the dialog of its content. */ - about_dialog.remove(contents); - - /* Link the stack switcher (I hate header bars sometimes.) */ - let stack_switcher = builder.get_object('about_switcher'); - stack_switcher.set_stack(stack); - - /* Transfer the contents. */ - let about_box = builder.get_object('about_box'); - about_box.add(contents); - - /* Add some space to the about page. Was a little cramped... */ - let found_box = find(stack, ['page_vbox', 'hbox']); - if (found_box === null) { - found_box = find(stack, ['page_vbox']); - } - - if (found_box !== null) { - let website_label = find(found_box, ['website_label']); - - if (website_label !== null) { - found_box.remove(website_label); - - let new_label = Gtk.LinkButton.new_with_label('http://evanwelsh.com/dynamic-panel-transparency', gtk30_('Website')); - - new_label.set_margin_top(WEBSITE_LABEL_TOP_MARGIN); - new_label.set_margin_bottom(WEBSITE_LABEL_BOTTOM_MARGIN); - found_box.add(new_label); - } - } - } - - let widget_parent = main_widget.get_toplevel(); - - /* Fix revealer sizing issues. */ - widget_parent.connect('realize', (function() { - extra_btn.hide(); - /* We have to regrab this object as it isn't in this scope. */ - let text_color_revealer = builder.get_object('text_color_revealer'); - text_color_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_TEXT_COLOR)); - let background_color_revealer = builder.get_object('background_color_revealer'); - background_color_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_COLOR)); - let opacity_revealer = builder.get_object('opacity_revealer'); - opacity_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_OPACITY)); - let text_shadow_revealer = builder.get_object('text_shadow_revealer'); - text_shadow_revealer.set_reveal_child(settings.get_boolean(SETTINGS_TEXT_SHADOW)); - let icon_shadow_revealer = builder.get_object('icon_shadow_revealer'); - icon_shadow_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ICON_SHADOW)); - }).bind(this)); - - /* Return main widget. */ - main_widget.show_all(); - return main_widget; -} \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/tweaks.js b/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/tweaks.js deleted file mode 100644 index 391c2da..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/prefs.js/preferences/tweaks.js +++ /dev/null @@ -1,39 +0,0 @@ -/* exported get_tweaks, by_uuid, by_name, by_wm_class */ - -var get_tweaks = function() { - return [ - { - 'uuid': 'drop-down-terminal@gs-extensions.zzrough.org', - 'name': 'Drop Down Terminal', - 'wm_class': ['DropDownTerminalWindow', 'drop-down-terminal'], - 'trigger': true - } - ]; -}; - -var by_uuid = function(uuid) { - for (let tweak of get_tweaks()) { - if (uuid === tweak.uuid) { - return tweak; - } - } - return null; -}; - -var by_name = function(name) { - for (let tweak of get_tweaks()) { - if (name === tweak.name) { - return tweak; - } - } - return null; -}; - -var by_wm_class = function(wm_class) { - for (let tweak of get_tweaks()) { - if (tweak.wm_class.indexOf(wm_class) !== -1) { - return tweak; - } - } - return null; -}; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js/ui/app-prefs.ui b/dynamic-panel-transparency@rockon999.github.io/prefs.js/ui/app-prefs.ui deleted file mode 100644 index a7feec2..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/prefs.js/ui/app-prefs.ui +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - 255 - 1 - 10 - - - True - False - 5 - 5 - 5 - 5 - vertical - 10 - - - True - False - 5 - 5 - 0 - in - - - True - False - 12 - 12 - - - True - False - 10 - 10 - 10 - 5 - True - 5 - 10 - - - True - False - start - center - Enable background app tweaks - - - 0 - 0 - - - - - True - True - end - - - 1 - 0 - - - - - True - False - True - True - - - True - False - 2 - 5 - 5 - 5 - 10 - - - True - True - True - end - 5 - Panel Color - - - 1 - 1 - - - - - True - True - 5 - True - maximum_opacity_adjustment - 1 - - - 1 - 0 - - - - - True - False - center - Maximized Opacity - - - 0 - 0 - - - - - True - False - start - center - Theme Source - True - - - 0 - 1 - - - - - - - 0 - 1 - 2 - - - - - - - - - False - True - 0 - - - - - True - False - 5 - 5 - 0 - in - - - True - False - 12 - - - True - False - 10 - 10 - 10 - 10 - - - True - True - False - True - - - True - False - 5 - Always trigger the panel. - - - - - 0 - 0 - - - - - - - - - False - True - 1 - - - - - 255 - 1 - 10 - - - 5000 - 1 - 10 - - - 100 - 1 - 10 - - diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js/ui/prefs.ui b/dynamic-panel-transparency@rockon999.github.io/prefs.ui similarity index 67% rename from dynamic-panel-transparency@rockon999.github.io/prefs.js/ui/prefs.ui rename to dynamic-panel-transparency@rockon999.github.io/prefs.ui index 3b55735..0309964 100644 --- a/dynamic-panel-transparency@rockon999.github.io/prefs.js/ui/prefs.ui +++ b/dynamic-panel-transparency@rockon999.github.io/prefs.ui @@ -1,5 +1,5 @@ - + @@ -22,6 +22,9 @@ narzb computer gpl-2-0-only + + + False @@ -49,9 +52,6 @@ narzb - - - 10 @@ -107,6 +107,9 @@ narzb Shell Restart Required. A shell restart is required to view some of your changes. Do you want to restart now? True + + + False @@ -127,35 +130,12 @@ narzb - - - 5000 1 10 - - 10 - 1 - 10 - - - 10 - 1 - 10 - - - 10 - 1 - 10 - - - 100 - 1 - 10 - True False @@ -483,197 +463,49 @@ narzb True 10 - + True False - start - True - 0.059999998658895493 - in + 12 + 12 + 12 + 12 - + True False - 12 - 12 - 12 - 12 + True + 10 + True - + True False - True - 10 - True - - - True - False - start - center - Enable text shadowing - - - 0 - 0 - - - - - True - True - end - - - 1 - 0 - - - - - True - False - True - - - True - False - 10 - 5 - 10 - 10 - True - True - - - True - True - True - end - True - Shadow Color - - - 1 - 3 - - - - - True - True - end - start - 0 - text_radius_adjustment - True - True - - - 1 - 2 - - - - - True - True - end - start - 0 - text_shadow_hz_adjustment - True - True - - - 1 - 1 - - - - - True - True - end - start - 0 - text_shadow_vrt_adjustment - True - True - - - 1 - 0 - - - - - True - False - start - center - Shadow Color - - - 0 - 3 - - - - - True - False - start - center - Radius - - - 0 - 2 - - - - - True - False - start - center - Horizontal Offset - - - 0 - 1 - - - - - True - False - start - center - Vertical Offset - - - 0 - 0 - - - - - - - 0 - 1 - 2 - - + start + center + Enable text shadowing + + 0 + 0 + + + + + True + True + end + + + 1 + 0 + + + + - - - False @@ -682,197 +514,49 @@ narzb - + True False - start - True - 0.059999998658895493 - in + 12 + 12 + 12 + 12 - + True False - 12 - 12 - 12 - 12 + True + 10 + True - + True False - True - 10 - True - - - True - False - start - center - Enable icon shadowing - - - 0 - 0 - - - - - True - True - end - - - 1 - 0 - - - - - True - False - True - - - True - False - 10 - 5 - 10 - 10 - True - True - - - True - True - True - end - True - Shadow Color - - - 1 - 3 - - - - - True - True - end - start - 0 - adjustment1 - True - True - - - 1 - 2 - - - - - True - True - end - start - 0 - adjustment6 - True - True - - - 1 - 1 - - - - - True - True - end - start - 0 - adjustment7 - True - True - - - 1 - 0 - - - - - True - False - start - center - Shadow Color - - - 0 - 3 - - - - - True - False - start - center - Radius - - - 0 - 2 - - - - - True - False - start - center - Horizontal Offset - - - 0 - 1 - - - - - True - False - start - center - Vertical Offset - - - 0 - 0 - - - - - - - 0 - 1 - 2 - - + start + center + Enable icon shadowing + + + 0 + 0 + + + + + True + True + end + + 1 + 0 + + + + - - - False @@ -1271,68 +955,6 @@ narzb False - - - True - False - 5 - 5 - 5 - 5 - vertical - - - True - True - 5 - 5 - vertical_scroller - 300 - - - True - False - 8 - 8 - vertical_scroller - none - - - 300 - True - False - True - none - False - - - - - - - True - True - 0 - - - - - 3 - - - - - True - False - True - App Tweaks - - - 3 - True - False - - True @@ -1357,7 +979,7 @@ narzb - 4 + 3 @@ -1368,7 +990,7 @@ narzb About - 4 + 3 True False @@ -1413,6 +1035,26 @@ narzb + + 10 + 1 + 10 + + + 10 + 1 + 10 + + + 10 + 1 + 10 + + + 100 + 1 + 10 + True False diff --git a/dynamic-panel-transparency@rockon999.github.io/schemas/gschemas.compiled b/dynamic-panel-transparency@rockon999.github.io/schemas/gschemas.compiled index 29b4bde45af2c4f9e3a7913307abf3b3a120793c..f97270b93d8e743afdd03be3d4d3dfa6c490cef1 100644 GIT binary patch literal 2608 zcmbVOUu+ab9G;4&mC{n$sud7VW6W)2?=XrXic*b{LLlOU#E>*$Zg05TaJReJ-Rt$x zGf@+xMl41XFp+4Y4?OT7CXzl#>;o|vL@SY`FI0IjR=~g$#PERMH@lm=t5+Y~? zZ)WGuZ)Se8n|DgzmQE<*XBZs+$t+1s@GZc$Eh9(CEMG51#ZhqiRw3Ru=8w@&-66!Y z@JGSZK*sc>~3w1|UY|HedqsnIJ zODFK8uNVVA&$*hfk~k24W0?hk(0)RlsWC zULYOge(@DG6x1LsHb57VcnKLtJk95ar8L7#d# z{2A~$;JLE(7=7vi`19bufF*B?ou^Md1iu@TUkxPjre?g!p8%U=-z4i(uVTO86F}FS zAI|80p?lz;0-ph<8?W_n-KbOWXTbxg_~Z0LbF5Fj68<{ydZ4lK$zpPF$S20sX#-Lmmp`qX{!H-Mi4{5&8!bgw(O`n=^o(2C2q@Jkmp-+7`e9;XL z`1FH=Q}n4huVHW+7#uo$g+4Xg-vAx~_FYV0qEF3zxC8tWaN*r+1^U#iUjn}hWGDU8 z^r^XC2f&AbYjdf7`qWF|9|3;@Y+dVYrBBUvX29ow$FDzshCcNm{CV(IU`$PND`?I6 z@&Gb7l``cWmdg{3>6FVhHaszpd`_g>A8XKS-%wh=p06w$=J4S7(D;X z3CxLDBApwU%I*W0FL3jW|U+(`{{!V-*>@ZHxYA zs90b8){IwlV|IQeBkg1od1>t}`fk-JBpV6yZ#joy-Q!`=`;y~n#DB>U17<(r&b^ z*c~3!|6d;@Sxor_B&6mENb&(&f)v^V`nv#2?bz>YlL@n8uXkPd652dst AaR2}S literal 2552 zcmbVOPiz!b9DYSsk^W(!MQc&42hDDDc4Gt+l}I)IDMVwv5JJ+VZ)YC66Lx3Dnb|Ij zsX>jV8fztz=s{x>G4a3wj3vDodoZR6K`VhHRSw1m4)g>X4)}dlwgV3W&yG#J&-k2ww-^^=;0o}|{3A>BsR!Usf~SCFEvUH`pMbkE82>w?m)M@V z5A6rRJAfCe<_`MQTi_3aUj?o&WwP|CH^Sc!t^${aN{`Z~?q^)^6wurE|@Vk$$(5L1)d=5SVjH>CK z^r<GRFM=-uzn}g30)1-6T>-DZONbAq{>;#)=KA!5p8|}10~7SA z>5qWl04^VY;vf3djC&M(3^>1M*N^n6d*IK2zX7fuI5S0`nsMjB7l5yheKtp*dK3I* z@CvZ^F=sD*YR27w>yx#QwAFRbI^P2D=>k~aJQuM2Vi0%$U|sXfuua!7f{L`< zhT*w^9pXrWt?6u*Enu>K((`nC-?mhs!^t3D@MKuwKSC67s2261TGWSXv2~~xZ-1y3 zg$Po!);(by4cp-waI@Otr6v$~N?B;X%niW)`l^QJ@wpv@&8qE`b$6Us>bt1xzzE&C z$)W3cn{^*&d}!1Iel5zVMt?Z8W(#q#k%a)GbYMWMnw7!dOwzb3LWUEkCD+u#xbf@$IgUinUgvt9>% zL~?)gcMb1v@^OIo0Uc`I2Q%RBf!U>zQTo)p&lbTK0p7>-sd>&WgZaCNXDQ?Gth;TB d#Oo4oM=JfphLVTkrD)5S)!j(W5p=I({0oZB8aMy| diff --git a/dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml b/dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml index 5d9efd4..4f25438 100644 --- a/dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml +++ b/dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml @@ -15,6 +15,11 @@ Unmaximized Opacity The opacity of the panel when there are no maximized windows [0-255]. + + true + Use Wallpaper + Use Wallpaper... + true Hide Corners diff --git a/dynamic-panel-transparency@rockon999.github.io/settings.js b/dynamic-panel-transparency@rockon999.github.io/settings.js index 58d9aca..4f95c2f 100644 --- a/dynamic-panel-transparency@rockon999.github.io/settings.js +++ b/dynamic-panel-transparency@rockon999.github.io/settings.js @@ -1,203 +1,98 @@ -/* exported init, cleanup, add, add_app_setting, add_app_override, check_overrides, check_triggers, bind, unbind */ - -const Lang = imports.lang; +/** @type {Module} */ +const module = {}; const Me = imports.misc.extensionUtils.getCurrentExtension(); const Params = imports.misc.params; const Convenience = Me.imports.convenience; -const Intellifade = Me.imports.intellifade; +const Util = Me.imports.util; -const GLib = imports.gi.GLib; -const Gio = imports.gi.Gio; +const { GLib, Gio } = imports.gi; /* This might impair visibility of the code, but it makes my life a thousand times simpler */ /* settings.js takes a key and watches for it to change in Gio.Settings & creates a getter for it. */ /* Also can parse, handle, etc. a setting. */ -const WINDOW_OVERRIDES_SCHEMA_PATH = '/org/gnome/shell/extensions/dynamic-panel-transparency/windowOverrides/'; -const APP_OVERRIDES_SCHEMA_PATH = '/org/gnome/shell/extensions/dynamic-panel-transparency/appOverrides/'; -const OVERRIDES_SCHEMA_ID = 'org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides'; - -const SETTINGS_WINDOW_OVERRIDES = 'window-overrides'; -const SETTINGS_APP_OVERRIDES = 'app-overrides'; - const GNOME_BACKGROUND_SCHEMA = 'org.gnome.desktop.wm.keybindings'; const SETTINGS_SHOW_DESKTOP = 'show-desktop'; const GNOME_INTERFACE_SCHEMA = 'org.gnome.desktop.interface'; const SETTINGS_ENABLE_ANIMATIONS = 'enable-animations'; -function init() { - this._settings = Convenience.getSettings(); - this._background_settings = null; - this._interface_settings = null; - - /* Setup background settings. */ +/** + * @typedef SettingsKey + * @property {string} key + * @property {string} name + * @property {string} type + * @property {string} [getter] + * @property {(t: any) => void} [handler] + * @property {(t: any) => any} [parser] + * @property {BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor | null} [returnType] + */ - try { - let schemaObj = Convenience.getSchemaObj(GNOME_BACKGROUND_SCHEMA, true); - - if (schemaObj) { - this._background_settings = new Gio.Settings({ - settings_schema: schemaObj - }); - } - } catch (error) { } // eslint-disable-line - - try { - let schemaObj = Convenience.getSchemaObj(GNOME_INTERFACE_SCHEMA, true); - - if (schemaObj) { - this._interface_settings = new Gio.Settings({ - settings_schema: schemaObj - }); - } - } catch (error) { } // eslint-disable-line - - this._keys = []; - this._app_keys = {}; - this._overriden_keys = []; - - this.settingsBoundIds = []; - - this._app_overrides = this._settings.get_strv(SETTINGS_APP_OVERRIDES); - this._window_overrides = this._settings.get_strv(SETTINGS_WINDOW_OVERRIDES); - this._show_desktop = null; - - if (this._background_settings) { - this._show_desktop = this._background_settings.get_strv(SETTINGS_SHOW_DESKTOP).length > 0; - - this.settingsBoundIds.push(this._background_settings.connect('changed::' + SETTINGS_SHOW_DESKTOP, (function() { - this._show_desktop = this._background_settings.get_strv(SETTINGS_SHOW_DESKTOP).length > 0; - }).bind(this))); +/* Basic class to hold settings values */ +class SettingsManager { + constructor(settings, params) { + /** @type {SettingsKey[]} */ + this.definitions = []; + /** @type {{ [key: string]: any }} */ + this.values = {}; + this.settings = settings; } - if (this._interface_settings) { - this._enable_animations = this._interface_settings.get_boolean(SETTINGS_ENABLE_ANIMATIONS); - - this.settingsBoundIds.push(this._interface_settings.connect('changed::' + SETTINGS_ENABLE_ANIMATIONS, (function() { - this._enable_animations = this._interface_settings.get_boolean(SETTINGS_ENABLE_ANIMATIONS); - }).bind(this))); + /** + * @param {SettingsKey} setting + */ + add(setting) { + this.definitions.push(setting); + if (this.settings.list_keys().indexOf(setting.key) === -1 || !setting) + return; + let variant = GLib.VariantType.new(setting.type); + if (variant.is_array() || variant.is_tuple()) { + this.values[setting.name] = this.settings.get_value(setting.key).deep_unpack(); + } else { + this.values[setting.name] = this.settings.get_value(setting.key).unpack(); + } } - this.settingsBoundIds.push(this._settings.connect('changed::' + SETTINGS_APP_OVERRIDES, (function() { - this._app_overrides = this._settings.get_strv(SETTINGS_APP_OVERRIDES); - this.app_settings_manager.unbind(); - this.app_settings_manager = new AppSettingsManager(this._app_keys, this.get_app_overrides(), APP_OVERRIDES_SCHEMA_PATH); - }).bind(this))); - - this.settingsBoundIds.push(this._settings.connect('changed::' + SETTINGS_WINDOW_OVERRIDES, (function() { - this._window_overrides = this._settings.get_strv(SETTINGS_WINDOW_OVERRIDES); - this.window_settings_manager.unbind(); - this.window_settings_manager = new AppSettingsManager(this._app_keys, this.get_window_overrides(), WINDOW_OVERRIDES_SCHEMA_PATH); - }).bind(this))); - - this.get_app_overrides = function() { - return this._app_overrides; - }; - - this.get_window_overrides = function() { - return this._window_overrides; - }; - - this.gs_show_desktop = function() { - return this._show_desktop; - }; + /** + * @param {SettingsKey} setting + */ + update(setting) { + if (this.settings.list_keys().indexOf(setting.key) === -1) + return; - this.gs_enable_animations = function() { - return this._enable_animations; - }; -} + let variant = GLib.VariantType.new(setting.type); -function cleanup() { - for (let i = 0; i < this._keys.length; ++i) { - let setting = this._keys[i]; - if (!setting.getter) { - this['get_' + setting.name] = null; + if (variant.is_array() || variant.is_tuple()) { + this.values[setting.name] = this.settings.get_value(setting.key).deep_unpack(); } else { - this[setting.getter] = null; + this.values[setting.name] = this.settings.get_value(setting.key).unpack(); } } - - this._keys = null; - this._app_keys = null; - this._overriden_keys = null; - this._app_overrides = null; - this.settingsBoundIds = null; - this._settings = null; -} - -/* Settings Management */ -function add(params) { - let key = { - key: params.key, - name: params.name, - type: params.type, - parser: null, - getter: null, - handler: null - }; - - if (typeof(params.getter) !== 'undefined') - key.getter = params.getter; - if (typeof(params.handler)!== 'undefined') - key.handler = params.handler; - if (typeof(params.parser) !== 'undefined') - key.parser = params.parser; - - this._keys.push(key); -} - -function add_app_setting(params) { - let key = { - key: params.key, - name: params.name, - type: params.type, - parser: null, - getter: null, - handler: null, - }; - - if (typeof(params.getter) !== 'undefined') - key.getter = params.getter; - if (typeof(params.handler)!== 'undefined') - key.handler = params.handler; - if (typeof(params.parser)!== 'undefined') - key.parser = params.parser; - - this._app_keys[params.key] = key; -} - -function add_app_override(params) { - add_app_setting(params); - this._overriden_keys.push(params.key); -} - -function check_overrides() { - return (this.get_app_overrides().length > 0) || (this.get_window_overrides().length > 0); -} - -function check_triggers() { - return (this.get_trigger_apps().length > 0) || (this.get_trigger_windows().length > 0); -} - -function bind() { - this.settings_manager = new SettingsManager(this._settings, this._keys); - this.app_settings_manager = new AppSettingsManager(this._app_keys, this.get_app_overrides(), APP_OVERRIDES_SCHEMA_PATH); - this.window_settings_manager = new AppSettingsManager(this._app_keys, this.get_window_overrides(), WINDOW_OVERRIDES_SCHEMA_PATH); - - for (let i = 0; i < this._keys.length; ++i) { - let setting = this._keys[i]; +}; + +class Settings { + /** + * + * @type {(key: T) => ( + () => + T["returnType"] extends BooleanConstructor ? boolean : + T["returnType"] extends StringConstructor ? string : + T["returnType"] extends NumberConstructor ? number : + T["returnType"] extends ArrayConstructor ? any[] : any + )} + */ + fromKey(setting) { + this.settings_manager.add(setting); /* Watch for changes */ - this.settingsBoundIds.push(this._settings.connect('changed::' + setting.key, (function() { + this.settingsBoundIds.push(this._settings.connect('changed::' + setting.key, () => { this.settings_manager.update(setting); - }).bind(this))); + })); if (setting.handler) { this.settingsBoundIds.push(this._settings.connect('changed::' + setting.key, function() { - // TODO: Find a better way to handle settings being changed right as the extension starts up. try { setting.handler.call(this); } catch (error) { @@ -207,204 +102,266 @@ function bind() { })); } - let parser = (setting.parser !== null ? setting.parser : function(input) { + const parser = setting.parser || ((input) => { return input; }); - let getter = function(params) { - params = Params.parse(params, { app_settings: true, app_info: false, default: false }); - - if (params.app_info) { - if (params.default) { - return { value: parser(this._settings.get_default_value(setting.key).unpack()), app_info: null }; - } - return { value: parser(this.settings_manager[setting.name]), app_info: null }; - } + const getter = (params) => { + params = Params.parse(params, { default: false }); if (params.default) { return parser(this._settings.get_default_value(setting.key).unpack()); } - return parser(this.settings_manager[setting.name]); + return parser(this.settings_manager.values[setting.name]); }; - /* Add function */ - - if (this._overriden_keys.indexOf(setting.key) !== -1) { - getter = function(params) { - params = Params.parse(params, { app_settings: true, app_info: false, default: false }); - - if (params.app_info && params.default) { - return { value: parser(this._settings.get_default_value(setting.key).unpack()), app_info: null }; - } - - if (params.default) { - return this._settings.get_default_value(setting.key).unpack(); - } + return getter; + } - let maximized_window = Intellifade.get_current_maximized_window(); - - if (maximized_window && this.check_overrides() && params.app_settings) { - if (this.window_settings_manager[setting.name]) { - let value = this.window_settings_manager[setting.name][maximized_window.get_wm_class()]; - if (value) { - let window_setting = this._app_keys[setting.key]; - let window_parser = (window_setting && window_setting.parser !== null) ? window_setting.parser : function(input) { - return input; - }; - if (value) { - let result = window_parser(value, parser(this.settings_manager[setting.name]), maximized_window.get_wm_class(), true); - if (params.app_info) { - return { value: result, app_info: maximized_window.get_wm_class() }; - } - return result; - } - } - } - if (Intellifade._wm_tracker && this.app_settings_manager[setting.name]) { - let shell_app = Intellifade._wm_tracker.get_window_app(maximized_window); - if (shell_app && shell_app.get_id()) { - let app_id = shell_app.get_id(); - let app_setting = this._app_keys[setting.key]; - let app_parser = ((app_setting && app_setting.parser !== null) ? app_setting.parser : function(input) { - return input; - }); - let value = this.app_settings_manager[setting.name][app_id]; - - if (value) { - let result = app_parser(value, parser(this.settings_manager[setting.name]), app_id); - if (params.app_info) { - return { value: result, app_info: app_id }; - } - return result; - } - } - } - } - if (params.app_info) { - return { value: parser(this.settings_manager[setting.name]), app_info: null }; - } - return parser(this.settings_manager[setting.name]); - }; + cleanup() { + for (let i = 0; i < this.settingsBoundIds.length; ++i) { + this._settings.disconnect(this.settingsBoundIds[i]); } - if (!setting.getter) { - this['get_' + setting.name] = getter; - } else { - this[setting.getter] = getter; - } + this._keys = null; + this.settingsBoundIds = null; + this._settings = null; } -} -function unbind() { - this.app_settings_manager.unbind(); + constructor() { + this._settings = Convenience.getSettings(); + this._background_settings = null; + this._interface_settings = null; - for (let i = 0; i < this.settingsBoundIds.length; ++i) { - this._settings.disconnect(this.settingsBoundIds[i]); - } -} + /* Setup background settings. */ -/* Basic class to hold settings values */ -const SettingsManager = new Lang.Class({ - Name: 'DynamicPanelTransparency_SettingsManager', - _init: function(settings, params) { + try { + let schemaObj = Convenience.getSchemaObj(GNOME_BACKGROUND_SCHEMA, true); - this.values = []; - this.settings = settings; + if (schemaObj) { + this._background_settings = new Gio.Settings({ + settings_schema: schemaObj + }); + } + } catch (error) { } // eslint-disable-line - for (let i = 0; i < params.length; ++i) { - let setting = params[i]; - this.values.push(setting); - if (this.settings.list_keys().indexOf(setting.key) === -1 || !setting) - continue; - let variant = GLib.VariantType.new(setting.type); - if (variant.is_array() || variant.is_tuple()) { - this[setting.name] = this.settings.get_value(setting.key).deep_unpack(); - } else { - this[setting.name] = this.settings.get_value(setting.key).unpack(); + try { + let schemaObj = Convenience.getSchemaObj(GNOME_INTERFACE_SCHEMA, true); + + if (schemaObj) { + this._interface_settings = new Gio.Settings({ + settings_schema: schemaObj + }); } + } catch (error) { } // eslint-disable-line + + this._keys = []; + + this.settingsBoundIds = []; + + this._show_desktop = null; + + if (this._background_settings) { + this._show_desktop = this._background_settings.get_strv(SETTINGS_SHOW_DESKTOP).length > 0; + + this.settingsBoundIds.push(this._background_settings.connect('changed::' + SETTINGS_SHOW_DESKTOP, (function() { + this._show_desktop = this._background_settings.get_strv(SETTINGS_SHOW_DESKTOP).length > 0; + }).bind(this))); } - }, - update: function(setting) { - if (this.settings.list_keys().indexOf(setting.key) === -1) - return; - let variant = GLib.VariantType.new(setting.type); + if (this._interface_settings) { + this._enable_animations = this._interface_settings.get_boolean(SETTINGS_ENABLE_ANIMATIONS); - if (variant.is_array() || variant.is_tuple()) { - this[setting.name] = this.settings.get_value(setting.key).deep_unpack(); - } else { - this[setting.name] = this.settings.get_value(setting.key).unpack(); + this.settingsBoundIds.push(this._interface_settings.connect('changed::' + SETTINGS_ENABLE_ANIMATIONS, (function() { + this._enable_animations = this._interface_settings.get_boolean(SETTINGS_ENABLE_ANIMATIONS); + }).bind(this))); } - } -}); -const AppSettingsManager = new Lang.Class({ - Name: 'DynamicPanelTransparency_AppSettingsManager', - _init: function(params, apps, path) { - this.values = []; - this.settings = {}; - this.settingsBoundIds = {}; + const fromKey = this.fromKey.bind(this); - for (let setting_key of Object.keys(params)) { - let setting = params[setting_key]; - this[setting.name] = {}; + this.settings_manager = new SettingsManager(this._settings); - this.values.push(setting); - } + this._useWallpaper = fromKey({ + key: 'use-wallpaper', + name: '', + type: 'b', + returnType: Boolean + }); + + /* Register settings... */ + this._transitionSpeed = fromKey({ + key: 'transition-speed', + name: 'transition_speed', + type: 'i', + returnType: Number + }); + this._unmaximizedOpacity = fromKey({ + key: 'unmaximized-opacity', + name: 'unmaximized_opacity', + type: 'i', + getter: 'get_unmaximized_opacity', + returnType: Number + }); + this._maximizedOpacity = fromKey({ + key: 'maximized-opacity', + name: 'maximized_opacity', + type: 'i', + getter: 'get_maximized_opacity', + returnType: Number + }); + this._panelColor = fromKey({ + key: 'panel-color', + name: 'panel_color', + type: 'ai', + parser: Util.tuple_to_native_color, + returnType: Array, + }); + this._themeOpacity = fromKey({ + key: 'theme-opacity', + name: 'theme_opacity', + type: 'i', + returnType: Number + }); + this._forceThemeUpdate = fromKey({ + key: 'force-theme-update', + name: 'force_theme_update', + type: 'b', + getter: 'force_theme_update', + returnType: Boolean + }); + this._textShadow = fromKey({ + key: 'text-shadow', + name: 'text_shadow', + type: 'b', + getter: 'add_text_shadow', + returnType: Boolean + }); + this._iconShadow = fromKey({ + key: 'icon-shadow', + name: 'icon_shadow', + type: 'b', + getter: 'add_icon_shadow', + returnType: Boolean + }); + this._enableMaximizedTextColor = fromKey({ + key: 'enable-maximized-text-color', + name: 'enable_maximized_text_color', + type: 'b', + returnType: Boolean + }); + this._removePanelStyling = fromKey({ + key: 'remove-panel-styling', + name: 'remove_panel_styling', + getter: 'remove_panel_styling', + type: 'b', + returnType: Boolean + }); + this._enable_overview_text_color = fromKey({ + key: 'enable-overview-text-color', + name: 'enable_overview_text_color', + type: 'b', + returnType: Boolean + }); + this._enable_text_color = fromKey({ + key: 'enable-text-color', + name: 'enable_text_color', + type: 'b', + returnType: Boolean + }); + this._enable_opacity = fromKey({ + key: 'enable-opacity', + name: 'enable_custom_opacity', + getter: 'enable_custom_opacity', + type: 'b', + returnType: Boolean + }); + this._enable_background_color = fromKey({ + key: 'enable-background-color', + name: 'enable_custom_background_color', + getter: 'enable_custom_background_color', + type: 'b', + returnType: Boolean + }); + this._transition_with_overview = fromKey({ + key: 'transition-with-overview', + name: 'transition_with_overview', + getter: 'transition_with_overview', + type: 'b', + returnType: Boolean + }); + this._transition_windows_touch = fromKey({ + key: 'transition-windows-touch', + name: 'transition_windows_touch', + getter: 'transition_when_windows_touch_panel', + type: 'b', + returnType: Boolean + }); + } - for (let a = 0; a < apps.length; ++a) { - let app_id = apps[a]; - let app_path = path + app_id + '/'; - let sett = null; + gs_show_desktop() { + return this._show_desktop; + }; - let obj = Convenience.getSchemaObj(OVERRIDES_SCHEMA_ID); - sett = new Gio.Settings({ path: app_path, settings_schema: obj }); + gs_enable_animations() { + return this._enable_animations; + }; - this.settings[app_id] = sett; + transitionWithOverview() { + return this._transition_with_overview; + } - for (let setting_key of Object.keys(params)) { - let setting = params[setting_key]; + panelColor() { + return this._panelColor(); + } - if (!setting || this.settings[app_id].list_keys().indexOf(setting.key) === -1) { - continue; - } + enableCustomBackgroundColor() { + return this._enable_background_color(); + } - if (!this.settingsBoundIds[app_id]) { - this.settingsBoundIds[app_id] = []; - } + useWallpaper() { + return this._useWallpaper(); + } - this.settingsBoundIds[app_id].push(this.settings[app_id].connect('changed::' + setting.key, (function() { - this.update(setting, app_id); - }).bind(this))); + enableMaximizedTextColor() { + return this._enableMaximizedTextColor(); + } + enableOverviewTextColor() { + return this._enable_overview_text_color(); + } + addTextShadow() { + return this._textShadow(); + } + addIconShadow() { + return this._iconShadow(); + } + enableTextColor() { + return this._enable_text_color(); + } +} - let variant = GLib.VariantType.new(setting.type); +/** @type {Settings} */ +let settings; - if (variant.is_array() || variant.is_tuple()) { - this[setting.name][app_id] = this.settings[app_id].get_value(setting.key).deep_unpack(); - } else { - this[setting.name][app_id] = this.settings[app_id].get_value(setting.key).unpack(); - } - } - } - }, - update: function(setting, app_id) { - if (!setting || this.settings[app_id].list_keys().indexOf(setting.key) === -1) - return; - let variant = GLib.VariantType.new(setting.type); - if (!this[setting.name]) - this[setting.name] = {}; - if (variant.is_array() || variant.is_tuple()) { - this[setting.name][app_id] = this.settings[app_id].get_value(setting.key).deep_unpack(); - } else { - this[setting.name][app_id] = this.settings[app_id].get_value(setting.key).unpack(); - } - }, - unbind: function() { - for (let app_id of Object.keys(this.settings)) { - for (let id of this.settingsBoundIds[app_id]) { - this.settings[app_id].disconnect(id); - } - } +function init() { + if (settings) { + settings.cleanup(); + settings = null; } -}); \ No newline at end of file + + settings = new Settings(); +} + +function cleanup() { + settings.cleanup(); + settings = null; +} + +/** + * @return {Settings} + */ +function get() { + return settings; +} + +module.exports = { init, cleanup, get }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/stylesheet.css b/dynamic-panel-transparency@rockon999.github.io/stylesheet.css index 3551ec0..eb926d5 100644 --- a/dynamic-panel-transparency@rockon999.github.io/stylesheet.css +++ b/dynamic-panel-transparency@rockon999.github.io/stylesheet.css @@ -14,5 +14,4 @@ .panel-background-image-transparency { border-image: none; background-image: none; -} - +} \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/theme.css b/dynamic-panel-transparency@rockon999.github.io/theme.css new file mode 100644 index 0000000..692e2a3 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/theme.css @@ -0,0 +1,88 @@ +.dpt-panel { + background-color: transparent; } + .dpt-panel-transition-duration { + transition-duration: 1575ms; } + .dpt-panel.panel-text-color .panel-button { + color: white; + text-shadow: 0px 3px 5px black; + transition-property: color, text-shadow; + transition-delay: 1575ms; } + .dpt-panel.panel-icon-color .system-status-icon { + color: white; + icon-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + transition-property: color, text-shadow; + transition-delay: 1575ms; } + .dpt-panel.panel-arrow-color .popup-menu-arrow { + color: white; + icon-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + transition-property: color, text-shadow; + transition-delay: 1575ms; } + .dpt-panel-light.panel-text-color .panel-button { + color: black; + text-shadow: none; + transition-property: color, text-shadow; + transition-delay: 1575ms; } + .dpt-panel-light.panel-icon-color .system-status-icon { + color: black; + icon-shadow: none; + transition-property: color, text-shadow; + transition-delay: 1575ms; } + .dpt-panel-light.panel-arrow-color .popup-menu-arrow { + color: black; + icon-shadow: none; + transition-property: color, text-shadow; + transition-delay: 1575ms; } + +.dpt-panel-maximized { + background-color: black; } + .dpt-panel-maximized .panel-corner { + -panel-corner-background-color: black; } + +.dpt-panel-unmaximized-dark { + background-color: rgba(0, 0, 0, 0.25); } + .dpt-panel-unmaximized-dark .panel-corner { + -panel-corner-background-color: rgba(0, 0, 0, 0.25); } + .dpt-panel-unmaximized-dark-0 { + background-color: rgba(0, 0, 0, 0); } + .dpt-panel-unmaximized-dark-0 .panel-corner { + -panel-corner-background-color: rgba(0, 0, 0, 0); } + .dpt-panel-unmaximized-dark-1 { + background-color: rgba(0, 0, 0, 0.15); } + .dpt-panel-unmaximized-dark-1 .panel-corner { + -panel-corner-background-color: rgba(0, 0, 0, 0.15); } + .dpt-panel-unmaximized-dark-2 { + background-color: rgba(0, 0, 0, 0.25); } + .dpt-panel-unmaximized-dark-2 .panel-corner { + -panel-corner-background-color: rgba(0, 0, 0, 0.25); } + .dpt-panel-unmaximized-dark-3 { + background-color: rgba(0, 0, 0, 0.4); } + .dpt-panel-unmaximized-dark-3 .panel-corner { + -panel-corner-background-color: rgba(0, 0, 0, 0.4); } + .dpt-panel-unmaximized-dark-4 { + background-color: rgba(0, 0, 0, 0.6); } + .dpt-panel-unmaximized-dark-4 .panel-corner { + -panel-corner-background-color: rgba(0, 0, 0, 0.6); } +.dpt-panel-unmaximized-light { + background-color: rgba(255, 255, 255, 0.25); } + .dpt-panel-unmaximized-light .panel-corner { + -panel-corner-background-color: rgba(255, 255, 255, 0.25); } + .dpt-panel-unmaximized-light-0 { + background-color: rgba(255, 255, 255, 0); } + .dpt-panel-unmaximized-light-0 .panel-corner { + -panel-corner-background-color: rgba(255, 255, 255, 0); } + .dpt-panel-unmaximized-light-1 { + background-color: rgba(255, 255, 255, 0.15); } + .dpt-panel-unmaximized-light-1 .panel-corner { + -panel-corner-background-color: rgba(255, 255, 255, 0.15); } + .dpt-panel-unmaximized-light-2 { + background-color: rgba(255, 255, 255, 0.25); } + .dpt-panel-unmaximized-light-2 .panel-corner { + -panel-corner-background-color: rgba(255, 255, 255, 0.25); } + .dpt-panel-unmaximized-light-3 { + background-color: rgba(255, 255, 255, 0.4); } + .dpt-panel-unmaximized-light-3 .panel-corner { + -panel-corner-background-color: rgba(255, 255, 255, 0.4); } + .dpt-panel-unmaximized-light-4 { + background-color: rgba(255, 255, 255, 0.6); } + .dpt-panel-unmaximized-light-4 .panel-corner { + -panel-corner-background-color: rgba(255, 255, 255, 0.6); } diff --git a/dynamic-panel-transparency@rockon999.github.io/theme.scss b/dynamic-panel-transparency@rockon999.github.io/theme.scss new file mode 100644 index 0000000..d826cd2 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/theme.scss @@ -0,0 +1,183 @@ +.dpt-panel { + &-transition-duration { + transition-duration: 1575ms; + } + + background-color: transparent; + + &.panel-text-color .panel-button { + color: rgb(255, 255, 255); + text-shadow: 0px 3px 5px rgba(0, 0, 0, 1); + transition-property: color, text-shadow; + transition-delay: 1575ms; + } + + &.panel-icon-color .system-status-icon { + color: rgb(255, 255, 255); + icon-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + transition-property: color, text-shadow; + transition-delay: 1575ms; + } + + &.panel-arrow-color .popup-menu-arrow { + color: rgb(255, 255, 255); + icon-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + transition-property: color, text-shadow; + transition-delay: 1575ms; + } + + &-light { + &.panel-text-color .panel-button { + color: rgb(0, 0, 0); + text-shadow: none; + transition-property: color, text-shadow; + transition-delay: 1575ms; + } + + &.panel-icon-color .system-status-icon { + color: rgb(0, 0, 0); + icon-shadow: none; + transition-property: color, text-shadow; + transition-delay: 1575ms; + } + + &.panel-arrow-color .popup-menu-arrow { + color: rgb(0, 0, 0); + icon-shadow: none; + transition-property: color, text-shadow; + transition-delay: 1575ms; + } + } +} + +.dpt-panel-maximized { + $background-color: rgba(0, 0, 0, 1); + + background-color: $background-color; + + .panel-corner { + -panel-corner-background-color: $background-color; + } +} + +.dpt-panel-unmaximized { + &-dark { + $background-color: rgba(0, 0, 0, 0.25); + + background-color: $background-color; + + .panel-corner { + -panel-corner-background-color: $background-color; + } + + &-0 { + $background-color-0: rgba(0, 0, 0, 0); + + background-color: $background-color-0; + + .panel-corner { + -panel-corner-background-color: $background-color-0; + } + } + + &-1 { + $background-color-1: rgba(0, 0, 0, 0.15); + + background-color: $background-color-1; + + .panel-corner { + -panel-corner-background-color: $background-color-1; + } + } + + &-2 { + $background-color-2: rgba(0, 0, 0, 0.25); + + background-color: $background-color-2; + + .panel-corner { + -panel-corner-background-color: $background-color-2; + } + } + + &-3 { + $background-color-3: rgba(0, 0, 0, 0.4); + + background-color: $background-color-3; + + .panel-corner { + -panel-corner-background-color: $background-color-3; + } + } + + &-4 { + $background-color-4: rgba(0, 0, 0, 0.6); + + background-color: $background-color-4; + + .panel-corner { + -panel-corner-background-color: $background-color-4; + } + } + } + + &-light { + $background-color: rgba(255, 255, 255, 0.25); + + background-color: $background-color; + + .panel-corner { + -panel-corner-background-color: $background-color; + } + + &-0 { + $background-color-0: rgba(255, 255, 255, 0); + + background-color: $background-color-0; + + .panel-corner { + -panel-corner-background-color: $background-color-0; + } + } + + &-1 { + $background-color-1: rgba(255, 255, 255, 0.15); + + background-color: $background-color-1; + + .panel-corner { + -panel-corner-background-color: $background-color-1; + } + } + + &-2 { + $background-color-2: rgba(255, 255, 255, 0.25); + + background-color: $background-color-2; + + .panel-corner { + -panel-corner-background-color: $background-color-2; + } + } + + &-3 { + $background-color-3: rgba(255, 255, 255, 0.4); + + background-color: $background-color-3; + + .panel-corner { + -panel-corner-background-color: $background-color-3; + } + } + + &-4 { + $background-color-4: rgba(255, 255, 255, 0.6); + + background-color: $background-color-4; + + .panel-corner { + -panel-corner-background-color: $background-color-4; + } + } + } +} diff --git a/dynamic-panel-transparency@rockon999.github.io/theming.js b/dynamic-panel-transparency@rockon999.github.io/theming.js index 3523adc..0a7d6a3 100644 --- a/dynamic-panel-transparency@rockon999.github.io/theming.js +++ b/dynamic-panel-transparency@rockon999.github.io/theming.js @@ -1,30 +1,15 @@ -/* exported init, cleanup, remove_maximized_background_color, remove_unmaximized_background_color, set_maximized_background_color, set_unmaximized_background_color, remove_background_color, set_theme_background_color, set_theme_opacity, get_theme_opacity, get_theme_background_color, register_text_shadow, add_text_shadow, register_icon_shadow, add_icon_shadow, has_text_shadow, has_icon_shadow, remove_text_shadow, remove_icon_shadow, register_text_color, set_text_color, remove_text_color, set_panel_color, set_corner_color, clear_corner_color, get_background_image_color, get_background_color, get_maximized_opacity, get_unmaximized_opacity, strip_panel_styling, reapply_panel_styling, strip_panel_background_image, reapply_panel_background_image, strip_panel_background, reapply_panel_background, set_background_alpha */ +/** @type {Module} */ +const module = {}; const St = imports.gi.St; -const Main = imports.ui.main; - const Me = imports.misc.extensionUtils.getCurrentExtension(); -const Params = imports.misc.params; -const Compat = Me.imports.compat; const Settings = Me.imports.settings; const Util = Me.imports.util; +const ColorUtil = Me.imports.color_util; -const GdkPixbuf = imports.gi.GdkPixbuf; -const GLib = imports.gi.GLib; - -/* Convenience constant for the shell panel. */ -const Panel = Main.panel; -const PanelActor = Compat.getActorOf(Panel); - -/* Constants for theme opacity detection. */ -const THEME_OPACITY_THRESHOLD = 50; - -/* Constants for color averaging. */ -const SATURATION_WEIGHT = 1.5; -const WEIGHT_THRESHOLD = 1.0; -const ALPHA_THRESHOLD = 24; +const { GLib } = imports.gi; /* Scale factor for color conversion. */ const SCALE_FACTOR = 255.9999999; @@ -37,727 +22,592 @@ const SCALE_FACTOR = 255.9999999; * @property {number} [alpha=1.0] - Alpha value ranging from 0-1.0 with support for two decimal places. */ -/** - * Intialize. - * - */ -function init() { - this.stylesheets = []; - this.styles = []; - - this.background_styles = []; - - update_transition_css(); -} +const BackgroundState = { + MAXIMIZED: 1, + TRANSLUCENT_DARK: 2, + TRANSLUCENT_LIGHT: 3, + DARK: 4, + LIGHT: 5 +}; + +const Translucency = { + LOW: 0, + LOW_MID: 1, + MID: 2, + MID_HIGH: 3, + HIGH: 4, + SOLID: 5 +}; + +const ACUTANCE_THRESHOLD = 8; +const STD_THRESHOLD = 45; +const LUMINANCE_THRESHOLD = 180; + +function load_panel_theme() { + let file_name = GLib.build_filenamev([GLib.get_user_data_dir(), 'gnome-shell', 'extensions', Me.uuid, 'theme.css']); -/** - * Used to release any held assets of theming. - * - */ -function cleanup() { let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); - for (let style of this.styles) { - PanelActor.remove_style_class_name(style); - } - - for (let style of this.background_styles) { - PanelActor.remove_style_class_name(style); - } - - for (let sheet of this.stylesheets) { - theme.unload_stylesheet(Util.get_file(sheet)); - Util.remove_file(sheet); + if (!theme.load_stylesheet(Util.get_file(file_name))) { + log('[Dynamic Panel Transparency] Error Loading Theme Stylesheet'); + return null; } - this.background_styles = null; - this.stylesheets = null; - this.styles = null; -} - -/** - * Sets the theme background color. - * - * @param {Color} color - Object representing an RGBA color. - */ -function set_theme_background_color(color) { - this.theme_background_color = color; + return file_name; } -/** - * Gets the theme opacity. - * - * @returns {Number} alpha - Alpha value ranging from 0-255. - */ -function get_theme_opacity() { - return this.theme_opacity; -} +var Themer = class Themer { -/** - * Gets the theme background color. - * - * @returns {Object} color - Object representing an RGBA color. - */ -function get_theme_background_color() { - return this.theme_background_color; -} + /** + * Initialize. + * @param {ImportMap["extension"]["DynamicPanel"]["prototype"]} dp + */ + constructor(dp) { + this.dp = dp; + this.panel = dp.panel; -/** - * Sets the theme opacity. - * - * @param {Number} alpha - Alpha value ranging from 0-255. - */ -function set_theme_opacity(alpha) { - this.theme_opacity = alpha; -} -/** - * Registers a shadow stylesheet for text in the panel. - * - * @param {Color} text_color - Object representing an RGBA color. - * @param {Number[]} text_position - Integer array containing horizontal offset, vertical offset, radius. (in that order) - */ -function register_text_shadow(text_color, text_position) { - let text_color_css = 'rgba(' + text_color.red + ', ' + text_color.green + ', ' + text_color.blue + ', ' + text_color.alpha.toFixed(2) + ')'; - let text_position_css = '' + text_position[0] + 'px ' + text_position[1] + 'px ' + text_position[2] + 'px'; + /** @type {any[]} */ + this.stylesheets = []; + /** @type {string[]} */ + this.styles = []; - register_style('dpt-panel-text-shadow'); + this.bk_color_info = null; - return apply_stylesheet_css('.dpt-panel-text-shadow .panel-button { text-shadow: ' + text_position_css + ' ' + text_color_css + '; }', 'foreground/panel-text-shadow'); -} + /** @type {Map.>} */ + this.styleStrings = new Map(); -/** - * Adds the currently registered shadow stylesheet to the text in the panel. - * - * @param {Color} text_color - Object representing an RGBA color. - * @param {Number[]} text_position - Integer array containing horizontal offset, vertical offset, radius. (in that order) - */ -function add_text_shadow() { - PanelActor.add_style_class_name('dpt-panel-text-shadow'); -} + /** @type {string[]} */ + this.background_styles = []; -/** - * Register a shadow stylesheet for icons in the panel. - * - * @param {Color} icon_color - Object representing an RGBA color. - * @param {Number[]} icon_position - Integer array containing horizontal offset, vertical offset, radius. (in that order) - */ -function register_icon_shadow(icon_color, icon_position) { - let icon_color_css = 'rgba(' + icon_color.red + ', ' + icon_color.green + ', ' + icon_color.blue + ', ' + icon_color.alpha.toFixed(2) + ')'; - let icon_position_css = '' + icon_position[0] + 'px ' + icon_position[1] + 'px ' + icon_position[2] + 'px'; + this.update_transition_css(); - let stylesheet = apply_stylesheet_css('.dpt-panel-icon-shadow .system-status-icon { icon-shadow: ' + icon_position_css + ' ' + icon_color_css + '; }\n.dpt-panel-arrow-shadow .popup-menu-arrow { icon-shadow: ' + icon_position_css + ' ' + icon_color_css + '; }', 'foreground/panel-icon-shadow'); + this.panel.add_style_class_name('dpt-panel'); + } - register_style('dpt-panel-icon-shadow'); - register_style('dpt-panel-arrow-shadow'); + loadBackgroundInfo() { + // TODO + let primary_index = 0; - return stylesheet; -} + ColorUtil.getBackgroundColorInfo(primary_index, (info) => { + log(`Updating background info: ${JSON.stringify(info)}`); + this.bk_color_info = info; -/** - * Adds the currently register shadow stylesheet to icons in the panel. - * - */ -function add_icon_shadow() { - PanelActor.add_style_class_name('dpt-panel-icon-shadow'); - PanelActor.add_style_class_name('dpt-panel-arrow-shadow'); -} + this.initialize_background_styles(); -/** - * Determines if the panel currently has text shadowing applied. - * - * @returns {Boolean} If the panel has text shadowing. - */ -function has_text_shadow() { - return PanelActor.has_style_class_name('dpt-panel-text-shadow'); -} + this.dp.intellifader.asyncCheck(); + }); + } -/** - * Determines if the panel currently has icon shadowing applied. - * - * @returns {Boolean} If the panel has icon shadowing. - */ -function has_icon_shadow() { - return (PanelActor.has_style_class_name('dpt-panel-icon-shadow') || PanelActor.has_style_class_name('dpt-panel-arrow-shadow')); -} + /** + * + * @param {*} has_maximized_window + * @returns {{translucency: number, background: number}} + */ + calculateState(has_maximized_window) { + let new_state = BackgroundState.TRANSLUCENT_DARK; + let translucency = Translucency.HIGH; -/** - * Removes any text shadowing; deregistering the stylesheet and removing the css. - * - */ -function remove_text_shadow() { - PanelActor.remove_style_class_name('dpt-panel-text-shadow'); -} + if (has_maximized_window) { + new_state = BackgroundState.MAXIMIZED; + translucency = Translucency.SOLID; + } else if (this.bk_color_info == null) { + new_state = BackgroundState.DARK; + translucency = Translucency.SOLID; + } else { + const luminance_std = Math.sqrt(this.bk_color_info.luminance_variance); + + const bg_is_busy = luminance_std > STD_THRESHOLD || + (this.bk_color_info.mean_luminance < LUMINANCE_THRESHOLD && + this.bk_color_info.mean_luminance + 1.645 * luminance_std > LUMINANCE_THRESHOLD) || + this.bk_color_info.mean_acutance > ACUTANCE_THRESHOLD; + + const bg_is_dark = this.bk_color_info.mean_luminance > LUMINANCE_THRESHOLD; + const bg_is_busy_dark = this.bk_color_info.mean_luminance * 1.25 > LUMINANCE_THRESHOLD; + + let translucency_difference = this.bk_color_info.mean_luminance - LUMINANCE_THRESHOLD; + + if (translucency_difference <= -40) { + translucency = Translucency.SOLID; + } else if (translucency_difference <= -30) { + translucency = Translucency.LOW; + } else if (translucency_difference <= -20) { + translucency = Translucency.LOW_MID; + } else if (translucency_difference <= -10) { + translucency = Translucency.MID; + } else if (translucency_difference <= 0) { + translucency = Translucency.MID_HIGH; + } else { + translucency = Translucency.HIGH; + } -/** - * Removes any icon shadowing; deregistering the stylesheet and removing the css. - * - */ -function remove_icon_shadow() { - PanelActor.remove_style_class_name('dpt-panel-icon-shadow'); - PanelActor.remove_style_class_name('dpt-panel-arrow-shadow'); -} + if (bg_is_busy && bg_is_busy_dark) { + new_state = BackgroundState.TRANSLUCENT_LIGHT; + } else if (bg_is_busy) { + new_state = BackgroundState.TRANSLUCENT_DARK; + } else if (bg_is_dark) { + new_state = BackgroundState.LIGHT; + } else { + new_state = BackgroundState.DARK; + } + } -/** - * Registers text & icon coloring. - * - * @param {Color} color - Object containing an RGB color value. - * @param {string} prefix - What prefix to apply to the stylesheet. '-' is the default. - */ -function register_text_color(color, prefix) { - let color_css = 'color: rgb(' + color.red + ', ' + color.green + ', ' + color.blue + ');'; + log(`new state: ${new_state} : trans: ${translucency}`); - if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + return { translucency, background: new_state }; } - let stylesheet = apply_stylesheet_css('.dpt-panel' + prefix + 'text-color .panel-button { ' + color_css + ' }\n.dpt-panel' + prefix + 'icon-color .system-status-icon { ' + color_css + ' }\n.dpt-panel' + prefix + 'arrow-color .popup-menu-arrow { ' + color_css + ' }', 'foreground/panel' + prefix + 'text-color'); + /** + * @param {Object.} styles + */ + update_style(styles) { + const { panel } = this; - register_style('dpt-panel' + prefix + 'text-color'); - register_style('dpt-panel' + prefix + 'icon-color'); - register_style('dpt-panel' + prefix + 'arrow-color'); + /** @type {string} */ + const current_style = panel.get_style(); - return stylesheet; -} + const style_map = (current_style || '') + .split(';') + .map(s => s.split(':').map(x => x.trim())) + .reduce((prev, [key, val]) => { + if (typeof key === 'string' && typeof val === 'string' && key) { + prev[key] = val; + } -/** - * Sets which registered text color stylesheet to use for the text coloring. @see register_text_color - * - * @param {string} prefix - What stylesheet prefix to retrieve. '-' is the default. - */ -function set_text_color(prefix) { - if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + return prev; + }, /** @type {Object.} */ ({})); + log(JSON.stringify(style_map)); + const updated_style_map = Object.assign(style_map, styles); + log(JSON.stringify(updated_style_map)); + const updated_style = Object.keys(updated_style_map).map(k => `${k}: ${style_map[k]}`).join(";"); + log(JSON.stringify(updated_style)); + panel.set_style(updated_style); } - PanelActor.add_style_class_name('dpt-panel' + prefix + 'text-color'); - PanelActor.add_style_class_name('dpt-panel' + prefix + 'icon-color'); - PanelActor.add_style_class_name('dpt-panel' + prefix + 'arrow-color'); -} + remove_all_unmaximized_classes() { + const { panel } = this; -/** - * Remove a registered text color stylesheet from the panel. @see set_text_color - * - * @param {string} prefix - What stylesheet prefix to retrieve. '-' is the default. - */ -function remove_text_color(prefix) { - if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + panel.remove_style_class_name('dpt-panel-unmaximized-dark'); + panel.remove_style_class_name('dpt-panel-unmaximized-light'); + + [0, 1, 2, 3, 4].forEach(x => { + panel.remove_style_class_name(`dpt-panel-unmaximized-dark-${x}`); + panel.remove_style_class_name(`dpt-panel-unmaximized-light-${x}`); + }); } - PanelActor.remove_style_class_name('dpt-panel' + prefix + 'text-color'); - PanelActor.remove_style_class_name('dpt-panel' + prefix + 'icon-color'); - PanelActor.remove_style_class_name('dpt-panel' + prefix + 'arrow-color'); -} + remove_all_maximized_classes() { + const { panel } = this; -/** - * Registers any custom style so that it can be removed when the extension is disabled. - * - * @param {string} style - The name of a CSS styling. - */ -function register_style(style) { - if (this.styles.indexOf(style) === -1) { - this.styles.push(style); + panel.remove_style_class_name('dpt-panel-maximized'); } -} -/** - * Set's the panel corners' actors to a specific background color. - * - * @param {Color} color [color={}] - Object containing an RGBA color value. - */ -// TODO: Gnome needs CSS styling for the corners. -function set_corner_color(color) { - let panel_color = { red: 0, green: 0, blue: 0 }; + set_blank() { + const { panel } = this; - if (typeof (Settings.get_panel_color) !== 'undefined' && Settings.get_panel_color !== null) { - panel_color = get_background_color(); + panel.remove_style_class_name('dpt-panel-light'); } - color = Params.parse(color, { - red: panel_color.red, - green: panel_color.green, - blue: panel_color.blue, - alpha: 0 - }); + set_maximized_auto_background_color() { + const { panel } = this; - let opacity = Util.clamp(color.alpha / SCALE_FACTOR, 0, 1).toFixed(2); + panel.remove_style_class_name('dpt-panel-light'); - /* I strongly dislike using a deprecated method (set_style) - * but this is a hold over from the older extension code and - * the only way to keep per-app coloring working with corners. */ - let coloring = '-panel-corner-background-color: rgba(' + color.red + ', ' + color.green + ', ' + color.blue + ', ' + opacity + ');' + - '' + '-panel-corner-border-color: transparent;'; + this.remove_all_unmaximized_classes(); - // TODO: Update this code. We're using @deprecated code. - Compat.getActorOf(Panel._leftCorner).set_style(coloring); - Compat.getActorOf(Panel._rightCorner).set_style(coloring); -} + panel.add_style_class_name('dpt-panel-maximized'); + } -/** - * Removes any corner styling this extension has applied. - * - */ -function clear_corner_color() { - Compat.getActorOf(Panel._leftCorner).set_style(null); - Compat.getActorOf(Panel._rightCorner).set_style(null); -} + set_unmaximized_auto_background_color() { + const { background, translucency } = this.calculateState(false); -/** - * Gets the RGBA color of the background/border image in a theme. - * - * @param {Object} theme - An st-theme-node to retrieve the color from. - * - * @returns {Object} RGBA color retrieved from the theme node. - */ -function get_background_image_color(theme) { - let file = theme.get_background_image(); + log(`state: ${background} / ${translucency}`); - if (!file) { - log('[Dynamic Panel Transparency] No background image found in user theme.'); + const { panel } = this; - let image = theme.get_border_image(); + this.remove_all_maximized_classes(); - if (!image) { - log('[Dynamic Panel Transparency] No border image found in user theme.'); - return null; - } else { - file = image.get_file(); + switch (background) { + case BackgroundState.DARK: + case BackgroundState.TRANSLUCENT_DARK: + panel.remove_style_class_name('dpt-panel-light'); + break; + case BackgroundState.LIGHT: + case BackgroundState.TRANSLUCENT_LIGHT: + panel.add_style_class_name('dpt-panel-light'); + break; } - } - - try { - let background = GdkPixbuf.Pixbuf.new_from_file(file.get_path()); - if (!background) { - log('[Dynamic Panel Transparency] Provided background is invalid.'); - return null; + switch (background) { + case BackgroundState.DARK: + panel.add_style_class_name('dpt-panel-unmaximized-dark'); + break; + case BackgroundState.LIGHT: + panel.add_style_class_name('dpt-panel-unmaximized-light'); + break; + case BackgroundState.MAXIMIZED: + panel.add_style_class_name('dpt-panel-unmaximized-dark'); + break; + case BackgroundState.TRANSLUCENT_DARK: + if (translucency == Translucency.SOLID) { + panel.add_style_class_name('dpt-panel-unmaximized-dark'); + } else { + panel.add_style_class_name(`dpt-panel-unmaximized-dark-${translucency}`); + } + break; + case BackgroundState.TRANSLUCENT_LIGHT: + if (translucency == Translucency.SOLID) { + panel.add_style_class_name('dpt-panel-unmaximized-light'); + } else { + panel.add_style_class_name(`dpt-panel-unmaximized-light-${translucency}`); + } + break; } - return average_color(background); - } catch (error) { - log('[Dynamic Panel Transparency] Could not load the background and/or border image for your theme.'); - log(error); - return null; } -} - -/** - * Returns the user's desired panel color from Settings. Handles theme detection again. - * DEPENDENCY: Settings - * - * @returns {Object} Object containing an RGBA color value. - */ -function get_background_color() { - let custom = Settings.get_panel_color({ app_info: true }); + /** + * @param {string} name + */ + add_class(name) { + const styles = this.styleStrings.get(name); - if (custom.app_info !== null && Settings.check_overrides()) { - if (Settings.window_settings_manager['enable_background_tweaks'][custom.app_info] || Settings.app_settings_manager['enable_background_tweaks'][custom.app_info]) { - return custom.value; - } else { - if (!Settings.enable_custom_background_color()) { - return this.theme_background_color; - } - - let original = Settings.get_panel_color({ app_settings: false }); - return original; + if (styles) { + this.update_style(styles); } } - if (!Settings.enable_custom_background_color()) { - return this.theme_background_color; - } else { - return custom.value; - } -} + /** + * Used to release any held assets of theming. + * + */ + cleanup() { + const { panel } = this; -/** - * Returns the user's desired maximized panel opacity from Settings or their theme. - * DEPENDENCY: Settings - * TODO: Needs better system to determine when default theme opacities are too low. - * - * @returns {Number} Alpha value from 0-255. - */ -function get_maximized_opacity() { - let maximized_opacity = Settings.get_maximized_opacity({ app_info: true }); - - /* 1) Make sure we want a custom opacity. */ - /* 2) If custom.app_info !== null that means the setting is overriden. */ - if (maximized_opacity.app_info !== null && Settings.check_overrides()) { - if (Settings.window_settings_manager['enable_background_tweaks'][maximized_opacity.app_info] || Settings.app_settings_manager['enable_background_tweaks'][maximized_opacity.app_info]) { - return maximized_opacity.value; + for (let style of this.styles) { + panel.remove_style_class_name(style); } - } - if (!Settings.enable_custom_opacity()) { - if (this.theme_opacity >= THEME_OPACITY_THRESHOLD) { - return this.theme_opacity; - } else if (this.theme_opacity === 0) { - /* Get the default value if the theme already added transparency */ - return Settings.get_maximized_opacity({ default: true }); - } else { - return THEME_OPACITY_THRESHOLD; + for (let style of this.background_styles) { + panel.remove_style_class_name(style); } - } else { - return maximized_opacity.value; - } -} - -/** - * Returns the user's desired unmaximized panel opacity from Settings or their theme. - * DEPENDENCY: Settings - * - * @returns {Number} Alpha value from 0-255. - */ -function get_unmaximized_opacity() { - if (Settings.enable_custom_opacity()) { - return Settings.get_unmaximized_opacity(); - } else { - return Settings.get_unmaximized_opacity({ default: true }); - } -} - -/** - * Applies the style class 'panel-effect-transparency' and removes the basic CSS preventing this extension's transitions. - * - */ -function strip_panel_styling() { - PanelActor.add_style_class_name('panel-effect-transparency'); -} - -/** - * Removes the style class 'panel-effect-transparency' and enables the stock CSS preventing this extension's transitions. - * - */ -function reapply_panel_styling() { - PanelActor.remove_style_class_name('panel-effect-transparency'); -} -/** - * Applies the style class 'panel-background-image-transparency' and removes the basic CSS preventing this extension's transitions. - * - */ -function strip_panel_background_image() { - PanelActor.add_style_class_name('panel-background-image-transparency'); -} + panel.remove_style_class_name('dpt-panel'); + panel.remove_style_class_name('dpt-panel-light'); -/** - * Removes the style class 'panel-background-image-transparency' and enables the stock CSS preventing this extension's transitions. - * - */ -function reapply_panel_background_image() { - PanelActor.remove_style_class_name('panel-background-image-transparency'); -} + this.remove_all_maximized_classes(); + this.remove_all_unmaximized_classes(); -/** - * Writes CSS data to a file and loads the stylesheet into the Shell. - * - * @param {string} css - CSS data. - * @param {string} name - Name of the intended CSS stylesheet. - * - * @returns {string} Filename of the stylesheet. - */ -function apply_stylesheet_css(css, name) { - let file_name = GLib.build_filenamev([GLib.get_user_data_dir(), 'gnome-shell', 'extensions', Me.uuid, 'styles', name + '.dpt.css']); + panel.set_style(""); - /* Write to the file. */ - if (!Util.write_to_file(file_name, css)) { - log('[Dynamic Panel Transparency] Could not access: ' + file_name + ''); - log('[Dynamic Panel Transparency] The extension will not function until access is granted.'); - return null; + this.background_styles = null; + this.stylesheets = null; + this.styles = null; } - let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); + /** + * Adds the currently registered shadow stylesheet to the text in the panel. + * + */ + add_text_shadow() { + const { panel } = this; - // COMPATIBILITY: st-theme used strings, not file objects in 3.14 - if (theme.load_stylesheet(Util.get_file(file_name))) { - this.stylesheets.push(file_name); - } else { - log('[Dynamic Panel Transparency] Error Loading Temporary Stylesheet: ' + name); - return null; + panel.add_style_class_name('panel-text-shadow'); } - return file_name; -} - -/** - * Taken from Plank. Used to calculate the average color of a theme's images. - * src: http://bazaar.launchpad.net/~docky-core/plank/trunk/view/head:/lib/Drawing/DrawingService.vala - * - * @param {Object} source - A Gtk.Pixbuf - */ -function average_color(source, width, height) { - let r, g, b, a, min, max; - let delta; - - let rTotal = 0.0; - let gTotal = 0.0; - let bTotal = 0.0; - - let bTotal2 = 0.0; - let gTotal2 = 0.0; - let rTotal2 = 0.0; - let aTotal2 = 0.0; - - let dataPtr = source.get_pixels(); - - width = (typeof (width) === 'undefined' || width === null) ? source.get_width() : width; - height = (typeof (height) === 'undefined' || height === null) ? source.get_height() : height; - - let length = width * height; - let scoreTotal = 0.0; - for (let y = 0; y < height; y++) { - for (let x = 0; x < width; x++) { + /** + * Adds the currently register shadow stylesheet to icons in the panel. + * + */ + add_icon_shadow() { + const { panel } = this; - /* eslint-disable */ + panel.add_style_class_name('panel-icon-shadow'); + panel.add_style_class_name('panel-arrow-shadow'); + } - let i = y * width * 4 + x * 4; + /** + * Determines if the panel currently has text shadowing applied. + * + * @returns {Boolean} If the panel has text shadowing. + */ + has_text_shadow() { + const { panel } = this; - r = dataPtr[i]; - g = dataPtr[i + 1]; - b = dataPtr[i + 2]; - a = dataPtr[i + 3]; + return panel.has_style_class_name('panel-text-shadow'); + } - /* eslint-enable */ + /** + * Determines if the panel currently has icon shadowing applied. + * + * @returns {Boolean} If the panel has icon shadowing. + */ + has_icon_shadow() { + const { panel } = this; - // skip (nearly) invisible pixels - if (a <= ALPHA_THRESHOLD) { - length--; - continue; - } + return (panel.has_style_class_name('panel-icon-shadow') || panel.has_style_class_name('panel-arrow-shadow')); + } - min = Math.min(r, Math.min(g, b)); - max = Math.max(r, Math.max(g, b)); - delta = max - min; + /** + * Removes any text shadowing; de-registering the stylesheet and removing the css. + * + */ + remove_text_shadow() { + const { panel } = this; - // prefer colored pixels over shades of grey - let score = SATURATION_WEIGHT * (delta === 0 ? 0.0 : delta / max); + panel.remove_style_class_name('panel-text-shadow'); + } - // weighted sums, revert pre-multiplied alpha value - bTotal += score * b / a; - gTotal += score * g / a; - rTotal += score * r / a; - scoreTotal += score; + /** + * Removes any icon shadowing; de-registering the stylesheet and removing the css. + * + */ + remove_icon_shadow() { + const { panel } = this; - // not weighted sums - bTotal2 += b; - gTotal2 += g; - rTotal2 += r; - aTotal2 += a; - } + panel.remove_style_class_name('panel-icon-shadow'); + panel.remove_style_class_name('panel-arrow-shadow'); } - // looks like a fully transparent image - if (length <= 0) { - return { red: 0, green: 0, blue: 0, alpha: 0 }; - } - scoreTotal /= length; - bTotal /= length; - gTotal /= length; - rTotal /= length; - if (scoreTotal > 0.0) { - bTotal /= scoreTotal; - gTotal /= scoreTotal; - rTotal /= scoreTotal; + /** + * Sets which registered text color stylesheet to use for the text coloring. @see register_text_color + */ + set_text_color() { + const { panel } = this; + + panel.add_style_class_name('panel-text-color'); + panel.add_style_class_name('panel-icon-color'); + panel.add_style_class_name('panel-arrow-color'); } - bTotal2 /= length * 255; - gTotal2 /= length * 255; - rTotal2 /= length * 255; - aTotal2 /= length * 255; + /** + * Remove a registered text color stylesheet from the panel. @see set_text_color + */ + remove_text_color() { + const { panel } = this; - // combine weighted and not weighted sum depending on the average "saturation" - // if saturation isn't reasonable enough - // s = 0.0 -> f = 0.0 ; s = WEIGHT_THRESHOLD -> f = 1.0 - if (scoreTotal <= WEIGHT_THRESHOLD) { - let f = 1.0 / WEIGHT_THRESHOLD * scoreTotal; - let rf = 1.0 - f; - bTotal = bTotal * f + bTotal2 * rf; - gTotal = gTotal * f + gTotal2 * rf; - rTotal = rTotal * f + rTotal2 * rf; + panel.remove_style_class_name('panel-text-color'); + panel.remove_style_class_name('panel-icon-color'); + panel.remove_style_class_name('panel-arrow-color'); } - // there shouldn't be values larger then 1.0 - let max_val = Math.max(rTotal, Math.max(gTotal, bTotal)); - if (max_val > 1.0) { - bTotal /= max_val; - gTotal /= max_val; - rTotal /= max_val; + /** + * Registers any custom style so that it can be removed when the extension is disabled. + * + * @param {string} style - The name of a CSS styling. + */ + register_style(style) { + if (this.styles.indexOf(style) === -1) { + this.styles.push(style); + } } - rTotal = Math.round(rTotal * 255); - gTotal = Math.round(gTotal * 255); - bTotal = Math.round(bTotal * 255); - aTotal2 = Math.round(aTotal2 * 255); - - return { red: rTotal, green: gTotal, blue: bTotal, alpha: aTotal2 }; -} - -/* Backend24 (3.24+) Specific Functions (Not backwards compatible) */ + /** + * Returns the user's desired panel color from Settings. Handles theme detection again. + * DEPENDENCY: Settings + * + * @returns {Object} Object containing an RGBA color value. + */ + get_background_color() { + const settings = Settings.get(); + let custom = settings.panelColor(); -function initialize_background_styles() { - register_background_color(get_theme_background_color(), Settings.get_current_user_theme()); - register_background_color(Settings.get_panel_color()); - let tweaked_apps = Object.keys(Settings.app_settings_manager['enable_background_tweaks']); - let tweaked_windows = Object.keys(Settings.window_settings_manager['enable_background_tweaks']); - - for (let key of tweaked_apps) { - let prefix = key.split('.').join('-'); - - if (Settings.app_settings_manager['maximized_opacity'][key]) { - register_background_color(Util.tuple_to_native_color(Settings.app_settings_manager['panel_color'][key]), prefix, 'tweaks', Settings.window_settings_manager['maximized_opacity'][key]); + if (!settings.enableCustomBackgroundColor()) { + return null; } else { - register_background_color(Util.tuple_to_native_color(Settings.app_settings_manager['panel_color'][key]), prefix, 'tweaks'); + return custom.value; } } - for (let key of tweaked_windows) { - let prefix = key.split('.').join('-'); - - if (Settings.window_settings_manager['maximized_opacity'][key]) { - register_background_color(Util.tuple_to_native_color(Settings.window_settings_manager['panel_color'][key]), prefix, 'tweaks', Settings.window_settings_manager['maximized_opacity'][key]); + /** + * Applies the style class 'panel-effect-transparency' and removes the basic CSS preventing this extension's transitions. + * + */ + strip_panel_styling() { + const { panel } = this; + panel.add_style_class_name('panel-effect-transparency'); + } + + /** + * Removes the style class 'panel-effect-transparency' and enables the stock CSS preventing this extension's transitions. + * + */ + reapply_panel_styling() { + const { panel } = this; + panel.remove_style_class_name('panel-effect-transparency'); + } + + /** + * Applies the style class 'panel-background-image-transparency' and removes the basic CSS preventing this extension's transitions. + * + */ + strip_panel_background_image() { + const { panel } = this; + panel.add_style_class_name('panel-background-image-transparency'); + } + + /** + * Removes the style class 'panel-background-image-transparency' and enables the stock CSS preventing this extension's transitions. + * + */ + reapply_panel_background_image() { + const { panel } = this; + panel.remove_style_class_name('panel-background-image-transparency'); + } + + + // panel.set_style(` + // ${style || ''} + // /*START OF ${name}*/ + // ${css} + // /*END OF ${name}*/`); + // } + /** + * Writes CSS data to a file and loads the stylesheet into the Shell. + * + * @param {Object.} css - CSS data. + * @param {string} class_name - Name of the intended CSS stylesheet. + * + */ + apply_stylesheet_css(class_name, css) { + this.styleStrings.set(class_name, css); + } + + /* Backend24 (3.24+) Specific Functions (Not backwards compatible) */ + + initialize_background_styles() { + const settings = Settings.get(); + + let max, min; + if (settings._enable_opacity()) { + max = settings._maximizedOpacity(); + min = settings._unmaximizedOpacity(); } else { - register_background_color(Util.tuple_to_native_color(Settings.window_settings_manager['panel_color'][key]), prefix, 'tweaks'); + const { translucency } = this.calculateState(false); + max = 255; + + switch (translucency) { + case Translucency.LOW: + min = 0.1; + case Translucency.LOW_MID: + min = 0.2; + case Translucency.MID: + min = 0.3; + case Translucency.MID_HIGH: + min = 0.4; + case Translucency.HIGH: + min = 0.5; + case Translucency.SOLID: + min = 1.0; + } } - } -} -function cleanup_background_styles() { - remove_background_color(); -} - -function register_background_style(style) { - if (this.background_styles.indexOf(style) === -1) { - this.background_styles.push(style); + this.register_custom_background_color(settings.panelColor(), max, min); } -} -function register_background_color(bg_color, prefix, tweak_name, maximized_opacity, unmaximized_opacity) { - let suffix = (prefix ? '-' + prefix : ''); - - if (prefix === '') { - prefix = '-default-'; - } else if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + cleanup_background_styles() { + this.remove_background_color(); } - if (tweak_name) { - tweak_name = tweak_name + '/'; - prefix = '-tweak' + prefix; - } else { - tweak_name = ''; + /** + * @param {string} style + */ + register_background_style(style) { + if (this.background_styles.indexOf(style) === -1) { + this.background_styles.push(style); + } } - maximized_opacity = Util.clamp(((maximized_opacity ? maximized_opacity : get_maximized_opacity()) / SCALE_FACTOR), 0, 1).toFixed(2); - unmaximized_opacity = Util.clamp(((unmaximized_opacity ? unmaximized_opacity : get_unmaximized_opacity()) / SCALE_FACTOR), 0, 1).toFixed(2); - - let maximized_bg_color_css = 'rgba(' + bg_color.red + ', ' + bg_color.green + ', ' + bg_color.blue + ', ' + maximized_opacity + ')'; - let unmaximized_bg_color_css = 'rgba(' + bg_color.red + ', ' + bg_color.green + ', ' + bg_color.blue + ', ' + unmaximized_opacity + ')'; + /** + * @param {{ red: string; green: string; blue: string; }} bg_color + * @param {number} [maximized_opacity] + * @param {number} [unmaximized_opacity] + */ + register_custom_background_color(bg_color, maximized_opacity, unmaximized_opacity) { + let _maximized_opacity = Util.clamp(((maximized_opacity) / SCALE_FACTOR), 0, 1).toFixed(2); + let _unmaximized_opacity = Util.clamp(((unmaximized_opacity) / SCALE_FACTOR), 0, 1).toFixed(2); - register_background_style('dpt-panel' + prefix + 'maximized'); - register_background_style('dpt-panel' + prefix + 'unmaximized'); + let maximized_bg_color_css = 'rgba(' + bg_color.red + ', ' + bg_color.green + ', ' + bg_color.blue + ', ' + _maximized_opacity + ')'; + let unmaximized_bg_color_css = 'rgba(' + bg_color.red + ', ' + bg_color.green + ', ' + bg_color.blue + ', ' + _unmaximized_opacity + ')'; - let file_prefix = 'background/' + tweak_name + 'panel'; + this.register_background_style(`dpt-panel-custom-maximized`); + this.register_background_style(`dpt-panel-custom-unmaximized`); - let panel = apply_stylesheet_css('.dpt-panel' + prefix + 'unmaximized { background-color: ' + unmaximized_bg_color_css + '; }\n.dpt-panel' + prefix + 'maximized { background-color: ' + maximized_bg_color_css + '; }', file_prefix + suffix); + this.apply_stylesheet_css(`dpt-panel-custom-unmaximized`, { 'background-color': unmaximized_bg_color_css }); - return panel; -} - -function set_unmaximized_background_color(prefix) { - if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + this.apply_stylesheet_css(`dpt-panel-custom-maximized`, { 'background-color': maximized_bg_color_css }); } - let style = 'dpt-panel' + prefix + 'unmaximized'; + set_unmaximized_background_color(prefix = 'custom') { + if (prefix) { + prefix = '-' + prefix + '-'; + } else { + prefix = '-'; + } - PanelActor.add_style_class_name(style); -} + let style = 'dpt-panel' + prefix + 'unmaximized'; -function set_maximized_background_color(prefix) { - if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + this.add_class(style); } - let style = 'dpt-panel' + prefix + 'maximized'; + set_maximized_background_color(prefix = 'custom') { + if (prefix) { + prefix = '-' + prefix + '-'; + } else { + prefix = '-'; + } - PanelActor.add_style_class_name(style); -} + let style = 'dpt-panel' + prefix + 'maximized'; -function remove_unmaximized_background_color(prefix) { - if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + this.add_class(style); } - PanelActor.remove_style_class_name('dpt-panel' + prefix + 'unmaximized'); -} + remove_unmaximized_background_color(prefix = 'custom') { + const { panel } = this; + if (prefix) { + prefix = '-' + prefix + '-'; + } else { + prefix = '-'; + } -function remove_maximized_background_color(prefix) { - if (prefix) { - prefix = '-' + prefix + '-'; - } else { - prefix = '-'; + panel.remove_style_class_name('dpt-panel' + prefix + 'unmaximized'); } - PanelActor.remove_style_class_name('dpt-panel' + prefix + 'maximized'); -} - -function remove_background_color(params) { - params = Params.parse(params, { - exclude: null, - exclude_maximized_variant_only: false, - exclude_unmaximized_variant_only: false, - exclude_base: false - }); - - let prefix = null; + remove_maximized_background_color(prefix = 'custom') { + const { panel } = this; + if (prefix) { + prefix = '-' + prefix + '-'; + } else { + prefix = '-'; + } - if (params.exclude) { - prefix = '-' + params.exclude + '-'; - } else if (params.exclude_base) { - prefix = '-'; + panel.remove_style_class_name('dpt-panel' + prefix + 'maximized'); } - let excluded_maximized_style = (prefix === null ? null : 'dpt-panel' + prefix) + 'maximized'; - let excluded_unmaximized_style = (prefix === null ? null : 'dpt-panel' + prefix) + 'unmaximized'; + remove_background_color() { + const { panel } = this; - for (let style of this.background_styles) { - let a = params.exclude_maximized_variant_only && style !== excluded_maximized_style; - let b = params.exclude_unmaximized_variant_only && style !== excluded_unmaximized_style; - let c = !params.exclude_maximized_variant_only && !params.exclude_unmaximized_variant_only && style !== excluded_maximized_style && style !== excluded_unmaximized_style; + this.remove_all_maximized_classes(); + this.remove_all_unmaximized_classes(); - if (c || a || b) { - PanelActor.remove_style_class_name(style); + for (let style of this.background_styles) { + panel.remove_style_class_name(style); } } -} -function update_transition_css() { - let duration_css = Settings.get_transition_speed(); + update_transition_css() { + let duration_css = Settings.get()._transitionSpeed(); - let stylesheet = apply_stylesheet_css('.dpt-panel-transition-duration { transition-duration: ' + duration_css + 'ms; }', 'transitions/panel-transition-duration'); + this.apply_stylesheet_css('panel-transition-duration', { 'transition-duration': `${duration_css}ms;` }); - PanelActor.add_style_class_name('dpt-panel-transition-duration'); + this.add_class('panel-transition-duration'); - register_style('dpt-panel-transition-duration'); + this.register_style('panel-transition-duration'); - return stylesheet; + } } + +module.exports = { Themer, Translucency, BackgroundState, load_panel_theme }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/transitions.js b/dynamic-panel-transparency@rockon999.github.io/transitions.js index 0202e62..36f9d6f 100644 --- a/dynamic-panel-transparency@rockon999.github.io/transitions.js +++ b/dynamic-panel-transparency@rockon999.github.io/transitions.js @@ -1,271 +1,119 @@ -/* exported init, cleanup, lock, unlock, get_animation_status, get_transparency_status, minimum_fade_in, update_transition_type */ -/* exported fade_in, fade_out, blank_fade_out */ +/** @type {Module} */ +const module = {}; -const Lang = imports.lang; const Mainloop = imports.mainloop; -const St = imports.gi.St; +const { St } = imports.gi; const Me = imports.misc.extensionUtils.getCurrentExtension(); const Settings = Me.imports.settings; -const Theming = Me.imports.theming; const Equations = imports.tweener.equations; -const CORNER_UPDATE_FREQUENCY = 30; - -/** - * Intialize. - * - */ -function init() { - /* Objects to track where the transparency is and where it's going. */ - this.status = new TransparencyStatus(); - - this.corner_timeout_id = 0; -} - -/** - * Freeup any held assets on disable. - * - */ -function cleanup() { - this.status = null; - - this.corner_timeout_id = null; -} - -/** - * Get the current status of the panel's transparency. - * - * @returns {Object} Current transparency. @see TransparencyStatus - */ -function get_transparency_status() { - return this.status; -} - -/** - * Get any animation that the panel is currently doing. - * DEPRECATED. - * - * @returns {Object} Current animation status. @see AnimationStatus - */ -function get_animation_status() { - return { destination: null, action: null }; -} +const { Themer } = Me.imports.theming; -/** - * Fades the panel into the unmaximized (minimum) alpha. Used for closing the overview. - * - */ -function minimum_fade_in() { - /* The CSS backend doesn't need different starting/ending values */ - fade_out(); -} +const CORNER_UPDATE_FREQUENCY = 30; -/** - * Fades the panel into the nmaximized (maximum) alpha. - * - */ -function fade_in() { - let custom = Settings.get_panel_color({ app_info: true }); +var TransitionManager = class TransitionManager { + /** + * Initialize. + * @param {typeof Themer.prototype} themer + */ + constructor(themer) { + this.themer = themer; - if (!Settings.remove_panel_styling()) { - Theming.reapply_panel_styling(); - Theming.reapply_panel_background_image(); + this.blank = false; + this.transparent = false; } - if (custom.app_info !== null && Settings.check_overrides() && (Settings.window_settings_manager['enable_background_tweaks'][custom.app_info] || Settings.app_settings_manager['enable_background_tweaks'][custom.app_info])) { - let prefix = custom.app_info.split('.').join('-'); - - Theming.set_maximized_background_color('tweak-' + prefix); - Theming.remove_background_color({ - exclude: 'tweak-' + prefix - }); - } else if (Settings.enable_custom_background_color()) { - Theming.set_maximized_background_color(); - Theming.remove_background_color({ - exclude_base: true - }); - } else { - Theming.set_maximized_background_color(Settings.get_current_user_theme()); - Theming.remove_background_color({ - exclude: Settings.get_current_user_theme(), - }); + is_transparent() { + return this.transparent; } - if (!Settings.get_hide_corners()) { - let speed = St.get_slow_down_factor() * Settings.get_transition_speed(); - - let maximized = Settings.get_maximized_opacity(); - let unmaximized = !this.status.is_transparent() ? maximized : Settings.get_unmaximized_opacity(); - - this.status.set_transparent(false); - this.status.set_blank(false); - - let count = 0; - - const id = this.corner_timeout_id = Mainloop.timeout_add(Math.floor(speed / CORNER_UPDATE_FREQUENCY), (function() { - if (id === this.corner_timeout_id && !this.status.is_transparent()) { - count++; - - let alpha = Equations.linear(Math.floor(count * (speed / CORNER_UPDATE_FREQUENCY)), unmaximized, maximized - unmaximized, speed); - - update_corner_alpha(alpha); + is_blank() { + return this.blank; + } - if (count > CORNER_UPDATE_FREQUENCY) { - update_corner_alpha(maximized); - return false; - } - } else { - return false; - } + /** + * Free-up any held assets on disable. + * + */ + cleanup() { + } - return true; - }).bind(this)); + /** + * Fades the panel into the unmaximized (minimum) alpha. Used for closing the overview. + */ + minimum_fade_in() { + /* The CSS backend doesn't need different starting/ending values */ + this.fade_out(); } - this.status.set_transparent(false); - this.status.set_blank(false); -} + /** + * Fades the panel into the unmaximized (maximum) alpha. + * + */ + fade_in() { + const settings = Settings.get(); + if (!settings._removePanelStyling()) { + this.themer.reapply_panel_styling(); + this.themer.reapply_panel_background_image(); + } -/** - * Fades the panel into the unmaximized (minimum) alpha. - * - */ -function fade_out() { - Theming.strip_panel_background_image(); - Theming.strip_panel_styling(); + if (settings.enableCustomBackgroundColor()) { + this.themer.set_maximized_background_color(); + this.themer.remove_background_color({ + exclude_base: true + }); + } else { + this.themer.set_maximized_auto_background_color(); + } - if (Settings.enable_custom_background_color()) { - Theming.set_unmaximized_background_color(); - Theming.remove_background_color({ - exclude_base: true, - exclude_unmaximized_variant_only: true - }); - } else { - Theming.set_unmaximized_background_color(Settings.get_current_user_theme()); - Theming.remove_background_color({ - exclude: Settings.get_current_user_theme(), - exclude_unmaximized_variant_only: true - }); + this.blank = false; + this.transparent = false; } - // TODO: Figure out how to write the panel corners in pure CSS. - if (!Settings.get_hide_corners()) { - let speed = St.get_slow_down_factor() * Settings.get_transition_speed(); - - let unmaximized = Settings.get_unmaximized_opacity(); - let maximized = this.status.is_transparent() ? unmaximized : Settings.get_maximized_opacity(); + /** + * Fades the panel into the unmaximized (minimum) alpha. + * + */ + fade_out() { + const settings = Settings.get(); + + this.themer.strip_panel_background_image(); + this.themer.strip_panel_styling(); + + if (settings.enableCustomBackgroundColor()) { + this.themer.set_unmaximized_background_color(); + this.themer.remove_background_color({ + exclude_base: true, + exclude_unmaximized_variant_only: true + }); + } else { + this.themer.set_unmaximized_auto_background_color(); + } /* Keep the status up to date */ - this.status.set_transparent(true); - this.status.set_blank(false); - - let count = 0; - - const id = this.corner_timeout_id = Mainloop.timeout_add(Math.floor(speed / CORNER_UPDATE_FREQUENCY), (function() { - if (id === this.corner_timeout_id && this.status.is_transparent()) { - count++; - - let alpha = Equations.linear(Math.floor(count * (speed / CORNER_UPDATE_FREQUENCY)), maximized, unmaximized - maximized, speed); - - update_corner_alpha(alpha); - - if (count > CORNER_UPDATE_FREQUENCY) { - update_corner_alpha(unmaximized); - return false; - } - } else { - return false; - } - return true; - }).bind(this)); + this.blank = false; + this.transparent = true; } - /* Keep the status up to date */ - this.status.set_transparent(true); - this.status.set_blank(false); -} - -/** - * Fades the panel's alpha to 0. Used for opening the overview & displaying the screenShield. - * - */ -function blank_fade_out() { - /* Completely remove every possible background style... */ - Theming.remove_background_color(); - - Theming.strip_panel_background_image(); - Theming.strip_panel_styling(); - - this.status.set_transparent(true); - this.status.set_blank(true); - - // TODO: These corners... - if (!Settings.get_hide_corners()) { - let speed = St.get_slow_down_factor() * Settings.get_transition_speed(); + /** + * Fades the panel's alpha to 0. Used for opening the overview & displaying the screenShield. + * + */ + blank_fade_out() { + /* Completely remove every possible background style... */ + this.themer.remove_background_color(); + this.themer.set_blank(); - let maximized = Settings.get_maximized_opacity(); + this.themer.strip_panel_background_image(); + this.themer.strip_panel_styling(); - let count = 0; - - const id = this.corner_timeout_id = Mainloop.timeout_add(Math.floor(speed / CORNER_UPDATE_FREQUENCY), (function() { - if (id === this.corner_timeout_id && this.status.is_transparent()) { - count++; - - let alpha = Equations.linear(Math.floor(count * (speed / CORNER_UPDATE_FREQUENCY)), maximized, -maximized, speed); - - update_corner_alpha(alpha); - - if (count > CORNER_UPDATE_FREQUENCY) { - update_corner_alpha(0); - return false; - } - } else { - return false; - } - return true; - }).bind(this)); + this.blank = true; + this.transparent = true; } } -/** - * Updates the alpha value of the corners' coloring. Slightly awkward overlap is unavoidable. - * - * @param {Number} alpha - Alpha value ranging from 0-255. - */ -function update_corner_alpha(alpha = null) { - if (alpha === null) { - if (Settings.get_hide_corners()) { - alpha = 0; - } else { - alpha = this.status.is_transparent() ? Theming.get_unmaximized_opacity() : Theming.get_maximized_opacity(); - } - } - - Theming.set_corner_color({ - alpha: alpha - }); -} - -const TransparencyStatus = new Lang.Class({ - Name: 'DynamicPanelTransparency_TransparencyStatus', - _init: function() { - this.transparent = false; - this.blank = false; - }, - is_transparent: function() { - return this.transparent; - }, - is_blank: function() { - return this.blank; - }, - set_transparent: function(transparent) { - this.transparent = transparent; - }, - set_blank: function(blank) { - this.blank = blank; - } -}); \ No newline at end of file +module.exports = { TransitionManager }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/types/extension.d.ts b/dynamic-panel-transparency@rockon999.github.io/types/extension.d.ts new file mode 100644 index 0000000..9f50a60 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/types/extension.d.ts @@ -0,0 +1,35 @@ +declare interface ImportMap {} + +declare interface Extension { + extensionState: any; + metadata: { [key: string]: any }; + dir: any; + uuid: string; + path: string; +} + +declare interface CurrentExtension extends Extension { + imports: ImportMap; +} + +declare interface GiImports { + [key: string]: any; + Gtk: typeof import('gtk'); + GLib: typeof import('glib'); + Gio: typeof import('gio'); + GdkPixbuf: typeof import('gdkpixbuf'); +} + +declare interface Imports { + [key: string]: any; + gi: GiImports; + misc: { + [key: string]: any; + extensionUtils: { + extensions: { [key: string]: Extension }; + getCurrentExtension: () => CurrentExtension; + }; + }; +} + +declare var imports: Imports; diff --git a/dynamic-panel-transparency@rockon999.github.io/types/global.d.ts b/dynamic-panel-transparency@rockon999.github.io/types/global.d.ts new file mode 100644 index 0000000..9a9b253 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/types/global.d.ts @@ -0,0 +1,19 @@ +// Gnome Shell +declare namespace global { + var screen: any; + var workspace_manager: any; + var window_manager: any; + var get_window_actors: () => any[]; + var window_group: any; + var display: any; + var stage: any; +} + +// Type Stubs +type WindowActor = any; + +// GJS +declare function log(msg: string): void; + +// Utility +type Module = { exports?: { [key: string]: any } }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts b/dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts new file mode 100644 index 0000000..8fb4861 --- /dev/null +++ b/dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts @@ -0,0 +1,16 @@ +declare interface ImportMap { + compat: typeof import('../compat'); + intellifade: typeof import('../intellifade'); + theming: typeof import('../theming'); + convenience: typeof import('../convenience'); + events: typeof import('../events'); + extension: typeof import('../extension'); + settings: typeof import('../settings'); + util: typeof import('../util'); + transitions: typeof import('../transitions'); + color_util: typeof import('../color_util'); +} + +declare interface CurrentExtension { + metadata: typeof import('../metadata.json'); +} diff --git a/dynamic-panel-transparency@rockon999.github.io/util.js b/dynamic-panel-transparency@rockon999.github.io/util.js index 3ab2d32..c16ae13 100644 --- a/dynamic-panel-transparency@rockon999.github.io/util.js +++ b/dynamic-panel-transparency@rockon999.github.io/util.js @@ -1,7 +1,7 @@ -/* exported get_shell_version, is_undef, clamp, is_valid, match_colors, remove_file, get_file, write_to_file, gdk_to_css_color, clutter_to_native_color, tuple_to_native_color, deep_freeze, strip_args */ +/** @type {Module} */ +const module = {}; -const GLib = imports.gi.GLib; -const Gio = imports.gi.Gio; +const { GLib, Gio } = imports.gi; /* This import can't be a constant as it requires lazy initialization. */ let Meta = null; @@ -137,9 +137,9 @@ function remove_file(file_path) { /** * Converts a GdkColor into a JS/CSS color object. * - * @param {Object} color - GdkColor to convert. + * @param {import("gdk").RGBA} color - GdkColor to convert. * - * @returns {Object} Converted RGB color. + * @returns {{ red: number; green: number; blue: number;}} Converted RGB color. * */ function gdk_to_css_color(color) { @@ -167,16 +167,18 @@ function clutter_to_native_color(color, alpha = false) { return output; } +/** @typedef {{red:number; green: number; blue: number; alpha?: number;}} NativeColor */ + /** * Converts a tuple from a GVariant (typically) into a JS/CSS color object. * - * @param {Object} color - Tuple to convert. - * @param {Boolean} [alpha = false] - Whether to transfer the alpha value. + * @param {[number, number, number] | [number, number, number, number]} tuple - Tuple to convert. * - * @returns {Object} Converted RGB(A) color. + * @returns {NativeColor} Converted RGB(A) color. * */ function tuple_to_native_color(tuple) { + /** @type {NativeColor} */ let color = { red: tuple[0], green: tuple[1], blue: tuple[2] }; if (tuple.length === 4) { color.alpha = tuple[3]; @@ -187,11 +189,11 @@ function tuple_to_native_color(tuple) { /** * Compares two colors for equivalency. * - * @param {Object} a - First color. - * @param {Object} a - Second color. - * @param {Boolean} [alpha = false] - Whether to check the alpha value. + * @param {NativeColor} a - First color. + * @param {NativeColor} b - Second color. + * @param {boolean} [alpha = false] - Whether to check the alpha value. * - * @returns {Boolean} Whether the two colors are equal. + * @returns {boolean} Whether the two colors are equal. * */ function match_colors(a, b, alpha = false) { @@ -207,15 +209,18 @@ function match_colors(a, b, alpha = false) { /** * Freezes an Object's and its children. * - * @param {Object} type - Object to freeze. - * @param {Boolean} [recursive = false] - Whether to recursively traverse the object's children. - * + * @param {object} type - Object to freeze. + * @param {boolean} [recursive = false] - Whether to recursively traverse the object's children. */ function deep_freeze(type, recursive = false) { - const freeze_children = function(obj) { - Object.keys(obj).forEach(function(value, index, arr) { + /** + * @param {object} obj + */ + function freeze_children(obj) { + Object.keys(obj).forEach(function(value) { if (typeof (value) === 'object' && !Object.isFrozen(value)) { Object.freeze(value); + if (recursive) { freeze_children(value); } @@ -237,4 +242,6 @@ function strip_args(method) { return function() { method.call(this); }; -} \ No newline at end of file +} + +module.exports = { get_shell_version, clamp, is_valid, match_colors, remove_file, get_file, write_to_file, gdk_to_css_color, clutter_to_native_color, tuple_to_native_color, deep_freeze, strip_args }; \ No newline at end of file diff --git a/wallpaper_tester.js b/wallpaper_tester.js new file mode 100644 index 0000000..4a89004 --- /dev/null +++ b/wallpaper_tester.js @@ -0,0 +1,264 @@ + +imports.gi.versions.Gdk = '3.0'; +imports.gi.versions.Gtk = '3.0'; + +const { GLib, Gio, Gdk, Gtk, GdkPixbuf } = imports.gi; + +const Mainloop = imports.mainloop; + +const SATURATION_WEIGHT = 1.5; +const WEIGHT_THRESHOLD = 1.0; + +/** + * @param {*} source + * @param {number} reference_x + * @param {number} reference_y + * @param {number} reference_height + * @param {number} reference_width + */ +function get_background_color_information(source, reference_x, reference_y, reference_height, reference_width) { + let bg_actor_width = Math.floor(source.get_width()); + let bg_actor_height = Math.floor(source.get_height()); + + // A commit in mutter added some padding to offscreen textures, so we + // need to avoid looking at the edges of the texture as it often has a + // black border. The commit specifies that up to 1.75px around each side + // could now be padding, so cut off 2px from left and top if necessary + // (https://gitlab.gnome.org/GNOME/mutter/commit/8655bc5d8de6a969e0ca83eff8e450f62d28fbee) + let x_start = reference_x; + if (x_start < 2) { + x_start = 2; + } + + let y_start = reference_y; + if (y_start < 2) { + y_start = 2; + } + + // For the same reason as above, we need to not use the bottom and right + // 2px of the texture. However, if the caller has specified an area of + // interest that already misses these parts, use that instead, otherwise + // chop 2px + + const width = Math.min(bg_actor_width - 2 - reference_x, reference_width); + const height = Math.min(bg_actor_height - 2 - reference_y, reference_height); + + if (x_start > bg_actor_width || y_start > bg_actor_height || width <= 0 || height <= 0) { + throw new Error(`Invalid rectangle specified: ${x_start}, ${y_start}, ${width}, ${height}`); + } + + let mean_acutance = 0, mean_luminance = 0, r_total = 0, g_total = 0, b_total = 0; + + let pixel_lums = new Float64Array((x_start + width + 1) * (y_start + height + 1)); + + let pixels = source.get_pixels(); + + log('got pixels!'); + const size = width * height; + + let mean_squares = 0; + let pixel = 0; + + let max, min, score, delta, score_total = 0, r_total2 = 0, g_total2 = 0, b_total2 = 0; + + /* + * code to calculate weighted average color is copied from + * plank's lib/Drawing/DrawingService.vala average_color() + * http://bazaar.launchpad.net/~docky-core/plank/trunk/view/head:/lib/Drawing/DrawingService.vala + */ + for (let y = y_start; y < (y_start + height); y++) { + for (let x = x_start; x < (x_start + width); x++) { + const i = (y * width * 4) + (x * 4); + + let b = pixels[i]; + let g = pixels[i + 1]; + let r = pixels[i + 2]; + + pixel = (0.3 * r + 0.59 * g + 0.11 * b); + + pixel_lums[y * width + x] = pixel; + + min = Math.min(r, Math.min(g, b)); + max = Math.max(r, Math.max(g, b)); + + delta = max - min; + + /* prefer colored pixels over shades of grey */ + score = SATURATION_WEIGHT * (delta == 0 ? 0.0 : delta / max); + + r_total += score * r; + g_total += score * g; + b_total += score * b; + score_total += score; + + r_total += r; + g_total += g; + b_total += b; + + mean_luminance += pixel; + mean_squares += pixel * pixel; + } + } + + for (let y = y_start + 1; y < (y_start + height) - 1; y++) { + for (let x = x_start + 1; x < (x_start + width) - 1; x++) { + let acutance = + (pixel_lums[y * width + x] * 4) - + ( + pixel_lums[y * width + x - 1] + + pixel_lums[y * width + x + 1] + + pixel_lums[(y - 1) * width + x] + + pixel_lums[(y + 1) * width + x] + ); + + mean_acutance += acutance > 0 ? acutance : -acutance; + } + } + + score_total /= size; + b_total /= size; + g_total /= size; + r_total /= size; + + if (score_total > 0.0) { + b_total /= score_total; + g_total /= score_total; + r_total /= score_total; + } + + b_total2 /= size * 255; + g_total2 /= size * 255; + r_total2 /= size * 255; + + /* + * combine weighted and not weighted sum depending on the average "saturation" + * if saturation isn't reasonable enough + * s = 0.0 -> f = 0.0 ; s = WEIGHT_THRESHOLD -> f = 1.0 + */ + if (score_total <= WEIGHT_THRESHOLD) { + let f = 1.0 / WEIGHT_THRESHOLD * score_total; + let rf = 1.0 - f; + + b_total = b_total * f + b_total2 * rf; + g_total = g_total * f + g_total2 * rf; + r_total = r_total * f + r_total2 * rf; + } + + /* there shouldn't be values larger then 1.0 */ + let max_val = Math.max(r_total, Math.max(g_total, b_total)); + + if (max_val > 1.0) { + b_total /= max_val; + g_total /= max_val; + r_total /= max_val; + } + + mean_luminance /= size; + mean_squares = mean_squares / size; + + let luminance_variance = (mean_squares - (mean_luminance * mean_luminance)); + let acutance_variance = mean_squares - (mean_acutance * mean_acutance); + + mean_acutance /= (width - 2) * (height - 2); + log('calculated') + return { mean_luminance, luminance_variance, mean_acutance, acutance_variance }; +} + +Gtk.init(null); + +const main_window = new Gtk.Window(); + +main_window.set_size_request(1000, 800); + +const box = new Gtk.Box({ + orientation: Gtk.Orientation.VERTICAL +}); +box.vexpand = true; +box.hexpand = true; + +const grid = new Gtk.Grid(); + +const overlay = new Gtk.Overlay(); +overlay.vexpand = true; +overlay.hexpand = true; + +const image = new Gtk.Image(); + +const background_settings = new Gio.Settings({ + schema: 'org.gnome.desktop.background' +}); + +let lmean_luminance = new Gtk.Label({ label: 'Mean Luminance' }); +let lluminance_variance = new Gtk.Label({ label: 'Luminance Variance' }); +let lmean_acutance = new Gtk.Label({ label: 'Mean Acutance' }); +let lacutance_variance = new Gtk.Label({ label: 'Acutance Variance' }); + +let mean_luminance = new Gtk.Label(); +let luminance_variance = new Gtk.Label(); +let mean_acutance = new Gtk.Label(); +let acutance_variance = new Gtk.Label(); + +let panel = new Gtk.Box(); + +panel.hexpand = true; +panel.set_size_request(-1, 30); + +grid.attach(lmean_luminance, 0, 0, 1, 1); +grid.attach_next_to(mean_luminance, lmean_luminance, Gtk.PositionType.RIGHT, 1, 1); +grid.attach(lluminance_variance, 0, 1, 1, 1); +grid.attach_next_to(luminance_variance, lluminance_variance, Gtk.PositionType.RIGHT, 1, 1); +grid.attach(lmean_acutance, 0, 2, 1, 1); +grid.attach_next_to(mean_acutance, lmean_acutance, Gtk.PositionType.RIGHT, 1, 1); +grid.attach(lacutance_variance, 0, 3, 1, 1); +grid.attach_next_to(acutance_variance, lacutance_variance, Gtk.PositionType.RIGHT, 1, 1); + +/** + * @param {any} [width] + */ +function analyze(width) { + const info = get_background_color_information(background, 0, 0, 30, width || image.get_allocated_width()); + + mean_acutance.label = `${info.mean_acutance}`; + mean_luminance.label = `${info.mean_luminance}`; + luminance_variance.label = `${info.luminance_variance}`; + acutance_variance.label = `${info.acutance_variance}`; +} + +let uri = background_settings.get_string('picture-uri'); +log(uri); +let file = Gio.File.new_for_uri(uri); +let background = GdkPixbuf.Pixbuf.new_from_file(file.get_path()); +let scaled_background = background.scale_simple(1000, 700, GdkPixbuf.InterpType.BILINEAR); +image.set_from_pixbuf(scaled_background); + +background_settings.connect('changed::picture-uri', () => { + uri = background_settings.get_string('picture-uri'); + log(uri); + + file = Gio.File.new_for_uri(uri); + background = GdkPixbuf.Pixbuf.new_from_file(file.get_path()); + const [allocation] = overlay.get_allocated_size(); + scaled_background = background.scale_simple(allocation.width, allocation.height, GdkPixbuf.InterpType.BILINEAR); + image.set_from_pixbuf(scaled_background); + + analyze(); +}); + +analyze(); + +overlay.add(image); + +Gtk.CssProvider.get_default().load_from_path('./dynamic-panel-transparency@rockon999.github.io/theme.css'); +const context = panel.get_style_context(); +context.add_class('dpt-panel'); +context.add_class('dpt-panel-unmaximized-dark-0'); +overlay.add_overlay(panel); + +box.add(overlay); +box.add(grid); + +main_window.add(box); + +main_window.show_all(); + +Gtk.main() \ No newline at end of file From e5ead3997ca54bec345a333902081ba3f89142bc Mon Sep 17 00:00:00 2001 From: Evan Welsh <2943271+rockon999@users.noreply.github.com> Date: Tue, 9 Jun 2020 15:53:49 -0500 Subject: [PATCH 2/6] Transition to TypeScript fully and add makefile. --- .gitignore | 5 +- .prettierrc.js | 4 + Makefile | 105 + .../background.js | 58 - .../color_util.js | 220 - .../compat.js | 17 - .../events.js | 299 - .../prefs.js | 398 - .../transitions.js | 119 - .../types/imports.d.ts | 16 - .../gi => gi}/atk.d.ts | 213 +- .../gi => gi}/cairo.d.ts | 0 gi/cally.d.ts | 268 + gi/clutter.d.ts | 14076 ++++++++++++++++ gi/cogl.d.ts | 1872 ++ gi/gck.d.ts | 641 + gi/gcr.d.ts | 861 + .../gi => gi}/gdk.d.ts | 136 +- .../gi => gi}/gdkpixbuf.d.ts | 48 +- .../gi => gi}/gio.d.ts | 1327 +- .../gi => gi}/glib.d.ts | 304 +- .../gi => gi}/gobject.d.ts | 440 +- .../gi => gi}/gtk.d.ts | 1578 +- gi/json.d.ts | 459 + gi/nm.d.ts | 7061 ++++++++ .../gi => gi}/pango.d.ts | 131 +- gi/shell.d.ts | 859 + gi/st.d.ts | 1086 ++ .../gi => gi}/xlib.d.ts | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../LC_MESSAGES/dynamic-panel-transparency.mo | Bin .../LC_MESSAGES/dynamic-panel-transparency.po | 0 .../media => media}/demo.gif | Bin .../metadata.json => metadata.json | 0 package.json | 8 + .../schemas => schemas}/gschemas.compiled | Bin ...anel-transparency.appOverrides.gschema.xml | 0 ...ons.dynamic-panel-transparency.gschema.xml | 0 .../COPYING | 0 .../LICENSE | 0 src/background.ts | 70 + src/color_util.ts | 242 + src/compat.ts | 14 + .../convenience.js => src/convenience.ts | 11 +- .../dynamic-panel-transparency.pot | 0 src/events.ts | 309 + .../extension.js => src/extension.ts | 41 +- .../intellifade.js => src/intellifade.ts | 25 +- src/prefs.ts | 537 + .../prefs.ui | 0 .../settings.js => src/settings.ts | 58 +- .../stylesheet.css | 0 .../theme.css | 0 .../theme.scss | 0 .../theming.js => src/theming.ts | 49 +- src/transitions.ts | 101 + .../util.js => src/util.ts | 46 +- tsconfig.json | 25 + .../types => types}/extension.d.ts | 9 +- .../types => types}/global.d.ts | 0 types/imports.d.ts | 3 + 76 files changed, 31420 insertions(+), 2729 deletions(-) create mode 100644 .prettierrc.js create mode 100644 Makefile delete mode 100644 dynamic-panel-transparency@rockon999.github.io/background.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/color_util.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/compat.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/events.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/prefs.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/transitions.js delete mode 100644 dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/atk.d.ts (90%) rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/cairo.d.ts (100%) create mode 100644 gi/cally.d.ts create mode 100644 gi/clutter.d.ts create mode 100644 gi/cogl.d.ts create mode 100644 gi/gck.d.ts create mode 100644 gi/gcr.d.ts rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/gdk.d.ts (97%) rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/gdkpixbuf.d.ts (85%) rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/gio.d.ts (81%) rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/glib.d.ts (92%) rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/gobject.d.ts (67%) rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/gtk.d.ts (94%) create mode 100644 gi/json.d.ts create mode 100644 gi/nm.d.ts rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/pango.d.ts (89%) create mode 100644 gi/shell.d.ts create mode 100644 gi/st.d.ts rename {dynamic-panel-transparency@rockon999.github.io/gi => gi}/xlib.d.ts (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/ar/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/ar/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/de/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/de/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/es/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/es/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/fr/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/fr/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/pt_BR/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/pt_BR/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/ru/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/ru/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/sr/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/sr/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/sr@latin/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/sr@latin/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/zh_CN/LC_MESSAGES/dynamic-panel-transparency.mo (100%) rename {dynamic-panel-transparency@rockon999.github.io/locale => locale}/zh_CN/LC_MESSAGES/dynamic-panel-transparency.po (100%) rename {dynamic-panel-transparency@rockon999.github.io/media => media}/demo.gif (100%) rename dynamic-panel-transparency@rockon999.github.io/metadata.json => metadata.json (100%) create mode 100644 package.json rename {dynamic-panel-transparency@rockon999.github.io/schemas => schemas}/gschemas.compiled (100%) rename {dynamic-panel-transparency@rockon999.github.io/schemas => schemas}/org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides.gschema.xml (100%) rename {dynamic-panel-transparency@rockon999.github.io/schemas => schemas}/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml (100%) rename {dynamic-panel-transparency@rockon999.github.io => src}/COPYING (100%) rename {dynamic-panel-transparency@rockon999.github.io => src}/LICENSE (100%) create mode 100644 src/background.ts create mode 100644 src/color_util.ts create mode 100644 src/compat.ts rename dynamic-panel-transparency@rockon999.github.io/convenience.js => src/convenience.ts (94%) rename {dynamic-panel-transparency@rockon999.github.io => src}/dynamic-panel-transparency.pot (100%) create mode 100644 src/events.ts rename dynamic-panel-transparency@rockon999.github.io/extension.js => src/extension.ts (80%) rename dynamic-panel-transparency@rockon999.github.io/intellifade.js => src/intellifade.ts (93%) create mode 100644 src/prefs.ts rename {dynamic-panel-transparency@rockon999.github.io => src}/prefs.ui (100%) rename dynamic-panel-transparency@rockon999.github.io/settings.js => src/settings.ts (88%) rename {dynamic-panel-transparency@rockon999.github.io => src}/stylesheet.css (100%) rename {dynamic-panel-transparency@rockon999.github.io => src}/theme.css (100%) rename {dynamic-panel-transparency@rockon999.github.io => src}/theme.scss (100%) rename dynamic-panel-transparency@rockon999.github.io/theming.js => src/theming.ts (94%) create mode 100644 src/transitions.ts rename dynamic-panel-transparency@rockon999.github.io/util.js => src/util.ts (82%) create mode 100644 tsconfig.json rename {dynamic-panel-transparency@rockon999.github.io/types => types}/extension.d.ts (79%) rename {dynamic-panel-transparency@rockon999.github.io/types => types}/global.d.ts (100%) create mode 100644 types/imports.d.ts diff --git a/.gitignore b/.gitignore index 480d63b..6b3a6fe 100644 --- a/.gitignore +++ b/.gitignore @@ -2,14 +2,13 @@ old_files/ styles/ .vscode/ .buildconfig -*.json -~tsconfig.json *~ *.dpt.css .goutputstream* *# .buildconfig globals.d.ts - +_build/** +_compiled/** node_modules/** \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..9bc5eb7 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,4 @@ +module.exports = { + "tabWidth": 4, + "singleQuote": true +} \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f592a91 --- /dev/null +++ b/Makefile @@ -0,0 +1,105 @@ +# Basic Makefile +# Copied from Dash to Dock, with modifications. + +UUID = dynamic-panel-transparency@rockon999.github.io +SRC_MODULES = extension.ts main.ts inject.ts dock.ts dash.ts stylesheet.css +BASE_MODULES = metadata.json COPYING README.md +EXTRA_MODULES = src/prefs.ui +TOLOCALIZE = _build/prefs.js +MSGSRC = $(wildcard po/*.po) +ifeq ($(strip $(DESTDIR)),) + INSTALLTYPE = local + INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions +else + INSTALLTYPE = system + SHARE_PREFIX = $(DESTDIR)/usr/share + INSTALLBASE = $(SHARE_PREFIX)/gnome-shell/extensions +endif +INSTALLNAME = dynamic-panel-transparency@rockon999.github.io + +# The command line passed variable VERSION is used to set the version string +# in the metadata and in the generated zip-file. If no VERSION is passed, the +# current commit SHA1 is used as version number in the metadata while the +# generated zip file has no string attached. +ifdef VERSION + VSTRING = _v$(VERSION) +else + VERSION = $(shell git rev-parse HEAD) + VSTRING = +endif + +all: extension + +clean: + rm -f ./schemas/gschemas.compiled + +cleanbuild: + rm -Rf ./_compiled + rm -Rf ./_build + +extension: ./schemas/gschemas.compiled $(MSGSRC:.po=.mo) + +./schemas/gschemas.compiled: ./schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml + glib-compile-schemas ./schemas/ + +potfile: ./po/dynamic-panel-transparency.pot + +mergepo: potfile + for l in $(MSGSRC); do \ + msgmerge -U $$l ./po/dynamic-panel-transparency.pot; \ + done; + +./po/dynamic-panel-transparency.pot: compile $(TOLOCALIZE) src/prefs.ui + mkdir -p po + touch po/dynamic-panel-transparency.pot + xgettext -k --keyword=__ --keyword=N__ --add-comments='Translators:' -o po/dynamic-panel-transparency.pot --package-name "Simple Dock" $(TOLOCALIZE) + intltool-extract --type=gettext/glade src/prefs.ui + xgettext -k --keyword=_ --keyword=N_ --join-existing -o po/dynamic-panel-transparency.pot prefs.ui.h + +./po/%.mo: ./po/%.po + msgfmt -c $< -o $@ + +install-local: _build + rm -rf $(INSTALLBASE)/$(INSTALLNAME) + mkdir -p $(INSTALLBASE)/$(INSTALLNAME) + cp -r ./_build/* $(INSTALLBASE)/$(INSTALLNAME)/ +ifeq ($(INSTALLTYPE),system) + # system-wide settings and locale files + rm -r $(INSTALLBASE)/$(INSTALLNAME)/schemas $(INSTALLBASE)/$(INSTALLNAME)/locale + mkdir -p $(SHARE_PREFIX)/glib-2.0/schemas $(SHARE_PREFIX)/locale + cp -r ./schemas/*gschema.* $(SHARE_PREFIX)/glib-2.0/schemas + cp -r ./_build/locale/* $(SHARE_PREFIX)/locale +endif + echo done + +install: install-local cleanbuild + +zip: _build + cd _build ; \ + zip -qr "$(UUID)$(VSTRING).zip" . + mv _build/$(UUID)$(VSTRING).zip ./ + +zip-file: zip cleanbuild + +compile: + tsc -p tsconfig.json --outDir _compiled/ + rollup --no-treeshake ./_compiled/src/extension.js --file ./_build/extension.js --format es + +setup-build: + -rm -fR ./_build + mkdir -p _build + cp $(BASE_MODULES) $(EXTRA_MODULES) _build + mkdir -p _build/schemas + +_build: all setup-build compile + cp _compiled/src/prefs.js _build/prefs.js + cp schemas/*.xml _build/schemas/ + cp schemas/gschemas.compiled _build/schemas/ + mkdir -p _build/locale + for l in $(MSGSRC:.po=.mo) ; do \ + lf=_build/locale/`basename $$l .mo`; \ + mkdir -p $$lf; \ + mkdir -p $$lf/LC_MESSAGES; \ + cp $$l $$lf/LC_MESSAGES/dynamic-panel-transparency.mo; \ + done; + sed -i 's/"version": -1/"version": "$(VERSION)"/' _build/metadata.json; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/background.js b/dynamic-panel-transparency@rockon999.github.io/background.js deleted file mode 100644 index 3ed3936..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/background.js +++ /dev/null @@ -1,58 +0,0 @@ -const Me = imports.misc.extensionUtils.getCurrentExtension(); - -const ColorUtil = Me.imports.color_util; - -const LUMINANCE_DARK_THRESHOLD = 60; -const LUMINANCE_BRIGHT_THRESHOLD = 140; -const LUMINANCE_STD_NOISY_THRESHOLD = 28; -const ACUTANCE_NOISY_THRESHOLD = 8; -const ACUTANCE_STD_NOISY_THRESHOLD = 6; - -/** - * @param {number} x - * @param {number} y - * @param {number} width - * @param {number} height - * @param {any} returnRawValues - */ -function getCharacteristicsForArea(x, y, width, height, returnRawValues) { - let background = this._backgroundSource.getBackground(this._monitorIndex); - let metaBackground = background.background; - - let areaIsNoisy, areaIsDark, areaIsBright; - - areaIsNoisy = false; - areaIsDark = false; - areaIsBright = false; - - // Always return false for animated backgrounds, we don't want to - // do those calculations on every animation frame. - if (background.isAnimated()) - return [false]; - - let { mean_luminance, luminance_variance, mean_acutance, acutance_variance } = - ColorUtil.get_background_color_information(metaBackground, x, y, width, height); - - let luminanceStd = Math.sqrt(luminance_variance); - let acutanceStd = Math.sqrt(acutance_variance); - - if (mean_luminance < LUMINANCE_DARK_THRESHOLD) - areaIsDark = true; - else if (mean_luminance > LUMINANCE_BRIGHT_THRESHOLD) - areaIsBright = true; - - if (mean_acutance > ACUTANCE_NOISY_THRESHOLD || - (mean_acutance * 4 > ACUTANCE_NOISY_THRESHOLD && - acutanceStd > ACUTANCE_STD_NOISY_THRESHOLD) || - luminanceStd > LUMINANCE_STD_NOISY_THRESHOLD || - (areaIsDark && - mean_luminance + luminanceStd > LUMINANCE_BRIGHT_THRESHOLD) || - (areaIsBright && - mean_luminance - luminanceStd < LUMINANCE_DARK_THRESHOLD)) - areaIsNoisy = true; - - if (returnRawValues) - return [true, areaIsNoisy, areaIsDark, areaIsBright, mean_luminance, luminanceStd, mean_acutance, acutanceStd]; - else - return [true, areaIsNoisy, areaIsDark, areaIsBright]; -} \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/color_util.js b/dynamic-panel-transparency@rockon999.github.io/color_util.js deleted file mode 100644 index b508b06..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/color_util.js +++ /dev/null @@ -1,220 +0,0 @@ -/** @type {Module} */ -var module = {}; - -const SATURATION_WEIGHT = 1.5; -const WEIGHT_THRESHOLD = 1.0; - -const { GdkPixbuf } = imports.gi; - -let id = -1; - -/** - * @param {number} [monitorIndex] - * @param {(info: { mean_luminance: number; luminance_variance: number; mean_acutance: number; acutance_variance: number; }) => void} infoCallback - */ -function getBackgroundColorInfo(monitorIndex = 0, infoCallback) { - log('getting info...'); - const cache = imports.ui.background.getBackgroundCache(); - const source = cache.getBackgroundSource(imports.ui.main.layoutManager, imports.ui.background.BACKGROUND_SCHEMA); - - let background = source.getBackground(monitorIndex); - - if (id > -1) { - background.disconnect(id); - } - - function analyze() { - log('analyzing...'); - const file = background._file; - - if (file) { - log(`file: ${file.get_path()}`) - let background = GdkPixbuf.Pixbuf.new_from_file(file.get_path()); - log('loaded image'); - let monitor = imports.ui.main.layoutManager.monitors[monitorIndex]; - log(`area: ${30} x ${monitor.width}`); - infoCallback(get_background_color_information(background, 0, 0, 30, monitor.width)); - } else { - log(file); - - infoCallback(null); - } - } - - function handler() { - log('changed!'); - if (id > -1) { - background.disconnect(id); - } - - background = source.getBackground(monitorIndex); - - id = background.connect('bg-changed', handler); - - analyze(); - - } - - id = background.connect('bg-changed', handler); - - log('backgrounded:') - log(`${Object.keys(background)}`); - analyze(); -} - -/** - * @param {*} source - * @param {number} reference_x - * @param {number} reference_y - * @param {number} reference_height - * @param {number} reference_width - */ -function get_background_color_information(source, reference_x, reference_y, reference_height, reference_width) { - let bg_actor_width = Math.floor(source.get_width()); - let bg_actor_height = Math.floor(source.get_height()); - - // A commit in mutter added some padding to offscreen textures, so we - // need to avoid looking at the edges of the texture as it often has a - // black border. The commit specifies that up to 1.75px around each side - // could now be padding, so cut off 2px from left and top if necessary - // (https://gitlab.gnome.org/GNOME/mutter/commit/8655bc5d8de6a969e0ca83eff8e450f62d28fbee) - let x_start = reference_x; - if (x_start < 2) { - x_start = 2; - } - - let y_start = reference_y; - if (y_start < 2) { - y_start = 2; - } - - // For the same reason as above, we need to not use the bottom and right - // 2px of the texture. However, if the caller has specified an area of - // interest that already misses these parts, use that instead, otherwise - // chop 2px - - const width = Math.min(bg_actor_width - 2 - reference_x, reference_width); - const height = Math.min(bg_actor_height - 2 - reference_y, reference_height); - - if (x_start > bg_actor_width || y_start > bg_actor_height || width <= 0 || height <= 0) { - throw new Error(`Invalid rectangle specified: ${x_start}, ${y_start}, ${width}, ${height}`); - } - - let mean_acutance = 0, mean_luminance = 0, r_total = 0, g_total = 0, b_total = 0; - - let pixel_lums = new Float64Array((x_start + width + 1) * (y_start + height + 1)); - - let pixels = source.get_pixels(); - - log('got pixels!'); - const size = width * height; - - let mean_squares = 0; - let pixel = 0; - - let max, min, score, delta, score_total = 0, r_total2 = 0, g_total2 = 0, b_total2 = 0; - - /* - * code to calculate weighted average color is copied from - * plank's lib/Drawing/DrawingService.vala average_color() - * http://bazaar.launchpad.net/~docky-core/plank/trunk/view/head:/lib/Drawing/DrawingService.vala - */ - for (let y = y_start; y < (y_start + height); y++) { - for (let x = x_start; x < (x_start + width); x++) { - const i = (y * width * 4) + (x * 4); - - let b = pixels[i]; - let g = pixels[i + 1]; - let r = pixels[i + 2]; - - pixel = (0.3 * r + 0.59 * g + 0.11 * b); - - pixel_lums[y * width + x] = pixel; - - min = Math.min(r, Math.min(g, b)); - max = Math.max(r, Math.max(g, b)); - - delta = max - min; - - /* prefer colored pixels over shades of grey */ - score = SATURATION_WEIGHT * (delta == 0 ? 0.0 : delta / max); - - r_total += score * r; - g_total += score * g; - b_total += score * b; - score_total += score; - - r_total += r; - g_total += g; - b_total += b; - - mean_luminance += pixel; - mean_squares += pixel * pixel; - } - } - - for (let y = y_start + 1; y < (y_start + height) - 1; y++) { - for (let x = x_start + 1; x < (x_start + width) - 1; x++) { - let acutance = - (pixel_lums[y * width + x] * 4) - - ( - pixel_lums[y * width + x - 1] + - pixel_lums[y * width + x + 1] + - pixel_lums[(y - 1) * width + x] + - pixel_lums[(y + 1) * width + x] - ); - - mean_acutance += acutance > 0 ? acutance : -acutance; - } - } - - score_total /= size; - b_total /= size; - g_total /= size; - r_total /= size; - - if (score_total > 0.0) { - b_total /= score_total; - g_total /= score_total; - r_total /= score_total; - } - - b_total2 /= size * 255; - g_total2 /= size * 255; - r_total2 /= size * 255; - - /* - * combine weighted and not weighted sum depending on the average "saturation" - * if saturation isn't reasonable enough - * s = 0.0 -> f = 0.0 ; s = WEIGHT_THRESHOLD -> f = 1.0 - */ - if (score_total <= WEIGHT_THRESHOLD) { - let f = 1.0 / WEIGHT_THRESHOLD * score_total; - let rf = 1.0 - f; - - b_total = b_total * f + b_total2 * rf; - g_total = g_total * f + g_total2 * rf; - r_total = r_total * f + r_total2 * rf; - } - - /* there shouldn't be values larger then 1.0 */ - let max_val = Math.max(r_total, Math.max(g_total, b_total)); - - if (max_val > 1.0) { - b_total /= max_val; - g_total /= max_val; - r_total /= max_val; - } - - mean_luminance /= size; - mean_squares = mean_squares / size; - - let luminance_variance = (mean_squares - (mean_luminance * mean_luminance)); - let acutance_variance = mean_squares - (mean_acutance * mean_acutance); - - mean_acutance /= (width - 2) * (height - 2); - log('calculated') - return { mean_luminance, luminance_variance, mean_acutance, acutance_variance }; -} - -module.exports = { getBackgroundColorInfo, get_background_color_information }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/compat.js b/dynamic-panel-transparency@rockon999.github.io/compat.js deleted file mode 100644 index 0dbcd3c..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/compat.js +++ /dev/null @@ -1,17 +0,0 @@ -/** @type {Module} */ -var module = { }; - -const St = imports.gi.St; - -/** - * @param {object} obj - */ -function getActorOf(obj) { - if (obj instanceof St.Widget) { - return obj; - } - - return /** @type {any} */ (obj).actor; -} - -module.exports = { getActorOf }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/events.js b/dynamic-panel-transparency@rockon999.github.io/events.js deleted file mode 100644 index 16f0ddf..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/events.js +++ /dev/null @@ -1,299 +0,0 @@ -/** @type {Module} */ -const module = {}; - -const GLib = imports.gi.GLib; -const Gio = imports.gi.Gio; -const Shell = imports.gi.Shell; - -const Main = imports.ui.main; - -const Me = imports.misc.extensionUtils.getCurrentExtension(); - -const Convenience = Me.imports.convenience; -const Extension = Me.imports.extension; -const Settings = Me.imports.settings; - -const USER_THEME_SCHEMA = 'org.gnome.shell.extensions.user-theme'; - -/** @typedef {typeof Extension.DynamicPanel.prototype} DynamicPanel */ - -/** - * @param {DynamicPanel[]} panels - */ -function forceSyncCheck(panels) { - panels.forEach(panel => panel.intellifader.forceSyncCheck()); -} - -/** - * @param {DynamicPanel[]} panels - */ -function syncCheck(panels) { - panels.forEach(panel => panel.intellifader.syncCheck()); -} - -/** - * @param {DynamicPanel[]} panels - */ -function asyncCheck(panels) { - panels.forEach(panel => panel.intellifader.asyncCheck()); -} - - -var EventManager = class EventManager { - - /** - * Initialize. - * @param {any[]} panels - */ - constructor(panels) { - this.panels = panels; - - const settings = Settings.get(); - - this._wm_tracker = Shell.WindowTracker.get_default(); - - this._overviewHidingSig = Main.overview.connect('hiding', this._overviewHiding.bind(this)); - - if (settings.transitionWithOverview()) { - this._overviewShownSig = Main.overview.connect('showing', this._overviewShown.bind(this)); - } else { - this._overviewShownSig = Main.overview.connect('shown', this._overviewShown.bind(this)); - } - - const windows = global.get_window_actors(); - - for (const window_actor of windows) { - /* Simulate window creation event, null container because _windowActorAdded doesn't utilize containers */ - this._windowActorAdded(null, window_actor, false); - } - - this._workspaceSwitchSig = global.window_manager.connect_after('switch-workspace', this._workspaceSwitched.bind(this)); - - const screen = global.screen || global.display; - - if (screen) { - this._windowRestackedSig = screen.connect_after('restacked', this._windowRestacked.bind(this)); - } else { - log('[Dynamic Panel Transparency] Error could not register \'restacked\' event.'); - } - - this._windowActorAddedSig = global.window_group.connect('actor-added', this._windowActorAdded.bind(this)); - this._windowActorRemovedSig = global.window_group.connect('actor-removed', this._windowActorRemoved.bind(this)); - - this._appFocusedSig = this._wm_tracker.connect_after('notify::focus-app', this._windowRestacked.bind(this)); - - this._theme_settings = null; - this._userThemeChangedSig = null; - - try { - let schemaObj = Convenience.getSchemaObj(USER_THEME_SCHEMA, true); - - if (schemaObj) { - this._theme_settings = new Gio.Settings({ - settings_schema: schemaObj - }); - } - } catch (error) { - log('[Dynamic Panel Transparency] Failed to find shell theme settings. Ignore this if you are not using a custom theme.'); - } - - if (this._theme_settings) { - this._userThemeChangedSig = this._theme_settings.connect_after('changed::name', this._userThemeChanged.bind(this)); - }; - this._windowUnminimizeSig = undefined; - } - - /** - * @param {import('gobject').Object} obj - * @param {number} sig - */ - disconnect(obj, sig) { - try { - if (sig != null && obj) { - obj.disconnect(sig); - } - } catch (error) { - log('[Dynamic Panel Transparency] Failed to disconnect signal: ' + error); - } - } - - /** - * Don't want to hold onto anything that isn't ours. - * @returns {void} - */ - cleanup() { - /* Disconnect Signals */ - if (this._windowUnminimizeSig) { - this.disconnect(global.window_manager, this._windowUnminimizeSig); - } - - this.disconnect(Main.overview, this._overviewShownSig); - this.disconnect(Main.overview, this._overviewHidingSig); - - this.disconnect(global.window_manager, this._workspaceSwitchSig); - - this.disconnect(global.window_group, this._windowActorAddedSig); - this.disconnect(global.window_group, this._windowActorRemovedSig); - - const screen = global.screen || global.display; - - if (screen) { - this.disconnect(screen, this._windowRestackedSig); - } else { - log('[Dynamic Panel Transparency] Error could not disconnect \'restacked\' event.'); - } - - this.disconnect(this._wm_tracker, this._appFocusedSig); - - if (this._theme_settings && this._userThemeChangedSig) { - this.disconnect(this._theme_settings, this._userThemeChangedSig); - } - - const windows = global.get_window_actors(); - - for (const window_actor of windows) { - if (typeof (window_actor._dpt_signals) !== 'undefined') { - for (let signalId of window_actor._dpt_signals) { - this.disconnect(window_actor, signalId); - } - } - - delete window_actor._dpt_signals; - delete window_actor._dpt_tracking; - } - - /* Cleanup Signals */ - this._windowRestackedSig = null; - this._overviewShownSig = null; - this._overviewHidingSig = null; - this._windowActorRemovedSig = null; - this._workspaceSwitchSig = null; - this._userThemeChangedSig = null; - this._windowActorAddedSig = null; - - this._theme_settings = null; - - this._wm_tracker = null; - } - - /* Event Handlers */ - - /** - * Called whenever the overview is shown. - * - */ - _overviewShown() { - this.panels.forEach(panel => { - if (!panel.transitions.is_blank()) { - panel.transitions.blank_fade_out(); - } - - const settings = Settings.get(); - - if (settings.enableTextColor() && (settings.enableMaximizedTextColor() || settings.enableOverviewTextColor())) { - if (settings.enableOverviewTextColor()) { - panel.themer.remove_text_color(); - panel.themer.set_text_color('maximized'); - } else { - panel.themer.remove_text_color('maximized'); - panel.themer.set_text_color(); - } - } - }); - } - - _overviewHiding() { - forceSyncCheck(this.panels); - } - - /** - * Called whenever a window actor is removed. - * @param {any} _container - * @param {any} window_actor - */ - _windowActorRemoved(_container, window_actor) { - if (typeof (window_actor._dpt_tracking) === 'undefined') { - return; - } - - /* Remove our tracking variable. */ - delete window_actor._dpt_tracking; - - if (typeof (window_actor._dpt_signals) !== 'undefined') { - for (let signalId of window_actor._dpt_signals) { - window_actor.disconnect(signalId); - } - } - - delete window_actor._dpt_signals; - - asyncCheck(this.panels); - } - - /** - * Called whenever the User Theme extension updates the current theme. - * - */ - - _userThemeChanged() { - log('[Dynamic Panel Transparency] User theme changed.'); - - // todo - Extension.disable(); - Extension.enable(); - } - - /** - * Called whenever a window is created in the shell. - * @param {any} _window_group - * @param {any} window_actor - */ - _windowActorAdded(_window_group, window_actor, force = true) { - if (window_actor && (force || typeof (window_actor._dpt_tracking) === 'undefined')) { - window_actor._dpt_tracking = true; - const ac_wId = window_actor.connect('allocation-changed', (function() { - asyncCheck(this.panels); - }).bind(this)); - const v_wId = window_actor.connect('notify::visible', (function() { - asyncCheck(this.panels); - }).bind(this)); - window_actor._dpt_signals = [ac_wId, v_wId]; - - asyncCheck(this.panels); - } - } - - /** - * SPECIAL_CASE: Only update if we're using per-app settings or is desktop icons are enabled. - * - */ - _windowRestacked() { - const settings = Settings.get(); - /* Don't allow restacks while the overview is transitioning. */ - if (!Main.overview.visible) { - /* Detect if desktop icons are enabled. */ - if (settings.gs_show_desktop()) { - asyncCheck(this.panels); - } - } - } - - /** - * SPECIAL_CASE: Update logic requires the workspace that we'll be switching to. - * @param {any} _wm - * @param {any} _from - * @param {any} _to - * @param {any} _direction - */ - _workspaceSwitched(_wm, _from, _to, _direction) { - const settings = Settings.get(); - - /* Detect if desktop icons are enabled. */ - if (!settings.gs_show_desktop()) { - syncCheck(this.panels); - } - } - -} - -module.exports = { EventManager }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/prefs.js b/dynamic-panel-transparency@rockon999.github.io/prefs.js deleted file mode 100644 index 519a8cd..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/prefs.js +++ /dev/null @@ -1,398 +0,0 @@ -/** @type {Module} */ -const module = {}; - -const { GLib, Gdk, Gtk } = imports.gi; - -const Me = imports.misc.extensionUtils.getCurrentExtension(); - -const Convenience = Me.imports.convenience; -const Util = Me.imports.util; - -const Gettext = imports.gettext.domain('dynamic-panel-transparency'); -const _ = Gettext.gettext; - -const gtk30_ = imports.gettext.domain('gtk30').gettext; - -/* Settings Keys */ -const SETTINGS_ENABLE_BACKGROUND_COLOR = 'enable-background-color'; -const SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR = 'enable-maximized-text-color'; -const SETTINGS_ENABLE_OPACITY = 'enable-opacity'; -const SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR = 'enable-overview-text-color'; -const SETTINGS_ENABLE_TEXT_COLOR = 'enable-text-color'; -const SETTINGS_ICON_SHADOW = 'icon-shadow'; -const SETTINGS_MAXIMIZED_OPACITY = 'maximized-opacity'; -const SETTINGS_MAXIMIZED_TEXT_COLOR = 'maximized-text-color'; -const SETTINGS_PANEL_COLOR = 'panel-color'; -const SETTINGS_REMOVE_PANEL_STYLING = 'remove-panel-styling'; -const SETTINGS_TEXT_COLOR = 'text-color'; -const SETTINGS_TEXT_SHADOW = 'text-shadow'; -const SETTINGS_TRANSITION_SPEED = 'transition-speed'; -const SETTINGS_TRANSITION_WITH_OVERVIEW = 'transition-with-overview'; -const SETTINGS_TRANSITION_WINDOWS_TOUCH = 'transition-windows-touch'; -const SETTINGS_UNMAXIMIZED_OPACITY = 'unmaximized-opacity'; - -const Page = { TRANSITIONS: 0, FOREGROUND: 1, BACKGROUND: 2, APP_TWEAKS: 3, ABOUT: 4 }; -Object.freeze(Page); - -/* Color Array Indices */ -const RED = 0; -const GREEN = 1; -const BLUE = 2; -const ALPHA = 3; - -/* UI spacing & similar values. */ -const WEBSITE_LABEL_BOTTOM_MARGIN = 50; -const WEBSITE_LABEL_TOP_MARGIN = 20; - -/* Color Scaling Factor (Byte to Decimal) */ -const SCALE_FACTOR = 255.9999999; - -function init() { - Convenience.initTranslations(); -} - -/* UI Setup */ -function buildPrefsWidget() { - /* Stores settings until the user applies them. */ - - /* Get Settings */ - let settings = Convenience.getSettings(); - /* Create a UI Builder */ - let builder = new Gtk.Builder(); - /* Setup Translation */ - builder.set_translation_domain(Me.metadata['gettext-domain']); - /* Get UI File */ - builder.add_from_file(Me.path + '/prefs.ui'); - - /* Main Widget (Grid) */ - /** @type {import('gtk').Grid} */ - let main_widget = (builder.get_object('main_box')); - - /* Tabs */ - /** @type {import('gtk').Notebook} */ - let main_notebook = (builder.get_object('main_notebook')); - - /* Used for special functions occasionally. */ - /** @type {import('gtk').Button} */ - let extra_btn = (builder.get_object('extra_btn')); - - /* Only show the panel & extra button on relevant pages. */ - main_notebook.connect('switch-page', function(notebook, page, index) { - if (index === Page.APP_TWEAKS) { - extra_btn.show(); - } else { - extra_btn.hide(); - } - }); - - { - /* Transition speed control */ - /** @type {import('gtk').Scale} */ - let speed_scale = (builder.get_object('speed_scale')); - /* Init value. */ - speed_scale.adjustment.set_value(settings.get_int(SETTINGS_TRANSITION_SPEED)); - /* Add default marking. */ - speed_scale.add_mark(settings.get_default_value(SETTINGS_TRANSITION_SPEED).unpack(), Gtk.PositionType.BOTTOM, _("default")); - /* Add formatting */ - speed_scale.connect('format-value', (scale, value) => { - return value + 'ms'; - }); - speed_scale.connect('value-changed', (widget) => { - settings.set_value(SETTINGS_TRANSITION_SPEED, new GLib.Variant('i', widget.adjustment.get_value())); - }); - - - /** @type {import('gtk').CheckButton} */ - let transition_windows_touch = (builder.get_object('transition_windows_touch_check')); - transition_windows_touch.set_active(settings.get_boolean(SETTINGS_TRANSITION_WINDOWS_TOUCH)); - - transition_windows_touch.connect('toggled', (widget) => { - settings.set_value(SETTINGS_TRANSITION_WINDOWS_TOUCH, new GLib.Variant('b', widget.get_active())); - }); - - /** @type {import('gtk').CheckButton} */ - let transition_with_overview = (builder.get_object('transition_with_overview_check')); - transition_with_overview.set_active(settings.get_boolean(SETTINGS_TRANSITION_WITH_OVERVIEW)); - - transition_with_overview.connect('toggled', (widget) => { - settings.set_value(SETTINGS_TRANSITION_WITH_OVERVIEW, new GLib.Variant('b', widget.get_active())); - - }); - } - - /* Setup foreground tab */ - { - /** @type {import('gtk').Switch} */ - let text_color_switch = (builder.get_object('text_color_switch')); - /** @type {import('gtk').Revealer} */ - let text_color_revealer = (builder.get_object('text_color_revealer')); - - text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_TEXT_COLOR)); - text_color_switch.connect('state-set', (widget, state) => { - settings.set_value(SETTINGS_ENABLE_TEXT_COLOR, new GLib.Variant('b', state)); - text_color_revealer.set_reveal_child(state); - - }); - - /** @type {import('gtk').CheckButton} */ - let maximized_text_color_switch = (builder.get_object('maximized_text_color_check')); - maximized_text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR)); - - maximized_text_color_switch.connect('toggled', (widget) => { - settings.set_value(SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR, new GLib.Variant('b', widget.get_active())); - }); - - /** @type {import('gtk').CheckButton} */ - let overview_text_color_switch = (builder.get_object('overview_text_color_check')); - overview_text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR)); - - overview_text_color_switch.connect('toggled', (widget) => { - settings.set_value(SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR, new GLib.Variant('b', widget.get_active())); - }); - - /** @type {import('gtk').CheckButton} */ - let remove_panel_styling_check = (builder.get_object('remove_panel_styling_check')); - remove_panel_styling_check.set_active(settings.get_boolean(SETTINGS_REMOVE_PANEL_STYLING)); - - remove_panel_styling_check.connect('toggled', (widget) => { - settings.set_value(SETTINGS_REMOVE_PANEL_STYLING, new GLib.Variant('b', widget.get_active())); - }); - - /** @type {import('gtk').ColorButton} */ - let maximized_text_color_btn = (builder.get_object('maximized_text_color_btn')); - let maximized_text_color = settings.get_value(SETTINGS_MAXIMIZED_TEXT_COLOR).deep_unpack(); - - let css_color = 'rgba(' + maximized_text_color[RED] + ',' + maximized_text_color[GREEN] + ',' + maximized_text_color[BLUE] + ', 1.0)'; - let scaled_color = new Gdk.RGBA(); - - if (scaled_color.parse(css_color)) { - maximized_text_color_btn.set_rgba(scaled_color); - } - - maximized_text_color_btn.connect('color-set', (color_btn) => { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let rgb = [color.red, color.green, color.blue]; - - settings.set_value(SETTINGS_MAXIMIZED_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); - }); - - /** @type {import('gtk').ColorButton} */ - let text_color_btn = (builder.get_object('text_color_btn')); - let text_color = settings.get_value(SETTINGS_TEXT_COLOR).deep_unpack(); - - css_color = 'rgba(' + text_color[RED] + ',' + text_color[GREEN] + ',' + text_color[BLUE] + ', 1.0)'; - scaled_color = new Gdk.RGBA(); - - if (scaled_color.parse(css_color)) { - text_color_btn.set_rgba(scaled_color); - } - - text_color_btn.connect('color-set', color_btn => { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let rgb = [color.red, color.green, color.blue]; - - settings.set_value(SETTINGS_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); - - }); - - /** @type {import('gtk').Switch} */ - let text_shadow_switch = (builder.get_object('text_shadow_switch')); - - text_shadow_switch.set_active(settings.get_boolean(SETTINGS_TEXT_SHADOW)); - - text_shadow_switch.connect('state-set', (widget, state) => { - settings.set_value(SETTINGS_TEXT_SHADOW, new GLib.Variant('b', state)); - - }); - - /** @type {import('gtk').Switch} */ - let icon_shadow = (builder.get_object('icon_shadow_switch')); - - icon_shadow.set_active(settings.get_boolean(SETTINGS_ICON_SHADOW)); - - icon_shadow.connect('state-set', (widget, state) => { - settings.set_value(SETTINGS_ICON_SHADOW, new GLib.Variant('b', state)); - }); - - /** @type {import('gtk').SpinButton} */ - let icon_shadow_vertical_offset = (builder.get_object('icon_shadow_vertical_offset')); - } - - /* Setup Background Tab */ - { - /** @type {import('gtk').Switch} */ - let background_color_switch = (builder.get_object('background_color_switch')); - /** @type {import('gtk').Switch} */ - let opacity_switch = (builder.get_object('opacity_switch')); - /** @type {import('gtk').Revealer} */ - let background_color_revealer = (builder.get_object('background_color_revealer')); - /** @type {import('gtk').Revealer} */ - let opacity_revealer = (builder.get_object('opacity_revealer')); - - background_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_COLOR)); - background_color_switch.connect('state-set', (widget, state) => { - settings.set_value(SETTINGS_ENABLE_BACKGROUND_COLOR, new GLib.Variant('b', state)); - background_color_revealer.set_reveal_child(state); - }); - - opacity_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_OPACITY)); - opacity_switch.connect('state-set', (widget, state) => { - settings.set_value(SETTINGS_ENABLE_OPACITY, new GLib.Variant('b', state)); - opacity_revealer.set_reveal_child(state); - - }); - - /* Maximum opacity control */ - /** @type {import('gtk').Scale} */ - let maximum_scale = (builder.get_object('maximum_scale')); - /* Init value. */ - maximum_scale.adjustment.set_value(settings.get_int(SETTINGS_MAXIMIZED_OPACITY)); - /* Add formatting */ - maximum_scale.connect('format-value', (scale, value) => { - return (((value / SCALE_FACTOR) * 100).toFixed(0) + '%'); // eslint-disable-line no-magic-numbers - }); - maximum_scale.connect('value-changed', (widget) => { - settings.set_value(SETTINGS_MAXIMIZED_OPACITY, new GLib.Variant('i', widget.adjustment.get_value())); - }); - - /* Minimum opacity control */ - /** @type {import('gtk').Scale} */ - let minimum_scale = (builder.get_object('minimum_scale')); - /* Init value. */ - minimum_scale.adjustment.set_value(settings.get_int(SETTINGS_UNMAXIMIZED_OPACITY)); - /* Add formatting */ - minimum_scale.connect('format-value', (scale, value) => { - return ((value / SCALE_FACTOR) * 100).toFixed(0) + '%'; // eslint-disable-line no-magic-numbers - }); - minimum_scale.connect('value-changed', (widget) => { - settings.set_value(SETTINGS_UNMAXIMIZED_OPACITY, new GLib.Variant('i', widget.adjustment.get_value())); - }); - - /* Convert & scale color. */ - let panel_color = settings.get_value(SETTINGS_PANEL_COLOR).deep_unpack(); - - /** @type {import('gtk').ColorButton} */ - let color_btn = (builder.get_object('color_btn')); - let css_color = 'rgba(' + panel_color[RED] + ',' + panel_color[GREEN] + ',' + panel_color[BLUE] + ', 1.0)'; - - let scaled_color = new Gdk.RGBA(); - if (scaled_color.parse(css_color)) { - color_btn.set_rgba(scaled_color); - } - color_btn.connect('color-set', (color_btn) => { - let color = Util.gdk_to_css_color(color_btn.get_rgba()); - let rgb = [color.red, color.green, color.blue]; - - settings.set_value(SETTINGS_PANEL_COLOR, new GLib.Variant('ai', rgb)); - }); - } - - /* Util function to find UI elements in a GTK dialog. */ - /** - * - * @param {import('gtk').Container} container - * @param {string[]} names - * @param {number} level - * - * @returns {import('gtk').Widget} - */ - function find(container, names, level = 0) { - let target = null; - container.forall((child, data) => { - if (child instanceof Gtk.Container) { // TODO - check this addition - if (child.get_name() === names[level]) { - if (++level === names.length) { - target = child; - } else { - target = find(child, names, level); - } - } - } - }); - return target; - } - - /* Setup About Tab */ - { - /* Find the stack */ - /** @type {import('gtk').AboutDialog} */ - let about_dialog = (builder.get_object('about_dialog')); - about_dialog.set_version('v' + Me.metadata['version']); - - let contents = about_dialog.get_child(); - - if (contents instanceof Gtk.Container) { - let stack = find(contents, ['box', 'stack']); - if (stack instanceof Gtk.Stack) { - /* Find the license page. */ - let license_page = find(stack, ['license_page']); - - /* Get rid of that pesky license page. */ - stack.remove(license_page); - - /* Strip the dialog of its content. */ - about_dialog.remove(contents); - - /* Link the stack switcher (I hate header bars sometimes.) */ - /** @type {import('gtk').StackSwitcher} */ - let stack_switcher = (builder.get_object('about_switcher')); - stack_switcher.set_stack(stack); - - /* Transfer the contents. */ - - /** @type {import('gtk').Box} */ - let about_box = (builder.get_object('about_box')); - about_box.add(contents); - - /* Add some space to the about page. Was a little cramped... */ - let found_box = find(stack, ['page_vbox', 'hbox']); - if (found_box === null) { - found_box = find(stack, ['page_vbox']); - } - - if (found_box instanceof Gtk.Box) { - let website_label = find(found_box, ['website_label']); - - if (website_label !== null) { - found_box.remove(website_label); - - let new_label = Gtk.LinkButton.new_with_label('http://evanwelsh.com/dynamic-panel-transparency', gtk30_('Website')); - - new_label.set_margin_top(WEBSITE_LABEL_TOP_MARGIN); - new_label.set_margin_bottom(WEBSITE_LABEL_BOTTOM_MARGIN); - found_box.add(new_label); - } - } - } - } - } - - let widget_parent = main_widget.get_toplevel(); - - /* Fix revealer sizing issues. */ - widget_parent.connect('realize', () => { - extra_btn.hide(); - /* We have to re-grab this object as it isn't in this scope. */ - /** @type {import('gtk').Revealer} */ - let text_color_revealer = (builder.get_object('text_color_revealer')); - text_color_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_TEXT_COLOR)); - /** @type {import('gtk').Revealer} */ - let background_color_revealer = (builder.get_object('background_color_revealer')); - background_color_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_COLOR)); - /** @type {import('gtk').Revealer} */ - let opacity_revealer = (builder.get_object('opacity_revealer')); - opacity_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ENABLE_OPACITY)); - /** @type {import('gtk').Revealer} */ - let text_shadow_revealer = (builder.get_object('text_shadow_revealer')); - text_shadow_revealer.set_reveal_child(settings.get_boolean(SETTINGS_TEXT_SHADOW)); - /** @type {import('gtk').Revealer} */ - let icon_shadow_revealer = (builder.get_object('icon_shadow_revealer')); - icon_shadow_revealer.set_reveal_child(settings.get_boolean(SETTINGS_ICON_SHADOW)); - }); - - /* Return main widget. */ - main_widget.show_all(); - return main_widget; -} - -module.exports = { init, buildPrefsWidget }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/transitions.js b/dynamic-panel-transparency@rockon999.github.io/transitions.js deleted file mode 100644 index 36f9d6f..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/transitions.js +++ /dev/null @@ -1,119 +0,0 @@ -/** @type {Module} */ -const module = {}; - -const Mainloop = imports.mainloop; - -const { St } = imports.gi; - -const Me = imports.misc.extensionUtils.getCurrentExtension(); - -const Settings = Me.imports.settings; - -const Equations = imports.tweener.equations; - -const { Themer } = Me.imports.theming; - -const CORNER_UPDATE_FREQUENCY = 30; - -var TransitionManager = class TransitionManager { - /** - * Initialize. - * @param {typeof Themer.prototype} themer - */ - constructor(themer) { - this.themer = themer; - - this.blank = false; - this.transparent = false; - } - - is_transparent() { - return this.transparent; - } - - is_blank() { - return this.blank; - } - - /** - * Free-up any held assets on disable. - * - */ - cleanup() { - } - - /** - * Fades the panel into the unmaximized (minimum) alpha. Used for closing the overview. - */ - minimum_fade_in() { - /* The CSS backend doesn't need different starting/ending values */ - this.fade_out(); - } - - /** - * Fades the panel into the unmaximized (maximum) alpha. - * - */ - fade_in() { - const settings = Settings.get(); - if (!settings._removePanelStyling()) { - this.themer.reapply_panel_styling(); - this.themer.reapply_panel_background_image(); - } - - if (settings.enableCustomBackgroundColor()) { - this.themer.set_maximized_background_color(); - this.themer.remove_background_color({ - exclude_base: true - }); - } else { - this.themer.set_maximized_auto_background_color(); - } - - this.blank = false; - this.transparent = false; - } - - /** - * Fades the panel into the unmaximized (minimum) alpha. - * - */ - fade_out() { - const settings = Settings.get(); - - this.themer.strip_panel_background_image(); - this.themer.strip_panel_styling(); - - if (settings.enableCustomBackgroundColor()) { - this.themer.set_unmaximized_background_color(); - this.themer.remove_background_color({ - exclude_base: true, - exclude_unmaximized_variant_only: true - }); - } else { - this.themer.set_unmaximized_auto_background_color(); - } - - /* Keep the status up to date */ - this.blank = false; - this.transparent = true; - } - - /** - * Fades the panel's alpha to 0. Used for opening the overview & displaying the screenShield. - * - */ - blank_fade_out() { - /* Completely remove every possible background style... */ - this.themer.remove_background_color(); - this.themer.set_blank(); - - this.themer.strip_panel_background_image(); - this.themer.strip_panel_styling(); - - this.blank = true; - this.transparent = true; - } -} - -module.exports = { TransitionManager }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts b/dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts deleted file mode 100644 index 8fb4861..0000000 --- a/dynamic-panel-transparency@rockon999.github.io/types/imports.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -declare interface ImportMap { - compat: typeof import('../compat'); - intellifade: typeof import('../intellifade'); - theming: typeof import('../theming'); - convenience: typeof import('../convenience'); - events: typeof import('../events'); - extension: typeof import('../extension'); - settings: typeof import('../settings'); - util: typeof import('../util'); - transitions: typeof import('../transitions'); - color_util: typeof import('../color_util'); -} - -declare interface CurrentExtension { - metadata: typeof import('../metadata.json'); -} diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/atk.d.ts b/gi/atk.d.ts similarity index 90% rename from dynamic-panel-transparency@rockon999.github.io/gi/atk.d.ts rename to gi/atk.d.ts index 374ba01..a64ea1b 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/atk.d.ts +++ b/gi/atk.d.ts @@ -407,10 +407,10 @@ export module GObjectAccessible { } } export class GObjectAccessible extends Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members - get_object(): GObject.Object; + get_object(): T; static for_object(obj: GObject.Object): Object; } export module Hyperlink { @@ -423,8 +423,8 @@ export module Hyperlink { } } export class Hyperlink extends GObject.Object implements Action { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties end_index: number; number_of_anchors: number; @@ -477,8 +477,8 @@ export module Misc { } } export class Misc extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members threads_enter(): void; threads_leave(): void; @@ -492,8 +492,8 @@ export module NoOpObject { } } export class NoOpObject extends Object implements Action, Component, Document, EditableText, Hypertext, Image, Selection, Table, TableCell, Text, Value, Window { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](obj: GObject.Object): NoOpObject; // Implemented Members @@ -751,9 +751,9 @@ export class NoOpObject extends Object implements Action, Component, Document, E get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -761,9 +761,9 @@ export class NoOpObject extends Object implements Action, Component, Document, E vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } export module NoOpObjectFactory { @@ -772,8 +772,8 @@ export module NoOpObjectFactory { } } export class NoOpObjectFactory extends ObjectFactory { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): NoOpObjectFactory; } @@ -798,8 +798,8 @@ export module Object { } } export class Object extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties accessible_component_layer: number; accessible_component_mdi_zorder: number; @@ -901,8 +901,8 @@ export module ObjectFactory { } } export class ObjectFactory extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members create_accessible(obj: GObject.Object): Object; get_accessible_type(): GType; @@ -915,8 +915,8 @@ export module Plug { } } export class Plug extends Object implements Component { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): Plug; // Members @@ -962,8 +962,8 @@ export module Registry { } } export class Registry extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields factory_type_registry: GLib.HashTable; factory_singleton_cache: GLib.HashTable; @@ -980,8 +980,8 @@ export module Relation { } } export class Relation extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties relation_type: RelationType; target: GObject.ValueArray; @@ -1001,8 +1001,8 @@ export module RelationSet { } } export class RelationSet extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields relations: any[]; // Constructors @@ -1023,8 +1023,8 @@ export module Socket { } } export class Socket extends Object implements Component { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): Socket; // Members @@ -1070,8 +1070,8 @@ export module StateSet { } } export class StateSet extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): StateSet; // Members @@ -1092,10 +1092,14 @@ export module Util { } } export class Util extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export class Attribute { + constructor(properties?: { + name?: string; + value?: string; + }); constructor(copy: Attribute); // Fields name: string; @@ -1109,6 +1113,15 @@ export class Implementor { ref_accessible(): Object; } export class KeyEventStruct { + constructor(properties?: { + type?: number; + state?: number; + keyval?: number; + length?: number; + string?: string; + keycode?: number; + timestamp?: number; + }); constructor(copy: KeyEventStruct); // Fields type: number; @@ -1120,6 +1133,11 @@ export class KeyEventStruct { timestamp: number; } export class PropertyValues { + constructor(properties?: { + property_name?: string; + old_value?: GObject.Value; + new_value?: GObject.Value; + }); constructor(copy: PropertyValues); // Fields property_name: string; @@ -1139,6 +1157,12 @@ export class Range { get_upper_limit(): number; } export class Rectangle { + constructor(properties?: { + x?: number; + y?: number; + width?: number; + height?: number; + }); constructor(copy: Rectangle); // Fields x: number; @@ -1147,6 +1171,12 @@ export class Rectangle { height: number; } export class TextRange { + constructor(properties?: { + bounds?: TextRectangle; + start_offset?: number; + end_offset?: number; + content?: string; + }); constructor(copy: TextRange); // Fields bounds: TextRectangle; @@ -1155,6 +1185,12 @@ export class TextRange { content: string; } export class TextRectangle { + constructor(properties?: { + x?: number; + y?: number; + width?: number; + height?: number; + }); constructor(copy: TextRectangle); // Fields x: number; @@ -1162,7 +1198,10 @@ export class TextRectangle { width: number; height: number; } -export interface Action { +export interface ActionNamespace { + $gtype: GType; +} +export interface Action extends GObject.Object { // Members do_action(i: number): boolean; get_description(i: number): string | null; @@ -1179,7 +1218,12 @@ export interface Action { vfunc_get_name(i: number): string | null; vfunc_set_description(i: number, desc: string): boolean; } -export interface Component { + +export const Action: ActionNamespace; +export interface ComponentNamespace { + $gtype: GType; +} +export interface Component extends GObject.Object { // Members contains(x: number, y: number, coord_type: CoordType): boolean; get_alpha(): number; @@ -1213,7 +1257,12 @@ export interface Component { vfunc_set_position(x: number, y: number, coord_type: CoordType): boolean; vfunc_set_size(width: number, height: number): boolean; } -export interface Document { + +export const Component: ComponentNamespace; +export interface DocumentNamespace { + $gtype: GType; +} +export interface Document extends GObject.Object { // Members get_attribute_value(attribute_name: string): string | null; get_attributes(): AttributeSet; @@ -1232,7 +1281,12 @@ export interface Document { vfunc_get_page_count(): number; vfunc_set_document_attribute(attribute_name: string, attribute_value: string): boolean; } -export interface EditableText { + +export const Document: DocumentNamespace; +export interface EditableTextNamespace { + $gtype: GType; +} +export interface EditableText extends GObject.Object { // Members copy_text(start_pos: number, end_pos: number): void; cut_text(start_pos: number, end_pos: number): void; @@ -1249,12 +1303,22 @@ export interface EditableText { vfunc_set_run_attributes(attrib_set: AttributeSet, start_offset: number, end_offset: number): boolean; vfunc_set_text_contents(string: string): void; } -export interface HyperlinkImpl { + +export const EditableText: EditableTextNamespace; +export interface HyperlinkImplNamespace { + $gtype: GType; +} +export interface HyperlinkImpl extends GObject.Object { // Members get_hyperlink(): Hyperlink; vfunc_get_hyperlink(): Hyperlink; } -export interface Hypertext { + +export const HyperlinkImpl: HyperlinkImplNamespace; +export interface HypertextNamespace { + $gtype: GType; +} +export interface Hypertext extends GObject.Object { // Members get_link(link_index: number): Hyperlink; get_link_index(char_index: number): number; @@ -1264,7 +1328,12 @@ export interface Hypertext { vfunc_get_n_links(): number; vfunc_link_selected(link_index: number): void; } -export interface Image { + +export const Hypertext: HypertextNamespace; +export interface ImageNamespace { + $gtype: GType; +} +export interface Image extends GObject.Object { // Members get_image_description(): string; get_image_locale(): string | null; @@ -1277,9 +1346,19 @@ export interface Image { vfunc_get_image_size(): [number | null, number | null]; vfunc_set_image_description(description: string): boolean; } -export interface ImplementorIface { + +export const Image: ImageNamespace; +export interface ImplementorIfaceNamespace { + $gtype: GType; +} +export interface ImplementorIface extends GObject.Object { +} + +export const ImplementorIface: ImplementorIfaceNamespace; +export interface SelectionNamespace { + $gtype: GType; } -export interface Selection { +export interface Selection extends GObject.Object { // Members add_selection(i: number): boolean; clear_selection(): boolean; @@ -1297,7 +1376,12 @@ export interface Selection { vfunc_select_all_selection(): boolean; vfunc_selection_changed(): void; } -export interface StreamableContent { + +export const Selection: SelectionNamespace; +export interface StreamableContentNamespace { + $gtype: GType; +} +export interface StreamableContent extends GObject.Object { // Members get_mime_type(i: number): string; get_n_mime_types(): number; @@ -1308,7 +1392,12 @@ export interface StreamableContent { vfunc_get_stream(mime_type: string): GLib.IOChannel; vfunc_get_uri(mime_type: string): string | null; } -export interface Table { + +export const StreamableContent: StreamableContentNamespace; +export interface TableNamespace { + $gtype: GType; +} +export interface Table extends GObject.Object { // Members add_column_selection(column: number): boolean; add_row_selection(row: number): boolean; @@ -1376,7 +1465,12 @@ export interface Table { vfunc_set_row_header(row: number, header: Object): void; vfunc_set_summary(accessible: Object): void; } -export interface TableCell { + +export const Table: TableNamespace; +export interface TableCellNamespace { + $gtype: GType; +} +export interface TableCell extends Object { // Members get_column_header_cells(): Object[]; get_column_span(): number; @@ -1393,10 +1487,13 @@ export interface TableCell { vfunc_get_row_span(): number; vfunc_get_table(): Object; } + +export const TableCell: TableCellNamespace; export interface TextNamespace { + $gtype: GType; free_ranges(ranges: TextRange[]): void; } -export interface Text { +export interface Text extends GObject.Object { // Members add_selection(start_offset: number, end_offset: number): boolean; get_bounded_ranges(rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType): TextRange[]; @@ -1449,7 +1546,10 @@ export interface Text { } export const Text: TextNamespace; -export interface Value { +export interface ValueNamespace { + $gtype: GType; +} +export interface Value extends GObject.Object { // Members get_current_value(): GObject.Value; get_increment(): number; @@ -1457,9 +1557,9 @@ export interface Value { get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -1467,14 +1567,21 @@ export interface Value { vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } -export interface Window { + +export const Value: ValueNamespace; +export interface WindowNamespace { + $gtype: GType; +} +export interface Window extends Object { } -export type AttributeSet = string[]; +export const Window: WindowNamespace; + +export type AttributeSet = GLib.SList; export type State = number; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/cairo.d.ts b/gi/cairo.d.ts similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/gi/cairo.d.ts rename to gi/cairo.d.ts diff --git a/gi/cally.d.ts b/gi/cally.d.ts new file mode 100644 index 0000000..598d84d --- /dev/null +++ b/gi/cally.d.ts @@ -0,0 +1,268 @@ + + +/** + * Cally + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as Clutter from "clutter"; +import * as Atk from "atk"; +type GType = object; + +export function accessibility_init(): boolean; + +export function get_cally_initialized(): boolean; + +export type ActionCallback = (cally_actor: Actor) => void; + +export type ActionFunc = (cally_actor: Actor) => void; +export module Actor { + export interface ConstructorProperties extends Atk.GObjectAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class Actor extends Atk.GObjectAccessible implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](actor: Clutter.Actor): Actor; + // Members + add_action(action_name: string, action_description: string, action_keybinding: string, callback: ActionCallback, notify: GLib.DestroyNotify): number; + remove_action(action_id: number): boolean; + remove_action_by_name(action_name: string): boolean; + // Implemented Members + do_action(i: number): boolean; + get_description(i: number): string | null; + get_description(...args: never[]): never; + get_keybinding(i: number): string | null; + get_localized_name(i: number): string | null; + get_n_actions(): number; + get_name(i: number): string | null; + get_name(...args: never[]): never; + set_description(i: number, desc: string): boolean; + set_description(...args: never[]): never; + vfunc_do_action(i: number): boolean; + vfunc_get_description(i: number): string | null; + vfunc_get_description(...args: never[]): never; + vfunc_get_keybinding(i: number): string | null; + vfunc_get_localized_name(i: number): string | null; + vfunc_get_n_actions(): number; + vfunc_get_name(i: number): string | null; + vfunc_get_name(...args: never[]): never; + vfunc_set_description(i: number, desc: string): boolean; + vfunc_set_description(...args: never[]): never; + contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + get_alpha(): number; + get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_layer(): Atk.Layer; + get_mdi_zorder(): number; + get_position(coord_type: Atk.CoordType): [number | null, number | null]; + get_size(): [number | null, number | null]; + grab_focus(): boolean; + ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + remove_focus_handler(handler_id: number): void; + scroll_to(type: Atk.ScrollType): boolean; + scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + set_size(width: number, height: number): boolean; + vfunc_bounds_changed(bounds: Atk.Rectangle): void; + vfunc_contains(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_get_alpha(): number; + vfunc_get_extents(coord_type: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_layer(): Atk.Layer; + vfunc_get_mdi_zorder(): number; + vfunc_get_position(coord_type: Atk.CoordType): [number | null, number | null]; + vfunc_get_size(): [number | null, number | null]; + vfunc_grab_focus(): boolean; + vfunc_ref_accessible_at_point(x: number, y: number, coord_type: Atk.CoordType): Atk.Object | null; + vfunc_remove_focus_handler(handler_id: number): void; + vfunc_scroll_to(type: Atk.ScrollType): boolean; + vfunc_scroll_to_point(coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: Atk.CoordType): boolean; + vfunc_set_position(x: number, y: number, coord_type: Atk.CoordType): boolean; + vfunc_set_size(width: number, height: number): boolean; +} +export module Clone { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + } +} +export class Clone extends Actor implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](actor: Clutter.Actor): Clone; + static ["new"](...args: never[]): never; +} +export module Group { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + } +} +export class Group extends Actor implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](actor: Clutter.Actor): Group; + static ["new"](...args: never[]): never; +} +export module Rectangle { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + } +} +export class Rectangle extends Actor implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](actor: Clutter.Actor): Rectangle; + static ["new"](...args: never[]): never; +} +export module Root { + export interface ConstructorProperties extends Atk.GObjectAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class Root extends Atk.GObjectAccessible { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): Root; +} +export module Stage { + export interface ConstructorProperties extends Group.ConstructorProperties { + [key: string]: any; + } +} +export class Stage extends Group implements Atk.Action, Atk.Component, Atk.Window { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](actor: Clutter.Actor): Stage; + static ["new"](...args: never[]): never; +} +export module Text { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + } +} +export class Text extends Actor implements Atk.Action, Atk.Component, Atk.EditableText, Atk.Text { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](actor: Clutter.Actor): Text; + static ["new"](...args: never[]): never; + // Implemented Members + copy_text(start_pos: number, end_pos: number): void; + cut_text(start_pos: number, end_pos: number): void; + delete_text(start_pos: number, end_pos: number): void; + insert_text(string: string, length: number, position: number): void; + paste_text(position: number): void; + set_run_attributes(attrib_set: Atk.AttributeSet, start_offset: number, end_offset: number): boolean; + set_text_contents(string: string): void; + vfunc_copy_text(start_pos: number, end_pos: number): void; + vfunc_cut_text(start_pos: number, end_pos: number): void; + vfunc_delete_text(start_pos: number, end_pos: number): void; + vfunc_insert_text(string: string, length: number, position: number): void; + vfunc_paste_text(position: number): void; + vfunc_set_run_attributes(attrib_set: Atk.AttributeSet, start_offset: number, end_offset: number): boolean; + vfunc_set_text_contents(string: string): void; + add_selection(start_offset: number, end_offset: number): boolean; + get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + get_caret_offset(): number; + get_character_at_offset(offset: number): number; + get_character_count(): number; + get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + get_default_attributes(): Atk.AttributeSet; + get_n_selections(): number; + get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + get_selection(selection_num: number): [string, number, number]; + get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + get_text(start_offset: number, end_offset: number): string; + get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + remove_selection(selection_num: number): boolean; + scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + set_caret_offset(offset: number): boolean; + set_selection(selection_num: number, start_offset: number, end_offset: number): boolean; + vfunc_add_selection(start_offset: number, end_offset: number): boolean; + vfunc_get_bounded_ranges(rect: Atk.TextRectangle, coord_type: Atk.CoordType, x_clip_type: Atk.TextClipType, y_clip_type: Atk.TextClipType): Atk.TextRange[]; + vfunc_get_caret_offset(): number; + vfunc_get_character_at_offset(offset: number): number; + vfunc_get_character_count(): number; + vfunc_get_character_extents(offset: number, coords: Atk.CoordType): [number | null, number | null, number | null, number | null]; + vfunc_get_default_attributes(): Atk.AttributeSet; + vfunc_get_n_selections(): number; + vfunc_get_offset_at_point(x: number, y: number, coords: Atk.CoordType): number; + vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: Atk.CoordType): Atk.TextRectangle; + vfunc_get_run_attributes(offset: number): [Atk.AttributeSet, number, number]; + vfunc_get_selection(selection_num: number): [string, number, number]; + vfunc_get_string_at_offset(offset: number, granularity: Atk.TextGranularity): [string | null, number, number]; + vfunc_get_text(start_offset: number, end_offset: number): string; + vfunc_get_text_after_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_at_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_get_text_before_offset(offset: number, boundary_type: Atk.TextBoundary): [string, number, number]; + vfunc_remove_selection(selection_num: number): boolean; + vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: Atk.ScrollType): boolean; + vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: Atk.CoordType, x: number, y: number): boolean; + vfunc_set_caret_offset(offset: number): boolean; + 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; +} +export module Texture { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + } +} +export class Texture extends Actor implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](actor: Clutter.Actor): Texture; + static ["new"](...args: never[]): never; +} +export module Util { + export interface ConstructorProperties extends Atk.Util.ConstructorProperties { + [key: string]: any; + } +} +export class Util extends Atk.Util { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export class ActorPrivate { + constructor(copy: ActorPrivate); +} +export class ClonePrivate { + constructor(copy: ClonePrivate); +} +export class GroupPrivate { + constructor(copy: GroupPrivate); +} +export class RectanglePrivate { + constructor(copy: RectanglePrivate); +} +export class RootPrivate { + constructor(copy: RootPrivate); +} +export class StagePrivate { + constructor(copy: StagePrivate); +} +export class TextPrivate { + constructor(copy: TextPrivate); +} +export class TexturePrivate { + constructor(copy: TexturePrivate); +} +export class UtilPrivate { + constructor(copy: UtilPrivate); +} \ No newline at end of file diff --git a/gi/clutter.d.ts b/gi/clutter.d.ts new file mode 100644 index 0000000..bd8da36 --- /dev/null +++ b/gi/clutter.d.ts @@ -0,0 +1,14076 @@ + + +/** + * Clutter + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as Atk from "atk"; +import * as cairo from "cairo"; +import * as Pango from "pango"; +import * as Json from "json"; +import * as Cogl from "cogl"; + +type GType = object; + +export const __0: number; + +export const __1: number; + +export const __2: number; + +export const __3: number; + +export const __3270_AltCursor: number; + +export const __3270_Attn: number; + +export const __3270_BackTab: number; + +export const __3270_ChangeScreen: number; + +export const __3270_Copy: number; + +export const __3270_CursorBlink: number; + +export const __3270_CursorSelect: number; + +export const __3270_DeleteWord: number; + +export const __3270_Duplicate: number; + +export const __3270_Enter: number; + +export const __3270_EraseEOF: number; + +export const __3270_EraseInput: number; + +export const __3270_ExSelect: number; + +export const __3270_FieldMark: number; + +export const __3270_Ident: number; + +export const __3270_Jump: number; + +export const __3270_KeyClick: number; + +export const __3270_Left2: number; + +export const __3270_PA1: number; + +export const __3270_PA2: number; + +export const __3270_PA3: number; + +export const __3270_Play: number; + +export const __3270_PrintScreen: number; + +export const __3270_Quit: number; + +export const __3270_Record: number; + +export const __3270_Reset: number; + +export const __3270_Right2: number; + +export const __3270_Rule: number; + +export const __3270_Setup: number; + +export const __3270_Test: number; + +export const __4: number; + +export const __5: number; + +export const __6: number; + +export const __7: number; + +export const __8: number; + +export const __9: number; + +export const A: number; + +export const AE: number; + +export const Aacute: number; + +export const Abelowdot: number; + +export const Abreve: number; + +export const Abreveacute: number; + +export const Abrevebelowdot: number; + +export const Abrevegrave: number; + +export const Abrevehook: number; + +export const Abrevetilde: number; + +export const AccessX_Enable: number; + +export const AccessX_Feedback_Enable: number; + +export const Acircumflex: number; + +export const Acircumflexacute: number; + +export const Acircumflexbelowdot: number; + +export const Acircumflexgrave: number; + +export const Acircumflexhook: number; + +export const Acircumflextilde: number; + +export const AddFavorite: number; + +export const Adiaeresis: number; + +export const Agrave: number; + +export const Ahook: number; + +export const Alt_L: number; + +export const Alt_R: number; + +export const Amacron: number; + +export const Aogonek: number; + +export const ApplicationLeft: number; + +export const ApplicationRight: number; + +export const Arabic_0: number; + +export const Arabic_1: number; + +export const Arabic_2: number; + +export const Arabic_3: number; + +export const Arabic_4: number; + +export const Arabic_5: number; + +export const Arabic_6: number; + +export const Arabic_7: number; + +export const Arabic_8: number; + +export const Arabic_9: number; + +export const Arabic_ain: number; + +export const Arabic_alef: number; + +export const Arabic_alefmaksura: number; + +export const Arabic_beh: number; + +export const Arabic_comma: number; + +export const Arabic_dad: number; + +export const Arabic_dal: number; + +export const Arabic_damma: number; + +export const Arabic_dammatan: number; + +export const Arabic_ddal: number; + +export const Arabic_farsi_yeh: number; + +export const Arabic_fatha: number; + +export const Arabic_fathatan: number; + +export const Arabic_feh: number; + +export const Arabic_fullstop: number; + +export const Arabic_gaf: number; + +export const Arabic_ghain: number; + +export const Arabic_ha: number; + +export const Arabic_hah: number; + +export const Arabic_hamza: number; + +export const Arabic_hamza_above: number; + +export const Arabic_hamza_below: number; + +export const Arabic_hamzaonalef: number; + +export const Arabic_hamzaonwaw: number; + +export const Arabic_hamzaonyeh: number; + +export const Arabic_hamzaunderalef: number; + +export const Arabic_heh: number; + +export const Arabic_heh_doachashmee: number; + +export const Arabic_heh_goal: number; + +export const Arabic_jeem: number; + +export const Arabic_jeh: number; + +export const Arabic_kaf: number; + +export const Arabic_kasra: number; + +export const Arabic_kasratan: number; + +export const Arabic_keheh: number; + +export const Arabic_khah: number; + +export const Arabic_lam: number; + +export const Arabic_madda_above: number; + +export const Arabic_maddaonalef: number; + +export const Arabic_meem: number; + +export const Arabic_noon: number; + +export const Arabic_noon_ghunna: number; + +export const Arabic_peh: number; + +export const Arabic_percent: number; + +export const Arabic_qaf: number; + +export const Arabic_question_mark: number; + +export const Arabic_ra: number; + +export const Arabic_rreh: number; + +export const Arabic_sad: number; + +export const Arabic_seen: number; + +export const Arabic_semicolon: number; + +export const Arabic_shadda: number; + +export const Arabic_sheen: number; + +export const Arabic_sukun: number; + +export const Arabic_superscript_alef: number; + +export const Arabic_switch: number; + +export const Arabic_tah: number; + +export const Arabic_tatweel: number; + +export const Arabic_tcheh: number; + +export const Arabic_teh: number; + +export const Arabic_tehmarbuta: number; + +export const Arabic_thal: number; + +export const Arabic_theh: number; + +export const Arabic_tteh: number; + +export const Arabic_veh: number; + +export const Arabic_waw: number; + +export const Arabic_yeh: number; + +export const Arabic_yeh_baree: number; + +export const Arabic_zah: number; + +export const Arabic_zain: number; + +export const Aring: number; + +export const Armenian_AT: number; + +export const Armenian_AYB: number; + +export const Armenian_BEN: number; + +export const Armenian_CHA: number; + +export const Armenian_DA: number; + +export const Armenian_DZA: number; + +export const Armenian_E: number; + +export const Armenian_FE: number; + +export const Armenian_GHAT: number; + +export const Armenian_GIM: number; + +export const Armenian_HI: number; + +export const Armenian_HO: number; + +export const Armenian_INI: number; + +export const Armenian_JE: number; + +export const Armenian_KE: number; + +export const Armenian_KEN: number; + +export const Armenian_KHE: number; + +export const Armenian_LYUN: number; + +export const Armenian_MEN: number; + +export const Armenian_NU: number; + +export const Armenian_O: number; + +export const Armenian_PE: number; + +export const Armenian_PYUR: number; + +export const Armenian_RA: number; + +export const Armenian_RE: number; + +export const Armenian_SE: number; + +export const Armenian_SHA: number; + +export const Armenian_TCHE: number; + +export const Armenian_TO: number; + +export const Armenian_TSA: number; + +export const Armenian_TSO: number; + +export const Armenian_TYUN: number; + +export const Armenian_VEV: number; + +export const Armenian_VO: number; + +export const Armenian_VYUN: number; + +export const Armenian_YECH: number; + +export const Armenian_ZA: number; + +export const Armenian_ZHE: number; + +export const Armenian_accent: number; + +export const Armenian_amanak: number; + +export const Armenian_apostrophe: number; + +export const Armenian_at: number; + +export const Armenian_ayb: number; + +export const Armenian_ben: number; + +export const Armenian_but: number; + +export const Armenian_cha: number; + +export const Armenian_da: number; + +export const Armenian_dza: number; + +export const Armenian_e: number; + +export const Armenian_exclam: number; + +export const Armenian_fe: number; + +export const Armenian_full_stop: number; + +export const Armenian_ghat: number; + +export const Armenian_gim: number; + +export const Armenian_hi: number; + +export const Armenian_ho: number; + +export const Armenian_hyphen: number; + +export const Armenian_ini: number; + +export const Armenian_je: number; + +export const Armenian_ke: number; + +export const Armenian_ken: number; + +export const Armenian_khe: number; + +export const Armenian_ligature_ew: number; + +export const Armenian_lyun: number; + +export const Armenian_men: number; + +export const Armenian_nu: number; + +export const Armenian_o: number; + +export const Armenian_paruyk: number; + +export const Armenian_pe: number; + +export const Armenian_pyur: number; + +export const Armenian_question: number; + +export const Armenian_ra: number; + +export const Armenian_re: number; + +export const Armenian_se: number; + +export const Armenian_separation_mark: number; + +export const Armenian_sha: number; + +export const Armenian_shesht: number; + +export const Armenian_tche: number; + +export const Armenian_to: number; + +export const Armenian_tsa: number; + +export const Armenian_tso: number; + +export const Armenian_tyun: number; + +export const Armenian_verjaket: number; + +export const Armenian_vev: number; + +export const Armenian_vo: number; + +export const Armenian_vyun: number; + +export const Armenian_yech: number; + +export const Armenian_yentamna: number; + +export const Armenian_za: number; + +export const Armenian_zhe: number; + +export const Atilde: number; + +export const AudibleBell_Enable: number; + +export const AudioCycleTrack: number; + +export const AudioForward: number; + +export const AudioLowerVolume: number; + +export const AudioMedia: number; + +export const AudioMicMute: number; + +export const AudioMute: number; + +export const AudioNext: number; + +export const AudioPause: number; + +export const AudioPlay: number; + +export const AudioPrev: number; + +export const AudioRaiseVolume: number; + +export const AudioRandomPlay: number; + +export const AudioRecord: number; + +export const AudioRepeat: number; + +export const AudioRewind: number; + +export const AudioStop: number; + +export const Away: number; + +export const B: number; + +export const BUTTON_MIDDLE: number; + +export const BUTTON_PRIMARY: number; + +export const BUTTON_SECONDARY: number; + +export const Babovedot: number; + +export const Back: number; + +export const BackForward: number; + +export const BackSpace: number; + +export const Battery: number; + +export const Begin: number; + +export const Blue: number; + +export const Bluetooth: number; + +export const Book: number; + +export const BounceKeys_Enable: number; + +export const Break: number; + +export const BrightnessAdjust: number; + +export const Byelorussian_SHORTU: number; + +export const Byelorussian_shortu: number; + +export const C: number; + +export const CD: number; + +export const CH: number; + +export const COGL: string; + +export const CURRENT_TIME: number; + +export const C_H: number; + +export const C_h: number; + +export const Cabovedot: number; + +export const Cacute: number; + +export const Calculator: number; + +export const Calendar: number; + +export const Cancel: number; + +export const Caps_Lock: number; + +export const Ccaron: number; + +export const Ccedilla: number; + +export const Ccircumflex: number; + +export const Ch: number; + +export const Clear: number; + +export const ClearGrab: number; + +export const Close: number; + +export const Codeinput: number; + +export const ColonSign: number; + +export const Community: number; + +export const ContrastAdjust: number; + +export const Control_L: number; + +export const Control_R: number; + +export const Copy: number; + +export const CruzeiroSign: number; + +export const Cut: number; + +export const CycleAngle: number; + +export const Cyrillic_A: number; + +export const Cyrillic_BE: number; + +export const Cyrillic_CHE: number; + +export const Cyrillic_CHE_descender: number; + +export const Cyrillic_CHE_vertstroke: number; + +export const Cyrillic_DE: number; + +export const Cyrillic_DZHE: number; + +export const Cyrillic_E: number; + +export const Cyrillic_EF: number; + +export const Cyrillic_EL: number; + +export const Cyrillic_EM: number; + +export const Cyrillic_EN: number; + +export const Cyrillic_EN_descender: number; + +export const Cyrillic_ER: number; + +export const Cyrillic_ES: number; + +export const Cyrillic_GHE: number; + +export const Cyrillic_GHE_bar: number; + +export const Cyrillic_HA: number; + +export const Cyrillic_HARDSIGN: number; + +export const Cyrillic_HA_descender: number; + +export const Cyrillic_I: number; + +export const Cyrillic_IE: number; + +export const Cyrillic_IO: number; + +export const Cyrillic_I_macron: number; + +export const Cyrillic_JE: number; + +export const Cyrillic_KA: number; + +export const Cyrillic_KA_descender: number; + +export const Cyrillic_KA_vertstroke: number; + +export const Cyrillic_LJE: number; + +export const Cyrillic_NJE: number; + +export const Cyrillic_O: number; + +export const Cyrillic_O_bar: number; + +export const Cyrillic_PE: number; + +export const Cyrillic_SCHWA: number; + +export const Cyrillic_SHA: number; + +export const Cyrillic_SHCHA: number; + +export const Cyrillic_SHHA: number; + +export const Cyrillic_SHORTI: number; + +export const Cyrillic_SOFTSIGN: number; + +export const Cyrillic_TE: number; + +export const Cyrillic_TSE: number; + +export const Cyrillic_U: number; + +export const Cyrillic_U_macron: number; + +export const Cyrillic_U_straight: number; + +export const Cyrillic_U_straight_bar: number; + +export const Cyrillic_VE: number; + +export const Cyrillic_YA: number; + +export const Cyrillic_YERU: number; + +export const Cyrillic_YU: number; + +export const Cyrillic_ZE: number; + +export const Cyrillic_ZHE: number; + +export const Cyrillic_ZHE_descender: number; + +export const Cyrillic_a: number; + +export const Cyrillic_be: number; + +export const Cyrillic_che: number; + +export const Cyrillic_che_descender: number; + +export const Cyrillic_che_vertstroke: number; + +export const Cyrillic_de: number; + +export const Cyrillic_dzhe: number; + +export const Cyrillic_e: number; + +export const Cyrillic_ef: number; + +export const Cyrillic_el: number; + +export const Cyrillic_em: number; + +export const Cyrillic_en: number; + +export const Cyrillic_en_descender: number; + +export const Cyrillic_er: number; + +export const Cyrillic_es: number; + +export const Cyrillic_ghe: number; + +export const Cyrillic_ghe_bar: number; + +export const Cyrillic_ha: number; + +export const Cyrillic_ha_descender: number; + +export const Cyrillic_hardsign: number; + +export const Cyrillic_i: number; + +export const Cyrillic_i_macron: number; + +export const Cyrillic_ie: number; + +export const Cyrillic_io: number; + +export const Cyrillic_je: number; + +export const Cyrillic_ka: number; + +export const Cyrillic_ka_descender: number; + +export const Cyrillic_ka_vertstroke: number; + +export const Cyrillic_lje: number; + +export const Cyrillic_nje: number; + +export const Cyrillic_o: number; + +export const Cyrillic_o_bar: number; + +export const Cyrillic_pe: number; + +export const Cyrillic_schwa: number; + +export const Cyrillic_sha: number; + +export const Cyrillic_shcha: number; + +export const Cyrillic_shha: number; + +export const Cyrillic_shorti: number; + +export const Cyrillic_softsign: number; + +export const Cyrillic_te: number; + +export const Cyrillic_tse: number; + +export const Cyrillic_u: number; + +export const Cyrillic_u_macron: number; + +export const Cyrillic_u_straight: number; + +export const Cyrillic_u_straight_bar: number; + +export const Cyrillic_ve: number; + +export const Cyrillic_ya: number; + +export const Cyrillic_yeru: number; + +export const Cyrillic_yu: number; + +export const Cyrillic_ze: number; + +export const Cyrillic_zhe: number; + +export const Cyrillic_zhe_descender: number; + +export const D: number; + +export const DOS: number; + +export const Dabovedot: number; + +export const Dcaron: number; + +export const Delete: number; + +export const Display: number; + +export const Documents: number; + +export const DongSign: number; + +export const Down: number; + +export const Dstroke: number; + +export const E: number; + +export const ENG: number; + +export const ETH: number; + +export const EVENT_PROPAGATE: boolean; + +export const EVENT_STOP: boolean; + +export const EZH: number; + +export const Eabovedot: number; + +export const Eacute: number; + +export const Ebelowdot: number; + +export const Ecaron: number; + +export const Ecircumflex: number; + +export const Ecircumflexacute: number; + +export const Ecircumflexbelowdot: number; + +export const Ecircumflexgrave: number; + +export const Ecircumflexhook: number; + +export const Ecircumflextilde: number; + +export const EcuSign: number; + +export const Ediaeresis: number; + +export const Egrave: number; + +export const Ehook: number; + +export const Eisu_Shift: number; + +export const Eisu_toggle: number; + +export const Eject: number; + +export const Emacron: number; + +export const End: number; + +export const Eogonek: number; + +export const Escape: number; + +export const Eth: number; + +export const Etilde: number; + +export const EuroSign: number; + +export const Excel: number; + +export const Execute: number; + +export const Explorer: number; + +export const F: number; + +export const F1: number; + +export const F10: number; + +export const F11: number; + +export const F12: number; + +export const F13: number; + +export const F14: number; + +export const F15: number; + +export const F16: number; + +export const F17: number; + +export const F18: number; + +export const F19: number; + +export const F2: number; + +export const F20: number; + +export const F21: number; + +export const F22: number; + +export const F23: number; + +export const F24: number; + +export const F25: number; + +export const F26: number; + +export const F27: number; + +export const F28: number; + +export const F29: number; + +export const F3: number; + +export const F30: number; + +export const F31: number; + +export const F32: number; + +export const F33: number; + +export const F34: number; + +export const F35: number; + +export const F4: number; + +export const F5: number; + +export const F6: number; + +export const F7: number; + +export const F8: number; + +export const F9: number; + +export const FFrancSign: number; + +export const FLAVOUR: string; + +export const Fabovedot: number; + +export const Farsi_0: number; + +export const Farsi_1: number; + +export const Farsi_2: number; + +export const Farsi_3: number; + +export const Farsi_4: number; + +export const Farsi_5: number; + +export const Farsi_6: number; + +export const Farsi_7: number; + +export const Farsi_8: number; + +export const Farsi_9: number; + +export const Farsi_yeh: number; + +export const Favorites: number; + +export const Finance: number; + +export const Find: number; + +export const First_Virtual_Screen: number; + +export const Forward: number; + +export const FrameBack: number; + +export const FrameForward: number; + +export const G: number; + +export const Gabovedot: number; + +export const Game: number; + +export const Gbreve: number; + +export const Gcaron: number; + +export const Gcedilla: number; + +export const Gcircumflex: number; + +export const Georgian_an: number; + +export const Georgian_ban: number; + +export const Georgian_can: number; + +export const Georgian_char: number; + +export const Georgian_chin: number; + +export const Georgian_cil: number; + +export const Georgian_don: number; + +export const Georgian_en: number; + +export const Georgian_fi: number; + +export const Georgian_gan: number; + +export const Georgian_ghan: number; + +export const Georgian_hae: number; + +export const Georgian_har: number; + +export const Georgian_he: number; + +export const Georgian_hie: number; + +export const Georgian_hoe: number; + +export const Georgian_in: number; + +export const Georgian_jhan: number; + +export const Georgian_jil: number; + +export const Georgian_kan: number; + +export const Georgian_khar: number; + +export const Georgian_las: number; + +export const Georgian_man: number; + +export const Georgian_nar: number; + +export const Georgian_on: number; + +export const Georgian_par: number; + +export const Georgian_phar: number; + +export const Georgian_qar: number; + +export const Georgian_rae: number; + +export const Georgian_san: number; + +export const Georgian_shin: number; + +export const Georgian_tan: number; + +export const Georgian_tar: number; + +export const Georgian_un: number; + +export const Georgian_vin: number; + +export const Georgian_we: number; + +export const Georgian_xan: number; + +export const Georgian_zen: number; + +export const Georgian_zhar: number; + +export const Go: number; + +export const Greek_ALPHA: number; + +export const Greek_ALPHAaccent: number; + +export const Greek_BETA: number; + +export const Greek_CHI: number; + +export const Greek_DELTA: number; + +export const Greek_EPSILON: number; + +export const Greek_EPSILONaccent: number; + +export const Greek_ETA: number; + +export const Greek_ETAaccent: number; + +export const Greek_GAMMA: number; + +export const Greek_IOTA: number; + +export const Greek_IOTAaccent: number; + +export const Greek_IOTAdiaeresis: number; + +export const Greek_IOTAdieresis: number; + +export const Greek_KAPPA: number; + +export const Greek_LAMBDA: number; + +export const Greek_LAMDA: number; + +export const Greek_MU: number; + +export const Greek_NU: number; + +export const Greek_OMEGA: number; + +export const Greek_OMEGAaccent: number; + +export const Greek_OMICRON: number; + +export const Greek_OMICRONaccent: number; + +export const Greek_PHI: number; + +export const Greek_PI: number; + +export const Greek_PSI: number; + +export const Greek_RHO: number; + +export const Greek_SIGMA: number; + +export const Greek_TAU: number; + +export const Greek_THETA: number; + +export const Greek_UPSILON: number; + +export const Greek_UPSILONaccent: number; + +export const Greek_UPSILONdieresis: number; + +export const Greek_XI: number; + +export const Greek_ZETA: number; + +export const Greek_accentdieresis: number; + +export const Greek_alpha: number; + +export const Greek_alphaaccent: number; + +export const Greek_beta: number; + +export const Greek_chi: number; + +export const Greek_delta: number; + +export const Greek_epsilon: number; + +export const Greek_epsilonaccent: number; + +export const Greek_eta: number; + +export const Greek_etaaccent: number; + +export const Greek_finalsmallsigma: number; + +export const Greek_gamma: number; + +export const Greek_horizbar: number; + +export const Greek_iota: number; + +export const Greek_iotaaccent: number; + +export const Greek_iotaaccentdieresis: number; + +export const Greek_iotadieresis: number; + +export const Greek_kappa: number; + +export const Greek_lambda: number; + +export const Greek_lamda: number; + +export const Greek_mu: number; + +export const Greek_nu: number; + +export const Greek_omega: number; + +export const Greek_omegaaccent: number; + +export const Greek_omicron: number; + +export const Greek_omicronaccent: number; + +export const Greek_phi: number; + +export const Greek_pi: number; + +export const Greek_psi: number; + +export const Greek_rho: number; + +export const Greek_sigma: number; + +export const Greek_switch: number; + +export const Greek_tau: number; + +export const Greek_theta: number; + +export const Greek_upsilon: number; + +export const Greek_upsilonaccent: number; + +export const Greek_upsilonaccentdieresis: number; + +export const Greek_upsilondieresis: number; + +export const Greek_xi: number; + +export const Greek_zeta: number; + +export const Green: number; + +export const H: number; + +export const HAS_WAYLAND_COMPOSITOR_SUPPORT: number; + +export const Hangul: number; + +export const Hangul_A: number; + +export const Hangul_AE: number; + +export const Hangul_AraeA: number; + +export const Hangul_AraeAE: number; + +export const Hangul_Banja: number; + +export const Hangul_Cieuc: number; + +export const Hangul_Codeinput: number; + +export const Hangul_Dikeud: number; + +export const Hangul_E: number; + +export const Hangul_EO: number; + +export const Hangul_EU: number; + +export const Hangul_End: number; + +export const Hangul_Hanja: number; + +export const Hangul_Hieuh: number; + +export const Hangul_I: number; + +export const Hangul_Ieung: number; + +export const Hangul_J_Cieuc: number; + +export const Hangul_J_Dikeud: number; + +export const Hangul_J_Hieuh: number; + +export const Hangul_J_Ieung: number; + +export const Hangul_J_Jieuj: number; + +export const Hangul_J_Khieuq: number; + +export const Hangul_J_Kiyeog: number; + +export const Hangul_J_KiyeogSios: number; + +export const Hangul_J_KkogjiDalrinIeung: number; + +export const Hangul_J_Mieum: number; + +export const Hangul_J_Nieun: number; + +export const Hangul_J_NieunHieuh: number; + +export const Hangul_J_NieunJieuj: number; + +export const Hangul_J_PanSios: number; + +export const Hangul_J_Phieuf: number; + +export const Hangul_J_Pieub: number; + +export const Hangul_J_PieubSios: number; + +export const Hangul_J_Rieul: number; + +export const Hangul_J_RieulHieuh: number; + +export const Hangul_J_RieulKiyeog: number; + +export const Hangul_J_RieulMieum: number; + +export const Hangul_J_RieulPhieuf: number; + +export const Hangul_J_RieulPieub: number; + +export const Hangul_J_RieulSios: number; + +export const Hangul_J_RieulTieut: number; + +export const Hangul_J_Sios: number; + +export const Hangul_J_SsangKiyeog: number; + +export const Hangul_J_SsangSios: number; + +export const Hangul_J_Tieut: number; + +export const Hangul_J_YeorinHieuh: number; + +export const Hangul_Jamo: number; + +export const Hangul_Jeonja: number; + +export const Hangul_Jieuj: number; + +export const Hangul_Khieuq: number; + +export const Hangul_Kiyeog: number; + +export const Hangul_KiyeogSios: number; + +export const Hangul_KkogjiDalrinIeung: number; + +export const Hangul_Mieum: number; + +export const Hangul_MultipleCandidate: number; + +export const Hangul_Nieun: number; + +export const Hangul_NieunHieuh: number; + +export const Hangul_NieunJieuj: number; + +export const Hangul_O: number; + +export const Hangul_OE: number; + +export const Hangul_PanSios: number; + +export const Hangul_Phieuf: number; + +export const Hangul_Pieub: number; + +export const Hangul_PieubSios: number; + +export const Hangul_PostHanja: number; + +export const Hangul_PreHanja: number; + +export const Hangul_PreviousCandidate: number; + +export const Hangul_Rieul: number; + +export const Hangul_RieulHieuh: number; + +export const Hangul_RieulKiyeog: number; + +export const Hangul_RieulMieum: number; + +export const Hangul_RieulPhieuf: number; + +export const Hangul_RieulPieub: number; + +export const Hangul_RieulSios: number; + +export const Hangul_RieulTieut: number; + +export const Hangul_RieulYeorinHieuh: number; + +export const Hangul_Romaja: number; + +export const Hangul_SingleCandidate: number; + +export const Hangul_Sios: number; + +export const Hangul_Special: number; + +export const Hangul_SsangDikeud: number; + +export const Hangul_SsangJieuj: number; + +export const Hangul_SsangKiyeog: number; + +export const Hangul_SsangPieub: number; + +export const Hangul_SsangSios: number; + +export const Hangul_Start: number; + +export const Hangul_SunkyeongeumMieum: number; + +export const Hangul_SunkyeongeumPhieuf: number; + +export const Hangul_SunkyeongeumPieub: number; + +export const Hangul_Tieut: number; + +export const Hangul_U: number; + +export const Hangul_WA: number; + +export const Hangul_WAE: number; + +export const Hangul_WE: number; + +export const Hangul_WEO: number; + +export const Hangul_WI: number; + +export const Hangul_YA: number; + +export const Hangul_YAE: number; + +export const Hangul_YE: number; + +export const Hangul_YEO: number; + +export const Hangul_YI: number; + +export const Hangul_YO: number; + +export const Hangul_YU: number; + +export const Hangul_YeorinHieuh: number; + +export const Hangul_switch: number; + +export const Hankaku: number; + +export const Hcircumflex: number; + +export const Hebrew_switch: number; + +export const Help: number; + +export const Henkan: number; + +export const Henkan_Mode: number; + +export const Hibernate: number; + +export const Hiragana: number; + +export const Hiragana_Katakana: number; + +export const History: number; + +export const Home: number; + +export const HomePage: number; + +export const HotLinks: number; + +export const Hstroke: number; + +export const Hyper_L: number; + +export const Hyper_R: number; + +export const I: number; + +export const INPUT_EVDEV: string; + +export const INPUT_GDK: string; + +export const INPUT_NULL: string; + +export const INPUT_WAYLAND: string; + +export const INPUT_X11: string; + +export const ISO_Center_Object: number; + +export const ISO_Continuous_Underline: number; + +export const ISO_Discontinuous_Underline: number; + +export const ISO_Emphasize: number; + +export const ISO_Enter: number; + +export const ISO_Fast_Cursor_Down: number; + +export const ISO_Fast_Cursor_Left: number; + +export const ISO_Fast_Cursor_Right: number; + +export const ISO_Fast_Cursor_Up: number; + +export const ISO_First_Group: number; + +export const ISO_First_Group_Lock: number; + +export const ISO_Group_Latch: number; + +export const ISO_Group_Lock: number; + +export const ISO_Group_Shift: number; + +export const ISO_Last_Group: number; + +export const ISO_Last_Group_Lock: number; + +export const ISO_Left_Tab: number; + +export const ISO_Level2_Latch: number; + +export const ISO_Level3_Latch: number; + +export const ISO_Level3_Lock: number; + +export const ISO_Level3_Shift: number; + +export const ISO_Level5_Latch: number; + +export const ISO_Level5_Lock: number; + +export const ISO_Level5_Shift: number; + +export const ISO_Lock: number; + +export const ISO_Move_Line_Down: number; + +export const ISO_Move_Line_Up: number; + +export const ISO_Next_Group: number; + +export const ISO_Next_Group_Lock: number; + +export const ISO_Partial_Line_Down: number; + +export const ISO_Partial_Line_Up: number; + +export const ISO_Partial_Space_Left: number; + +export const ISO_Partial_Space_Right: number; + +export const ISO_Prev_Group: number; + +export const ISO_Prev_Group_Lock: number; + +export const ISO_Release_Both_Margins: number; + +export const ISO_Release_Margin_Left: number; + +export const ISO_Release_Margin_Right: number; + +export const ISO_Set_Margin_Left: number; + +export const ISO_Set_Margin_Right: number; + +export const Iabovedot: number; + +export const Iacute: number; + +export const Ibelowdot: number; + +export const Ibreve: number; + +export const Icircumflex: number; + +export const Idiaeresis: number; + +export const Igrave: number; + +export const Ihook: number; + +export const Imacron: number; + +export const Insert: number; + +export const Iogonek: number; + +export const Itilde: number; + +export const J: number; + +export const Jcircumflex: number; + +export const K: number; + +export const KEY_0: number; + +export const KEY_1: number; + +export const KEY_2: number; + +export const KEY_3: number; + +export const KEY_3270_AltCursor: number; + +export const KEY_3270_Attn: number; + +export const KEY_3270_BackTab: number; + +export const KEY_3270_ChangeScreen: number; + +export const KEY_3270_Copy: number; + +export const KEY_3270_CursorBlink: number; + +export const KEY_3270_CursorSelect: number; + +export const KEY_3270_DeleteWord: number; + +export const KEY_3270_Duplicate: number; + +export const KEY_3270_Enter: number; + +export const KEY_3270_EraseEOF: number; + +export const KEY_3270_EraseInput: number; + +export const KEY_3270_ExSelect: number; + +export const KEY_3270_FieldMark: number; + +export const KEY_3270_Ident: number; + +export const KEY_3270_Jump: number; + +export const KEY_3270_KeyClick: number; + +export const KEY_3270_Left2: number; + +export const KEY_3270_PA1: number; + +export const KEY_3270_PA2: number; + +export const KEY_3270_PA3: number; + +export const KEY_3270_Play: number; + +export const KEY_3270_PrintScreen: number; + +export const KEY_3270_Quit: number; + +export const KEY_3270_Record: number; + +export const KEY_3270_Reset: number; + +export const KEY_3270_Right2: number; + +export const KEY_3270_Rule: number; + +export const KEY_3270_Setup: number; + +export const KEY_3270_Test: number; + +export const KEY_4: number; + +export const KEY_5: number; + +export const KEY_6: number; + +export const KEY_7: number; + +export const KEY_8: number; + +export const KEY_9: number; + +export const KEY_A: number; + +export const KEY_AE: number; + +export const KEY_Aacute: number; + +export const KEY_Abelowdot: number; + +export const KEY_Abreve: number; + +export const KEY_Abreveacute: number; + +export const KEY_Abrevebelowdot: number; + +export const KEY_Abrevegrave: number; + +export const KEY_Abrevehook: number; + +export const KEY_Abrevetilde: number; + +export const KEY_AccessX_Enable: number; + +export const KEY_AccessX_Feedback_Enable: number; + +export const KEY_Acircumflex: number; + +export const KEY_Acircumflexacute: number; + +export const KEY_Acircumflexbelowdot: number; + +export const KEY_Acircumflexgrave: number; + +export const KEY_Acircumflexhook: number; + +export const KEY_Acircumflextilde: number; + +export const KEY_AddFavorite: number; + +export const KEY_Adiaeresis: number; + +export const KEY_Agrave: number; + +export const KEY_Ahook: number; + +export const KEY_Alt_L: number; + +export const KEY_Alt_R: number; + +export const KEY_Amacron: number; + +export const KEY_Aogonek: number; + +export const KEY_ApplicationLeft: number; + +export const KEY_ApplicationRight: number; + +export const KEY_Arabic_0: number; + +export const KEY_Arabic_1: number; + +export const KEY_Arabic_2: number; + +export const KEY_Arabic_3: number; + +export const KEY_Arabic_4: number; + +export const KEY_Arabic_5: number; + +export const KEY_Arabic_6: number; + +export const KEY_Arabic_7: number; + +export const KEY_Arabic_8: number; + +export const KEY_Arabic_9: number; + +export const KEY_Arabic_ain: number; + +export const KEY_Arabic_alef: number; + +export const KEY_Arabic_alefmaksura: number; + +export const KEY_Arabic_beh: number; + +export const KEY_Arabic_comma: number; + +export const KEY_Arabic_dad: number; + +export const KEY_Arabic_dal: number; + +export const KEY_Arabic_damma: number; + +export const KEY_Arabic_dammatan: number; + +export const KEY_Arabic_ddal: number; + +export const KEY_Arabic_farsi_yeh: number; + +export const KEY_Arabic_fatha: number; + +export const KEY_Arabic_fathatan: number; + +export const KEY_Arabic_feh: number; + +export const KEY_Arabic_fullstop: number; + +export const KEY_Arabic_gaf: number; + +export const KEY_Arabic_ghain: number; + +export const KEY_Arabic_ha: number; + +export const KEY_Arabic_hah: number; + +export const KEY_Arabic_hamza: number; + +export const KEY_Arabic_hamza_above: number; + +export const KEY_Arabic_hamza_below: number; + +export const KEY_Arabic_hamzaonalef: number; + +export const KEY_Arabic_hamzaonwaw: number; + +export const KEY_Arabic_hamzaonyeh: number; + +export const KEY_Arabic_hamzaunderalef: number; + +export const KEY_Arabic_heh: number; + +export const KEY_Arabic_heh_doachashmee: number; + +export const KEY_Arabic_heh_goal: number; + +export const KEY_Arabic_jeem: number; + +export const KEY_Arabic_jeh: number; + +export const KEY_Arabic_kaf: number; + +export const KEY_Arabic_kasra: number; + +export const KEY_Arabic_kasratan: number; + +export const KEY_Arabic_keheh: number; + +export const KEY_Arabic_khah: number; + +export const KEY_Arabic_lam: number; + +export const KEY_Arabic_madda_above: number; + +export const KEY_Arabic_maddaonalef: number; + +export const KEY_Arabic_meem: number; + +export const KEY_Arabic_noon: number; + +export const KEY_Arabic_noon_ghunna: number; + +export const KEY_Arabic_peh: number; + +export const KEY_Arabic_percent: number; + +export const KEY_Arabic_qaf: number; + +export const KEY_Arabic_question_mark: number; + +export const KEY_Arabic_ra: number; + +export const KEY_Arabic_rreh: number; + +export const KEY_Arabic_sad: number; + +export const KEY_Arabic_seen: number; + +export const KEY_Arabic_semicolon: number; + +export const KEY_Arabic_shadda: number; + +export const KEY_Arabic_sheen: number; + +export const KEY_Arabic_sukun: number; + +export const KEY_Arabic_superscript_alef: number; + +export const KEY_Arabic_switch: number; + +export const KEY_Arabic_tah: number; + +export const KEY_Arabic_tatweel: number; + +export const KEY_Arabic_tcheh: number; + +export const KEY_Arabic_teh: number; + +export const KEY_Arabic_tehmarbuta: number; + +export const KEY_Arabic_thal: number; + +export const KEY_Arabic_theh: number; + +export const KEY_Arabic_tteh: number; + +export const KEY_Arabic_veh: number; + +export const KEY_Arabic_waw: number; + +export const KEY_Arabic_yeh: number; + +export const KEY_Arabic_yeh_baree: number; + +export const KEY_Arabic_zah: number; + +export const KEY_Arabic_zain: number; + +export const KEY_Aring: number; + +export const KEY_Armenian_AT: number; + +export const KEY_Armenian_AYB: number; + +export const KEY_Armenian_BEN: number; + +export const KEY_Armenian_CHA: number; + +export const KEY_Armenian_DA: number; + +export const KEY_Armenian_DZA: number; + +export const KEY_Armenian_E: number; + +export const KEY_Armenian_FE: number; + +export const KEY_Armenian_GHAT: number; + +export const KEY_Armenian_GIM: number; + +export const KEY_Armenian_HI: number; + +export const KEY_Armenian_HO: number; + +export const KEY_Armenian_INI: number; + +export const KEY_Armenian_JE: number; + +export const KEY_Armenian_KE: number; + +export const KEY_Armenian_KEN: number; + +export const KEY_Armenian_KHE: number; + +export const KEY_Armenian_LYUN: number; + +export const KEY_Armenian_MEN: number; + +export const KEY_Armenian_NU: number; + +export const KEY_Armenian_O: number; + +export const KEY_Armenian_PE: number; + +export const KEY_Armenian_PYUR: number; + +export const KEY_Armenian_RA: number; + +export const KEY_Armenian_RE: number; + +export const KEY_Armenian_SE: number; + +export const KEY_Armenian_SHA: number; + +export const KEY_Armenian_TCHE: number; + +export const KEY_Armenian_TO: number; + +export const KEY_Armenian_TSA: number; + +export const KEY_Armenian_TSO: number; + +export const KEY_Armenian_TYUN: number; + +export const KEY_Armenian_VEV: number; + +export const KEY_Armenian_VO: number; + +export const KEY_Armenian_VYUN: number; + +export const KEY_Armenian_YECH: number; + +export const KEY_Armenian_ZA: number; + +export const KEY_Armenian_ZHE: number; + +export const KEY_Armenian_accent: number; + +export const KEY_Armenian_amanak: number; + +export const KEY_Armenian_apostrophe: number; + +export const KEY_Armenian_at: number; + +export const KEY_Armenian_ayb: number; + +export const KEY_Armenian_ben: number; + +export const KEY_Armenian_but: number; + +export const KEY_Armenian_cha: number; + +export const KEY_Armenian_da: number; + +export const KEY_Armenian_dza: number; + +export const KEY_Armenian_e: number; + +export const KEY_Armenian_exclam: number; + +export const KEY_Armenian_fe: number; + +export const KEY_Armenian_full_stop: number; + +export const KEY_Armenian_ghat: number; + +export const KEY_Armenian_gim: number; + +export const KEY_Armenian_hi: number; + +export const KEY_Armenian_ho: number; + +export const KEY_Armenian_hyphen: number; + +export const KEY_Armenian_ini: number; + +export const KEY_Armenian_je: number; + +export const KEY_Armenian_ke: number; + +export const KEY_Armenian_ken: number; + +export const KEY_Armenian_khe: number; + +export const KEY_Armenian_ligature_ew: number; + +export const KEY_Armenian_lyun: number; + +export const KEY_Armenian_men: number; + +export const KEY_Armenian_nu: number; + +export const KEY_Armenian_o: number; + +export const KEY_Armenian_paruyk: number; + +export const KEY_Armenian_pe: number; + +export const KEY_Armenian_pyur: number; + +export const KEY_Armenian_question: number; + +export const KEY_Armenian_ra: number; + +export const KEY_Armenian_re: number; + +export const KEY_Armenian_se: number; + +export const KEY_Armenian_separation_mark: number; + +export const KEY_Armenian_sha: number; + +export const KEY_Armenian_shesht: number; + +export const KEY_Armenian_tche: number; + +export const KEY_Armenian_to: number; + +export const KEY_Armenian_tsa: number; + +export const KEY_Armenian_tso: number; + +export const KEY_Armenian_tyun: number; + +export const KEY_Armenian_verjaket: number; + +export const KEY_Armenian_vev: number; + +export const KEY_Armenian_vo: number; + +export const KEY_Armenian_vyun: number; + +export const KEY_Armenian_yech: number; + +export const KEY_Armenian_yentamna: number; + +export const KEY_Armenian_za: number; + +export const KEY_Armenian_zhe: number; + +export const KEY_Atilde: number; + +export const KEY_AudibleBell_Enable: number; + +export const KEY_AudioCycleTrack: number; + +export const KEY_AudioForward: number; + +export const KEY_AudioLowerVolume: number; + +export const KEY_AudioMedia: number; + +export const KEY_AudioMicMute: number; + +export const KEY_AudioMute: number; + +export const KEY_AudioNext: number; + +export const KEY_AudioPause: number; + +export const KEY_AudioPlay: number; + +export const KEY_AudioPrev: number; + +export const KEY_AudioRaiseVolume: number; + +export const KEY_AudioRandomPlay: number; + +export const KEY_AudioRecord: number; + +export const KEY_AudioRepeat: number; + +export const KEY_AudioRewind: number; + +export const KEY_AudioStop: number; + +export const KEY_Away: number; + +export const KEY_B: number; + +export const KEY_Babovedot: number; + +export const KEY_Back: number; + +export const KEY_BackForward: number; + +export const KEY_BackSpace: number; + +export const KEY_Battery: number; + +export const KEY_Begin: number; + +export const KEY_Blue: number; + +export const KEY_Bluetooth: number; + +export const KEY_Book: number; + +export const KEY_BounceKeys_Enable: number; + +export const KEY_Break: number; + +export const KEY_BrightnessAdjust: number; + +export const KEY_Byelorussian_SHORTU: number; + +export const KEY_Byelorussian_shortu: number; + +export const KEY_C: number; + +export const KEY_CD: number; + +export const KEY_CH: number; + +export const KEY_C_H: number; + +export const KEY_C_h: number; + +export const KEY_Cabovedot: number; + +export const KEY_Cacute: number; + +export const KEY_Calculator: number; + +export const KEY_Calendar: number; + +export const KEY_Cancel: number; + +export const KEY_Caps_Lock: number; + +export const KEY_Ccaron: number; + +export const KEY_Ccedilla: number; + +export const KEY_Ccircumflex: number; + +export const KEY_Ch: number; + +export const KEY_Clear: number; + +export const KEY_ClearGrab: number; + +export const KEY_Close: number; + +export const KEY_Codeinput: number; + +export const KEY_ColonSign: number; + +export const KEY_Community: number; + +export const KEY_ContrastAdjust: number; + +export const KEY_Control_L: number; + +export const KEY_Control_R: number; + +export const KEY_Copy: number; + +export const KEY_CruzeiroSign: number; + +export const KEY_Cut: number; + +export const KEY_CycleAngle: number; + +export const KEY_Cyrillic_A: number; + +export const KEY_Cyrillic_BE: number; + +export const KEY_Cyrillic_CHE: number; + +export const KEY_Cyrillic_CHE_descender: number; + +export const KEY_Cyrillic_CHE_vertstroke: number; + +export const KEY_Cyrillic_DE: number; + +export const KEY_Cyrillic_DZHE: number; + +export const KEY_Cyrillic_E: number; + +export const KEY_Cyrillic_EF: number; + +export const KEY_Cyrillic_EL: number; + +export const KEY_Cyrillic_EM: number; + +export const KEY_Cyrillic_EN: number; + +export const KEY_Cyrillic_EN_descender: number; + +export const KEY_Cyrillic_ER: number; + +export const KEY_Cyrillic_ES: number; + +export const KEY_Cyrillic_GHE: number; + +export const KEY_Cyrillic_GHE_bar: number; + +export const KEY_Cyrillic_HA: number; + +export const KEY_Cyrillic_HARDSIGN: number; + +export const KEY_Cyrillic_HA_descender: number; + +export const KEY_Cyrillic_I: number; + +export const KEY_Cyrillic_IE: number; + +export const KEY_Cyrillic_IO: number; + +export const KEY_Cyrillic_I_macron: number; + +export const KEY_Cyrillic_JE: number; + +export const KEY_Cyrillic_KA: number; + +export const KEY_Cyrillic_KA_descender: number; + +export const KEY_Cyrillic_KA_vertstroke: number; + +export const KEY_Cyrillic_LJE: number; + +export const KEY_Cyrillic_NJE: number; + +export const KEY_Cyrillic_O: number; + +export const KEY_Cyrillic_O_bar: number; + +export const KEY_Cyrillic_PE: number; + +export const KEY_Cyrillic_SCHWA: number; + +export const KEY_Cyrillic_SHA: number; + +export const KEY_Cyrillic_SHCHA: number; + +export const KEY_Cyrillic_SHHA: number; + +export const KEY_Cyrillic_SHORTI: number; + +export const KEY_Cyrillic_SOFTSIGN: number; + +export const KEY_Cyrillic_TE: number; + +export const KEY_Cyrillic_TSE: number; + +export const KEY_Cyrillic_U: number; + +export const KEY_Cyrillic_U_macron: number; + +export const KEY_Cyrillic_U_straight: number; + +export const KEY_Cyrillic_U_straight_bar: number; + +export const KEY_Cyrillic_VE: number; + +export const KEY_Cyrillic_YA: number; + +export const KEY_Cyrillic_YERU: number; + +export const KEY_Cyrillic_YU: number; + +export const KEY_Cyrillic_ZE: number; + +export const KEY_Cyrillic_ZHE: number; + +export const KEY_Cyrillic_ZHE_descender: number; + +export const KEY_Cyrillic_a: number; + +export const KEY_Cyrillic_be: number; + +export const KEY_Cyrillic_che: number; + +export const KEY_Cyrillic_che_descender: number; + +export const KEY_Cyrillic_che_vertstroke: number; + +export const KEY_Cyrillic_de: number; + +export const KEY_Cyrillic_dzhe: number; + +export const KEY_Cyrillic_e: number; + +export const KEY_Cyrillic_ef: number; + +export const KEY_Cyrillic_el: number; + +export const KEY_Cyrillic_em: number; + +export const KEY_Cyrillic_en: number; + +export const KEY_Cyrillic_en_descender: number; + +export const KEY_Cyrillic_er: number; + +export const KEY_Cyrillic_es: number; + +export const KEY_Cyrillic_ghe: number; + +export const KEY_Cyrillic_ghe_bar: number; + +export const KEY_Cyrillic_ha: number; + +export const KEY_Cyrillic_ha_descender: number; + +export const KEY_Cyrillic_hardsign: number; + +export const KEY_Cyrillic_i: number; + +export const KEY_Cyrillic_i_macron: number; + +export const KEY_Cyrillic_ie: number; + +export const KEY_Cyrillic_io: number; + +export const KEY_Cyrillic_je: number; + +export const KEY_Cyrillic_ka: number; + +export const KEY_Cyrillic_ka_descender: number; + +export const KEY_Cyrillic_ka_vertstroke: number; + +export const KEY_Cyrillic_lje: number; + +export const KEY_Cyrillic_nje: number; + +export const KEY_Cyrillic_o: number; + +export const KEY_Cyrillic_o_bar: number; + +export const KEY_Cyrillic_pe: number; + +export const KEY_Cyrillic_schwa: number; + +export const KEY_Cyrillic_sha: number; + +export const KEY_Cyrillic_shcha: number; + +export const KEY_Cyrillic_shha: number; + +export const KEY_Cyrillic_shorti: number; + +export const KEY_Cyrillic_softsign: number; + +export const KEY_Cyrillic_te: number; + +export const KEY_Cyrillic_tse: number; + +export const KEY_Cyrillic_u: number; + +export const KEY_Cyrillic_u_macron: number; + +export const KEY_Cyrillic_u_straight: number; + +export const KEY_Cyrillic_u_straight_bar: number; + +export const KEY_Cyrillic_ve: number; + +export const KEY_Cyrillic_ya: number; + +export const KEY_Cyrillic_yeru: number; + +export const KEY_Cyrillic_yu: number; + +export const KEY_Cyrillic_ze: number; + +export const KEY_Cyrillic_zhe: number; + +export const KEY_Cyrillic_zhe_descender: number; + +export const KEY_D: number; + +export const KEY_DOS: number; + +export const KEY_Dabovedot: number; + +export const KEY_Dcaron: number; + +export const KEY_Delete: number; + +export const KEY_Display: number; + +export const KEY_Documents: number; + +export const KEY_DongSign: number; + +export const KEY_Down: number; + +export const KEY_Dstroke: number; + +export const KEY_E: number; + +export const KEY_ENG: number; + +export const KEY_ETH: number; + +export const KEY_EZH: number; + +export const KEY_Eabovedot: number; + +export const KEY_Eacute: number; + +export const KEY_Ebelowdot: number; + +export const KEY_Ecaron: number; + +export const KEY_Ecircumflex: number; + +export const KEY_Ecircumflexacute: number; + +export const KEY_Ecircumflexbelowdot: number; + +export const KEY_Ecircumflexgrave: number; + +export const KEY_Ecircumflexhook: number; + +export const KEY_Ecircumflextilde: number; + +export const KEY_EcuSign: number; + +export const KEY_Ediaeresis: number; + +export const KEY_Egrave: number; + +export const KEY_Ehook: number; + +export const KEY_Eisu_Shift: number; + +export const KEY_Eisu_toggle: number; + +export const KEY_Eject: number; + +export const KEY_Emacron: number; + +export const KEY_End: number; + +export const KEY_Eogonek: number; + +export const KEY_Escape: number; + +export const KEY_Eth: number; + +export const KEY_Etilde: number; + +export const KEY_EuroSign: number; + +export const KEY_Excel: number; + +export const KEY_Execute: number; + +export const KEY_Explorer: number; + +export const KEY_F: number; + +export const KEY_F1: number; + +export const KEY_F10: number; + +export const KEY_F11: number; + +export const KEY_F12: number; + +export const KEY_F13: number; + +export const KEY_F14: number; + +export const KEY_F15: number; + +export const KEY_F16: number; + +export const KEY_F17: number; + +export const KEY_F18: number; + +export const KEY_F19: number; + +export const KEY_F2: number; + +export const KEY_F20: number; + +export const KEY_F21: number; + +export const KEY_F22: number; + +export const KEY_F23: number; + +export const KEY_F24: number; + +export const KEY_F25: number; + +export const KEY_F26: number; + +export const KEY_F27: number; + +export const KEY_F28: number; + +export const KEY_F29: number; + +export const KEY_F3: number; + +export const KEY_F30: number; + +export const KEY_F31: number; + +export const KEY_F32: number; + +export const KEY_F33: number; + +export const KEY_F34: number; + +export const KEY_F35: number; + +export const KEY_F4: number; + +export const KEY_F5: number; + +export const KEY_F6: number; + +export const KEY_F7: number; + +export const KEY_F8: number; + +export const KEY_F9: number; + +export const KEY_FFrancSign: number; + +export const KEY_Fabovedot: number; + +export const KEY_Farsi_0: number; + +export const KEY_Farsi_1: number; + +export const KEY_Farsi_2: number; + +export const KEY_Farsi_3: number; + +export const KEY_Farsi_4: number; + +export const KEY_Farsi_5: number; + +export const KEY_Farsi_6: number; + +export const KEY_Farsi_7: number; + +export const KEY_Farsi_8: number; + +export const KEY_Farsi_9: number; + +export const KEY_Farsi_yeh: number; + +export const KEY_Favorites: number; + +export const KEY_Finance: number; + +export const KEY_Find: number; + +export const KEY_First_Virtual_Screen: number; + +export const KEY_Forward: number; + +export const KEY_FrameBack: number; + +export const KEY_FrameForward: number; + +export const KEY_G: number; + +export const KEY_Gabovedot: number; + +export const KEY_Game: number; + +export const KEY_Gbreve: number; + +export const KEY_Gcaron: number; + +export const KEY_Gcedilla: number; + +export const KEY_Gcircumflex: number; + +export const KEY_Georgian_an: number; + +export const KEY_Georgian_ban: number; + +export const KEY_Georgian_can: number; + +export const KEY_Georgian_char: number; + +export const KEY_Georgian_chin: number; + +export const KEY_Georgian_cil: number; + +export const KEY_Georgian_don: number; + +export const KEY_Georgian_en: number; + +export const KEY_Georgian_fi: number; + +export const KEY_Georgian_gan: number; + +export const KEY_Georgian_ghan: number; + +export const KEY_Georgian_hae: number; + +export const KEY_Georgian_har: number; + +export const KEY_Georgian_he: number; + +export const KEY_Georgian_hie: number; + +export const KEY_Georgian_hoe: number; + +export const KEY_Georgian_in: number; + +export const KEY_Georgian_jhan: number; + +export const KEY_Georgian_jil: number; + +export const KEY_Georgian_kan: number; + +export const KEY_Georgian_khar: number; + +export const KEY_Georgian_las: number; + +export const KEY_Georgian_man: number; + +export const KEY_Georgian_nar: number; + +export const KEY_Georgian_on: number; + +export const KEY_Georgian_par: number; + +export const KEY_Georgian_phar: number; + +export const KEY_Georgian_qar: number; + +export const KEY_Georgian_rae: number; + +export const KEY_Georgian_san: number; + +export const KEY_Georgian_shin: number; + +export const KEY_Georgian_tan: number; + +export const KEY_Georgian_tar: number; + +export const KEY_Georgian_un: number; + +export const KEY_Georgian_vin: number; + +export const KEY_Georgian_we: number; + +export const KEY_Georgian_xan: number; + +export const KEY_Georgian_zen: number; + +export const KEY_Georgian_zhar: number; + +export const KEY_Go: number; + +export const KEY_Greek_ALPHA: number; + +export const KEY_Greek_ALPHAaccent: number; + +export const KEY_Greek_BETA: number; + +export const KEY_Greek_CHI: number; + +export const KEY_Greek_DELTA: number; + +export const KEY_Greek_EPSILON: number; + +export const KEY_Greek_EPSILONaccent: number; + +export const KEY_Greek_ETA: number; + +export const KEY_Greek_ETAaccent: number; + +export const KEY_Greek_GAMMA: number; + +export const KEY_Greek_IOTA: number; + +export const KEY_Greek_IOTAaccent: number; + +export const KEY_Greek_IOTAdiaeresis: number; + +export const KEY_Greek_IOTAdieresis: number; + +export const KEY_Greek_KAPPA: number; + +export const KEY_Greek_LAMBDA: number; + +export const KEY_Greek_LAMDA: number; + +export const KEY_Greek_MU: number; + +export const KEY_Greek_NU: number; + +export const KEY_Greek_OMEGA: number; + +export const KEY_Greek_OMEGAaccent: number; + +export const KEY_Greek_OMICRON: number; + +export const KEY_Greek_OMICRONaccent: number; + +export const KEY_Greek_PHI: number; + +export const KEY_Greek_PI: number; + +export const KEY_Greek_PSI: number; + +export const KEY_Greek_RHO: number; + +export const KEY_Greek_SIGMA: number; + +export const KEY_Greek_TAU: number; + +export const KEY_Greek_THETA: number; + +export const KEY_Greek_UPSILON: number; + +export const KEY_Greek_UPSILONaccent: number; + +export const KEY_Greek_UPSILONdieresis: number; + +export const KEY_Greek_XI: number; + +export const KEY_Greek_ZETA: number; + +export const KEY_Greek_accentdieresis: number; + +export const KEY_Greek_alpha: number; + +export const KEY_Greek_alphaaccent: number; + +export const KEY_Greek_beta: number; + +export const KEY_Greek_chi: number; + +export const KEY_Greek_delta: number; + +export const KEY_Greek_epsilon: number; + +export const KEY_Greek_epsilonaccent: number; + +export const KEY_Greek_eta: number; + +export const KEY_Greek_etaaccent: number; + +export const KEY_Greek_finalsmallsigma: number; + +export const KEY_Greek_gamma: number; + +export const KEY_Greek_horizbar: number; + +export const KEY_Greek_iota: number; + +export const KEY_Greek_iotaaccent: number; + +export const KEY_Greek_iotaaccentdieresis: number; + +export const KEY_Greek_iotadieresis: number; + +export const KEY_Greek_kappa: number; + +export const KEY_Greek_lambda: number; + +export const KEY_Greek_lamda: number; + +export const KEY_Greek_mu: number; + +export const KEY_Greek_nu: number; + +export const KEY_Greek_omega: number; + +export const KEY_Greek_omegaaccent: number; + +export const KEY_Greek_omicron: number; + +export const KEY_Greek_omicronaccent: number; + +export const KEY_Greek_phi: number; + +export const KEY_Greek_pi: number; + +export const KEY_Greek_psi: number; + +export const KEY_Greek_rho: number; + +export const KEY_Greek_sigma: number; + +export const KEY_Greek_switch: number; + +export const KEY_Greek_tau: number; + +export const KEY_Greek_theta: number; + +export const KEY_Greek_upsilon: number; + +export const KEY_Greek_upsilonaccent: number; + +export const KEY_Greek_upsilonaccentdieresis: number; + +export const KEY_Greek_upsilondieresis: number; + +export const KEY_Greek_xi: number; + +export const KEY_Greek_zeta: number; + +export const KEY_Green: number; + +export const KEY_H: number; + +export const KEY_Hangul: number; + +export const KEY_Hangul_A: number; + +export const KEY_Hangul_AE: number; + +export const KEY_Hangul_AraeA: number; + +export const KEY_Hangul_AraeAE: number; + +export const KEY_Hangul_Banja: number; + +export const KEY_Hangul_Cieuc: number; + +export const KEY_Hangul_Codeinput: number; + +export const KEY_Hangul_Dikeud: number; + +export const KEY_Hangul_E: number; + +export const KEY_Hangul_EO: number; + +export const KEY_Hangul_EU: number; + +export const KEY_Hangul_End: number; + +export const KEY_Hangul_Hanja: number; + +export const KEY_Hangul_Hieuh: number; + +export const KEY_Hangul_I: number; + +export const KEY_Hangul_Ieung: number; + +export const KEY_Hangul_J_Cieuc: number; + +export const KEY_Hangul_J_Dikeud: number; + +export const KEY_Hangul_J_Hieuh: number; + +export const KEY_Hangul_J_Ieung: number; + +export const KEY_Hangul_J_Jieuj: number; + +export const KEY_Hangul_J_Khieuq: number; + +export const KEY_Hangul_J_Kiyeog: number; + +export const KEY_Hangul_J_KiyeogSios: number; + +export const KEY_Hangul_J_KkogjiDalrinIeung: number; + +export const KEY_Hangul_J_Mieum: number; + +export const KEY_Hangul_J_Nieun: number; + +export const KEY_Hangul_J_NieunHieuh: number; + +export const KEY_Hangul_J_NieunJieuj: number; + +export const KEY_Hangul_J_PanSios: number; + +export const KEY_Hangul_J_Phieuf: number; + +export const KEY_Hangul_J_Pieub: number; + +export const KEY_Hangul_J_PieubSios: number; + +export const KEY_Hangul_J_Rieul: number; + +export const KEY_Hangul_J_RieulHieuh: number; + +export const KEY_Hangul_J_RieulKiyeog: number; + +export const KEY_Hangul_J_RieulMieum: number; + +export const KEY_Hangul_J_RieulPhieuf: number; + +export const KEY_Hangul_J_RieulPieub: number; + +export const KEY_Hangul_J_RieulSios: number; + +export const KEY_Hangul_J_RieulTieut: number; + +export const KEY_Hangul_J_Sios: number; + +export const KEY_Hangul_J_SsangKiyeog: number; + +export const KEY_Hangul_J_SsangSios: number; + +export const KEY_Hangul_J_Tieut: number; + +export const KEY_Hangul_J_YeorinHieuh: number; + +export const KEY_Hangul_Jamo: number; + +export const KEY_Hangul_Jeonja: number; + +export const KEY_Hangul_Jieuj: number; + +export const KEY_Hangul_Khieuq: number; + +export const KEY_Hangul_Kiyeog: number; + +export const KEY_Hangul_KiyeogSios: number; + +export const KEY_Hangul_KkogjiDalrinIeung: number; + +export const KEY_Hangul_Mieum: number; + +export const KEY_Hangul_MultipleCandidate: number; + +export const KEY_Hangul_Nieun: number; + +export const KEY_Hangul_NieunHieuh: number; + +export const KEY_Hangul_NieunJieuj: number; + +export const KEY_Hangul_O: number; + +export const KEY_Hangul_OE: number; + +export const KEY_Hangul_PanSios: number; + +export const KEY_Hangul_Phieuf: number; + +export const KEY_Hangul_Pieub: number; + +export const KEY_Hangul_PieubSios: number; + +export const KEY_Hangul_PostHanja: number; + +export const KEY_Hangul_PreHanja: number; + +export const KEY_Hangul_PreviousCandidate: number; + +export const KEY_Hangul_Rieul: number; + +export const KEY_Hangul_RieulHieuh: number; + +export const KEY_Hangul_RieulKiyeog: number; + +export const KEY_Hangul_RieulMieum: number; + +export const KEY_Hangul_RieulPhieuf: number; + +export const KEY_Hangul_RieulPieub: number; + +export const KEY_Hangul_RieulSios: number; + +export const KEY_Hangul_RieulTieut: number; + +export const KEY_Hangul_RieulYeorinHieuh: number; + +export const KEY_Hangul_Romaja: number; + +export const KEY_Hangul_SingleCandidate: number; + +export const KEY_Hangul_Sios: number; + +export const KEY_Hangul_Special: number; + +export const KEY_Hangul_SsangDikeud: number; + +export const KEY_Hangul_SsangJieuj: number; + +export const KEY_Hangul_SsangKiyeog: number; + +export const KEY_Hangul_SsangPieub: number; + +export const KEY_Hangul_SsangSios: number; + +export const KEY_Hangul_Start: number; + +export const KEY_Hangul_SunkyeongeumMieum: number; + +export const KEY_Hangul_SunkyeongeumPhieuf: number; + +export const KEY_Hangul_SunkyeongeumPieub: number; + +export const KEY_Hangul_Tieut: number; + +export const KEY_Hangul_U: number; + +export const KEY_Hangul_WA: number; + +export const KEY_Hangul_WAE: number; + +export const KEY_Hangul_WE: number; + +export const KEY_Hangul_WEO: number; + +export const KEY_Hangul_WI: number; + +export const KEY_Hangul_YA: number; + +export const KEY_Hangul_YAE: number; + +export const KEY_Hangul_YE: number; + +export const KEY_Hangul_YEO: number; + +export const KEY_Hangul_YI: number; + +export const KEY_Hangul_YO: number; + +export const KEY_Hangul_YU: number; + +export const KEY_Hangul_YeorinHieuh: number; + +export const KEY_Hangul_switch: number; + +export const KEY_Hankaku: number; + +export const KEY_Hcircumflex: number; + +export const KEY_Hebrew_switch: number; + +export const KEY_Help: number; + +export const KEY_Henkan: number; + +export const KEY_Henkan_Mode: number; + +export const KEY_Hibernate: number; + +export const KEY_Hiragana: number; + +export const KEY_Hiragana_Katakana: number; + +export const KEY_History: number; + +export const KEY_Home: number; + +export const KEY_HomePage: number; + +export const KEY_HotLinks: number; + +export const KEY_Hstroke: number; + +export const KEY_Hyper_L: number; + +export const KEY_Hyper_R: number; + +export const KEY_I: number; + +export const KEY_ISO_Center_Object: number; + +export const KEY_ISO_Continuous_Underline: number; + +export const KEY_ISO_Discontinuous_Underline: number; + +export const KEY_ISO_Emphasize: number; + +export const KEY_ISO_Enter: number; + +export const KEY_ISO_Fast_Cursor_Down: number; + +export const KEY_ISO_Fast_Cursor_Left: number; + +export const KEY_ISO_Fast_Cursor_Right: number; + +export const KEY_ISO_Fast_Cursor_Up: number; + +export const KEY_ISO_First_Group: number; + +export const KEY_ISO_First_Group_Lock: number; + +export const KEY_ISO_Group_Latch: number; + +export const KEY_ISO_Group_Lock: number; + +export const KEY_ISO_Group_Shift: number; + +export const KEY_ISO_Last_Group: number; + +export const KEY_ISO_Last_Group_Lock: number; + +export const KEY_ISO_Left_Tab: number; + +export const KEY_ISO_Level2_Latch: number; + +export const KEY_ISO_Level3_Latch: number; + +export const KEY_ISO_Level3_Lock: number; + +export const KEY_ISO_Level3_Shift: number; + +export const KEY_ISO_Level5_Latch: number; + +export const KEY_ISO_Level5_Lock: number; + +export const KEY_ISO_Level5_Shift: number; + +export const KEY_ISO_Lock: number; + +export const KEY_ISO_Move_Line_Down: number; + +export const KEY_ISO_Move_Line_Up: number; + +export const KEY_ISO_Next_Group: number; + +export const KEY_ISO_Next_Group_Lock: number; + +export const KEY_ISO_Partial_Line_Down: number; + +export const KEY_ISO_Partial_Line_Up: number; + +export const KEY_ISO_Partial_Space_Left: number; + +export const KEY_ISO_Partial_Space_Right: number; + +export const KEY_ISO_Prev_Group: number; + +export const KEY_ISO_Prev_Group_Lock: number; + +export const KEY_ISO_Release_Both_Margins: number; + +export const KEY_ISO_Release_Margin_Left: number; + +export const KEY_ISO_Release_Margin_Right: number; + +export const KEY_ISO_Set_Margin_Left: number; + +export const KEY_ISO_Set_Margin_Right: number; + +export const KEY_Iabovedot: number; + +export const KEY_Iacute: number; + +export const KEY_Ibelowdot: number; + +export const KEY_Ibreve: number; + +export const KEY_Icircumflex: number; + +export const KEY_Idiaeresis: number; + +export const KEY_Igrave: number; + +export const KEY_Ihook: number; + +export const KEY_Imacron: number; + +export const KEY_Insert: number; + +export const KEY_Iogonek: number; + +export const KEY_Itilde: number; + +export const KEY_J: number; + +export const KEY_Jcircumflex: number; + +export const KEY_K: number; + +export const KEY_KP_0: number; + +export const KEY_KP_1: number; + +export const KEY_KP_2: number; + +export const KEY_KP_3: number; + +export const KEY_KP_4: number; + +export const KEY_KP_5: number; + +export const KEY_KP_6: number; + +export const KEY_KP_7: number; + +export const KEY_KP_8: number; + +export const KEY_KP_9: number; + +export const KEY_KP_Add: number; + +export const KEY_KP_Begin: number; + +export const KEY_KP_Decimal: number; + +export const KEY_KP_Delete: number; + +export const KEY_KP_Divide: number; + +export const KEY_KP_Down: number; + +export const KEY_KP_End: number; + +export const KEY_KP_Enter: number; + +export const KEY_KP_Equal: number; + +export const KEY_KP_F1: number; + +export const KEY_KP_F2: number; + +export const KEY_KP_F3: number; + +export const KEY_KP_F4: number; + +export const KEY_KP_Home: number; + +export const KEY_KP_Insert: number; + +export const KEY_KP_Left: number; + +export const KEY_KP_Multiply: number; + +export const KEY_KP_Next: number; + +export const KEY_KP_Page_Down: number; + +export const KEY_KP_Page_Up: number; + +export const KEY_KP_Prior: number; + +export const KEY_KP_Right: number; + +export const KEY_KP_Separator: number; + +export const KEY_KP_Space: number; + +export const KEY_KP_Subtract: number; + +export const KEY_KP_Tab: number; + +export const KEY_KP_Up: number; + +export const KEY_Kana_Lock: number; + +export const KEY_Kana_Shift: number; + +export const KEY_Kanji: number; + +export const KEY_Kanji_Bangou: number; + +export const KEY_Katakana: number; + +export const KEY_KbdBrightnessDown: number; + +export const KEY_KbdBrightnessUp: number; + +export const KEY_KbdLightOnOff: number; + +export const KEY_Kcedilla: number; + +export const KEY_Korean_Won: number; + +export const KEY_L: number; + +export const KEY_L1: number; + +export const KEY_L10: number; + +export const KEY_L2: number; + +export const KEY_L3: number; + +export const KEY_L4: number; + +export const KEY_L5: number; + +export const KEY_L6: number; + +export const KEY_L7: number; + +export const KEY_L8: number; + +export const KEY_L9: number; + +export const KEY_Lacute: number; + +export const KEY_Last_Virtual_Screen: number; + +export const KEY_Launch0: number; + +export const KEY_Launch1: number; + +export const KEY_Launch2: number; + +export const KEY_Launch3: number; + +export const KEY_Launch4: number; + +export const KEY_Launch5: number; + +export const KEY_Launch6: number; + +export const KEY_Launch7: number; + +export const KEY_Launch8: number; + +export const KEY_Launch9: number; + +export const KEY_LaunchA: number; + +export const KEY_LaunchB: number; + +export const KEY_LaunchC: number; + +export const KEY_LaunchD: number; + +export const KEY_LaunchE: number; + +export const KEY_LaunchF: number; + +export const KEY_Lbelowdot: number; + +export const KEY_Lcaron: number; + +export const KEY_Lcedilla: number; + +export const KEY_Left: number; + +export const KEY_LightBulb: number; + +export const KEY_Linefeed: number; + +export const KEY_LiraSign: number; + +export const KEY_LogGrabInfo: number; + +export const KEY_LogOff: number; + +export const KEY_LogWindowTree: number; + +export const KEY_Lstroke: number; + +export const KEY_M: number; + +export const KEY_Mabovedot: number; + +export const KEY_Macedonia_DSE: number; + +export const KEY_Macedonia_GJE: number; + +export const KEY_Macedonia_KJE: number; + +export const KEY_Macedonia_dse: number; + +export const KEY_Macedonia_gje: number; + +export const KEY_Macedonia_kje: number; + +export const KEY_Mae_Koho: number; + +export const KEY_Mail: number; + +export const KEY_MailForward: number; + +export const KEY_Market: number; + +export const KEY_Massyo: number; + +export const KEY_Meeting: number; + +export const KEY_Memo: number; + +export const KEY_Menu: number; + +export const KEY_MenuKB: number; + +export const KEY_MenuPB: number; + +export const KEY_Messenger: number; + +export const KEY_Meta_L: number; + +export const KEY_Meta_R: number; + +export const KEY_MillSign: number; + +export const KEY_ModeLock: number; + +export const KEY_Mode_switch: number; + +export const KEY_MonBrightnessDown: number; + +export const KEY_MonBrightnessUp: number; + +export const KEY_MouseKeys_Accel_Enable: number; + +export const KEY_MouseKeys_Enable: number; + +export const KEY_Muhenkan: number; + +export const KEY_Multi_key: number; + +export const KEY_MultipleCandidate: number; + +export const KEY_Music: number; + +export const KEY_MyComputer: number; + +export const KEY_MySites: number; + +export const KEY_N: number; + +export const KEY_Nacute: number; + +export const KEY_NairaSign: number; + +export const KEY_Ncaron: number; + +export const KEY_Ncedilla: number; + +export const KEY_New: number; + +export const KEY_NewSheqelSign: number; + +export const KEY_News: number; + +export const KEY_Next: number; + +export const KEY_Next_VMode: number; + +export const KEY_Next_Virtual_Screen: number; + +export const KEY_Ntilde: number; + +export const KEY_Num_Lock: number; + +export const KEY_O: number; + +export const KEY_OE: number; + +export const KEY_Oacute: number; + +export const KEY_Obarred: number; + +export const KEY_Obelowdot: number; + +export const KEY_Ocaron: number; + +export const KEY_Ocircumflex: number; + +export const KEY_Ocircumflexacute: number; + +export const KEY_Ocircumflexbelowdot: number; + +export const KEY_Ocircumflexgrave: number; + +export const KEY_Ocircumflexhook: number; + +export const KEY_Ocircumflextilde: number; + +export const KEY_Odiaeresis: number; + +export const KEY_Odoubleacute: number; + +export const KEY_OfficeHome: number; + +export const KEY_Ograve: number; + +export const KEY_Ohook: number; + +export const KEY_Ohorn: number; + +export const KEY_Ohornacute: number; + +export const KEY_Ohornbelowdot: number; + +export const KEY_Ohorngrave: number; + +export const KEY_Ohornhook: number; + +export const KEY_Ohorntilde: number; + +export const KEY_Omacron: number; + +export const KEY_Ooblique: number; + +export const KEY_Open: number; + +export const KEY_OpenURL: number; + +export const KEY_Option: number; + +export const KEY_Oslash: number; + +export const KEY_Otilde: number; + +export const KEY_Overlay1_Enable: number; + +export const KEY_Overlay2_Enable: number; + +export const KEY_P: number; + +export const KEY_Pabovedot: number; + +export const KEY_Page_Down: number; + +export const KEY_Page_Up: number; + +export const KEY_Paste: number; + +export const KEY_Pause: number; + +export const KEY_PesetaSign: number; + +export const KEY_Phone: number; + +export const KEY_Pictures: number; + +export const KEY_Pointer_Accelerate: number; + +export const KEY_Pointer_Button1: number; + +export const KEY_Pointer_Button2: number; + +export const KEY_Pointer_Button3: number; + +export const KEY_Pointer_Button4: number; + +export const KEY_Pointer_Button5: number; + +export const KEY_Pointer_Button_Dflt: number; + +export const KEY_Pointer_DblClick1: number; + +export const KEY_Pointer_DblClick2: number; + +export const KEY_Pointer_DblClick3: number; + +export const KEY_Pointer_DblClick4: number; + +export const KEY_Pointer_DblClick5: number; + +export const KEY_Pointer_DblClick_Dflt: number; + +export const KEY_Pointer_DfltBtnNext: number; + +export const KEY_Pointer_DfltBtnPrev: number; + +export const KEY_Pointer_Down: number; + +export const KEY_Pointer_DownLeft: number; + +export const KEY_Pointer_DownRight: number; + +export const KEY_Pointer_Drag1: number; + +export const KEY_Pointer_Drag2: number; + +export const KEY_Pointer_Drag3: number; + +export const KEY_Pointer_Drag4: number; + +export const KEY_Pointer_Drag5: number; + +export const KEY_Pointer_Drag_Dflt: number; + +export const KEY_Pointer_EnableKeys: number; + +export const KEY_Pointer_Left: number; + +export const KEY_Pointer_Right: number; + +export const KEY_Pointer_Up: number; + +export const KEY_Pointer_UpLeft: number; + +export const KEY_Pointer_UpRight: number; + +export const KEY_PowerDown: number; + +export const KEY_PowerOff: number; + +export const KEY_Prev_VMode: number; + +export const KEY_Prev_Virtual_Screen: number; + +export const KEY_PreviousCandidate: number; + +export const KEY_Print: number; + +export const KEY_Prior: number; + +export const KEY_Q: number; + +export const KEY_R: number; + +export const KEY_R1: number; + +export const KEY_R10: number; + +export const KEY_R11: number; + +export const KEY_R12: number; + +export const KEY_R13: number; + +export const KEY_R14: number; + +export const KEY_R15: number; + +export const KEY_R2: number; + +export const KEY_R3: number; + +export const KEY_R4: number; + +export const KEY_R5: number; + +export const KEY_R6: number; + +export const KEY_R7: number; + +export const KEY_R8: number; + +export const KEY_R9: number; + +export const KEY_Racute: number; + +export const KEY_Rcaron: number; + +export const KEY_Rcedilla: number; + +export const KEY_Red: number; + +export const KEY_Redo: number; + +export const KEY_Refresh: number; + +export const KEY_Reload: number; + +export const KEY_RepeatKeys_Enable: number; + +export const KEY_Reply: number; + +export const KEY_Return: number; + +export const KEY_Right: number; + +export const KEY_RockerDown: number; + +export const KEY_RockerEnter: number; + +export const KEY_RockerUp: number; + +export const KEY_Romaji: number; + +export const KEY_RotateWindows: number; + +export const KEY_RotationKB: number; + +export const KEY_RotationPB: number; + +export const KEY_RupeeSign: number; + +export const KEY_S: number; + +export const KEY_SCHWA: number; + +export const KEY_Sabovedot: number; + +export const KEY_Sacute: number; + +export const KEY_Save: number; + +export const KEY_Scaron: number; + +export const KEY_Scedilla: number; + +export const KEY_Scircumflex: number; + +export const KEY_ScreenSaver: number; + +export const KEY_ScrollClick: number; + +export const KEY_ScrollDown: number; + +export const KEY_ScrollUp: number; + +export const KEY_Scroll_Lock: number; + +export const KEY_Search: number; + +export const KEY_Select: number; + +export const KEY_SelectButton: number; + +export const KEY_Send: number; + +export const KEY_Serbian_DJE: number; + +export const KEY_Serbian_DZE: number; + +export const KEY_Serbian_JE: number; + +export const KEY_Serbian_LJE: number; + +export const KEY_Serbian_NJE: number; + +export const KEY_Serbian_TSHE: number; + +export const KEY_Serbian_dje: number; + +export const KEY_Serbian_dze: number; + +export const KEY_Serbian_je: number; + +export const KEY_Serbian_lje: number; + +export const KEY_Serbian_nje: number; + +export const KEY_Serbian_tshe: number; + +export const KEY_Shift_L: number; + +export const KEY_Shift_Lock: number; + +export const KEY_Shift_R: number; + +export const KEY_Shop: number; + +export const KEY_SingleCandidate: number; + +export const KEY_Sinh_a: number; + +export const KEY_Sinh_aa: number; + +export const KEY_Sinh_aa2: number; + +export const KEY_Sinh_ae: number; + +export const KEY_Sinh_ae2: number; + +export const KEY_Sinh_aee: number; + +export const KEY_Sinh_aee2: number; + +export const KEY_Sinh_ai: number; + +export const KEY_Sinh_ai2: number; + +export const KEY_Sinh_al: number; + +export const KEY_Sinh_au: number; + +export const KEY_Sinh_au2: number; + +export const KEY_Sinh_ba: number; + +export const KEY_Sinh_bha: number; + +export const KEY_Sinh_ca: number; + +export const KEY_Sinh_cha: number; + +export const KEY_Sinh_dda: number; + +export const KEY_Sinh_ddha: number; + +export const KEY_Sinh_dha: number; + +export const KEY_Sinh_dhha: number; + +export const KEY_Sinh_e: number; + +export const KEY_Sinh_e2: number; + +export const KEY_Sinh_ee: number; + +export const KEY_Sinh_ee2: number; + +export const KEY_Sinh_fa: number; + +export const KEY_Sinh_ga: number; + +export const KEY_Sinh_gha: number; + +export const KEY_Sinh_h2: number; + +export const KEY_Sinh_ha: number; + +export const KEY_Sinh_i: number; + +export const KEY_Sinh_i2: number; + +export const KEY_Sinh_ii: number; + +export const KEY_Sinh_ii2: number; + +export const KEY_Sinh_ja: number; + +export const KEY_Sinh_jha: number; + +export const KEY_Sinh_jnya: number; + +export const KEY_Sinh_ka: number; + +export const KEY_Sinh_kha: number; + +export const KEY_Sinh_kunddaliya: number; + +export const KEY_Sinh_la: number; + +export const KEY_Sinh_lla: number; + +export const KEY_Sinh_lu: number; + +export const KEY_Sinh_lu2: number; + +export const KEY_Sinh_luu: number; + +export const KEY_Sinh_luu2: number; + +export const KEY_Sinh_ma: number; + +export const KEY_Sinh_mba: number; + +export const KEY_Sinh_na: number; + +export const KEY_Sinh_ndda: number; + +export const KEY_Sinh_ndha: number; + +export const KEY_Sinh_ng: number; + +export const KEY_Sinh_ng2: number; + +export const KEY_Sinh_nga: number; + +export const KEY_Sinh_nja: number; + +export const KEY_Sinh_nna: number; + +export const KEY_Sinh_nya: number; + +export const KEY_Sinh_o: number; + +export const KEY_Sinh_o2: number; + +export const KEY_Sinh_oo: number; + +export const KEY_Sinh_oo2: number; + +export const KEY_Sinh_pa: number; + +export const KEY_Sinh_pha: number; + +export const KEY_Sinh_ra: number; + +export const KEY_Sinh_ri: number; + +export const KEY_Sinh_rii: number; + +export const KEY_Sinh_ru2: number; + +export const KEY_Sinh_ruu2: number; + +export const KEY_Sinh_sa: number; + +export const KEY_Sinh_sha: number; + +export const KEY_Sinh_ssha: number; + +export const KEY_Sinh_tha: number; + +export const KEY_Sinh_thha: number; + +export const KEY_Sinh_tta: number; + +export const KEY_Sinh_ttha: number; + +export const KEY_Sinh_u: number; + +export const KEY_Sinh_u2: number; + +export const KEY_Sinh_uu: number; + +export const KEY_Sinh_uu2: number; + +export const KEY_Sinh_va: number; + +export const KEY_Sinh_ya: number; + +export const KEY_Sleep: number; + +export const KEY_SlowKeys_Enable: number; + +export const KEY_Spell: number; + +export const KEY_SplitScreen: number; + +export const KEY_Standby: number; + +export const KEY_Start: number; + +export const KEY_StickyKeys_Enable: number; + +export const KEY_Stop: number; + +export const KEY_Subtitle: number; + +export const KEY_Super_L: number; + +export const KEY_Super_R: number; + +export const KEY_Support: number; + +export const KEY_Suspend: number; + +export const KEY_Switch_VT_1: number; + +export const KEY_Switch_VT_10: number; + +export const KEY_Switch_VT_11: number; + +export const KEY_Switch_VT_12: number; + +export const KEY_Switch_VT_2: number; + +export const KEY_Switch_VT_3: number; + +export const KEY_Switch_VT_4: number; + +export const KEY_Switch_VT_5: number; + +export const KEY_Switch_VT_6: number; + +export const KEY_Switch_VT_7: number; + +export const KEY_Switch_VT_8: number; + +export const KEY_Switch_VT_9: number; + +export const KEY_Sys_Req: number; + +export const KEY_T: number; + +export const KEY_THORN: number; + +export const KEY_Tab: number; + +export const KEY_Tabovedot: number; + +export const KEY_TaskPane: number; + +export const KEY_Tcaron: number; + +export const KEY_Tcedilla: number; + +export const KEY_Terminal: number; + +export const KEY_Terminate_Server: number; + +export const KEY_Thai_baht: number; + +export const KEY_Thai_bobaimai: number; + +export const KEY_Thai_chochan: number; + +export const KEY_Thai_chochang: number; + +export const KEY_Thai_choching: number; + +export const KEY_Thai_chochoe: number; + +export const KEY_Thai_dochada: number; + +export const KEY_Thai_dodek: number; + +export const KEY_Thai_fofa: number; + +export const KEY_Thai_fofan: number; + +export const KEY_Thai_hohip: number; + +export const KEY_Thai_honokhuk: number; + +export const KEY_Thai_khokhai: number; + +export const KEY_Thai_khokhon: number; + +export const KEY_Thai_khokhuat: number; + +export const KEY_Thai_khokhwai: number; + +export const KEY_Thai_khorakhang: number; + +export const KEY_Thai_kokai: number; + +export const KEY_Thai_lakkhangyao: number; + +export const KEY_Thai_lekchet: number; + +export const KEY_Thai_lekha: number; + +export const KEY_Thai_lekhok: number; + +export const KEY_Thai_lekkao: number; + +export const KEY_Thai_leknung: number; + +export const KEY_Thai_lekpaet: number; + +export const KEY_Thai_leksam: number; + +export const KEY_Thai_leksi: number; + +export const KEY_Thai_leksong: number; + +export const KEY_Thai_leksun: number; + +export const KEY_Thai_lochula: number; + +export const KEY_Thai_loling: number; + +export const KEY_Thai_lu: number; + +export const KEY_Thai_maichattawa: number; + +export const KEY_Thai_maiek: number; + +export const KEY_Thai_maihanakat: number; + +export const KEY_Thai_maihanakat_maitho: number; + +export const KEY_Thai_maitaikhu: number; + +export const KEY_Thai_maitho: number; + +export const KEY_Thai_maitri: number; + +export const KEY_Thai_maiyamok: number; + +export const KEY_Thai_moma: number; + +export const KEY_Thai_ngongu: number; + +export const KEY_Thai_nikhahit: number; + +export const KEY_Thai_nonen: number; + +export const KEY_Thai_nonu: number; + +export const KEY_Thai_oang: number; + +export const KEY_Thai_paiyannoi: number; + +export const KEY_Thai_phinthu: number; + +export const KEY_Thai_phophan: number; + +export const KEY_Thai_phophung: number; + +export const KEY_Thai_phosamphao: number; + +export const KEY_Thai_popla: number; + +export const KEY_Thai_rorua: number; + +export const KEY_Thai_ru: number; + +export const KEY_Thai_saraa: number; + +export const KEY_Thai_saraaa: number; + +export const KEY_Thai_saraae: number; + +export const KEY_Thai_saraaimaimalai: number; + +export const KEY_Thai_saraaimaimuan: number; + +export const KEY_Thai_saraam: number; + +export const KEY_Thai_sarae: number; + +export const KEY_Thai_sarai: number; + +export const KEY_Thai_saraii: number; + +export const KEY_Thai_sarao: number; + +export const KEY_Thai_sarau: number; + +export const KEY_Thai_saraue: number; + +export const KEY_Thai_sarauee: number; + +export const KEY_Thai_sarauu: number; + +export const KEY_Thai_sorusi: number; + +export const KEY_Thai_sosala: number; + +export const KEY_Thai_soso: number; + +export const KEY_Thai_sosua: number; + +export const KEY_Thai_thanthakhat: number; + +export const KEY_Thai_thonangmontho: number; + +export const KEY_Thai_thophuthao: number; + +export const KEY_Thai_thothahan: number; + +export const KEY_Thai_thothan: number; + +export const KEY_Thai_thothong: number; + +export const KEY_Thai_thothung: number; + +export const KEY_Thai_topatak: number; + +export const KEY_Thai_totao: number; + +export const KEY_Thai_wowaen: number; + +export const KEY_Thai_yoyak: number; + +export const KEY_Thai_yoying: number; + +export const KEY_Thorn: number; + +export const KEY_Time: number; + +export const KEY_ToDoList: number; + +export const KEY_Tools: number; + +export const KEY_TopMenu: number; + +export const KEY_TouchpadOff: number; + +export const KEY_TouchpadOn: number; + +export const KEY_TouchpadToggle: number; + +export const KEY_Touroku: number; + +export const KEY_Travel: number; + +export const KEY_Tslash: number; + +export const KEY_U: number; + +export const KEY_UWB: number; + +export const KEY_Uacute: number; + +export const KEY_Ubelowdot: number; + +export const KEY_Ubreve: number; + +export const KEY_Ucircumflex: number; + +export const KEY_Udiaeresis: number; + +export const KEY_Udoubleacute: number; + +export const KEY_Ugrave: number; + +export const KEY_Uhook: number; + +export const KEY_Uhorn: number; + +export const KEY_Uhornacute: number; + +export const KEY_Uhornbelowdot: number; + +export const KEY_Uhorngrave: number; + +export const KEY_Uhornhook: number; + +export const KEY_Uhorntilde: number; + +export const KEY_Ukrainian_GHE_WITH_UPTURN: number; + +export const KEY_Ukrainian_I: number; + +export const KEY_Ukrainian_IE: number; + +export const KEY_Ukrainian_YI: number; + +export const KEY_Ukrainian_ghe_with_upturn: number; + +export const KEY_Ukrainian_i: number; + +export const KEY_Ukrainian_ie: number; + +export const KEY_Ukrainian_yi: number; + +export const KEY_Ukranian_I: number; + +export const KEY_Ukranian_JE: number; + +export const KEY_Ukranian_YI: number; + +export const KEY_Ukranian_i: number; + +export const KEY_Ukranian_je: number; + +export const KEY_Ukranian_yi: number; + +export const KEY_Umacron: number; + +export const KEY_Undo: number; + +export const KEY_Ungrab: number; + +export const KEY_Uogonek: number; + +export const KEY_Up: number; + +export const KEY_Uring: number; + +export const KEY_User1KB: number; + +export const KEY_User2KB: number; + +export const KEY_UserPB: number; + +export const KEY_Utilde: number; + +export const KEY_V: number; + +export const KEY_VendorHome: number; + +export const KEY_Video: number; + +export const KEY_View: number; + +export const KEY_VoidSymbol: number; + +export const KEY_W: number; + +export const KEY_WLAN: number; + +export const KEY_WWW: number; + +export const KEY_Wacute: number; + +export const KEY_WakeUp: number; + +export const KEY_Wcircumflex: number; + +export const KEY_Wdiaeresis: number; + +export const KEY_WebCam: number; + +export const KEY_Wgrave: number; + +export const KEY_WheelButton: number; + +export const KEY_WindowClear: number; + +export const KEY_WonSign: number; + +export const KEY_Word: number; + +export const KEY_X: number; + +export const KEY_Xabovedot: number; + +export const KEY_Xfer: number; + +export const KEY_Y: number; + +export const KEY_Yacute: number; + +export const KEY_Ybelowdot: number; + +export const KEY_Ycircumflex: number; + +export const KEY_Ydiaeresis: number; + +export const KEY_Yellow: number; + +export const KEY_Ygrave: number; + +export const KEY_Yhook: number; + +export const KEY_Ytilde: number; + +export const KEY_Z: number; + +export const KEY_Zabovedot: number; + +export const KEY_Zacute: number; + +export const KEY_Zcaron: number; + +export const KEY_Zen_Koho: number; + +export const KEY_Zenkaku: number; + +export const KEY_Zenkaku_Hankaku: number; + +export const KEY_ZoomIn: number; + +export const KEY_ZoomOut: number; + +export const KEY_Zstroke: number; + +export const KEY_a: number; + +export const KEY_aacute: number; + +export const KEY_abelowdot: number; + +export const KEY_abovedot: number; + +export const KEY_abreve: number; + +export const KEY_abreveacute: number; + +export const KEY_abrevebelowdot: number; + +export const KEY_abrevegrave: number; + +export const KEY_abrevehook: number; + +export const KEY_abrevetilde: number; + +export const KEY_acircumflex: number; + +export const KEY_acircumflexacute: number; + +export const KEY_acircumflexbelowdot: number; + +export const KEY_acircumflexgrave: number; + +export const KEY_acircumflexhook: number; + +export const KEY_acircumflextilde: number; + +export const KEY_acute: number; + +export const KEY_adiaeresis: number; + +export const KEY_ae: number; + +export const KEY_agrave: number; + +export const KEY_ahook: number; + +export const KEY_amacron: number; + +export const KEY_ampersand: number; + +export const KEY_aogonek: number; + +export const KEY_apostrophe: number; + +export const KEY_approxeq: number; + +export const KEY_approximate: number; + +export const KEY_aring: number; + +export const KEY_asciicircum: number; + +export const KEY_asciitilde: number; + +export const KEY_asterisk: number; + +export const KEY_at: number; + +export const KEY_atilde: number; + +export const KEY_b: number; + +export const KEY_babovedot: number; + +export const KEY_backslash: number; + +export const KEY_ballotcross: number; + +export const KEY_bar: number; + +export const KEY_because: number; + +export const KEY_blank: number; + +export const KEY_botintegral: number; + +export const KEY_botleftparens: number; + +export const KEY_botleftsqbracket: number; + +export const KEY_botleftsummation: number; + +export const KEY_botrightparens: number; + +export const KEY_botrightsqbracket: number; + +export const KEY_botrightsummation: number; + +export const KEY_bott: number; + +export const KEY_botvertsummationconnector: number; + +export const KEY_braceleft: number; + +export const KEY_braceright: number; + +export const KEY_bracketleft: number; + +export const KEY_bracketright: number; + +export const KEY_braille_blank: number; + +export const KEY_braille_dot_1: number; + +export const KEY_braille_dot_10: number; + +export const KEY_braille_dot_2: number; + +export const KEY_braille_dot_3: number; + +export const KEY_braille_dot_4: number; + +export const KEY_braille_dot_5: number; + +export const KEY_braille_dot_6: number; + +export const KEY_braille_dot_7: number; + +export const KEY_braille_dot_8: number; + +export const KEY_braille_dot_9: number; + +export const KEY_braille_dots_1: number; + +export const KEY_braille_dots_12: number; + +export const KEY_braille_dots_123: number; + +export const KEY_braille_dots_1234: number; + +export const KEY_braille_dots_12345: number; + +export const KEY_braille_dots_123456: number; + +export const KEY_braille_dots_1234567: number; + +export const KEY_braille_dots_12345678: number; + +export const KEY_braille_dots_1234568: number; + +export const KEY_braille_dots_123457: number; + +export const KEY_braille_dots_1234578: number; + +export const KEY_braille_dots_123458: number; + +export const KEY_braille_dots_12346: number; + +export const KEY_braille_dots_123467: number; + +export const KEY_braille_dots_1234678: number; + +export const KEY_braille_dots_123468: number; + +export const KEY_braille_dots_12347: number; + +export const KEY_braille_dots_123478: number; + +export const KEY_braille_dots_12348: number; + +export const KEY_braille_dots_1235: number; + +export const KEY_braille_dots_12356: number; + +export const KEY_braille_dots_123567: number; + +export const KEY_braille_dots_1235678: number; + +export const KEY_braille_dots_123568: number; + +export const KEY_braille_dots_12357: number; + +export const KEY_braille_dots_123578: number; + +export const KEY_braille_dots_12358: number; + +export const KEY_braille_dots_1236: number; + +export const KEY_braille_dots_12367: number; + +export const KEY_braille_dots_123678: number; + +export const KEY_braille_dots_12368: number; + +export const KEY_braille_dots_1237: number; + +export const KEY_braille_dots_12378: number; + +export const KEY_braille_dots_1238: number; + +export const KEY_braille_dots_124: number; + +export const KEY_braille_dots_1245: number; + +export const KEY_braille_dots_12456: number; + +export const KEY_braille_dots_124567: number; + +export const KEY_braille_dots_1245678: number; + +export const KEY_braille_dots_124568: number; + +export const KEY_braille_dots_12457: number; + +export const KEY_braille_dots_124578: number; + +export const KEY_braille_dots_12458: number; + +export const KEY_braille_dots_1246: number; + +export const KEY_braille_dots_12467: number; + +export const KEY_braille_dots_124678: number; + +export const KEY_braille_dots_12468: number; + +export const KEY_braille_dots_1247: number; + +export const KEY_braille_dots_12478: number; + +export const KEY_braille_dots_1248: number; + +export const KEY_braille_dots_125: number; + +export const KEY_braille_dots_1256: number; + +export const KEY_braille_dots_12567: number; + +export const KEY_braille_dots_125678: number; + +export const KEY_braille_dots_12568: number; + +export const KEY_braille_dots_1257: number; + +export const KEY_braille_dots_12578: number; + +export const KEY_braille_dots_1258: number; + +export const KEY_braille_dots_126: number; + +export const KEY_braille_dots_1267: number; + +export const KEY_braille_dots_12678: number; + +export const KEY_braille_dots_1268: number; + +export const KEY_braille_dots_127: number; + +export const KEY_braille_dots_1278: number; + +export const KEY_braille_dots_128: number; + +export const KEY_braille_dots_13: number; + +export const KEY_braille_dots_134: number; + +export const KEY_braille_dots_1345: number; + +export const KEY_braille_dots_13456: number; + +export const KEY_braille_dots_134567: number; + +export const KEY_braille_dots_1345678: number; + +export const KEY_braille_dots_134568: number; + +export const KEY_braille_dots_13457: number; + +export const KEY_braille_dots_134578: number; + +export const KEY_braille_dots_13458: number; + +export const KEY_braille_dots_1346: number; + +export const KEY_braille_dots_13467: number; + +export const KEY_braille_dots_134678: number; + +export const KEY_braille_dots_13468: number; + +export const KEY_braille_dots_1347: number; + +export const KEY_braille_dots_13478: number; + +export const KEY_braille_dots_1348: number; + +export const KEY_braille_dots_135: number; + +export const KEY_braille_dots_1356: number; + +export const KEY_braille_dots_13567: number; + +export const KEY_braille_dots_135678: number; + +export const KEY_braille_dots_13568: number; + +export const KEY_braille_dots_1357: number; + +export const KEY_braille_dots_13578: number; + +export const KEY_braille_dots_1358: number; + +export const KEY_braille_dots_136: number; + +export const KEY_braille_dots_1367: number; + +export const KEY_braille_dots_13678: number; + +export const KEY_braille_dots_1368: number; + +export const KEY_braille_dots_137: number; + +export const KEY_braille_dots_1378: number; + +export const KEY_braille_dots_138: number; + +export const KEY_braille_dots_14: number; + +export const KEY_braille_dots_145: number; + +export const KEY_braille_dots_1456: number; + +export const KEY_braille_dots_14567: number; + +export const KEY_braille_dots_145678: number; + +export const KEY_braille_dots_14568: number; + +export const KEY_braille_dots_1457: number; + +export const KEY_braille_dots_14578: number; + +export const KEY_braille_dots_1458: number; + +export const KEY_braille_dots_146: number; + +export const KEY_braille_dots_1467: number; + +export const KEY_braille_dots_14678: number; + +export const KEY_braille_dots_1468: number; + +export const KEY_braille_dots_147: number; + +export const KEY_braille_dots_1478: number; + +export const KEY_braille_dots_148: number; + +export const KEY_braille_dots_15: number; + +export const KEY_braille_dots_156: number; + +export const KEY_braille_dots_1567: number; + +export const KEY_braille_dots_15678: number; + +export const KEY_braille_dots_1568: number; + +export const KEY_braille_dots_157: number; + +export const KEY_braille_dots_1578: number; + +export const KEY_braille_dots_158: number; + +export const KEY_braille_dots_16: number; + +export const KEY_braille_dots_167: number; + +export const KEY_braille_dots_1678: number; + +export const KEY_braille_dots_168: number; + +export const KEY_braille_dots_17: number; + +export const KEY_braille_dots_178: number; + +export const KEY_braille_dots_18: number; + +export const KEY_braille_dots_2: number; + +export const KEY_braille_dots_23: number; + +export const KEY_braille_dots_234: number; + +export const KEY_braille_dots_2345: number; + +export const KEY_braille_dots_23456: number; + +export const KEY_braille_dots_234567: number; + +export const KEY_braille_dots_2345678: number; + +export const KEY_braille_dots_234568: number; + +export const KEY_braille_dots_23457: number; + +export const KEY_braille_dots_234578: number; + +export const KEY_braille_dots_23458: number; + +export const KEY_braille_dots_2346: number; + +export const KEY_braille_dots_23467: number; + +export const KEY_braille_dots_234678: number; + +export const KEY_braille_dots_23468: number; + +export const KEY_braille_dots_2347: number; + +export const KEY_braille_dots_23478: number; + +export const KEY_braille_dots_2348: number; + +export const KEY_braille_dots_235: number; + +export const KEY_braille_dots_2356: number; + +export const KEY_braille_dots_23567: number; + +export const KEY_braille_dots_235678: number; + +export const KEY_braille_dots_23568: number; + +export const KEY_braille_dots_2357: number; + +export const KEY_braille_dots_23578: number; + +export const KEY_braille_dots_2358: number; + +export const KEY_braille_dots_236: number; + +export const KEY_braille_dots_2367: number; + +export const KEY_braille_dots_23678: number; + +export const KEY_braille_dots_2368: number; + +export const KEY_braille_dots_237: number; + +export const KEY_braille_dots_2378: number; + +export const KEY_braille_dots_238: number; + +export const KEY_braille_dots_24: number; + +export const KEY_braille_dots_245: number; + +export const KEY_braille_dots_2456: number; + +export const KEY_braille_dots_24567: number; + +export const KEY_braille_dots_245678: number; + +export const KEY_braille_dots_24568: number; + +export const KEY_braille_dots_2457: number; + +export const KEY_braille_dots_24578: number; + +export const KEY_braille_dots_2458: number; + +export const KEY_braille_dots_246: number; + +export const KEY_braille_dots_2467: number; + +export const KEY_braille_dots_24678: number; + +export const KEY_braille_dots_2468: number; + +export const KEY_braille_dots_247: number; + +export const KEY_braille_dots_2478: number; + +export const KEY_braille_dots_248: number; + +export const KEY_braille_dots_25: number; + +export const KEY_braille_dots_256: number; + +export const KEY_braille_dots_2567: number; + +export const KEY_braille_dots_25678: number; + +export const KEY_braille_dots_2568: number; + +export const KEY_braille_dots_257: number; + +export const KEY_braille_dots_2578: number; + +export const KEY_braille_dots_258: number; + +export const KEY_braille_dots_26: number; + +export const KEY_braille_dots_267: number; + +export const KEY_braille_dots_2678: number; + +export const KEY_braille_dots_268: number; + +export const KEY_braille_dots_27: number; + +export const KEY_braille_dots_278: number; + +export const KEY_braille_dots_28: number; + +export const KEY_braille_dots_3: number; + +export const KEY_braille_dots_34: number; + +export const KEY_braille_dots_345: number; + +export const KEY_braille_dots_3456: number; + +export const KEY_braille_dots_34567: number; + +export const KEY_braille_dots_345678: number; + +export const KEY_braille_dots_34568: number; + +export const KEY_braille_dots_3457: number; + +export const KEY_braille_dots_34578: number; + +export const KEY_braille_dots_3458: number; + +export const KEY_braille_dots_346: number; + +export const KEY_braille_dots_3467: number; + +export const KEY_braille_dots_34678: number; + +export const KEY_braille_dots_3468: number; + +export const KEY_braille_dots_347: number; + +export const KEY_braille_dots_3478: number; + +export const KEY_braille_dots_348: number; + +export const KEY_braille_dots_35: number; + +export const KEY_braille_dots_356: number; + +export const KEY_braille_dots_3567: number; + +export const KEY_braille_dots_35678: number; + +export const KEY_braille_dots_3568: number; + +export const KEY_braille_dots_357: number; + +export const KEY_braille_dots_3578: number; + +export const KEY_braille_dots_358: number; + +export const KEY_braille_dots_36: number; + +export const KEY_braille_dots_367: number; + +export const KEY_braille_dots_3678: number; + +export const KEY_braille_dots_368: number; + +export const KEY_braille_dots_37: number; + +export const KEY_braille_dots_378: number; + +export const KEY_braille_dots_38: number; + +export const KEY_braille_dots_4: number; + +export const KEY_braille_dots_45: number; + +export const KEY_braille_dots_456: number; + +export const KEY_braille_dots_4567: number; + +export const KEY_braille_dots_45678: number; + +export const KEY_braille_dots_4568: number; + +export const KEY_braille_dots_457: number; + +export const KEY_braille_dots_4578: number; + +export const KEY_braille_dots_458: number; + +export const KEY_braille_dots_46: number; + +export const KEY_braille_dots_467: number; + +export const KEY_braille_dots_4678: number; + +export const KEY_braille_dots_468: number; + +export const KEY_braille_dots_47: number; + +export const KEY_braille_dots_478: number; + +export const KEY_braille_dots_48: number; + +export const KEY_braille_dots_5: number; + +export const KEY_braille_dots_56: number; + +export const KEY_braille_dots_567: number; + +export const KEY_braille_dots_5678: number; + +export const KEY_braille_dots_568: number; + +export const KEY_braille_dots_57: number; + +export const KEY_braille_dots_578: number; + +export const KEY_braille_dots_58: number; + +export const KEY_braille_dots_6: number; + +export const KEY_braille_dots_67: number; + +export const KEY_braille_dots_678: number; + +export const KEY_braille_dots_68: number; + +export const KEY_braille_dots_7: number; + +export const KEY_braille_dots_78: number; + +export const KEY_braille_dots_8: number; + +export const KEY_breve: number; + +export const KEY_brokenbar: number; + +export const KEY_c: number; + +export const KEY_c_h: number; + +export const KEY_cabovedot: number; + +export const KEY_cacute: number; + +export const KEY_careof: number; + +export const KEY_caret: number; + +export const KEY_caron: number; + +export const KEY_ccaron: number; + +export const KEY_ccedilla: number; + +export const KEY_ccircumflex: number; + +export const KEY_cedilla: number; + +export const KEY_cent: number; + +export const KEY_ch: number; + +export const KEY_checkerboard: number; + +export const KEY_checkmark: number; + +export const KEY_circle: number; + +export const KEY_club: number; + +export const KEY_colon: number; + +export const KEY_comma: number; + +export const KEY_containsas: number; + +export const KEY_copyright: number; + +export const KEY_cr: number; + +export const KEY_crossinglines: number; + +export const KEY_cuberoot: number; + +export const KEY_currency: number; + +export const KEY_cursor: number; + +export const KEY_d: number; + +export const KEY_dabovedot: number; + +export const KEY_dagger: number; + +export const KEY_dcaron: number; + +export const KEY_dead_A: number; + +export const KEY_dead_E: number; + +export const KEY_dead_I: number; + +export const KEY_dead_O: number; + +export const KEY_dead_U: number; + +export const KEY_dead_a: number; + +export const KEY_dead_abovecomma: number; + +export const KEY_dead_abovedot: number; + +export const KEY_dead_abovereversedcomma: number; + +export const KEY_dead_abovering: number; + +export const KEY_dead_aboveverticalline: number; + +export const KEY_dead_acute: number; + +export const KEY_dead_belowbreve: number; + +export const KEY_dead_belowcircumflex: number; + +export const KEY_dead_belowcomma: number; + +export const KEY_dead_belowdiaeresis: number; + +export const KEY_dead_belowdot: number; + +export const KEY_dead_belowmacron: number; + +export const KEY_dead_belowring: number; + +export const KEY_dead_belowtilde: number; + +export const KEY_dead_belowverticalline: number; + +export const KEY_dead_breve: number; + +export const KEY_dead_capital_schwa: number; + +export const KEY_dead_caron: number; + +export const KEY_dead_cedilla: number; + +export const KEY_dead_circumflex: number; + +export const KEY_dead_currency: number; + +export const KEY_dead_dasia: number; + +export const KEY_dead_diaeresis: number; + +export const KEY_dead_doubleacute: number; + +export const KEY_dead_doublegrave: number; + +export const KEY_dead_e: number; + +export const KEY_dead_grave: number; + +export const KEY_dead_greek: number; + +export const KEY_dead_hook: number; + +export const KEY_dead_horn: number; + +export const KEY_dead_i: number; + +export const KEY_dead_invertedbreve: number; + +export const KEY_dead_iota: number; + +export const KEY_dead_longsolidusoverlay: number; + +export const KEY_dead_lowline: number; + +export const KEY_dead_macron: number; + +export const KEY_dead_o: number; + +export const KEY_dead_ogonek: number; + +export const KEY_dead_perispomeni: number; + +export const KEY_dead_psili: number; + +export const KEY_dead_semivoiced_sound: number; + +export const KEY_dead_small_schwa: number; + +export const KEY_dead_stroke: number; + +export const KEY_dead_tilde: number; + +export const KEY_dead_u: number; + +export const KEY_dead_voiced_sound: number; + +export const KEY_decimalpoint: number; + +export const KEY_degree: number; + +export const KEY_diaeresis: number; + +export const KEY_diamond: number; + +export const KEY_digitspace: number; + +export const KEY_dintegral: number; + +export const KEY_division: number; + +export const KEY_dollar: number; + +export const KEY_doubbaselinedot: number; + +export const KEY_doubleacute: number; + +export const KEY_doubledagger: number; + +export const KEY_doublelowquotemark: number; + +export const KEY_downarrow: number; + +export const KEY_downcaret: number; + +export const KEY_downshoe: number; + +export const KEY_downstile: number; + +export const KEY_downtack: number; + +export const KEY_dstroke: number; + +export const KEY_e: number; + +export const KEY_eabovedot: number; + +export const KEY_eacute: number; + +export const KEY_ebelowdot: number; + +export const KEY_ecaron: number; + +export const KEY_ecircumflex: number; + +export const KEY_ecircumflexacute: number; + +export const KEY_ecircumflexbelowdot: number; + +export const KEY_ecircumflexgrave: number; + +export const KEY_ecircumflexhook: number; + +export const KEY_ecircumflextilde: number; + +export const KEY_ediaeresis: number; + +export const KEY_egrave: number; + +export const KEY_ehook: number; + +export const KEY_eightsubscript: number; + +export const KEY_eightsuperior: number; + +export const KEY_elementof: number; + +export const KEY_ellipsis: number; + +export const KEY_em3space: number; + +export const KEY_em4space: number; + +export const KEY_emacron: number; + +export const KEY_emdash: number; + +export const KEY_emfilledcircle: number; + +export const KEY_emfilledrect: number; + +export const KEY_emopencircle: number; + +export const KEY_emopenrectangle: number; + +export const KEY_emptyset: number; + +export const KEY_emspace: number; + +export const KEY_endash: number; + +export const KEY_enfilledcircbullet: number; + +export const KEY_enfilledsqbullet: number; + +export const KEY_eng: number; + +export const KEY_enopencircbullet: number; + +export const KEY_enopensquarebullet: number; + +export const KEY_enspace: number; + +export const KEY_eogonek: number; + +export const KEY_equal: number; + +export const KEY_eth: number; + +export const KEY_etilde: number; + +export const KEY_exclam: number; + +export const KEY_exclamdown: number; + +export const KEY_ezh: number; + +export const KEY_f: number; + +export const KEY_fabovedot: number; + +export const KEY_femalesymbol: number; + +export const KEY_ff: number; + +export const KEY_figdash: number; + +export const KEY_filledlefttribullet: number; + +export const KEY_filledrectbullet: number; + +export const KEY_filledrighttribullet: number; + +export const KEY_filledtribulletdown: number; + +export const KEY_filledtribulletup: number; + +export const KEY_fiveeighths: number; + +export const KEY_fivesixths: number; + +export const KEY_fivesubscript: number; + +export const KEY_fivesuperior: number; + +export const KEY_fourfifths: number; + +export const KEY_foursubscript: number; + +export const KEY_foursuperior: number; + +export const KEY_fourthroot: number; + +export const KEY_function: number; + +export const KEY_g: number; + +export const KEY_gabovedot: number; + +export const KEY_gbreve: number; + +export const KEY_gcaron: number; + +export const KEY_gcedilla: number; + +export const KEY_gcircumflex: number; + +export const KEY_grave: number; + +export const KEY_greater: number; + +export const KEY_greaterthanequal: number; + +export const KEY_guillemotleft: number; + +export const KEY_guillemotright: number; + +export const KEY_h: number; + +export const KEY_hairspace: number; + +export const KEY_hcircumflex: number; + +export const KEY_heart: number; + +export const KEY_hebrew_aleph: number; + +export const KEY_hebrew_ayin: number; + +export const KEY_hebrew_bet: number; + +export const KEY_hebrew_beth: number; + +export const KEY_hebrew_chet: number; + +export const KEY_hebrew_dalet: number; + +export const KEY_hebrew_daleth: number; + +export const KEY_hebrew_doublelowline: number; + +export const KEY_hebrew_finalkaph: number; + +export const KEY_hebrew_finalmem: number; + +export const KEY_hebrew_finalnun: number; + +export const KEY_hebrew_finalpe: number; + +export const KEY_hebrew_finalzade: number; + +export const KEY_hebrew_finalzadi: number; + +export const KEY_hebrew_gimel: number; + +export const KEY_hebrew_gimmel: number; + +export const KEY_hebrew_he: number; + +export const KEY_hebrew_het: number; + +export const KEY_hebrew_kaph: number; + +export const KEY_hebrew_kuf: number; + +export const KEY_hebrew_lamed: number; + +export const KEY_hebrew_mem: number; + +export const KEY_hebrew_nun: number; + +export const KEY_hebrew_pe: number; + +export const KEY_hebrew_qoph: number; + +export const KEY_hebrew_resh: number; + +export const KEY_hebrew_samech: number; + +export const KEY_hebrew_samekh: number; + +export const KEY_hebrew_shin: number; + +export const KEY_hebrew_taf: number; + +export const KEY_hebrew_taw: number; + +export const KEY_hebrew_tet: number; + +export const KEY_hebrew_teth: number; + +export const KEY_hebrew_waw: number; + +export const KEY_hebrew_yod: number; + +export const KEY_hebrew_zade: number; + +export const KEY_hebrew_zadi: number; + +export const KEY_hebrew_zain: number; + +export const KEY_hebrew_zayin: number; + +export const KEY_hexagram: number; + +export const KEY_horizconnector: number; + +export const KEY_horizlinescan1: number; + +export const KEY_horizlinescan3: number; + +export const KEY_horizlinescan5: number; + +export const KEY_horizlinescan7: number; + +export const KEY_horizlinescan9: number; + +export const KEY_hstroke: number; + +export const KEY_ht: number; + +export const KEY_hyphen: number; + +export const KEY_i: number; + +export const KEY_iTouch: number; + +export const KEY_iacute: number; + +export const KEY_ibelowdot: number; + +export const KEY_ibreve: number; + +export const KEY_icircumflex: number; + +export const KEY_identical: number; + +export const KEY_idiaeresis: number; + +export const KEY_idotless: number; + +export const KEY_ifonlyif: number; + +export const KEY_igrave: number; + +export const KEY_ihook: number; + +export const KEY_imacron: number; + +export const KEY_implies: number; + +export const KEY_includedin: number; + +export const KEY_includes: number; + +export const KEY_infinity: number; + +export const KEY_integral: number; + +export const KEY_intersection: number; + +export const KEY_iogonek: number; + +export const KEY_itilde: number; + +export const KEY_j: number; + +export const KEY_jcircumflex: number; + +export const KEY_jot: number; + +export const KEY_k: number; + +export const KEY_kana_A: number; + +export const KEY_kana_CHI: number; + +export const KEY_kana_E: number; + +export const KEY_kana_FU: number; + +export const KEY_kana_HA: number; + +export const KEY_kana_HE: number; + +export const KEY_kana_HI: number; + +export const KEY_kana_HO: number; + +export const KEY_kana_HU: number; + +export const KEY_kana_I: number; + +export const KEY_kana_KA: number; + +export const KEY_kana_KE: number; + +export const KEY_kana_KI: number; + +export const KEY_kana_KO: number; + +export const KEY_kana_KU: number; + +export const KEY_kana_MA: number; + +export const KEY_kana_ME: number; + +export const KEY_kana_MI: number; + +export const KEY_kana_MO: number; + +export const KEY_kana_MU: number; + +export const KEY_kana_N: number; + +export const KEY_kana_NA: number; + +export const KEY_kana_NE: number; + +export const KEY_kana_NI: number; + +export const KEY_kana_NO: number; + +export const KEY_kana_NU: number; + +export const KEY_kana_O: number; + +export const KEY_kana_RA: number; + +export const KEY_kana_RE: number; + +export const KEY_kana_RI: number; + +export const KEY_kana_RO: number; + +export const KEY_kana_RU: number; + +export const KEY_kana_SA: number; + +export const KEY_kana_SE: number; + +export const KEY_kana_SHI: number; + +export const KEY_kana_SO: number; + +export const KEY_kana_SU: number; + +export const KEY_kana_TA: number; + +export const KEY_kana_TE: number; + +export const KEY_kana_TI: number; + +export const KEY_kana_TO: number; + +export const KEY_kana_TSU: number; + +export const KEY_kana_TU: number; + +export const KEY_kana_U: number; + +export const KEY_kana_WA: number; + +export const KEY_kana_WO: number; + +export const KEY_kana_YA: number; + +export const KEY_kana_YO: number; + +export const KEY_kana_YU: number; + +export const KEY_kana_a: number; + +export const KEY_kana_closingbracket: number; + +export const KEY_kana_comma: number; + +export const KEY_kana_conjunctive: number; + +export const KEY_kana_e: number; + +export const KEY_kana_fullstop: number; + +export const KEY_kana_i: number; + +export const KEY_kana_middledot: number; + +export const KEY_kana_o: number; + +export const KEY_kana_openingbracket: number; + +export const KEY_kana_switch: number; + +export const KEY_kana_tsu: number; + +export const KEY_kana_tu: number; + +export const KEY_kana_u: number; + +export const KEY_kana_ya: number; + +export const KEY_kana_yo: number; + +export const KEY_kana_yu: number; + +export const KEY_kappa: number; + +export const KEY_kcedilla: number; + +export const KEY_kra: number; + +export const KEY_l: number; + +export const KEY_lacute: number; + +export const KEY_latincross: number; + +export const KEY_lbelowdot: number; + +export const KEY_lcaron: number; + +export const KEY_lcedilla: number; + +export const KEY_leftanglebracket: number; + +export const KEY_leftarrow: number; + +export const KEY_leftcaret: number; + +export const KEY_leftdoublequotemark: number; + +export const KEY_leftmiddlecurlybrace: number; + +export const KEY_leftopentriangle: number; + +export const KEY_leftpointer: number; + +export const KEY_leftradical: number; + +export const KEY_leftshoe: number; + +export const KEY_leftsinglequotemark: number; + +export const KEY_leftt: number; + +export const KEY_lefttack: number; + +export const KEY_less: number; + +export const KEY_lessthanequal: number; + +export const KEY_lf: number; + +export const KEY_logicaland: number; + +export const KEY_logicalor: number; + +export const KEY_lowleftcorner: number; + +export const KEY_lowrightcorner: number; + +export const KEY_lstroke: number; + +export const KEY_m: number; + +export const KEY_mabovedot: number; + +export const KEY_macron: number; + +export const KEY_malesymbol: number; + +export const KEY_maltesecross: number; + +export const KEY_marker: number; + +export const KEY_masculine: number; + +export const KEY_minus: number; + +export const KEY_minutes: number; + +export const KEY_mu: number; + +export const KEY_multiply: number; + +export const KEY_musicalflat: number; + +export const KEY_musicalsharp: number; + +export const KEY_n: number; + +export const KEY_nabla: number; + +export const KEY_nacute: number; + +export const KEY_ncaron: number; + +export const KEY_ncedilla: number; + +export const KEY_ninesubscript: number; + +export const KEY_ninesuperior: number; + +export const KEY_nl: number; + +export const KEY_nobreakspace: number; + +export const KEY_notapproxeq: number; + +export const KEY_notelementof: number; + +export const KEY_notequal: number; + +export const KEY_notidentical: number; + +export const KEY_notsign: number; + +export const KEY_ntilde: number; + +export const KEY_numbersign: number; + +export const KEY_numerosign: number; + +export const KEY_o: number; + +export const KEY_oacute: number; + +export const KEY_obarred: number; + +export const KEY_obelowdot: number; + +export const KEY_ocaron: number; + +export const KEY_ocircumflex: number; + +export const KEY_ocircumflexacute: number; + +export const KEY_ocircumflexbelowdot: number; + +export const KEY_ocircumflexgrave: number; + +export const KEY_ocircumflexhook: number; + +export const KEY_ocircumflextilde: number; + +export const KEY_odiaeresis: number; + +export const KEY_odoubleacute: number; + +export const KEY_oe: number; + +export const KEY_ogonek: number; + +export const KEY_ograve: number; + +export const KEY_ohook: number; + +export const KEY_ohorn: number; + +export const KEY_ohornacute: number; + +export const KEY_ohornbelowdot: number; + +export const KEY_ohorngrave: number; + +export const KEY_ohornhook: number; + +export const KEY_ohorntilde: number; + +export const KEY_omacron: number; + +export const KEY_oneeighth: number; + +export const KEY_onefifth: number; + +export const KEY_onehalf: number; + +export const KEY_onequarter: number; + +export const KEY_onesixth: number; + +export const KEY_onesubscript: number; + +export const KEY_onesuperior: number; + +export const KEY_onethird: number; + +export const KEY_ooblique: number; + +export const KEY_openrectbullet: number; + +export const KEY_openstar: number; + +export const KEY_opentribulletdown: number; + +export const KEY_opentribulletup: number; + +export const KEY_ordfeminine: number; + +export const KEY_oslash: number; + +export const KEY_otilde: number; + +export const KEY_overbar: number; + +export const KEY_overline: number; + +export const KEY_p: number; + +export const KEY_pabovedot: number; + +export const KEY_paragraph: number; + +export const KEY_parenleft: number; + +export const KEY_parenright: number; + +export const KEY_partdifferential: number; + +export const KEY_partialderivative: number; + +export const KEY_percent: number; + +export const KEY_period: number; + +export const KEY_periodcentered: number; + +export const KEY_permille: number; + +export const KEY_phonographcopyright: number; + +export const KEY_plus: number; + +export const KEY_plusminus: number; + +export const KEY_prescription: number; + +export const KEY_prolongedsound: number; + +export const KEY_punctspace: number; + +export const KEY_q: number; + +export const KEY_quad: number; + +export const KEY_question: number; + +export const KEY_questiondown: number; + +export const KEY_quotedbl: number; + +export const KEY_quoteleft: number; + +export const KEY_quoteright: number; + +export const KEY_r: number; + +export const KEY_racute: number; + +export const KEY_radical: number; + +export const KEY_rcaron: number; + +export const KEY_rcedilla: number; + +export const KEY_registered: number; + +export const KEY_rightanglebracket: number; + +export const KEY_rightarrow: number; + +export const KEY_rightcaret: number; + +export const KEY_rightdoublequotemark: number; + +export const KEY_rightmiddlecurlybrace: number; + +export const KEY_rightmiddlesummation: number; + +export const KEY_rightopentriangle: number; + +export const KEY_rightpointer: number; + +export const KEY_rightshoe: number; + +export const KEY_rightsinglequotemark: number; + +export const KEY_rightt: number; + +export const KEY_righttack: number; + +export const KEY_s: number; + +export const KEY_sabovedot: number; + +export const KEY_sacute: number; + +export const KEY_scaron: number; + +export const KEY_scedilla: number; + +export const KEY_schwa: number; + +export const KEY_scircumflex: number; + +export const KEY_script_switch: number; + +export const KEY_seconds: number; + +export const KEY_section: number; + +export const KEY_semicolon: number; + +export const KEY_semivoicedsound: number; + +export const KEY_seveneighths: number; + +export const KEY_sevensubscript: number; + +export const KEY_sevensuperior: number; + +export const KEY_signaturemark: number; + +export const KEY_signifblank: number; + +export const KEY_similarequal: number; + +export const KEY_singlelowquotemark: number; + +export const KEY_sixsubscript: number; + +export const KEY_sixsuperior: number; + +export const KEY_slash: number; + +export const KEY_soliddiamond: number; + +export const KEY_space: number; + +export const KEY_squareroot: number; + +export const KEY_ssharp: number; + +export const KEY_sterling: number; + +export const KEY_stricteq: number; + +export const KEY_t: number; + +export const KEY_tabovedot: number; + +export const KEY_tcaron: number; + +export const KEY_tcedilla: number; + +export const KEY_telephone: number; + +export const KEY_telephonerecorder: number; + +export const KEY_therefore: number; + +export const KEY_thinspace: number; + +export const KEY_thorn: number; + +export const KEY_threeeighths: number; + +export const KEY_threefifths: number; + +export const KEY_threequarters: number; + +export const KEY_threesubscript: number; + +export const KEY_threesuperior: number; + +export const KEY_tintegral: number; + +export const KEY_topintegral: number; + +export const KEY_topleftparens: number; + +export const KEY_topleftradical: number; + +export const KEY_topleftsqbracket: number; + +export const KEY_topleftsummation: number; + +export const KEY_toprightparens: number; + +export const KEY_toprightsqbracket: number; + +export const KEY_toprightsummation: number; + +export const KEY_topt: number; + +export const KEY_topvertsummationconnector: number; + +export const KEY_trademark: number; + +export const KEY_trademarkincircle: number; + +export const KEY_tslash: number; + +export const KEY_twofifths: number; + +export const KEY_twosubscript: number; + +export const KEY_twosuperior: number; + +export const KEY_twothirds: number; + +export const KEY_u: number; + +export const KEY_uacute: number; + +export const KEY_ubelowdot: number; + +export const KEY_ubreve: number; + +export const KEY_ucircumflex: number; + +export const KEY_udiaeresis: number; + +export const KEY_udoubleacute: number; + +export const KEY_ugrave: number; + +export const KEY_uhook: number; + +export const KEY_uhorn: number; + +export const KEY_uhornacute: number; + +export const KEY_uhornbelowdot: number; + +export const KEY_uhorngrave: number; + +export const KEY_uhornhook: number; + +export const KEY_uhorntilde: number; + +export const KEY_umacron: number; + +export const KEY_underbar: number; + +export const KEY_underscore: number; + +export const KEY_union: number; + +export const KEY_uogonek: number; + +export const KEY_uparrow: number; + +export const KEY_upcaret: number; + +export const KEY_upleftcorner: number; + +export const KEY_uprightcorner: number; + +export const KEY_upshoe: number; + +export const KEY_upstile: number; + +export const KEY_uptack: number; + +export const KEY_uring: number; + +export const KEY_utilde: number; + +export const KEY_v: number; + +export const KEY_variation: number; + +export const KEY_vertbar: number; + +export const KEY_vertconnector: number; + +export const KEY_voicedsound: number; + +export const KEY_vt: number; + +export const KEY_w: number; + +export const KEY_wacute: number; + +export const KEY_wcircumflex: number; + +export const KEY_wdiaeresis: number; + +export const KEY_wgrave: number; + +export const KEY_x: number; + +export const KEY_xabovedot: number; + +export const KEY_y: number; + +export const KEY_yacute: number; + +export const KEY_ybelowdot: number; + +export const KEY_ycircumflex: number; + +export const KEY_ydiaeresis: number; + +export const KEY_yen: number; + +export const KEY_ygrave: number; + +export const KEY_yhook: number; + +export const KEY_ytilde: number; + +export const KEY_z: number; + +export const KEY_zabovedot: number; + +export const KEY_zacute: number; + +export const KEY_zcaron: number; + +export const KEY_zerosubscript: number; + +export const KEY_zerosuperior: number; + +export const KEY_zstroke: number; + +export const KP_0: number; + +export const KP_1: number; + +export const KP_2: number; + +export const KP_3: number; + +export const KP_4: number; + +export const KP_5: number; + +export const KP_6: number; + +export const KP_7: number; + +export const KP_8: number; + +export const KP_9: number; + +export const KP_Add: number; + +export const KP_Begin: number; + +export const KP_Decimal: number; + +export const KP_Delete: number; + +export const KP_Divide: number; + +export const KP_Down: number; + +export const KP_End: number; + +export const KP_Enter: number; + +export const KP_Equal: number; + +export const KP_F1: number; + +export const KP_F2: number; + +export const KP_F3: number; + +export const KP_F4: number; + +export const KP_Home: number; + +export const KP_Insert: number; + +export const KP_Left: number; + +export const KP_Multiply: number; + +export const KP_Next: number; + +export const KP_Page_Down: number; + +export const KP_Page_Up: number; + +export const KP_Prior: number; + +export const KP_Right: number; + +export const KP_Separator: number; + +export const KP_Space: number; + +export const KP_Subtract: number; + +export const KP_Tab: number; + +export const KP_Up: number; + +export const Kana_Lock: number; + +export const Kana_Shift: number; + +export const Kanji: number; + +export const Kanji_Bangou: number; + +export const Katakana: number; + +export const KbdBrightnessDown: number; + +export const KbdBrightnessUp: number; + +export const KbdLightOnOff: number; + +export const Kcedilla: number; + +export const Korean_Won: number; + +export const L: number; + +export const L1: number; + +export const L10: number; + +export const L2: number; + +export const L3: number; + +export const L4: number; + +export const L5: number; + +export const L6: number; + +export const L7: number; + +export const L8: number; + +export const L9: number; + +export const Lacute: number; + +export const Last_Virtual_Screen: number; + +export const Launch0: number; + +export const Launch1: number; + +export const Launch2: number; + +export const Launch3: number; + +export const Launch4: number; + +export const Launch5: number; + +export const Launch6: number; + +export const Launch7: number; + +export const Launch8: number; + +export const Launch9: number; + +export const LaunchA: number; + +export const LaunchB: number; + +export const LaunchC: number; + +export const LaunchD: number; + +export const LaunchE: number; + +export const LaunchF: number; + +export const Lbelowdot: number; + +export const Lcaron: number; + +export const Lcedilla: number; + +export const Left: number; + +export const LightBulb: number; + +export const Linefeed: number; + +export const LiraSign: number; + +export const LogGrabInfo: number; + +export const LogOff: number; + +export const LogWindowTree: number; + +export const Lstroke: number; + +export const M: number; + +export const MAJOR_VERSION: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const Mabovedot: number; + +export const Macedonia_DSE: number; + +export const Macedonia_GJE: number; + +export const Macedonia_KJE: number; + +export const Macedonia_dse: number; + +export const Macedonia_gje: number; + +export const Macedonia_kje: number; + +export const Mae_Koho: number; + +export const Mail: number; + +export const MailForward: number; + +export const Market: number; + +export const Massyo: number; + +export const Meeting: number; + +export const Memo: number; + +export const Menu: number; + +export const MenuKB: number; + +export const MenuPB: number; + +export const Messenger: number; + +export const Meta_L: number; + +export const Meta_R: number; + +export const MillSign: number; + +export const ModeLock: number; + +export const Mode_switch: number; + +export const MonBrightnessDown: number; + +export const MonBrightnessUp: number; + +export const MouseKeys_Accel_Enable: number; + +export const MouseKeys_Enable: number; + +export const Muhenkan: number; + +export const Multi_key: number; + +export const MultipleCandidate: number; + +export const Music: number; + +export const MyComputer: number; + +export const MySites: number; + +export const N: number; + +export const NO_FPU: number; + +export const Nacute: number; + +export const NairaSign: number; + +export const Ncaron: number; + +export const Ncedilla: number; + +export const New: number; + +export const NewSheqelSign: number; + +export const News: number; + +export const Next: number; + +export const Next_VMode: number; + +export const Next_Virtual_Screen: number; + +export const Ntilde: number; + +export const Num_Lock: number; + +export const O: number; + +export const OE: number; + +export const Oacute: number; + +export const Obarred: number; + +export const Obelowdot: number; + +export const Ocaron: number; + +export const Ocircumflex: number; + +export const Ocircumflexacute: number; + +export const Ocircumflexbelowdot: number; + +export const Ocircumflexgrave: number; + +export const Ocircumflexhook: number; + +export const Ocircumflextilde: number; + +export const Odiaeresis: number; + +export const Odoubleacute: number; + +export const OfficeHome: number; + +export const Ograve: number; + +export const Ohook: number; + +export const Ohorn: number; + +export const Ohornacute: number; + +export const Ohornbelowdot: number; + +export const Ohorngrave: number; + +export const Ohornhook: number; + +export const Ohorntilde: number; + +export const Omacron: number; + +export const Ooblique: number; + +export const Open: number; + +export const OpenURL: number; + +export const Option: number; + +export const Oslash: number; + +export const Otilde: number; + +export const Overlay1_Enable: number; + +export const Overlay2_Enable: number; + +export const P: number; + +export const PATH_RELATIVE: number; + +export const PRIORITY_REDRAW: number; + +export const Pabovedot: number; + +export const Page_Down: number; + +export const Page_Up: number; + +export const Paste: number; + +export const Pause: number; + +export const PesetaSign: number; + +export const Phone: number; + +export const Pictures: number; + +export const Pointer_Accelerate: number; + +export const Pointer_Button1: number; + +export const Pointer_Button2: number; + +export const Pointer_Button3: number; + +export const Pointer_Button4: number; + +export const Pointer_Button5: number; + +export const Pointer_Button_Dflt: number; + +export const Pointer_DblClick1: number; + +export const Pointer_DblClick2: number; + +export const Pointer_DblClick3: number; + +export const Pointer_DblClick4: number; + +export const Pointer_DblClick5: number; + +export const Pointer_DblClick_Dflt: number; + +export const Pointer_DfltBtnNext: number; + +export const Pointer_DfltBtnPrev: number; + +export const Pointer_Down: number; + +export const Pointer_DownLeft: number; + +export const Pointer_DownRight: number; + +export const Pointer_Drag1: number; + +export const Pointer_Drag2: number; + +export const Pointer_Drag3: number; + +export const Pointer_Drag4: number; + +export const Pointer_Drag5: number; + +export const Pointer_Drag_Dflt: number; + +export const Pointer_EnableKeys: number; + +export const Pointer_Left: number; + +export const Pointer_Right: number; + +export const Pointer_Up: number; + +export const Pointer_UpLeft: number; + +export const Pointer_UpRight: number; + +export const PowerDown: number; + +export const PowerOff: number; + +export const Prev_VMode: number; + +export const Prev_Virtual_Screen: number; + +export const PreviousCandidate: number; + +export const Print: number; + +export const Prior: number; + +export const Q: number; + +export const R: number; + +export const R1: number; + +export const R10: number; + +export const R11: number; + +export const R12: number; + +export const R13: number; + +export const R14: number; + +export const R15: number; + +export const R2: number; + +export const R3: number; + +export const R4: number; + +export const R5: number; + +export const R6: number; + +export const R7: number; + +export const R8: number; + +export const R9: number; + +export const Racute: number; + +export const Rcaron: number; + +export const Rcedilla: number; + +export const Red: number; + +export const Redo: number; + +export const Refresh: number; + +export const Reload: number; + +export const RepeatKeys_Enable: number; + +export const Reply: number; + +export const Return: number; + +export const Right: number; + +export const RockerDown: number; + +export const RockerEnter: number; + +export const RockerUp: number; + +export const Romaji: number; + +export const RotateWindows: number; + +export const RotationKB: number; + +export const RotationPB: number; + +export const RupeeSign: number; + +export const S: number; + +export const SCHWA: number; + +export const STAGE_TYPE: string; + +export const Sabovedot: number; + +export const Sacute: number; + +export const Save: number; + +export const Scaron: number; + +export const Scedilla: number; + +export const Scircumflex: number; + +export const ScreenSaver: number; + +export const ScrollClick: number; + +export const ScrollDown: number; + +export const ScrollUp: number; + +export const Scroll_Lock: number; + +export const Search: number; + +export const Select: number; + +export const SelectButton: number; + +export const Send: number; + +export const Serbian_DJE: number; + +export const Serbian_DZE: number; + +export const Serbian_JE: number; + +export const Serbian_LJE: number; + +export const Serbian_NJE: number; + +export const Serbian_TSHE: number; + +export const Serbian_dje: number; + +export const Serbian_dze: number; + +export const Serbian_je: number; + +export const Serbian_lje: number; + +export const Serbian_nje: number; + +export const Serbian_tshe: number; + +export const Shift_L: number; + +export const Shift_Lock: number; + +export const Shift_R: number; + +export const Shop: number; + +export const SingleCandidate: number; + +export const Sinh_a: number; + +export const Sinh_aa: number; + +export const Sinh_aa2: number; + +export const Sinh_ae: number; + +export const Sinh_ae2: number; + +export const Sinh_aee: number; + +export const Sinh_aee2: number; + +export const Sinh_ai: number; + +export const Sinh_ai2: number; + +export const Sinh_al: number; + +export const Sinh_au: number; + +export const Sinh_au2: number; + +export const Sinh_ba: number; + +export const Sinh_bha: number; + +export const Sinh_ca: number; + +export const Sinh_cha: number; + +export const Sinh_dda: number; + +export const Sinh_ddha: number; + +export const Sinh_dha: number; + +export const Sinh_dhha: number; + +export const Sinh_e: number; + +export const Sinh_e2: number; + +export const Sinh_ee: number; + +export const Sinh_ee2: number; + +export const Sinh_fa: number; + +export const Sinh_ga: number; + +export const Sinh_gha: number; + +export const Sinh_h2: number; + +export const Sinh_ha: number; + +export const Sinh_i: number; + +export const Sinh_i2: number; + +export const Sinh_ii: number; + +export const Sinh_ii2: number; + +export const Sinh_ja: number; + +export const Sinh_jha: number; + +export const Sinh_jnya: number; + +export const Sinh_ka: number; + +export const Sinh_kha: number; + +export const Sinh_kunddaliya: number; + +export const Sinh_la: number; + +export const Sinh_lla: number; + +export const Sinh_lu: number; + +export const Sinh_lu2: number; + +export const Sinh_luu: number; + +export const Sinh_luu2: number; + +export const Sinh_ma: number; + +export const Sinh_mba: number; + +export const Sinh_na: number; + +export const Sinh_ndda: number; + +export const Sinh_ndha: number; + +export const Sinh_ng: number; + +export const Sinh_ng2: number; + +export const Sinh_nga: number; + +export const Sinh_nja: number; + +export const Sinh_nna: number; + +export const Sinh_nya: number; + +export const Sinh_o: number; + +export const Sinh_o2: number; + +export const Sinh_oo: number; + +export const Sinh_oo2: number; + +export const Sinh_pa: number; + +export const Sinh_pha: number; + +export const Sinh_ra: number; + +export const Sinh_ri: number; + +export const Sinh_rii: number; + +export const Sinh_ru2: number; + +export const Sinh_ruu2: number; + +export const Sinh_sa: number; + +export const Sinh_sha: number; + +export const Sinh_ssha: number; + +export const Sinh_tha: number; + +export const Sinh_thha: number; + +export const Sinh_tta: number; + +export const Sinh_ttha: number; + +export const Sinh_u: number; + +export const Sinh_u2: number; + +export const Sinh_uu: number; + +export const Sinh_uu2: number; + +export const Sinh_va: number; + +export const Sinh_ya: number; + +export const Sleep: number; + +export const SlowKeys_Enable: number; + +export const Spell: number; + +export const SplitScreen: number; + +export const Standby: number; + +export const Start: number; + +export const StickyKeys_Enable: number; + +export const Stop: number; + +export const Subtitle: number; + +export const Super_L: number; + +export const Super_R: number; + +export const Support: number; + +export const Suspend: number; + +export const Switch_VT_1: number; + +export const Switch_VT_10: number; + +export const Switch_VT_11: number; + +export const Switch_VT_12: number; + +export const Switch_VT_2: number; + +export const Switch_VT_3: number; + +export const Switch_VT_4: number; + +export const Switch_VT_5: number; + +export const Switch_VT_6: number; + +export const Switch_VT_7: number; + +export const Switch_VT_8: number; + +export const Switch_VT_9: number; + +export const Sys_Req: number; + +export const T: number; + +export const THORN: number; + +export const Tab: number; + +export const Tabovedot: number; + +export const TaskPane: number; + +export const Tcaron: number; + +export const Tcedilla: number; + +export const Terminal: number; + +export const Terminate_Server: number; + +export const Thai_baht: number; + +export const Thai_bobaimai: number; + +export const Thai_chochan: number; + +export const Thai_chochang: number; + +export const Thai_choching: number; + +export const Thai_chochoe: number; + +export const Thai_dochada: number; + +export const Thai_dodek: number; + +export const Thai_fofa: number; + +export const Thai_fofan: number; + +export const Thai_hohip: number; + +export const Thai_honokhuk: number; + +export const Thai_khokhai: number; + +export const Thai_khokhon: number; + +export const Thai_khokhuat: number; + +export const Thai_khokhwai: number; + +export const Thai_khorakhang: number; + +export const Thai_kokai: number; + +export const Thai_lakkhangyao: number; + +export const Thai_lekchet: number; + +export const Thai_lekha: number; + +export const Thai_lekhok: number; + +export const Thai_lekkao: number; + +export const Thai_leknung: number; + +export const Thai_lekpaet: number; + +export const Thai_leksam: number; + +export const Thai_leksi: number; + +export const Thai_leksong: number; + +export const Thai_leksun: number; + +export const Thai_lochula: number; + +export const Thai_loling: number; + +export const Thai_lu: number; + +export const Thai_maichattawa: number; + +export const Thai_maiek: number; + +export const Thai_maihanakat: number; + +export const Thai_maihanakat_maitho: number; + +export const Thai_maitaikhu: number; + +export const Thai_maitho: number; + +export const Thai_maitri: number; + +export const Thai_maiyamok: number; + +export const Thai_moma: number; + +export const Thai_ngongu: number; + +export const Thai_nikhahit: number; + +export const Thai_nonen: number; + +export const Thai_nonu: number; + +export const Thai_oang: number; + +export const Thai_paiyannoi: number; + +export const Thai_phinthu: number; + +export const Thai_phophan: number; + +export const Thai_phophung: number; + +export const Thai_phosamphao: number; + +export const Thai_popla: number; + +export const Thai_rorua: number; + +export const Thai_ru: number; + +export const Thai_saraa: number; + +export const Thai_saraaa: number; + +export const Thai_saraae: number; + +export const Thai_saraaimaimalai: number; + +export const Thai_saraaimaimuan: number; + +export const Thai_saraam: number; + +export const Thai_sarae: number; + +export const Thai_sarai: number; + +export const Thai_saraii: number; + +export const Thai_sarao: number; + +export const Thai_sarau: number; + +export const Thai_saraue: number; + +export const Thai_sarauee: number; + +export const Thai_sarauu: number; + +export const Thai_sorusi: number; + +export const Thai_sosala: number; + +export const Thai_soso: number; + +export const Thai_sosua: number; + +export const Thai_thanthakhat: number; + +export const Thai_thonangmontho: number; + +export const Thai_thophuthao: number; + +export const Thai_thothahan: number; + +export const Thai_thothan: number; + +export const Thai_thothong: number; + +export const Thai_thothung: number; + +export const Thai_topatak: number; + +export const Thai_totao: number; + +export const Thai_wowaen: number; + +export const Thai_yoyak: number; + +export const Thai_yoying: number; + +export const Thorn: number; + +export const Time: number; + +export const ToDoList: number; + +export const Tools: number; + +export const TopMenu: number; + +export const TouchpadOff: number; + +export const TouchpadOn: number; + +export const TouchpadToggle: number; + +export const Touroku: number; + +export const Travel: number; + +export const Tslash: number; + +export const U: number; + +export const UWB: number; + +export const Uacute: number; + +export const Ubelowdot: number; + +export const Ubreve: number; + +export const Ucircumflex: number; + +export const Udiaeresis: number; + +export const Udoubleacute: number; + +export const Ugrave: number; + +export const Uhook: number; + +export const Uhorn: number; + +export const Uhornacute: number; + +export const Uhornbelowdot: number; + +export const Uhorngrave: number; + +export const Uhornhook: number; + +export const Uhorntilde: number; + +export const Ukrainian_GHE_WITH_UPTURN: number; + +export const Ukrainian_I: number; + +export const Ukrainian_IE: number; + +export const Ukrainian_YI: number; + +export const Ukrainian_ghe_with_upturn: number; + +export const Ukrainian_i: number; + +export const Ukrainian_ie: number; + +export const Ukrainian_yi: number; + +export const Ukranian_I: number; + +export const Ukranian_JE: number; + +export const Ukranian_YI: number; + +export const Ukranian_i: number; + +export const Ukranian_je: number; + +export const Ukranian_yi: number; + +export const Umacron: number; + +export const Undo: number; + +export const Ungrab: number; + +export const Uogonek: number; + +export const Up: number; + +export const Uring: number; + +export const User1KB: number; + +export const User2KB: number; + +export const UserPB: number; + +export const Utilde: number; + +export const V: number; + +export const VERSION: number; + +export const VERSION_HEX: number; + +export const VERSION_S: string; + +export const VendorHome: number; + +export const Video: number; + +export const View: number; + +export const VoidSymbol: number; + +export const W: number; + +export const WINDOWING_EGL: string; + +export const WINDOWING_GDK: string; + +export const WINDOWING_GLX: string; + +export const WINDOWING_WAYLAND: string; + +export const WINDOWING_X11: string; + +export const WLAN: number; + +export const WWW: number; + +export const Wacute: number; + +export const WakeUp: number; + +export const Wcircumflex: number; + +export const Wdiaeresis: number; + +export const WebCam: number; + +export const Wgrave: number; + +export const WheelButton: number; + +export const WindowClear: number; + +export const WonSign: number; + +export const Word: number; + +export const X: number; + +export const Xabovedot: number; + +export const Xfer: number; + +export const Y: number; + +export const Yacute: number; + +export const Ybelowdot: number; + +export const Ycircumflex: number; + +export const Ydiaeresis: number; + +export const Yellow: number; + +export const Ygrave: number; + +export const Yhook: number; + +export const Ytilde: number; + +export const Z: number; + +export const Zabovedot: number; + +export const Zacute: number; + +export const Zcaron: number; + +export const Zen_Koho: number; + +export const Zenkaku: number; + +export const Zenkaku_Hankaku: number; + +export const ZoomIn: number; + +export const ZoomOut: number; + +export const Zstroke: number; + +export const a: number; + +export const aacute: number; + +export const abelowdot: number; + +export const abovedot: number; + +export const abreve: number; + +export const abreveacute: number; + +export const abrevebelowdot: number; + +export const abrevegrave: number; + +export const abrevehook: number; + +export const abrevetilde: number; + +export const acircumflex: number; + +export const acircumflexacute: number; + +export const acircumflexbelowdot: number; + +export const acircumflexgrave: number; + +export const acircumflexhook: number; + +export const acircumflextilde: number; + +export const acute: number; + +export const adiaeresis: number; + +export const ae: number; + +export const agrave: number; + +export const ahook: number; + +export const amacron: number; + +export const ampersand: number; + +export const aogonek: number; + +export const apostrophe: number; + +export const approxeq: number; + +export const approximate: number; + +export const aring: number; + +export const asciicircum: number; + +export const asciitilde: number; + +export const asterisk: number; + +export const at: number; + +export const atilde: number; + +export const b: number; + +export const babovedot: number; + +export const backslash: number; + +export const ballotcross: number; + +export const bar: number; + +export const because: number; + +export const blank: number; + +export const botintegral: number; + +export const botleftparens: number; + +export const botleftsqbracket: number; + +export const botleftsummation: number; + +export const botrightparens: number; + +export const botrightsqbracket: number; + +export const botrightsummation: number; + +export const bott: number; + +export const botvertsummationconnector: number; + +export const braceleft: number; + +export const braceright: number; + +export const bracketleft: number; + +export const bracketright: number; + +export const braille_blank: number; + +export const braille_dot_1: number; + +export const braille_dot_10: number; + +export const braille_dot_2: number; + +export const braille_dot_3: number; + +export const braille_dot_4: number; + +export const braille_dot_5: number; + +export const braille_dot_6: number; + +export const braille_dot_7: number; + +export const braille_dot_8: number; + +export const braille_dot_9: number; + +export const braille_dots_1: number; + +export const braille_dots_12: number; + +export const braille_dots_123: number; + +export const braille_dots_1234: number; + +export const braille_dots_12345: number; + +export const braille_dots_123456: number; + +export const braille_dots_1234567: number; + +export const braille_dots_12345678: number; + +export const braille_dots_1234568: number; + +export const braille_dots_123457: number; + +export const braille_dots_1234578: number; + +export const braille_dots_123458: number; + +export const braille_dots_12346: number; + +export const braille_dots_123467: number; + +export const braille_dots_1234678: number; + +export const braille_dots_123468: number; + +export const braille_dots_12347: number; + +export const braille_dots_123478: number; + +export const braille_dots_12348: number; + +export const braille_dots_1235: number; + +export const braille_dots_12356: number; + +export const braille_dots_123567: number; + +export const braille_dots_1235678: number; + +export const braille_dots_123568: number; + +export const braille_dots_12357: number; + +export const braille_dots_123578: number; + +export const braille_dots_12358: number; + +export const braille_dots_1236: number; + +export const braille_dots_12367: number; + +export const braille_dots_123678: number; + +export const braille_dots_12368: number; + +export const braille_dots_1237: number; + +export const braille_dots_12378: number; + +export const braille_dots_1238: number; + +export const braille_dots_124: number; + +export const braille_dots_1245: number; + +export const braille_dots_12456: number; + +export const braille_dots_124567: number; + +export const braille_dots_1245678: number; + +export const braille_dots_124568: number; + +export const braille_dots_12457: number; + +export const braille_dots_124578: number; + +export const braille_dots_12458: number; + +export const braille_dots_1246: number; + +export const braille_dots_12467: number; + +export const braille_dots_124678: number; + +export const braille_dots_12468: number; + +export const braille_dots_1247: number; + +export const braille_dots_12478: number; + +export const braille_dots_1248: number; + +export const braille_dots_125: number; + +export const braille_dots_1256: number; + +export const braille_dots_12567: number; + +export const braille_dots_125678: number; + +export const braille_dots_12568: number; + +export const braille_dots_1257: number; + +export const braille_dots_12578: number; + +export const braille_dots_1258: number; + +export const braille_dots_126: number; + +export const braille_dots_1267: number; + +export const braille_dots_12678: number; + +export const braille_dots_1268: number; + +export const braille_dots_127: number; + +export const braille_dots_1278: number; + +export const braille_dots_128: number; + +export const braille_dots_13: number; + +export const braille_dots_134: number; + +export const braille_dots_1345: number; + +export const braille_dots_13456: number; + +export const braille_dots_134567: number; + +export const braille_dots_1345678: number; + +export const braille_dots_134568: number; + +export const braille_dots_13457: number; + +export const braille_dots_134578: number; + +export const braille_dots_13458: number; + +export const braille_dots_1346: number; + +export const braille_dots_13467: number; + +export const braille_dots_134678: number; + +export const braille_dots_13468: number; + +export const braille_dots_1347: number; + +export const braille_dots_13478: number; + +export const braille_dots_1348: number; + +export const braille_dots_135: number; + +export const braille_dots_1356: number; + +export const braille_dots_13567: number; + +export const braille_dots_135678: number; + +export const braille_dots_13568: number; + +export const braille_dots_1357: number; + +export const braille_dots_13578: number; + +export const braille_dots_1358: number; + +export const braille_dots_136: number; + +export const braille_dots_1367: number; + +export const braille_dots_13678: number; + +export const braille_dots_1368: number; + +export const braille_dots_137: number; + +export const braille_dots_1378: number; + +export const braille_dots_138: number; + +export const braille_dots_14: number; + +export const braille_dots_145: number; + +export const braille_dots_1456: number; + +export const braille_dots_14567: number; + +export const braille_dots_145678: number; + +export const braille_dots_14568: number; + +export const braille_dots_1457: number; + +export const braille_dots_14578: number; + +export const braille_dots_1458: number; + +export const braille_dots_146: number; + +export const braille_dots_1467: number; + +export const braille_dots_14678: number; + +export const braille_dots_1468: number; + +export const braille_dots_147: number; + +export const braille_dots_1478: number; + +export const braille_dots_148: number; + +export const braille_dots_15: number; + +export const braille_dots_156: number; + +export const braille_dots_1567: number; + +export const braille_dots_15678: number; + +export const braille_dots_1568: number; + +export const braille_dots_157: number; + +export const braille_dots_1578: number; + +export const braille_dots_158: number; + +export const braille_dots_16: number; + +export const braille_dots_167: number; + +export const braille_dots_1678: number; + +export const braille_dots_168: number; + +export const braille_dots_17: number; + +export const braille_dots_178: number; + +export const braille_dots_18: number; + +export const braille_dots_2: number; + +export const braille_dots_23: number; + +export const braille_dots_234: number; + +export const braille_dots_2345: number; + +export const braille_dots_23456: number; + +export const braille_dots_234567: number; + +export const braille_dots_2345678: number; + +export const braille_dots_234568: number; + +export const braille_dots_23457: number; + +export const braille_dots_234578: number; + +export const braille_dots_23458: number; + +export const braille_dots_2346: number; + +export const braille_dots_23467: number; + +export const braille_dots_234678: number; + +export const braille_dots_23468: number; + +export const braille_dots_2347: number; + +export const braille_dots_23478: number; + +export const braille_dots_2348: number; + +export const braille_dots_235: number; + +export const braille_dots_2356: number; + +export const braille_dots_23567: number; + +export const braille_dots_235678: number; + +export const braille_dots_23568: number; + +export const braille_dots_2357: number; + +export const braille_dots_23578: number; + +export const braille_dots_2358: number; + +export const braille_dots_236: number; + +export const braille_dots_2367: number; + +export const braille_dots_23678: number; + +export const braille_dots_2368: number; + +export const braille_dots_237: number; + +export const braille_dots_2378: number; + +export const braille_dots_238: number; + +export const braille_dots_24: number; + +export const braille_dots_245: number; + +export const braille_dots_2456: number; + +export const braille_dots_24567: number; + +export const braille_dots_245678: number; + +export const braille_dots_24568: number; + +export const braille_dots_2457: number; + +export const braille_dots_24578: number; + +export const braille_dots_2458: number; + +export const braille_dots_246: number; + +export const braille_dots_2467: number; + +export const braille_dots_24678: number; + +export const braille_dots_2468: number; + +export const braille_dots_247: number; + +export const braille_dots_2478: number; + +export const braille_dots_248: number; + +export const braille_dots_25: number; + +export const braille_dots_256: number; + +export const braille_dots_2567: number; + +export const braille_dots_25678: number; + +export const braille_dots_2568: number; + +export const braille_dots_257: number; + +export const braille_dots_2578: number; + +export const braille_dots_258: number; + +export const braille_dots_26: number; + +export const braille_dots_267: number; + +export const braille_dots_2678: number; + +export const braille_dots_268: number; + +export const braille_dots_27: number; + +export const braille_dots_278: number; + +export const braille_dots_28: number; + +export const braille_dots_3: number; + +export const braille_dots_34: number; + +export const braille_dots_345: number; + +export const braille_dots_3456: number; + +export const braille_dots_34567: number; + +export const braille_dots_345678: number; + +export const braille_dots_34568: number; + +export const braille_dots_3457: number; + +export const braille_dots_34578: number; + +export const braille_dots_3458: number; + +export const braille_dots_346: number; + +export const braille_dots_3467: number; + +export const braille_dots_34678: number; + +export const braille_dots_3468: number; + +export const braille_dots_347: number; + +export const braille_dots_3478: number; + +export const braille_dots_348: number; + +export const braille_dots_35: number; + +export const braille_dots_356: number; + +export const braille_dots_3567: number; + +export const braille_dots_35678: number; + +export const braille_dots_3568: number; + +export const braille_dots_357: number; + +export const braille_dots_3578: number; + +export const braille_dots_358: number; + +export const braille_dots_36: number; + +export const braille_dots_367: number; + +export const braille_dots_3678: number; + +export const braille_dots_368: number; + +export const braille_dots_37: number; + +export const braille_dots_378: number; + +export const braille_dots_38: number; + +export const braille_dots_4: number; + +export const braille_dots_45: number; + +export const braille_dots_456: number; + +export const braille_dots_4567: number; + +export const braille_dots_45678: number; + +export const braille_dots_4568: number; + +export const braille_dots_457: number; + +export const braille_dots_4578: number; + +export const braille_dots_458: number; + +export const braille_dots_46: number; + +export const braille_dots_467: number; + +export const braille_dots_4678: number; + +export const braille_dots_468: number; + +export const braille_dots_47: number; + +export const braille_dots_478: number; + +export const braille_dots_48: number; + +export const braille_dots_5: number; + +export const braille_dots_56: number; + +export const braille_dots_567: number; + +export const braille_dots_5678: number; + +export const braille_dots_568: number; + +export const braille_dots_57: number; + +export const braille_dots_578: number; + +export const braille_dots_58: number; + +export const braille_dots_6: number; + +export const braille_dots_67: number; + +export const braille_dots_678: number; + +export const braille_dots_68: number; + +export const braille_dots_7: number; + +export const braille_dots_78: number; + +export const braille_dots_8: number; + +export const breve: number; + +export const brokenbar: number; + +export const c: number; + +export const c_h: number; + +export const cabovedot: number; + +export const cacute: number; + +export const careof: number; + +export const caret: number; + +export const caron: number; + +export const ccaron: number; + +export const ccedilla: number; + +export const ccircumflex: number; + +export const cedilla: number; + +export const cent: number; + +export const ch: number; + +export const checkerboard: number; + +export const checkmark: number; + +export const circle: number; + +export const club: number; + +export const colon: number; + +export const comma: number; + +export const containsas: number; + +export const copyright: number; + +export const cr: number; + +export const crossinglines: number; + +export const cuberoot: number; + +export const currency: number; + +export const cursor: number; + +export const d: number; + +export const dabovedot: number; + +export const dagger: number; + +export const dcaron: number; + +export const dead_A: number; + +export const dead_E: number; + +export const dead_I: number; + +export const dead_O: number; + +export const dead_U: number; + +export const dead_a: number; + +export const dead_abovecomma: number; + +export const dead_abovedot: number; + +export const dead_abovereversedcomma: number; + +export const dead_abovering: number; + +export const dead_aboveverticalline: number; + +export const dead_acute: number; + +export const dead_belowbreve: number; + +export const dead_belowcircumflex: number; + +export const dead_belowcomma: number; + +export const dead_belowdiaeresis: number; + +export const dead_belowdot: number; + +export const dead_belowmacron: number; + +export const dead_belowring: number; + +export const dead_belowtilde: number; + +export const dead_belowverticalline: number; + +export const dead_breve: number; + +export const dead_capital_schwa: number; + +export const dead_caron: number; + +export const dead_cedilla: number; + +export const dead_circumflex: number; + +export const dead_currency: number; + +export const dead_dasia: number; + +export const dead_diaeresis: number; + +export const dead_doubleacute: number; + +export const dead_doublegrave: number; + +export const dead_e: number; + +export const dead_grave: number; + +export const dead_greek: number; + +export const dead_hook: number; + +export const dead_horn: number; + +export const dead_i: number; + +export const dead_invertedbreve: number; + +export const dead_iota: number; + +export const dead_longsolidusoverlay: number; + +export const dead_lowline: number; + +export const dead_macron: number; + +export const dead_o: number; + +export const dead_ogonek: number; + +export const dead_perispomeni: number; + +export const dead_psili: number; + +export const dead_semivoiced_sound: number; + +export const dead_small_schwa: number; + +export const dead_stroke: number; + +export const dead_tilde: number; + +export const dead_u: number; + +export const dead_voiced_sound: number; + +export const decimalpoint: number; + +export const degree: number; + +export const diaeresis: number; + +export const diamond: number; + +export const digitspace: number; + +export const dintegral: number; + +export const division: number; + +export const dollar: number; + +export const doubbaselinedot: number; + +export const doubleacute: number; + +export const doubledagger: number; + +export const doublelowquotemark: number; + +export const downarrow: number; + +export const downcaret: number; + +export const downshoe: number; + +export const downstile: number; + +export const downtack: number; + +export const dstroke: number; + +export const e: number; + +export const eabovedot: number; + +export const eacute: number; + +export const ebelowdot: number; + +export const ecaron: number; + +export const ecircumflex: number; + +export const ecircumflexacute: number; + +export const ecircumflexbelowdot: number; + +export const ecircumflexgrave: number; + +export const ecircumflexhook: number; + +export const ecircumflextilde: number; + +export const ediaeresis: number; + +export const egrave: number; + +export const ehook: number; + +export const eightsubscript: number; + +export const eightsuperior: number; + +export const elementof: number; + +export const ellipsis: number; + +export const em3space: number; + +export const em4space: number; + +export const emacron: number; + +export const emdash: number; + +export const emfilledcircle: number; + +export const emfilledrect: number; + +export const emopencircle: number; + +export const emopenrectangle: number; + +export const emptyset: number; + +export const emspace: number; + +export const endash: number; + +export const enfilledcircbullet: number; + +export const enfilledsqbullet: number; + +export const eng: number; + +export const enopencircbullet: number; + +export const enopensquarebullet: number; + +export const enspace: number; + +export const eogonek: number; + +export const equal: number; + +export const eth: number; + +export const etilde: number; + +export const exclam: number; + +export const exclamdown: number; + +export const ezh: number; + +export const f: number; + +export const fabovedot: number; + +export const femalesymbol: number; + +export const ff: number; + +export const figdash: number; + +export const filledlefttribullet: number; + +export const filledrectbullet: number; + +export const filledrighttribullet: number; + +export const filledtribulletdown: number; + +export const filledtribulletup: number; + +export const fiveeighths: number; + +export const fivesixths: number; + +export const fivesubscript: number; + +export const fivesuperior: number; + +export const fourfifths: number; + +export const foursubscript: number; + +export const foursuperior: number; + +export const fourthroot: number; + +export const __function: number; + +export const g: number; + +export const gabovedot: number; + +export const gbreve: number; + +export const gcaron: number; + +export const gcedilla: number; + +export const gcircumflex: number; + +export const grave: number; + +export const greater: number; + +export const greaterthanequal: number; + +export const guillemotleft: number; + +export const guillemotright: number; + +export const h: number; + +export const hairspace: number; + +export const hcircumflex: number; + +export const heart: number; + +export const hebrew_aleph: number; + +export const hebrew_ayin: number; + +export const hebrew_bet: number; + +export const hebrew_beth: number; + +export const hebrew_chet: number; + +export const hebrew_dalet: number; + +export const hebrew_daleth: number; + +export const hebrew_doublelowline: number; + +export const hebrew_finalkaph: number; + +export const hebrew_finalmem: number; + +export const hebrew_finalnun: number; + +export const hebrew_finalpe: number; + +export const hebrew_finalzade: number; + +export const hebrew_finalzadi: number; + +export const hebrew_gimel: number; + +export const hebrew_gimmel: number; + +export const hebrew_he: number; + +export const hebrew_het: number; + +export const hebrew_kaph: number; + +export const hebrew_kuf: number; + +export const hebrew_lamed: number; + +export const hebrew_mem: number; + +export const hebrew_nun: number; + +export const hebrew_pe: number; + +export const hebrew_qoph: number; + +export const hebrew_resh: number; + +export const hebrew_samech: number; + +export const hebrew_samekh: number; + +export const hebrew_shin: number; + +export const hebrew_taf: number; + +export const hebrew_taw: number; + +export const hebrew_tet: number; + +export const hebrew_teth: number; + +export const hebrew_waw: number; + +export const hebrew_yod: number; + +export const hebrew_zade: number; + +export const hebrew_zadi: number; + +export const hebrew_zain: number; + +export const hebrew_zayin: number; + +export const hexagram: number; + +export const horizconnector: number; + +export const horizlinescan1: number; + +export const horizlinescan3: number; + +export const horizlinescan5: number; + +export const horizlinescan7: number; + +export const horizlinescan9: number; + +export const hstroke: number; + +export const ht: number; + +export const hyphen: number; + +export const i: number; + +export const iTouch: number; + +export const iacute: number; + +export const ibelowdot: number; + +export const ibreve: number; + +export const icircumflex: number; + +export const identical: number; + +export const idiaeresis: number; + +export const idotless: number; + +export const ifonlyif: number; + +export const igrave: number; + +export const ihook: number; + +export const imacron: number; + +export const implies: number; + +export const includedin: number; + +export const includes: number; + +export const infinity: number; + +export const integral: number; + +export const intersection: number; + +export const iogonek: number; + +export const itilde: number; + +export const j: number; + +export const jcircumflex: number; + +export const jot: number; + +export const k: number; + +export const kana_A: number; + +export const kana_CHI: number; + +export const kana_E: number; + +export const kana_FU: number; + +export const kana_HA: number; + +export const kana_HE: number; + +export const kana_HI: number; + +export const kana_HO: number; + +export const kana_HU: number; + +export const kana_I: number; + +export const kana_KA: number; + +export const kana_KE: number; + +export const kana_KI: number; + +export const kana_KO: number; + +export const kana_KU: number; + +export const kana_MA: number; + +export const kana_ME: number; + +export const kana_MI: number; + +export const kana_MO: number; + +export const kana_MU: number; + +export const kana_N: number; + +export const kana_NA: number; + +export const kana_NE: number; + +export const kana_NI: number; + +export const kana_NO: number; + +export const kana_NU: number; + +export const kana_O: number; + +export const kana_RA: number; + +export const kana_RE: number; + +export const kana_RI: number; + +export const kana_RO: number; + +export const kana_RU: number; + +export const kana_SA: number; + +export const kana_SE: number; + +export const kana_SHI: number; + +export const kana_SO: number; + +export const kana_SU: number; + +export const kana_TA: number; + +export const kana_TE: number; + +export const kana_TI: number; + +export const kana_TO: number; + +export const kana_TSU: number; + +export const kana_TU: number; + +export const kana_U: number; + +export const kana_WA: number; + +export const kana_WO: number; + +export const kana_YA: number; + +export const kana_YO: number; + +export const kana_YU: number; + +export const kana_a: number; + +export const kana_closingbracket: number; + +export const kana_comma: number; + +export const kana_conjunctive: number; + +export const kana_e: number; + +export const kana_fullstop: number; + +export const kana_i: number; + +export const kana_middledot: number; + +export const kana_o: number; + +export const kana_openingbracket: number; + +export const kana_switch: number; + +export const kana_tsu: number; + +export const kana_tu: number; + +export const kana_u: number; + +export const kana_ya: number; + +export const kana_yo: number; + +export const kana_yu: number; + +export const kappa: number; + +export const kcedilla: number; + +export const kra: number; + +export const l: number; + +export const lacute: number; + +export const latincross: number; + +export const lbelowdot: number; + +export const lcaron: number; + +export const lcedilla: number; + +export const leftanglebracket: number; + +export const leftarrow: number; + +export const leftcaret: number; + +export const leftdoublequotemark: number; + +export const leftmiddlecurlybrace: number; + +export const leftopentriangle: number; + +export const leftpointer: number; + +export const leftradical: number; + +export const leftshoe: number; + +export const leftsinglequotemark: number; + +export const leftt: number; + +export const lefttack: number; + +export const less: number; + +export const lessthanequal: number; + +export const lf: number; + +export const logicaland: number; + +export const logicalor: number; + +export const lowleftcorner: number; + +export const lowrightcorner: number; + +export const lstroke: number; + +export const m: number; + +export const mabovedot: number; + +export const macron: number; + +export const malesymbol: number; + +export const maltesecross: number; + +export const marker: number; + +export const masculine: number; + +export const minus: number; + +export const minutes: number; + +export const mu: number; + +export const multiply: number; + +export const musicalflat: number; + +export const musicalsharp: number; + +export const n: number; + +export const nabla: number; + +export const nacute: number; + +export const ncaron: number; + +export const ncedilla: number; + +export const ninesubscript: number; + +export const ninesuperior: number; + +export const nl: number; + +export const nobreakspace: number; + +export const notapproxeq: number; + +export const notelementof: number; + +export const notequal: number; + +export const notidentical: number; + +export const notsign: number; + +export const ntilde: number; + +export const numbersign: number; + +export const numerosign: number; + +export const o: number; + +export const oacute: number; + +export const obarred: number; + +export const obelowdot: number; + +export const ocaron: number; + +export const ocircumflex: number; + +export const ocircumflexacute: number; + +export const ocircumflexbelowdot: number; + +export const ocircumflexgrave: number; + +export const ocircumflexhook: number; + +export const ocircumflextilde: number; + +export const odiaeresis: number; + +export const odoubleacute: number; + +export const oe: number; + +export const ogonek: number; + +export const ograve: number; + +export const ohook: number; + +export const ohorn: number; + +export const ohornacute: number; + +export const ohornbelowdot: number; + +export const ohorngrave: number; + +export const ohornhook: number; + +export const ohorntilde: number; + +export const omacron: number; + +export const oneeighth: number; + +export const onefifth: number; + +export const onehalf: number; + +export const onequarter: number; + +export const onesixth: number; + +export const onesubscript: number; + +export const onesuperior: number; + +export const onethird: number; + +export const ooblique: number; + +export const openrectbullet: number; + +export const openstar: number; + +export const opentribulletdown: number; + +export const opentribulletup: number; + +export const ordfeminine: number; + +export const oslash: number; + +export const otilde: number; + +export const overbar: number; + +export const overline: number; + +export const p: number; + +export const pabovedot: number; + +export const paragraph: number; + +export const parenleft: number; + +export const parenright: number; + +export const partdifferential: number; + +export const partialderivative: number; + +export const percent: number; + +export const period: number; + +export const periodcentered: number; + +export const permille: number; + +export const phonographcopyright: number; + +export const plus: number; + +export const plusminus: number; + +export const prescription: number; + +export const prolongedsound: number; + +export const punctspace: number; + +export const q: number; + +export const quad: number; + +export const question: number; + +export const questiondown: number; + +export const quotedbl: number; + +export const quoteleft: number; + +export const quoteright: number; + +export const r: number; + +export const racute: number; + +export const radical: number; + +export const rcaron: number; + +export const rcedilla: number; + +export const registered: number; + +export const rightanglebracket: number; + +export const rightarrow: number; + +export const rightcaret: number; + +export const rightdoublequotemark: number; + +export const rightmiddlecurlybrace: number; + +export const rightmiddlesummation: number; + +export const rightopentriangle: number; + +export const rightpointer: number; + +export const rightshoe: number; + +export const rightsinglequotemark: number; + +export const rightt: number; + +export const righttack: number; + +export const s: number; + +export const sabovedot: number; + +export const sacute: number; + +export const scaron: number; + +export const scedilla: number; + +export const schwa: number; + +export const scircumflex: number; + +export const script_switch: number; + +export const seconds: number; + +export const section: number; + +export const semicolon: number; + +export const semivoicedsound: number; + +export const seveneighths: number; + +export const sevensubscript: number; + +export const sevensuperior: number; + +export const signaturemark: number; + +export const signifblank: number; + +export const similarequal: number; + +export const singlelowquotemark: number; + +export const sixsubscript: number; + +export const sixsuperior: number; + +export const slash: number; + +export const soliddiamond: number; + +export const space: number; + +export const squareroot: number; + +export const ssharp: number; + +export const sterling: number; + +export const stricteq: number; + +export const t: number; + +export const tabovedot: number; + +export const tcaron: number; + +export const tcedilla: number; + +export const telephone: number; + +export const telephonerecorder: number; + +export const therefore: number; + +export const thinspace: number; + +export const thorn: number; + +export const threeeighths: number; + +export const threefifths: number; + +export const threequarters: number; + +export const threesubscript: number; + +export const threesuperior: number; + +export const tintegral: number; + +export const topintegral: number; + +export const topleftparens: number; + +export const topleftradical: number; + +export const topleftsqbracket: number; + +export const topleftsummation: number; + +export const toprightparens: number; + +export const toprightsqbracket: number; + +export const toprightsummation: number; + +export const topt: number; + +export const topvertsummationconnector: number; + +export const trademark: number; + +export const trademarkincircle: number; + +export const tslash: number; + +export const twofifths: number; + +export const twosubscript: number; + +export const twosuperior: number; + +export const twothirds: number; + +export const u: number; + +export const uacute: number; + +export const ubelowdot: number; + +export const ubreve: number; + +export const ucircumflex: number; + +export const udiaeresis: number; + +export const udoubleacute: number; + +export const ugrave: number; + +export const uhook: number; + +export const uhorn: number; + +export const uhornacute: number; + +export const uhornbelowdot: number; + +export const uhorngrave: number; + +export const uhornhook: number; + +export const uhorntilde: number; + +export const umacron: number; + +export const underbar: number; + +export const underscore: number; + +export const union: number; + +export const uogonek: number; + +export const uparrow: number; + +export const upcaret: number; + +export const upleftcorner: number; + +export const uprightcorner: number; + +export const upshoe: number; + +export const upstile: number; + +export const uptack: number; + +export const uring: number; + +export const utilde: number; + +export const v: number; + +export const variation: number; + +export const vertbar: number; + +export const vertconnector: number; + +export const voicedsound: number; + +export const vt: number; + +export const w: number; + +export const wacute: number; + +export const wcircumflex: number; + +export const wdiaeresis: number; + +export const wgrave: number; + +export const x: number; + +export const xabovedot: number; + +export const y: number; + +export const yacute: number; + +export const ybelowdot: number; + +export const ycircumflex: number; + +export const ydiaeresis: number; + +export const yen: number; + +export const ygrave: number; + +export const yhook: number; + +export const ytilde: number; + +export const z: number; + +export const zabovedot: number; + +export const zacute: number; + +export const zcaron: number; + +export const zerosubscript: number; + +export const zerosuperior: number; + +export const zstroke: number; + +export function actor_box_alloc(): ActorBox; + +export function base_init(): void; + +export function cairo_clear(cr: cairo.Context): void; + +export function cairo_set_source_color(cr: cairo.Context, color: Color): void; + +export function check_version(major: number, minor: number, micro: number): boolean; + +export function check_windowing_backend(backend_type: string): boolean; + +export function clear_glyph_cache(): void; + +export function color_from_hls(hue: number, luminance: number, saturation: number): Color; + +export function color_from_pixel(pixel: number): Color; + +export function color_from_string(str: string): [boolean, Color]; + +export function color_get_static(color: StaticColor): Color; + +export function container_class_find_child_property(klass: GObject.Object, property_name: string): GObject.ParamSpec; + +export function container_class_list_child_properties(klass: GObject.Object): GObject.ParamSpec[]; + +export function disable_accessibility(): void; + +export function do_event(event: Event): void; + +export function event_add_filter(stage: Stage | null, func: EventFilterFunc, notify: GLib.DestroyNotify): number; + +export function event_get(): Event; + +export function event_peek(): Event; + +export function event_remove_filter(id: number): void; + +export function events_pending(): boolean; + +export function feature_available(feature: FeatureFlags): boolean; + +export function feature_get_all(): FeatureFlags; + +export function frame_source_add(priority: number, fps: number, func: GLib.SourceFunc, notify: GLib.DestroyNotify): number; + +export function get_accessibility_enabled(): boolean; + +export function get_actor_by_gid(id_: number): Actor; + +export function get_current_event(): Event; + +export function get_current_event_time(): number; + +export function get_debug_enabled(): boolean; + +export function get_default_backend(): Backend; + +export function get_default_frame_rate(): number; + +export function get_default_text_direction(): TextDirection; + +export function get_font_flags(): FontFlags; + +export function get_font_map(): Pango.FontMap; + +export function get_input_device_for_id(id_: number): InputDevice; + +export function get_keyboard_grab(): Actor; + +export function get_motion_events_enabled(): boolean; + +export function get_pointer_grab(): Actor; + +export function get_script_id(gobject: GObject.Object): string; + +export function get_show_fps(): boolean; + +export function get_timestamp(): number; + +export function grab_keyboard(actor: Actor): void; + +export function grab_pointer(actor: Actor): void; + +export function grab_pointer_for_device(actor: Actor, id_: number): void; + +export function image_error_quark(): GLib.Quark; + +export function init(argv: string[] | null): [InitError, string[] | null]; + +export function init_error_quark(): GLib.Quark; + +export function init_with_args(argv: string[] | null, parameter_string: string | null, entries: GLib.OptionEntry[] | null, translation_domain: string | null): [InitError, string[] | null]; + +export function keysym_to_unicode(keyval: number): number; + +export function main(): void; + +export function main_level(): number; + +export function main_quit(): void; + +export function matrix_alloc(): Matrix; + +export function point_zero(): Point; + +export function rect_zero(): Rect; + +export function redraw(stage: Stage): void; + +export function script_error_quark(): GLib.Quark; + +export function set_default_frame_rate(frames_per_sec: number): void; + +export function set_font_flags(flags: FontFlags): void; + +export function set_motion_events_enabled(enable: boolean): void; + +export function set_windowing_backend(backend_type: string): void; + +export function shader_error_quark(): GLib.Quark; + +export function test_add_data_full(test_path: string, test_func: GLib.TestDataFunc, test_notify: GLib.DestroyNotify): void; + +export function test_check_actor_at_point(stage: Actor, point: Point, actor: Actor): [boolean, Actor | null]; + +export function test_check_color_at_point(stage: Actor, point: Point, color: Color): [boolean, Color]; + +export function test_get_stage(): Actor; + +export function test_init(argc: number, argv: string): void; + +export function test_run(): number; + +export function texture_error_quark(): GLib.Quark; + +export function threads_add_frame_source(priority: number, fps: number, func: GLib.SourceFunc, notify: GLib.DestroyNotify): number; + +export function threads_add_idle(priority: number, func: GLib.SourceFunc, notify: GLib.DestroyNotify): number; + +export function threads_add_repaint_func(func: GLib.SourceFunc, notify: GLib.DestroyNotify): number; + +export function threads_add_repaint_func_full(flags: RepaintFlags, func: GLib.SourceFunc, notify: GLib.DestroyNotify): number; + +export function threads_add_timeout(priority: number, interval: number, func: GLib.SourceFunc, notify: GLib.DestroyNotify): number; + +export function threads_enter(): void; + +export function threads_init(): void; + +export function threads_leave(): void; + +export function threads_remove_repaint_func(handle_id: number): void; + +export function ungrab_keyboard(): void; + +export function ungrab_pointer(): void; + +export function ungrab_pointer_for_device(id_: number): void; + +export function unicode_to_keysym(wc: number): number; + +export function units_from_cm(cm: number): Units; + +export function units_from_em(em: number): Units; + +export function units_from_em_for_font(font_name: string | null, em: number): Units; + +export function units_from_mm(mm: number): Units; + +export function units_from_pixels(px: number): Units; + +export function units_from_pt(pt: number): Units; + +export function units_from_string(str: string): [boolean, Units]; + +export function util_next_p2(a: number): number; + +export function value_dup_paint_node(value: (GObject.Value | string | boolean | number)): PaintNode; + +export function value_get_color(value: (GObject.Value | string | boolean | number)): Color; + +export function value_get_paint_node(value: (GObject.Value | string | boolean | number)): PaintNode; + +export function value_get_shader_float(value: (GObject.Value | string | boolean | number)): number[]; + +export function value_get_shader_int(value: (GObject.Value | string | boolean | number)): number[]; + +export function value_get_shader_matrix(value: (GObject.Value | string | boolean | number)): number[]; + +export function value_get_units(value: (GObject.Value | string | boolean | number)): Units; + +export function value_set_color(value: (GObject.Value | string | boolean | number), color: Color): void; + +export function value_set_paint_node(value: (GObject.Value | string | boolean | number), node: PaintNode | null): void; + +export function value_set_shader_float(value: (GObject.Value | string | boolean | number), floats: number[]): void; + +export function value_set_shader_int(value: (GObject.Value | string | boolean | number), ints: number[]): void; + +export function value_set_shader_matrix(value: (GObject.Value | string | boolean | number), matrix: number[]): void; + +export function value_set_units(value: (GObject.Value | string | boolean | number), units: Units): void; + +export function value_take_paint_node(value: (GObject.Value | string | boolean | number), node: PaintNode | null): void; + +export type ActorCreateChildFunc = (item: GObject.Object) => Actor; + +export type AlphaFunc = (alpha: Alpha) => number; + +export type BehaviourForeachFunc = (behaviour: Behaviour, actor: Actor) => void; + +export type BindingActionFunc = (gobject: GObject.Object, action_name: string, key_val: number, modifiers: ModifierType) => boolean; + +export type Callback = (actor: Actor) => void; + +export type EventFilterFunc = (event: Event) => boolean; + +export type ModelFilterFunc = (model: Model, iter: ModelIter) => boolean; + +export type ModelForeachFunc = (model: Model, iter: ModelIter) => boolean; + +export type ModelSortFunc = (model: Model, a: (GObject.Value | string | boolean | number), b: (GObject.Value | string | boolean | number)) => number; + +export type PathCallback = (node: PathNode) => void; + +export type ProgressFunc = (a: (GObject.Value | string | boolean | number), b: (GObject.Value | string | boolean | number), progress: number, retval: (GObject.Value | string | boolean | number)) => boolean; + +export type ScriptConnectFunc = (script: Script, object: GObject.Object, signal_name: string, handler_name: string, connect_object: GObject.Object, flags: GObject.ConnectFlags) => void; + +export type TimelineProgressFunc = (timeline: Timeline, elapsed: number, total: number) => number; +export enum ActorAlign { + FILL = 0, + START = 1, + CENTER = 2, + END = 3, +} +export enum AlignAxis { + X_AXIS = 0, + Y_AXIS = 1, + BOTH = 2, +} +export enum AnimationMode { + CUSTOM_MODE = 0, + LINEAR = 1, + EASE_IN_QUAD = 2, + EASE_OUT_QUAD = 3, + EASE_IN_OUT_QUAD = 4, + EASE_IN_CUBIC = 5, + EASE_OUT_CUBIC = 6, + EASE_IN_OUT_CUBIC = 7, + EASE_IN_QUART = 8, + EASE_OUT_QUART = 9, + EASE_IN_OUT_QUART = 10, + EASE_IN_QUINT = 11, + EASE_OUT_QUINT = 12, + EASE_IN_OUT_QUINT = 13, + EASE_IN_SINE = 14, + EASE_OUT_SINE = 15, + EASE_IN_OUT_SINE = 16, + EASE_IN_EXPO = 17, + EASE_OUT_EXPO = 18, + EASE_IN_OUT_EXPO = 19, + EASE_IN_CIRC = 20, + EASE_OUT_CIRC = 21, + EASE_IN_OUT_CIRC = 22, + EASE_IN_ELASTIC = 23, + EASE_OUT_ELASTIC = 24, + EASE_IN_OUT_ELASTIC = 25, + EASE_IN_BACK = 26, + EASE_OUT_BACK = 27, + EASE_IN_OUT_BACK = 28, + EASE_IN_BOUNCE = 29, + EASE_OUT_BOUNCE = 30, + EASE_IN_OUT_BOUNCE = 31, + STEPS = 32, + STEP_START = 33, + STEP_END = 34, + CUBIC_BEZIER = 35, + EASE = 36, + EASE_IN = 37, + EASE_OUT = 38, + EASE_IN_OUT = 39, + ANIMATION_LAST = 40, +} +export enum BinAlignment { + FIXED = 0, + FILL = 1, + START = 2, + END = 3, + CENTER = 4, +} +export enum BindCoordinate { + X = 0, + Y = 1, + WIDTH = 2, + HEIGHT = 3, + POSITION = 4, + SIZE = 5, + ALL = 6, +} +export enum BoxAlignment { + START = 0, + END = 1, + CENTER = 2, +} +export enum ContentGravity { + TOP_LEFT = 0, + TOP = 1, + TOP_RIGHT = 2, + LEFT = 3, + CENTER = 4, + RIGHT = 5, + BOTTOM_LEFT = 6, + BOTTOM = 7, + BOTTOM_RIGHT = 8, + RESIZE_FILL = 9, + RESIZE_ASPECT = 10, +} +export enum DragAxis { + AXIS_NONE = 0, + X_AXIS = 1, + Y_AXIS = 2, +} +export enum EventType { + NOTHING = 0, + KEY_PRESS = 1, + KEY_RELEASE = 2, + MOTION = 3, + ENTER = 4, + LEAVE = 5, + BUTTON_PRESS = 6, + BUTTON_RELEASE = 7, + SCROLL = 8, + STAGE_STATE = 9, + DESTROY_NOTIFY = 10, + CLIENT_MESSAGE = 11, + DELETE = 12, + TOUCH_BEGIN = 13, + TOUCH_UPDATE = 14, + TOUCH_END = 15, + TOUCH_CANCEL = 16, + TOUCHPAD_PINCH = 17, + TOUCHPAD_SWIPE = 18, + EVENT_LAST = 19, +} +export enum FlowOrientation { + HORIZONTAL = 0, + VERTICAL = 1, +} +export enum GestureTriggerEdge { + NONE = 0, + AFTER = 1, + BEFORE = 2, +} +export enum Gravity { + NONE = 0, + NORTH = 1, + NORTH_EAST = 2, + EAST = 3, + SOUTH_EAST = 4, + SOUTH = 5, + SOUTH_WEST = 6, + WEST = 7, + NORTH_WEST = 8, + CENTER = 9, +} +export enum GridPosition { + LEFT = 0, + RIGHT = 1, + TOP = 2, + BOTTOM = 3, +} +export class ImageError extends GLib.Error { + constructor(copy: ImageError); + // Properties + static DATA: number; + // Members + quark(): GLib.Quark; +} +export class InitError extends GLib.Error { + constructor(copy: InitError); + // Properties + static SUCCESS: number; + static ERROR_UNKNOWN: number; + static ERROR_THREADS: number; + static ERROR_BACKEND: number; + static ERROR_INTERNAL: number; + // Members + quark(): GLib.Quark; +} +export enum InputAxis { + IGNORE = 0, + X = 1, + Y = 2, + PRESSURE = 3, + XTILT = 4, + YTILT = 5, + WHEEL = 6, + DISTANCE = 7, + LAST = 8, +} +export enum InputDeviceType { + POINTER_DEVICE = 0, + KEYBOARD_DEVICE = 1, + EXTENSION_DEVICE = 2, + JOYSTICK_DEVICE = 3, + TABLET_DEVICE = 4, + TOUCHPAD_DEVICE = 5, + TOUCHSCREEN_DEVICE = 6, + PEN_DEVICE = 7, + ERASER_DEVICE = 8, + CURSOR_DEVICE = 9, + N_DEVICE_TYPES = 10, +} +export enum InputMode { + MASTER = 0, + SLAVE = 1, + FLOATING = 2, +} +export enum Interpolation { + LINEAR = 0, + CUBIC = 1, +} +export enum LongPressState { + QUERY = 0, + ACTIVATE = 1, + CANCEL = 2, +} +export enum Orientation { + HORIZONTAL = 0, + VERTICAL = 1, +} +export enum PanAxis { + AXIS_NONE = 0, + X_AXIS = 1, + Y_AXIS = 2, + AXIS_AUTO = 3, +} +export enum PathNodeType { + MOVE_TO = 0, + LINE_TO = 1, + CURVE_TO = 2, + CLOSE = 3, + REL_MOVE_TO = 32, + REL_LINE_TO = 33, + REL_CURVE_TO = 34, +} +export enum PickMode { + NONE = 0, + REACTIVE = 1, + ALL = 2, +} +export enum RequestMode { + HEIGHT_FOR_WIDTH = 0, + WIDTH_FOR_HEIGHT = 1, + CONTENT_SIZE = 2, +} +export enum RotateAxis { + X_AXIS = 0, + Y_AXIS = 1, + Z_AXIS = 2, +} +export enum RotateDirection { + CW = 0, + CCW = 1, +} +export enum ScalingFilter { + LINEAR = 0, + NEAREST = 1, + TRILINEAR = 2, +} +export class ScriptError extends GLib.Error { + constructor(copy: ScriptError); + // Properties + static TYPE_FUNCTION: number; + static PROPERTY: number; + static VALUE: number; + // Members + quark(): GLib.Quark; +} +export enum ScrollDirection { + UP = 0, + DOWN = 1, + LEFT = 2, + RIGHT = 3, + SMOOTH = 4, +} +export enum ScrollSource { + UNKNOWN = 0, + WHEEL = 1, + FINGER = 2, + CONTINUOUS = 3, +} +export class ShaderError extends GLib.Error { + constructor(copy: ShaderError); + // Properties + static NO_ASM: number; + static NO_GLSL: number; + static COMPILE: number; + // Members + quark(): GLib.Quark; +} +export enum ShaderType { + VERTEX_SHADER = 0, + FRAGMENT_SHADER = 1, +} +export enum SnapEdge { + TOP = 0, + RIGHT = 1, + BOTTOM = 2, + LEFT = 3, +} +export enum StaticColor { + WHITE = 0, + BLACK = 1, + RED = 2, + DARK_RED = 3, + GREEN = 4, + DARK_GREEN = 5, + BLUE = 6, + DARK_BLUE = 7, + CYAN = 8, + DARK_CYAN = 9, + MAGENTA = 10, + DARK_MAGENTA = 11, + YELLOW = 12, + DARK_YELLOW = 13, + GRAY = 14, + DARK_GRAY = 15, + LIGHT_GRAY = 16, + BUTTER = 17, + BUTTER_LIGHT = 18, + BUTTER_DARK = 19, + ORANGE = 20, + ORANGE_LIGHT = 21, + ORANGE_DARK = 22, + CHOCOLATE = 23, + CHOCOLATE_LIGHT = 24, + CHOCOLATE_DARK = 25, + CHAMELEON = 26, + CHAMELEON_LIGHT = 27, + CHAMELEON_DARK = 28, + SKY_BLUE = 29, + SKY_BLUE_LIGHT = 30, + SKY_BLUE_DARK = 31, + PLUM = 32, + PLUM_LIGHT = 33, + PLUM_DARK = 34, + SCARLET_RED = 35, + SCARLET_RED_LIGHT = 36, + SCARLET_RED_DARK = 37, + ALUMINIUM_1 = 38, + ALUMINIUM_2 = 39, + ALUMINIUM_3 = 40, + ALUMINIUM_4 = 41, + ALUMINIUM_5 = 42, + ALUMINIUM_6 = 43, + TRANSPARENT = 44, +} +export enum StepMode { + START = 0, + END = 1, +} +export enum TableAlignment { + START = 0, + CENTER = 1, + END = 2, +} +export enum TextDirection { + DEFAULT = 0, + LTR = 1, + RTL = 2, +} +export class TextureError extends GLib.Error { + constructor(copy: TextureError); + // Properties + static OUT_OF_MEMORY: number; + static NO_YUV: number; + static BAD_FORMAT: number; + // Members + quark(): GLib.Quark; +} +export enum TextureQuality { + LOW = 0, + MEDIUM = 1, + HIGH = 2, +} +export enum TimelineDirection { + FORWARD = 0, + BACKWARD = 1, +} +export enum TouchpadGesturePhase { + BEGIN = 0, + UPDATE = 1, + END = 2, + CANCEL = 3, +} +export enum UnitType { + PIXEL = 0, + EM = 1, + MM = 2, + POINT = 3, + CM = 4, +} +export enum ZoomAxis { + X_AXIS = 0, + Y_AXIS = 1, + BOTH = 2, +} +export enum ActorFlags { + MAPPED = 2, + REALIZED = 4, + REACTIVE = 8, + VISIBLE = 16, + NO_LAYOUT = 32, +} +export enum AllocationFlags { + ALLOCATION_NONE = 0, + ABSOLUTE_ORIGIN_CHANGED = 2, + DELEGATE_LAYOUT = 4, +} +export enum ContentRepeat { + NONE = 0, + X_AXIS = 1, + Y_AXIS = 2, + BOTH = 3, +} +export enum EffectPaintFlags { + ACTOR_DIRTY = 1, +} +export enum EventFlags { + NONE = 0, + FLAG_SYNTHETIC = 1, +} +export enum FeatureFlags { + TEXTURE_NPOT = 4, + SYNC_TO_VBLANK = 8, + TEXTURE_YUV = 16, + TEXTURE_READ_PIXELS = 32, + STAGE_STATIC = 64, + STAGE_USER_RESIZE = 128, + STAGE_CURSOR = 256, + SHADERS_GLSL = 512, + OFFSCREEN = 1024, + STAGE_MULTIPLE = 2048, + SWAP_EVENTS = 4096, +} +export enum FontFlags { + MIPMAPPING = 1, + HINTING = 2, +} +export enum ModifierType { + SHIFT_MASK = 1, + LOCK_MASK = 2, + CONTROL_MASK = 4, + MOD1_MASK = 8, + MOD2_MASK = 16, + MOD3_MASK = 32, + MOD4_MASK = 64, + MOD5_MASK = 128, + BUTTON1_MASK = 256, + BUTTON2_MASK = 512, + BUTTON3_MASK = 1024, + BUTTON4_MASK = 2048, + BUTTON5_MASK = 4096, + MODIFIER_RESERVED_13_MASK = 8192, + MODIFIER_RESERVED_14_MASK = 16384, + MODIFIER_RESERVED_15_MASK = 32768, + MODIFIER_RESERVED_16_MASK = 65536, + MODIFIER_RESERVED_17_MASK = 131072, + MODIFIER_RESERVED_18_MASK = 262144, + MODIFIER_RESERVED_19_MASK = 524288, + MODIFIER_RESERVED_20_MASK = 1048576, + MODIFIER_RESERVED_21_MASK = 2097152, + MODIFIER_RESERVED_22_MASK = 4194304, + MODIFIER_RESERVED_23_MASK = 8388608, + MODIFIER_RESERVED_24_MASK = 16777216, + MODIFIER_RESERVED_25_MASK = 33554432, + SUPER_MASK = 67108864, + HYPER_MASK = 134217728, + META_MASK = 268435456, + MODIFIER_RESERVED_29_MASK = 536870912, + RELEASE_MASK = 1073741824, + MODIFIER_MASK = 1543512063, +} +export enum OffscreenRedirect { + AUTOMATIC_FOR_OPACITY = 1, + ALWAYS = 2, +} +export enum RepaintFlags { + PRE_PAINT = 1, + POST_PAINT = 2, + QUEUE_REDRAW_ON_ADD = 4, +} +export enum ScrollFinishFlags { + NONE = 0, + HORIZONTAL = 1, + VERTICAL = 2, +} +export enum ScrollMode { + NONE = 0, + HORIZONTALLY = 1, + VERTICALLY = 2, + BOTH = 3, +} +export enum StageState { + FULLSCREEN = 2, + OFFSCREEN = 4, + ACTIVATED = 8, +} +export enum SwipeDirection { + UP = 1, + DOWN = 2, + LEFT = 4, + RIGHT = 8, +} +export enum TextureFlags { + NONE = 0, + RGB_FLAG_BGR = 2, + RGB_FLAG_PREMULT = 4, + YUV_FLAG_YUV2 = 8, +} +export module Action { + export interface ConstructorProperties extends ActorMeta.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Action extends ActorMeta { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module Actor { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + actions: Action; + allocation: ActorBox; + anchor_gravity: Gravity; + anchor_x: number; + anchor_y: number; + background_color: Color; + background_color_set: boolean; + child_transform: Matrix; + child_transform_set: boolean; + clip: Geometry; + clip_rect: Rect; + clip_to_allocation: boolean; + constraints: Constraint; + content: Content; + content_box: ActorBox; + content_gravity: ContentGravity; + content_repeat: ContentRepeat; + depth: number; + effect: Effect; + first_child: Actor; + fixed_position_set: boolean; + fixed_x: number; + fixed_y: number; + has_clip: boolean; + has_pointer: boolean; + height: number; + last_child: Actor; + layout_manager: LayoutManager; + magnification_filter: ScalingFilter; + mapped: boolean; + margin_bottom: number; + margin_left: number; + margin_right: number; + margin_top: number; + min_height: number; + min_height_set: boolean; + min_width: number; + min_width_set: boolean; + minification_filter: ScalingFilter; + name: string; + natural_height: number; + natural_height_set: boolean; + natural_width: number; + natural_width_set: boolean; + offscreen_redirect: OffscreenRedirect; + opacity: number; + pivot_point: Point; + pivot_point_z: number; + position: Point; + reactive: boolean; + realized: boolean; + request_mode: RequestMode; + rotation_angle_x: number; + rotation_angle_y: number; + rotation_angle_z: number; + rotation_center_x: Vertex; + rotation_center_y: Vertex; + rotation_center_z: Vertex; + rotation_center_z_gravity: Gravity; + scale_center_x: number; + scale_center_y: number; + scale_gravity: Gravity; + scale_x: number; + scale_y: number; + scale_z: number; + show_on_set_parent: boolean; + size: Size; + text_direction: TextDirection; + transform: Matrix; + transform_set: boolean; + translation_x: number; + translation_y: number; + translation_z: number; + visible: boolean; + width: number; + x: number; + x_align: ActorAlign; + x_expand: boolean; + y: number; + y_align: ActorAlign; + y_expand: boolean; + z_position: number; + } +} +export class Actor extends GObject.InitiallyUnowned implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + actions: Action; + allocation: ActorBox; + anchor_gravity: Gravity; + anchor_x: number; + anchor_y: number; + background_color: Color; + background_color_set: boolean; + child_transform: Matrix; + child_transform_set: boolean; + clip: Geometry; + clip_rect: Rect; + clip_to_allocation: boolean; + constraints: Constraint; + content: Content; + content_box: ActorBox; + content_gravity: ContentGravity; + content_repeat: ContentRepeat; + depth: number; + effect: Effect; + first_child: Actor; + fixed_position_set: boolean; + fixed_x: number; + fixed_y: number; + has_clip: boolean; + has_pointer: boolean; + height: number; + last_child: Actor; + layout_manager: LayoutManager; + magnification_filter: ScalingFilter; + mapped: boolean; + margin_bottom: number; + margin_left: number; + margin_right: number; + margin_top: number; + min_height: number; + min_height_set: boolean; + min_width: number; + min_width_set: boolean; + minification_filter: ScalingFilter; + name: string; + natural_height: number; + natural_height_set: boolean; + natural_width: number; + natural_width_set: boolean; + offscreen_redirect: OffscreenRedirect; + opacity: number; + pivot_point: Point; + pivot_point_z: number; + position: Point; + reactive: boolean; + realized: boolean; + request_mode: RequestMode; + rotation_angle_x: number; + rotation_angle_y: number; + rotation_angle_z: number; + rotation_center_x: Vertex; + rotation_center_y: Vertex; + rotation_center_z: Vertex; + rotation_center_z_gravity: Gravity; + scale_center_x: number; + scale_center_y: number; + scale_gravity: Gravity; + scale_x: number; + scale_y: number; + scale_z: number; + show_on_set_parent: boolean; + size: Size; + text_direction: TextDirection; + transform: Matrix; + transform_set: boolean; + translation_x: number; + translation_y: number; + translation_z: number; + visible: boolean; + width: number; + x: number; + x_align: ActorAlign; + x_expand: boolean; + y: number; + y_align: ActorAlign; + y_expand: boolean; + z_position: number; + // Fields + flags: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'allocation-changed', callback: (_source: this, box: ActorBox, flags: AllocationFlags) => void): number; + connect_after(signal: 'allocation-changed', callback: (_source: this, box: ActorBox, flags: AllocationFlags) => void): number; + emit(signal: 'allocation-changed', box: ActorBox, flags: AllocationFlags): void; + connect(signal: 'button-press-event', callback: (_source: this, event: ButtonEvent) => boolean): number; + connect_after(signal: 'button-press-event', callback: (_source: this, event: ButtonEvent) => boolean): number; + emit(signal: 'button-press-event', event: ButtonEvent): void; + connect(signal: 'button-release-event', callback: (_source: this, event: ButtonEvent) => boolean): number; + connect_after(signal: 'button-release-event', callback: (_source: this, event: ButtonEvent) => boolean): number; + emit(signal: 'button-release-event', event: ButtonEvent): void; + connect(signal: 'captured-event', callback: (_source: this, event: Event) => boolean): number; + connect_after(signal: 'captured-event', callback: (_source: this, event: Event) => boolean): number; + emit(signal: 'captured-event', event: Event): void; + connect(signal: 'destroy', callback: (_source: this) => void): number; + connect_after(signal: 'destroy', callback: (_source: this) => void): number; + emit(signal: 'destroy'): void; + connect(signal: 'enter-event', callback: (_source: this, event: CrossingEvent) => boolean): number; + connect_after(signal: 'enter-event', callback: (_source: this, event: CrossingEvent) => boolean): number; + emit(signal: 'enter-event', event: CrossingEvent): void; + connect(signal: 'event', callback: (_source: this, event: Event) => boolean): number; + connect_after(signal: 'event', callback: (_source: this, event: Event) => boolean): number; + emit(signal: 'event', event: Event): void; + connect(signal: 'hide', callback: (_source: this) => void): number; + connect_after(signal: 'hide', callback: (_source: this) => void): number; + emit(signal: 'hide'): void; + connect(signal: 'key-focus-in', callback: (_source: this) => void): number; + connect_after(signal: 'key-focus-in', callback: (_source: this) => void): number; + emit(signal: 'key-focus-in'): void; + connect(signal: 'key-focus-out', callback: (_source: this) => void): number; + connect_after(signal: 'key-focus-out', callback: (_source: this) => void): number; + emit(signal: 'key-focus-out'): void; + connect(signal: 'key-press-event', callback: (_source: this, event: KeyEvent) => boolean): number; + connect_after(signal: 'key-press-event', callback: (_source: this, event: KeyEvent) => boolean): number; + emit(signal: 'key-press-event', event: KeyEvent): void; + connect(signal: 'key-release-event', callback: (_source: this, event: KeyEvent) => boolean): number; + connect_after(signal: 'key-release-event', callback: (_source: this, event: KeyEvent) => boolean): number; + emit(signal: 'key-release-event', event: KeyEvent): void; + connect(signal: 'leave-event', callback: (_source: this, event: CrossingEvent) => boolean): number; + connect_after(signal: 'leave-event', callback: (_source: this, event: CrossingEvent) => boolean): number; + emit(signal: 'leave-event', event: CrossingEvent): void; + connect(signal: 'motion-event', callback: (_source: this, event: MotionEvent) => boolean): number; + connect_after(signal: 'motion-event', callback: (_source: this, event: MotionEvent) => boolean): number; + emit(signal: 'motion-event', event: MotionEvent): void; + connect(signal: 'paint', callback: (_source: this) => void): number; + connect_after(signal: 'paint', callback: (_source: this) => void): number; + emit(signal: 'paint'): void; + connect(signal: 'parent-set', callback: (_source: this, old_parent: Actor | null) => void): number; + connect_after(signal: 'parent-set', callback: (_source: this, old_parent: Actor | null) => void): number; + emit(signal: 'parent-set', old_parent: Actor | null): void; + connect(signal: 'pick', callback: (_source: this, color: Color) => void): number; + connect_after(signal: 'pick', callback: (_source: this, color: Color) => void): number; + emit(signal: 'pick', color: Color): void; + connect(signal: 'queue-redraw', callback: (_source: this, origin: Actor) => void): number; + connect_after(signal: 'queue-redraw', callback: (_source: this, origin: Actor) => void): number; + emit(signal: 'queue-redraw', origin: Actor): void; + connect(signal: 'queue-relayout', callback: (_source: this) => void): number; + connect_after(signal: 'queue-relayout', callback: (_source: this) => void): number; + emit(signal: 'queue-relayout'): void; + connect(signal: 'realize', callback: (_source: this) => void): number; + connect_after(signal: 'realize', callback: (_source: this) => void): number; + emit(signal: 'realize'): void; + connect(signal: 'scroll-event', callback: (_source: this, event: ScrollEvent) => boolean): number; + connect_after(signal: 'scroll-event', callback: (_source: this, event: ScrollEvent) => boolean): number; + emit(signal: 'scroll-event', event: ScrollEvent): void; + connect(signal: 'show', callback: (_source: this) => void): number; + connect_after(signal: 'show', callback: (_source: this) => void): number; + emit(signal: 'show'): void; + connect(signal: 'touch-event', callback: (_source: this, event: Event) => boolean): number; + connect_after(signal: 'touch-event', callback: (_source: this, event: Event) => boolean): number; + emit(signal: 'touch-event', event: Event): void; + connect(signal: 'transition-stopped', callback: (_source: this, name: string, is_finished: boolean) => void): number; + connect_after(signal: 'transition-stopped', callback: (_source: this, name: string, is_finished: boolean) => void): number; + emit(signal: 'transition-stopped', name: string, is_finished: boolean): void; + connect(signal: 'transitions-completed', callback: (_source: this) => void): number; + connect_after(signal: 'transitions-completed', callback: (_source: this) => void): number; + emit(signal: 'transitions-completed'): void; + connect(signal: 'unrealize', callback: (_source: this) => void): number; + connect_after(signal: 'unrealize', callback: (_source: this) => void): number; + emit(signal: 'unrealize'): void; + // Constructors + static ["new"](): Actor; + // Members + add_action(action: Action): void; + add_action_with_name(name: string, action: Action): void; + add_child(child: Actor): void; + add_constraint(constraint: Constraint): void; + add_constraint_with_name(name: string, constraint: Constraint): void; + add_effect(effect: Effect): void; + add_effect_with_name(name: string, effect: Effect): void; + add_transition(name: string, transition: Transition): void; + allocate(box: ActorBox, flags: AllocationFlags): void; + allocate_align_fill(box: ActorBox, x_align: number, y_align: number, x_fill: boolean, y_fill: boolean, flags: AllocationFlags): void; + allocate_available_size(x: number, y: number, available_width: number, available_height: number, flags: AllocationFlags): void; + allocate_preferred_size(flags: AllocationFlags): void; + animate_with_alphav(alpha: Alpha, properties: string[], values: (GObject.Value | string | boolean | number)[]): Animation; + animate_with_timelinev(mode: number, timeline: Timeline, properties: string[], values: (GObject.Value | string | boolean | number)[]): Animation; + animatev(mode: number, duration: number, properties: string[], values: (GObject.Value | string | boolean | number)[]): Animation; + apply_relative_transform_to_point(ancestor: Actor | null, point: Vertex): Vertex; + apply_transform_to_point(point: Vertex): Vertex; + bind_model(model: Gio.ListModel | null, create_child_func: ActorCreateChildFunc, notify: GLib.DestroyNotify): void; + clear_actions(): void; + clear_constraints(): void; + clear_effects(): void; + contains(descendant: Actor): boolean; + continue_paint(): void; + create_pango_context(): Pango.Context; + create_pango_layout(text: string | null): Pango.Layout; + destroy(): void; + destroy_all_children(): void; + detach_animation(): void; + event(event: Event, capture: boolean): boolean; + get_abs_allocation_vertices(): Vertex[]; + get_accessible(): Atk.Object; + get_action(name: string): Action; + get_actions(): GLib.List; + get_allocation_box(): ActorBox; + get_allocation_geometry(): Geometry; + get_allocation_vertices(ancestor: Actor | null): Vertex[]; + get_anchor_point(): [number, number]; + get_anchor_point_gravity(): Gravity; + get_animation(): Animation; + get_background_color(): Color; + get_child_at_index(index_: number): Actor; + get_child_transform(): Matrix; + get_children(): GLib.List; + get_clip(): [number | null, number | null, number | null, number | null]; + get_clip_to_allocation(): boolean; + get_constraint(name: string): Constraint; + get_constraints(): GLib.List; + get_content(): Content; + get_content_box(): ActorBox; + get_content_gravity(): ContentGravity; + get_content_repeat(): ContentRepeat; + get_content_scaling_filters(): [ScalingFilter | null, ScalingFilter | null]; + get_default_paint_volume(): PaintVolume; + get_depth(): number; + get_easing_delay(): number; + get_easing_duration(): number; + get_easing_mode(): AnimationMode; + get_effect(name: string): Effect; + get_effects(): GLib.List; + get_first_child(): Actor; + get_fixed_position_set(): boolean; + get_flags(): ActorFlags; + get_geometry(): Geometry; + get_gid(): number; + get_height(): number; + get_last_child(): Actor; + get_layout_manager(): LayoutManager; + get_margin(): Margin; + get_margin_bottom(): number; + get_margin_left(): number; + get_margin_right(): number; + get_margin_top(): number; + get_n_children(): number; + get_name(): string; + get_next_sibling(): Actor; + get_offscreen_redirect(): OffscreenRedirect; + get_opacity(): number; + get_paint_box(): [boolean, ActorBox]; + get_paint_opacity(): number; + get_paint_visibility(): boolean; + get_paint_volume(): PaintVolume; + get_pango_context(): Pango.Context; + get_parent(): Actor; + get_pivot_point(): [number | null, number | null]; + get_pivot_point_z(): number; + get_position(): [number | null, number | null]; + get_preferred_height(for_width: number): [number | null, number | null]; + get_preferred_size(): [number | null, number | null, number | null, number | null]; + get_preferred_width(for_height: number): [number | null, number | null]; + get_previous_sibling(): Actor; + get_reactive(): boolean; + get_request_mode(): RequestMode; + get_rotation(axis: RotateAxis): [number, number, number, number]; + get_rotation_angle(axis: RotateAxis): number; + get_scale(): [number | null, number | null]; + get_scale_center(): [number | null, number | null]; + get_scale_gravity(): Gravity; + get_scale_z(): number; + get_shader(): Shader; + get_size(): [number | null, number | null]; + get_stage(): Stage; + get_text_direction(): TextDirection; + get_transform(): Matrix; + get_transformation_matrix(): Matrix; + get_transformed_paint_volume(relative_to_ancestor: Actor): PaintVolume; + get_transformed_position(): [number | null, number | null]; + get_transformed_size(): [number | null, number | null]; + get_transition(name: string): Transition; + get_translation(): [number | null, number | null, number | null]; + get_width(): number; + get_x(): number; + get_x_align(): ActorAlign; + get_x_expand(): boolean; + get_y(): number; + get_y_align(): ActorAlign; + get_y_expand(): boolean; + get_z_position(): number; + get_z_rotation_gravity(): Gravity; + grab_key_focus(): void; + has_actions(): boolean; + has_allocation(): boolean; + has_constraints(): boolean; + has_effects(): boolean; + has_key_focus(): boolean; + has_overlaps(): boolean; + hide(): void; + hide_all(): void; + insert_child_above(child: Actor, sibling: Actor | null): void; + insert_child_at_index(child: Actor, index_: number): void; + insert_child_below(child: Actor, sibling: Actor | null): void; + is_in_clone_paint(): boolean; + is_mapped(): boolean; + is_realized(): boolean; + is_rotated(): boolean; + is_scaled(): boolean; + is_visible(): boolean; + lower(above: Actor | null): void; + lower_bottom(): void; + map(): void; + move_anchor_point(anchor_x: number, anchor_y: number): void; + move_anchor_point_from_gravity(gravity: Gravity): void; + move_by(dx: number, dy: number): void; + needs_expand(orientation: Orientation): boolean; + paint(): void; + pop_internal(): void; + push_internal(): void; + queue_redraw(): void; + queue_redraw_with_clip(clip: cairo.RectangleInt | null): void; + queue_relayout(): void; + raise(below: Actor | null): void; + raise_top(): void; + realize(): void; + remove_action(action: Action): void; + remove_action_by_name(name: string): void; + remove_all_children(): void; + remove_all_transitions(): void; + remove_child(child: Actor): void; + remove_clip(): void; + remove_constraint(constraint: Constraint): void; + remove_constraint_by_name(name: string): void; + remove_effect(effect: Effect): void; + remove_effect_by_name(name: string): void; + remove_transition(name: string): void; + reparent(new_parent: Actor): void; + replace_child(old_child: Actor, new_child: Actor): void; + restore_easing_state(): void; + save_easing_state(): void; + set_allocation(box: ActorBox, flags: AllocationFlags): void; + set_anchor_point(anchor_x: number, anchor_y: number): void; + set_anchor_point_from_gravity(gravity: Gravity): void; + set_background_color(color: Color | null): void; + set_child_above_sibling(child: Actor, sibling: Actor | null): void; + set_child_at_index(child: Actor, index_: number): void; + set_child_below_sibling(child: Actor, sibling: Actor | null): void; + set_child_transform(transform: Matrix | null): void; + set_clip(xoff: number, yoff: number, width: number, height: number): void; + set_clip_to_allocation(clip_set: boolean): void; + set_content(content: Content | null): void; + set_content_gravity(gravity: ContentGravity): void; + set_content_repeat(repeat: ContentRepeat): void; + set_content_scaling_filters(min_filter: ScalingFilter, mag_filter: ScalingFilter): void; + set_depth(depth: number): void; + set_easing_delay(msecs: number): void; + set_easing_duration(msecs: number): void; + set_easing_mode(mode: AnimationMode): void; + set_fixed_position_set(is_set: boolean): void; + set_flags(flags: ActorFlags): void; + set_geometry(geometry: Geometry): void; + set_height(height: number): void; + set_layout_manager(manager: LayoutManager | null): void; + set_margin(margin: Margin): void; + set_margin_bottom(margin: number): void; + set_margin_left(margin: number): void; + set_margin_right(margin: number): void; + set_margin_top(margin: number): void; + set_name(name: string): void; + set_offscreen_redirect(redirect: OffscreenRedirect): void; + set_opacity(opacity: number): void; + set_parent(parent: Actor): void; + set_pivot_point(pivot_x: number, pivot_y: number): void; + set_pivot_point_z(pivot_z: number): void; + set_position(x: number, y: number): void; + set_reactive(reactive: boolean): void; + set_request_mode(mode: RequestMode): void; + set_rotation(axis: RotateAxis, angle: number, x: number, y: number, z: number): void; + set_rotation_angle(axis: RotateAxis, angle: number): void; + set_scale(scale_x: number, scale_y: number): void; + set_scale_full(scale_x: number, scale_y: number, center_x: number, center_y: number): void; + set_scale_with_gravity(scale_x: number, scale_y: number, gravity: Gravity): void; + set_scale_z(scale_z: number): void; + set_shader(shader: Shader | null): boolean; + set_shader_param(param: string, value: (GObject.Value | string | boolean | number)): void; + set_shader_param_float(param: string, value: number): void; + set_shader_param_int(param: string, value: number): void; + set_size(width: number, height: number): void; + set_text_direction(text_dir: TextDirection): void; + set_transform(transform: Matrix | null): void; + set_translation(translate_x: number, translate_y: number, translate_z: number): void; + set_width(width: number): void; + set_x(x: number): void; + set_x_align(x_align: ActorAlign): void; + set_x_expand(expand: boolean): void; + set_y(y: number): void; + set_y_align(y_align: ActorAlign): void; + set_y_expand(expand: boolean): void; + set_z_position(z_position: number): void; + set_z_rotation_from_gravity(angle: number, gravity: Gravity): void; + should_pick_paint(): boolean; + show(): void; + show_all(): void; + transform_stage_point(x: number, y: number): [boolean, number, number]; + unmap(): void; + unparent(): void; + unrealize(): void; + unset_flags(flags: ActorFlags): void; + vfunc_allocate(box: ActorBox, flags: AllocationFlags): void; + vfunc_apply_transform(matrix: Matrix): void; + vfunc_button_press_event(event: ButtonEvent): boolean; + vfunc_button_release_event(event: ButtonEvent): boolean; + vfunc_captured_event(event: Event): boolean; + vfunc_destroy(): void; + vfunc_enter_event(event: CrossingEvent): boolean; + vfunc_event(event: Event): boolean; + vfunc_get_accessible(): Atk.Object; + vfunc_get_paint_volume(volume: PaintVolume): boolean; + vfunc_get_preferred_height(for_width: number): [number | null, number | null]; + vfunc_get_preferred_width(for_height: number): [number | null, number | null]; + vfunc_has_overlaps(): boolean; + vfunc_hide(): void; + vfunc_hide_all(): void; + vfunc_key_focus_in(): void; + vfunc_key_focus_out(): void; + vfunc_key_press_event(event: KeyEvent): boolean; + vfunc_key_release_event(event: KeyEvent): boolean; + vfunc_leave_event(event: CrossingEvent): boolean; + vfunc_map(): void; + vfunc_motion_event(event: MotionEvent): boolean; + vfunc_paint(): void; + vfunc_paint_node(root: PaintNode): void; + vfunc_parent_set(old_parent: Actor): void; + vfunc_pick(color: Color): void; + vfunc_queue_redraw(leaf_that_queued: Actor): void; + vfunc_queue_relayout(): void; + vfunc_realize(): void; + vfunc_scroll_event(event: ScrollEvent): boolean; + vfunc_show(): void; + vfunc_show_all(): void; + vfunc_touch_event(event: TouchEvent): boolean; + vfunc_unmap(): void; + vfunc_unrealize(): void; + // Implemented Members + animate_property(animation: Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + find_property(property_name: string): GObject.ParamSpec; + get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + interpolate_value(property_name: string, interval: Interval, progress: number): [boolean, GObject.Value]; + set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_animate_property(animation: Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + vfunc_find_property(property_name: string): GObject.ParamSpec; + vfunc_get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_interpolate_value(property_name: string, interval: Interval, progress: number): [boolean, GObject.Value]; + vfunc_set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + add_actor(actor: Actor): void; + child_get_property(child: Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + child_notify(child: Actor, pspec: GObject.ParamSpec): void; + child_set_property(child: Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + create_child_meta(actor: Actor): void; + destroy_child_meta(actor: Actor): void; + find_child_by_name(child_name: string): Actor; + foreach(callback: Callback): void; + foreach_with_internals(callback: Callback): void; + get_child_meta(actor: Actor): ChildMeta; + lower_child(actor: Actor, sibling: Actor | null): void; + raise_child(actor: Actor, sibling: Actor | null): void; + remove_actor(actor: Actor): void; + sort_depth_order(): void; + vfunc_actor_added(actor: Actor): void; + vfunc_actor_removed(actor: Actor): void; + vfunc_add(actor: Actor): void; + vfunc_child_notify(child: Actor, pspec: GObject.ParamSpec): void; + vfunc_create_child_meta(actor: Actor): void; + vfunc_destroy_child_meta(actor: Actor): void; + vfunc_foreach(callback: Callback): void; + vfunc_foreach_with_internals(callback: Callback): void; + vfunc_get_child_meta(actor: Actor): ChildMeta; + vfunc_lower(actor: Actor, sibling: Actor | null): void; + vfunc_raise(actor: Actor, sibling: Actor | null): void; + vfunc_remove(actor: Actor): void; + vfunc_sort_depth_order(): void; + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module ActorMeta { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + actor: Actor; + enabled: boolean; + name: string; + } +} +export abstract class ActorMeta extends GObject.InitiallyUnowned { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + actor: Actor; + enabled: boolean; + name: string; + // Members + get_actor(): Actor; + get_enabled(): boolean; + get_name(): string; + set_enabled(is_enabled: boolean): void; + set_name(name: string): void; + vfunc_set_actor(actor: Actor | null): void; +} +export module AlignConstraint { + export interface ConstructorProperties extends Constraint.ConstructorProperties { + [key: string]: any; + align_axis: AlignAxis; + factor: number; + source: Actor; + } +} +export class AlignConstraint extends Constraint { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + align_axis: AlignAxis; + factor: number; + source: Actor; + // Constructors + static ["new"](source: Actor | null, axis: AlignAxis, factor: number): AlignConstraint; + // Members + get_align_axis(): AlignAxis; + get_factor(): number; + get_source(): Actor; + set_align_axis(axis: AlignAxis): void; + set_factor(factor: number): void; + set_source(source: Actor | null): void; +} +export module Alpha { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + alpha: number; + mode: number; + timeline: Timeline; + } +} +export class Alpha extends GObject.InitiallyUnowned implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + alpha: number; + mode: number; + timeline: Timeline; + // Constructors + static ["new"](): Alpha; + static new_full(timeline: Timeline, mode: number): Alpha; + static new_with_func(timeline: Timeline, func: AlphaFunc, destroy: GLib.DestroyNotify): Alpha; + // Members + get_alpha(): number; + get_mode(): number; + get_timeline(): Timeline; + set_closure(closure: GObject.Closure): void; + set_func(func: AlphaFunc, destroy: GLib.DestroyNotify): void; + set_mode(mode: number): void; + set_timeline(timeline: Timeline): void; + static register_func(closure: GObject.Closure): number; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module Animation { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + alpha: Alpha; + duration: number; + loop: boolean; + mode: number; + object: GObject.Object; + timeline: Timeline; + } +} +export class Animation extends GObject.Object implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + alpha: Alpha; + duration: number; + loop: boolean; + mode: number; + object: GObject.Object; + timeline: Timeline; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'completed', callback: (_source: this) => void): number; + connect_after(signal: 'completed', callback: (_source: this) => void): number; + emit(signal: 'completed'): void; + connect(signal: 'started', callback: (_source: this) => void): number; + connect_after(signal: 'started', callback: (_source: this) => void): number; + emit(signal: 'started'): void; + // Constructors + static ["new"](): Animation; + // Members + bind(property_name: string, _final: (GObject.Value | string | boolean | number)): Animation; + bind_interval(property_name: string, interval: Interval): Animation; + completed(): void; + get_alpha(): Alpha; + get_duration(): number; + get_interval(property_name: string): Interval; + get_loop(): boolean; + get_mode(): number; + get_object(): T; + get_timeline(): Timeline; + has_property(property_name: string): boolean; + set_alpha(alpha: Alpha): void; + set_duration(msecs: number): void; + set_loop(loop: boolean): void; + set_mode(mode: number): void; + set_object(object: GObject.Object): void; + set_timeline(timeline: Timeline | null): void; + unbind_property(property_name: string): void; + update(property_name: string, _final: (GObject.Value | string | boolean | number)): Animation; + update_interval(property_name: string, interval: Interval): void; + vfunc_completed(): void; + vfunc_started(): void; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module Animator { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + duration: number; + timeline: Timeline; + } +} +export class Animator extends GObject.Object implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + duration: number; + timeline: Timeline; + // Constructors + static ["new"](): Animator; + // Members + compute_value(object: GObject.Object, property_name: string, progress: number, value: (GObject.Value | string | boolean | number)): boolean; + get_duration(): number; + get_keys(object: GObject.Object | null, property_name: string | null, progress: number): GLib.List; + get_timeline(): Timeline; + property_get_ease_in(object: GObject.Object, property_name: string): boolean; + property_get_interpolation(object: GObject.Object, property_name: string): Interpolation; + property_set_ease_in(object: GObject.Object, property_name: string, ease_in: boolean): void; + property_set_interpolation(object: GObject.Object, property_name: string, interpolation: Interpolation): void; + remove_key(object: GObject.Object | null, property_name: string | null, progress: number): void; + set_duration(duration: number): void; + set_key(object: GObject.Object, property_name: string, mode: number, progress: number, value: (GObject.Value | string | boolean | number)): Animator; + set_timeline(timeline: Timeline): void; + start(): Timeline; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module Backend { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Backend extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'font-changed', callback: (_source: this) => void): number; + connect_after(signal: 'font-changed', callback: (_source: this) => void): number; + emit(signal: 'font-changed'): void; + connect(signal: 'resolution-changed', callback: (_source: this) => void): number; + connect_after(signal: 'resolution-changed', callback: (_source: this) => void): number; + emit(signal: 'resolution-changed'): void; + connect(signal: 'settings-changed', callback: (_source: this) => void): number; + connect_after(signal: 'settings-changed', callback: (_source: this) => void): number; + emit(signal: 'settings-changed'): void; + // Members + get_double_click_distance(): number; + get_double_click_time(): number; + get_font_name(): string; + get_font_options(): cairo.FontOptions; + get_resolution(): number; + set_double_click_distance(distance: number): void; + set_double_click_time(msec: number): void; + set_font_name(font_name: string): void; + set_font_options(options: cairo.FontOptions): void; + set_resolution(dpi: number): void; +} +export module Behaviour { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + alpha: Alpha; + } +} +export abstract class Behaviour extends GObject.Object implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + alpha: Alpha; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'applied', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'applied', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'applied', actor: Actor): void; + connect(signal: 'removed', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'removed', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'removed', actor: Actor): void; + // Members + actors_foreach(func: BehaviourForeachFunc): void; + apply(actor: Actor): void; + get_actors(): GLib.SList; + get_alpha(): Alpha; + get_n_actors(): number; + get_nth_actor(index_: number): Actor; + is_applied(actor: Actor): boolean; + remove(actor: Actor): void; + remove_all(): void; + set_alpha(alpha: Alpha): void; + vfunc_alpha_notify(alpha_value: number): void; + vfunc_applied(actor: Actor): void; + vfunc_removed(actor: Actor): void; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module BehaviourDepth { + export interface ConstructorProperties extends Behaviour.ConstructorProperties { + [key: string]: any; + depth_end: number; + depth_start: number; + } +} +export class BehaviourDepth extends Behaviour implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + depth_end: number; + depth_start: number; + // Constructors + static ["new"](alpha: Alpha | null, depth_start: number, depth_end: number): BehaviourDepth; + // Members + get_bounds(): [number, number]; + set_bounds(depth_start: number, depth_end: number): void; +} +export module BehaviourEllipse { + export interface ConstructorProperties extends Behaviour.ConstructorProperties { + [key: string]: any; + angle_end: number; + angle_start: number; + angle_tilt_x: number; + angle_tilt_y: number; + angle_tilt_z: number; + center: Knot; + direction: RotateDirection; + height: number; + width: number; + } +} +export class BehaviourEllipse extends Behaviour implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + angle_end: number; + angle_start: number; + angle_tilt_x: number; + angle_tilt_y: number; + angle_tilt_z: number; + center: Knot; + direction: RotateDirection; + height: number; + width: number; + // Constructors + static ["new"](alpha: Alpha | null, x: number, y: number, width: number, height: number, direction: RotateDirection, start: number, end: number): BehaviourEllipse; + // Members + get_angle_end(): number; + get_angle_start(): number; + get_angle_tilt(axis: RotateAxis): number; + get_center(): [number, number]; + get_direction(): RotateDirection; + get_height(): number; + get_tilt(): [number, number, number]; + get_width(): number; + set_angle_end(angle_end: number): void; + set_angle_start(angle_start: number): void; + set_angle_tilt(axis: RotateAxis, angle_tilt: number): void; + set_center(x: number, y: number): void; + set_direction(direction: RotateDirection): void; + set_height(height: number): void; + set_tilt(angle_tilt_x: number, angle_tilt_y: number, angle_tilt_z: number): void; + set_width(width: number): void; +} +export module BehaviourOpacity { + export interface ConstructorProperties extends Behaviour.ConstructorProperties { + [key: string]: any; + opacity_end: number; + opacity_start: number; + } +} +export class BehaviourOpacity extends Behaviour implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + opacity_end: number; + opacity_start: number; + // Constructors + static ["new"](alpha: Alpha | null, opacity_start: number, opacity_end: number): BehaviourOpacity; + // Members + get_bounds(): [number, number]; + set_bounds(opacity_start: number, opacity_end: number): void; +} +export module BehaviourPath { + export interface ConstructorProperties extends Behaviour.ConstructorProperties { + [key: string]: any; + path: Path; + } +} +export class BehaviourPath extends Behaviour implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + path: Path; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'knot-reached', callback: (_source: this, knot_num: number) => void): number; + connect_after(signal: 'knot-reached', callback: (_source: this, knot_num: number) => void): number; + emit(signal: 'knot-reached', knot_num: number): void; + // Constructors + static ["new"](alpha: Alpha | null, path: Path): BehaviourPath; + static new_with_description(alpha: Alpha | null, desc: string): BehaviourPath; + static new_with_knots(alpha: Alpha | null, knots: Knot[]): BehaviourPath; + // Members + get_path(): Path; + set_path(path: Path): void; + vfunc_knot_reached(knot_num: number): void; +} +export module BehaviourRotate { + export interface ConstructorProperties extends Behaviour.ConstructorProperties { + [key: string]: any; + angle_end: number; + angle_start: number; + axis: RotateAxis; + center_x: number; + center_y: number; + center_z: number; + direction: RotateDirection; + } +} +export class BehaviourRotate extends Behaviour implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + angle_end: number; + angle_start: number; + axis: RotateAxis; + center_x: number; + center_y: number; + center_z: number; + direction: RotateDirection; + // Constructors + static ["new"](alpha: Alpha | null, axis: RotateAxis, direction: RotateDirection, angle_start: number, angle_end: number): BehaviourRotate; + // Members + get_axis(): RotateAxis; + get_bounds(): [number, number]; + get_center(): [number, number, number]; + get_direction(): RotateDirection; + set_axis(axis: RotateAxis): void; + set_bounds(angle_start: number, angle_end: number): void; + set_center(x: number, y: number, z: number): void; + set_direction(direction: RotateDirection): void; +} +export module BehaviourScale { + export interface ConstructorProperties extends Behaviour.ConstructorProperties { + [key: string]: any; + x_scale_end: number; + x_scale_start: number; + y_scale_end: number; + y_scale_start: number; + } +} +export class BehaviourScale extends Behaviour implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + x_scale_end: number; + x_scale_start: number; + y_scale_end: number; + y_scale_start: number; + // Constructors + static ["new"](alpha: Alpha | null, x_scale_start: number, y_scale_start: number, x_scale_end: number, y_scale_end: number): BehaviourScale; + // Members + get_bounds(): [number, number, number, number]; + set_bounds(x_scale_start: number, y_scale_start: number, x_scale_end: number, y_scale_end: number): void; +} +export module BinLayout { + export interface ConstructorProperties extends LayoutManager.ConstructorProperties { + [key: string]: any; + x_align: BinAlignment; + y_align: BinAlignment; + } +} +export class BinLayout extends LayoutManager { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + x_align: BinAlignment; + y_align: BinAlignment; + // Constructors + static ["new"](x_align: BinAlignment, y_align: BinAlignment): BinLayout; + // Members + add(child: Actor, x_align: BinAlignment, y_align: BinAlignment): void; + get_alignment(child: Actor | null): [BinAlignment | null, BinAlignment | null]; + set_alignment(child: Actor | null, x_align: BinAlignment, y_align: BinAlignment): void; +} +export module BindConstraint { + export interface ConstructorProperties extends Constraint.ConstructorProperties { + [key: string]: any; + coordinate: BindCoordinate; + offset: number; + source: Actor; + } +} +export class BindConstraint extends Constraint { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + coordinate: BindCoordinate; + offset: number; + source: Actor; + // Constructors + static ["new"](source: Actor | null, coordinate: BindCoordinate, offset: number): BindConstraint; + // Members + get_coordinate(): BindCoordinate; + get_offset(): number; + get_source(): Actor; + set_coordinate(coordinate: BindCoordinate): void; + set_offset(offset: number): void; + set_source(source: Actor | null): void; +} +export module BindingPool { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + name: string; + } +} +export class BindingPool extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + name: string; + // Constructors + static ["new"](name: string): BindingPool; + // Members + activate(key_val: number, modifiers: ModifierType, gobject: GObject.Object): boolean; + block_action(action_name: string): void; + find_action(key_val: number, modifiers: ModifierType): string; + install_action(action_name: string, key_val: number, modifiers: ModifierType, callback: BindingActionFunc, notify: GLib.DestroyNotify): void; + install_closure(action_name: string, key_val: number, modifiers: ModifierType, closure: GObject.Closure): void; + override_action(key_val: number, modifiers: ModifierType, callback: BindingActionFunc, notify: GLib.DestroyNotify): void; + override_closure(key_val: number, modifiers: ModifierType, closure: GObject.Closure): void; + remove_action(key_val: number, modifiers: ModifierType): void; + unblock_action(action_name: string): void; + static find(name: string): BindingPool; + static get_for_class(klass: any | null): BindingPool; +} +export module BlurEffect { + export interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { + [key: string]: any; + } +} +export class BlurEffect extends OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): BlurEffect; +} +export module Box { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + color: Color; + color_set: boolean; + } +} +export class Box extends Actor implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + color: Color; + color_set: boolean; + // Constructors + static ["new"](manager: LayoutManager): Box; + static ["new"](...args: never[]): never; + // Members + get_color(): Color; + get_layout_manager(): LayoutManager; + packv(actor: Actor, properties: string[], values: (GObject.Value | string | boolean | number)[]): void; + set_color(color: Color | null): void; + set_layout_manager(manager: LayoutManager): void; + set_layout_manager(...args: never[]): never; +} +export module BoxLayout { + export interface ConstructorProperties extends LayoutManager.ConstructorProperties { + [key: string]: any; + easing_duration: number; + easing_mode: number; + homogeneous: boolean; + orientation: Orientation; + pack_start: boolean; + spacing: number; + use_animations: boolean; + vertical: boolean; + } +} +export class BoxLayout extends LayoutManager { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + easing_duration: number; + easing_mode: number; + homogeneous: boolean; + orientation: Orientation; + pack_start: boolean; + spacing: number; + use_animations: boolean; + vertical: boolean; + // Constructors + static ["new"](): BoxLayout; + // Members + get_alignment(actor: Actor): [BoxAlignment, BoxAlignment]; + get_easing_duration(): number; + get_easing_mode(): number; + get_expand(actor: Actor): boolean; + get_fill(actor: Actor): [boolean, boolean]; + get_homogeneous(): boolean; + get_orientation(): Orientation; + get_pack_start(): boolean; + get_spacing(): number; + get_use_animations(): boolean; + get_vertical(): boolean; + pack(actor: Actor, expand: boolean, x_fill: boolean, y_fill: boolean, x_align: BoxAlignment, y_align: BoxAlignment): void; + set_alignment(actor: Actor, x_align: BoxAlignment, y_align: BoxAlignment): void; + set_easing_duration(msecs: number): void; + set_easing_mode(mode: number): void; + set_expand(actor: Actor, expand: boolean): void; + set_fill(actor: Actor, x_fill: boolean, y_fill: boolean): void; + set_homogeneous(homogeneous: boolean): void; + set_orientation(orientation: Orientation): void; + set_pack_start(pack_start: boolean): void; + set_spacing(spacing: number): void; + set_use_animations(animate: boolean): void; + set_vertical(vertical: boolean): void; +} +export module BrightnessContrastEffect { + export interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { + [key: string]: any; + brightness: Color; + contrast: Color; + } +} +export class BrightnessContrastEffect extends OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + brightness: Color; + contrast: Color; + // Constructors + static ["new"](): BrightnessContrastEffect; + // Members + get_brightness(): [number | null, number | null, number | null]; + get_contrast(): [number | null, number | null, number | null]; + set_brightness(brightness: number): void; + set_brightness_full(red: number, green: number, blue: number): void; + set_contrast(contrast: number): void; + set_contrast_full(red: number, green: number, blue: number): void; +} +export module CairoTexture { + export interface ConstructorProperties extends Texture.ConstructorProperties { + [key: string]: any; + auto_resize: boolean; + surface_height: number; + surface_width: number; + } +} +export class CairoTexture extends Texture implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + auto_resize: boolean; + surface_height: number; + surface_width: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'create-surface', callback: (_source: this, width: number, height: number) => cairo.Surface): number; + connect_after(signal: 'create-surface', callback: (_source: this, width: number, height: number) => cairo.Surface): number; + emit(signal: 'create-surface', width: number, height: number): void; + connect(signal: 'draw', callback: (_source: this, cr: cairo.Context) => boolean): number; + connect_after(signal: 'draw', callback: (_source: this, cr: cairo.Context) => boolean): number; + emit(signal: 'draw', cr: cairo.Context): void; + // Constructors + static ["new"](width: number, height: number): CairoTexture; + static ["new"](...args: never[]): never; + // Members + clear(): void; + create(): cairo.Context; + create_region(x_offset: number, y_offset: number, width: number, height: number): cairo.Context; + get_auto_resize(): boolean; + get_surface_size(): [number, number]; + invalidate(): void; + invalidate_rectangle(rect: cairo.RectangleInt | null): void; + set_auto_resize(value: boolean): void; + set_surface_size(width: number, height: number): void; + vfunc_create_surface(width: number, height: number): cairo.Surface; + vfunc_draw(cr: cairo.Context): boolean; +} +export module Canvas { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + height: number; + scale_factor: number; + scale_factor_set: boolean; + width: number; + } +} +export class Canvas extends GObject.Object implements Content { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + height: number; + scale_factor: number; + scale_factor_set: boolean; + width: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'draw', callback: (_source: this, cr: cairo.Context, width: number, height: number) => boolean): number; + connect_after(signal: 'draw', callback: (_source: this, cr: cairo.Context, width: number, height: number) => boolean): number; + emit(signal: 'draw', cr: cairo.Context, width: number, height: number): void; + // Members + get_scale_factor(): number; + set_scale_factor(scale: number): void; + set_size(width: number, height: number): boolean; + vfunc_draw(cr: cairo.Context, width: number, height: number): boolean; + static new(): Content; + // Implemented Members + get_preferred_size(): [boolean, number, number]; + invalidate(): void; + vfunc_attached(actor: Actor): void; + vfunc_detached(actor: Actor): void; + vfunc_get_preferred_size(): [boolean, number, number]; + vfunc_invalidate(): void; + vfunc_paint_content(actor: Actor, node: PaintNode): void; +} +export module ChildMeta { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + actor: Actor; + container: Container; + } +} +export abstract class ChildMeta extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + actor: Actor; + container: Container; + // Members + get_actor(): Actor; + get_container(): Container; +} +export module ClickAction { + export interface ConstructorProperties extends Action.ConstructorProperties { + [key: string]: any; + held: boolean; + long_press_duration: number; + long_press_threshold: number; + pressed: boolean; + } +} +export class ClickAction extends Action { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + held: boolean; + long_press_duration: number; + long_press_threshold: number; + pressed: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'clicked', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'clicked', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'clicked', actor: Actor): void; + connect(signal: 'long-press', callback: (_source: this, actor: Actor, state: LongPressState) => boolean): number; + connect_after(signal: 'long-press', callback: (_source: this, actor: Actor, state: LongPressState) => boolean): number; + emit(signal: 'long-press', actor: Actor, state: LongPressState): void; + // Constructors + static ["new"](): ClickAction; + // Members + get_button(): number; + get_coords(): [number, number]; + get_state(): ModifierType; + release(): void; + vfunc_clicked(actor: Actor): void; + vfunc_long_press(actor: Actor, state: LongPressState): boolean; +} +export module ClipNode { + export interface ConstructorProperties extends PaintNode.ConstructorProperties { + [key: string]: any; + } +} +export class ClipNode extends PaintNode { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): ClipNode; +} +export module Clone { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + source: Actor; + } +} +export class Clone extends Actor implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + source: Actor; + // Constructors + static ["new"](source: Actor): Clone; + static ["new"](...args: never[]): never; + // Members + get_source(): Actor; + set_source(source: Actor | null): void; +} +export module ColorNode { + export interface ConstructorProperties extends PipelineNode.ConstructorProperties { + [key: string]: any; + } +} +export class ColorNode extends PipelineNode { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](color: Color | null): ColorNode; +} +export module ColorizeEffect { + export interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { + [key: string]: any; + tint: Color; + } +} +export class ColorizeEffect extends OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + tint: Color; + // Constructors + static ["new"](tint: Color): ColorizeEffect; + // Members + get_tint(): Color; + set_tint(tint: Color): void; +} +export module Constraint { + export interface ConstructorProperties extends ActorMeta.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Constraint extends ActorMeta { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + vfunc_update_allocation(actor: Actor, allocation: ActorBox): void; + vfunc_update_preferred_size(actor: Actor, direction: Orientation, for_size: number, minimum_size: number, natural_size: number): void; +} +export module DeformEffect { + export interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { + [key: string]: any; + x_tiles: number; + y_tiles: number; + } +} +export abstract class DeformEffect extends OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + x_tiles: number; + y_tiles: number; + // Members + get_back_material(): Cogl.Handle; + get_n_tiles(): [number, number]; + invalidate(): void; + set_back_material(material: Cogl.Handle | null): void; + set_n_tiles(x_tiles: number, y_tiles: number): void; + vfunc_deform_vertex(width: number, height: number, vertex: Cogl.TextureVertex): void; +} +export module DesaturateEffect { + export interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { + [key: string]: any; + factor: number; + } +} +export class DesaturateEffect extends OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + factor: number; + // Constructors + static ["new"](factor: number): DesaturateEffect; + // Members + get_factor(): number; + set_factor(factor: number): void; +} +export module DeviceManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + backend: Backend; + } +} +export abstract class DeviceManager extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + backend: Backend; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'device-added', callback: (_source: this, device: InputDevice) => void): number; + connect_after(signal: 'device-added', callback: (_source: this, device: InputDevice) => void): number; + emit(signal: 'device-added', device: InputDevice): void; + connect(signal: 'device-removed', callback: (_source: this, device: InputDevice) => void): number; + connect_after(signal: 'device-removed', callback: (_source: this, device: InputDevice) => void): number; + emit(signal: 'device-removed', device: InputDevice): void; + // Members + get_core_device(device_type: InputDeviceType): InputDevice; + get_device(device_id: number): InputDevice; + list_devices(): GLib.SList; + peek_devices(): GLib.SList; + vfunc_add_device(device: InputDevice): void; + vfunc_get_core_device(device_type: InputDeviceType): InputDevice; + vfunc_get_device(device_id: number): InputDevice; + vfunc_remove_device(device: InputDevice): void; + vfunc_select_stage_events(stage: Stage): void; + static get_default(): DeviceManager; +} +export module DragAction { + export interface ConstructorProperties extends Action.ConstructorProperties { + [key: string]: any; + drag_area: Rect; + drag_area_set: boolean; + drag_axis: DragAxis; + drag_handle: Actor; + x_drag_threshold: number; + y_drag_threshold: number; + } +} +export class DragAction extends Action { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + drag_area: Rect; + drag_area_set: boolean; + drag_axis: DragAxis; + drag_handle: Actor; + x_drag_threshold: number; + y_drag_threshold: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'drag-begin', callback: (_source: this, actor: Actor, event_x: number, event_y: number, modifiers: ModifierType) => void): number; + connect_after(signal: 'drag-begin', callback: (_source: this, actor: Actor, event_x: number, event_y: number, modifiers: ModifierType) => void): number; + emit(signal: 'drag-begin', actor: Actor, event_x: number, event_y: number, modifiers: ModifierType): void; + connect(signal: 'drag-end', callback: (_source: this, actor: Actor, event_x: number, event_y: number, modifiers: ModifierType) => void): number; + connect_after(signal: 'drag-end', callback: (_source: this, actor: Actor, event_x: number, event_y: number, modifiers: ModifierType) => void): number; + emit(signal: 'drag-end', actor: Actor, event_x: number, event_y: number, modifiers: ModifierType): void; + connect(signal: 'drag-motion', callback: (_source: this, actor: Actor, delta_x: number, delta_y: number) => void): number; + connect_after(signal: 'drag-motion', callback: (_source: this, actor: Actor, delta_x: number, delta_y: number) => void): number; + emit(signal: 'drag-motion', actor: Actor, delta_x: number, delta_y: number): void; + connect(signal: 'drag-progress', callback: (_source: this, actor: Actor, delta_x: number, delta_y: number) => boolean): number; + connect_after(signal: 'drag-progress', callback: (_source: this, actor: Actor, delta_x: number, delta_y: number) => boolean): number; + emit(signal: 'drag-progress', actor: Actor, delta_x: number, delta_y: number): void; + // Constructors + static ["new"](): DragAction; + // Members + get_drag_area(): [boolean, Rect]; + get_drag_axis(): DragAxis; + get_drag_handle(): Actor; + get_drag_threshold(): [number, number]; + get_motion_coords(): [number, number]; + get_press_coords(): [number, number]; + set_drag_area(drag_area: Rect | null): void; + set_drag_axis(axis: DragAxis): void; + set_drag_handle(handle: Actor | null): void; + set_drag_threshold(x_threshold: number, y_threshold: number): void; + vfunc_drag_begin(actor: Actor, event_x: number, event_y: number, modifiers: ModifierType): void; + vfunc_drag_end(actor: Actor, event_x: number, event_y: number, modifiers: ModifierType): void; + vfunc_drag_motion(actor: Actor, delta_x: number, delta_y: number): void; + vfunc_drag_progress(actor: Actor, delta_x: number, delta_y: number): boolean; +} +export module DropAction { + export interface ConstructorProperties extends Action.ConstructorProperties { + [key: string]: any; + } +} +export class DropAction extends Action { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'can-drop', callback: (_source: this, actor: Actor, event_x: number, event_y: number) => boolean): number; + connect_after(signal: 'can-drop', callback: (_source: this, actor: Actor, event_x: number, event_y: number) => boolean): number; + emit(signal: 'can-drop', actor: Actor, event_x: number, event_y: number): void; + connect(signal: 'drop', callback: (_source: this, actor: Actor, event_x: number, event_y: number) => void): number; + connect_after(signal: 'drop', callback: (_source: this, actor: Actor, event_x: number, event_y: number) => void): number; + emit(signal: 'drop', actor: Actor, event_x: number, event_y: number): void; + connect(signal: 'drop-cancel', callback: (_source: this, actor: Actor, event_x: number, event_y: number) => void): number; + connect_after(signal: 'drop-cancel', callback: (_source: this, actor: Actor, event_x: number, event_y: number) => void): number; + emit(signal: 'drop-cancel', actor: Actor, event_x: number, event_y: number): void; + connect(signal: 'over-in', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'over-in', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'over-in', actor: Actor): void; + connect(signal: 'over-out', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'over-out', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'over-out', actor: Actor): void; + // Constructors + static ["new"](): DropAction; + // Members + vfunc_can_drop(actor: Actor, event_x: number, event_y: number): boolean; + vfunc_drop(actor: Actor, event_x: number, event_y: number): void; + vfunc_over_in(actor: Actor): void; + vfunc_over_out(actor: Actor): void; +} +export module Effect { + export interface ConstructorProperties extends ActorMeta.ConstructorProperties { + [key: string]: any; + } +} +export abstract class Effect extends ActorMeta { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + queue_repaint(): void; + vfunc_get_paint_volume(volume: PaintVolume): boolean; + vfunc_paint(flags: EffectPaintFlags): void; + vfunc_pick(flags: EffectPaintFlags): void; + vfunc_post_paint(): void; + vfunc_pre_paint(): boolean; +} +export module FixedLayout { + export interface ConstructorProperties extends LayoutManager.ConstructorProperties { + [key: string]: any; + } +} +export class FixedLayout extends LayoutManager { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): FixedLayout; +} +export module FlowLayout { + export interface ConstructorProperties extends LayoutManager.ConstructorProperties { + [key: string]: any; + column_spacing: number; + homogeneous: boolean; + max_column_width: number; + max_row_height: number; + min_column_width: number; + min_row_height: number; + orientation: FlowOrientation; + row_spacing: number; + snap_to_grid: boolean; + } +} +export class FlowLayout extends LayoutManager { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + column_spacing: number; + homogeneous: boolean; + max_column_width: number; + max_row_height: number; + min_column_width: number; + min_row_height: number; + orientation: FlowOrientation; + row_spacing: number; + snap_to_grid: boolean; + // Constructors + static ["new"](orientation: FlowOrientation): FlowLayout; + // Members + get_column_spacing(): number; + get_column_width(): [number, number]; + get_homogeneous(): boolean; + get_orientation(): FlowOrientation; + get_row_height(): [number, number]; + get_row_spacing(): number; + get_snap_to_grid(): boolean; + set_column_spacing(spacing: number): void; + set_column_width(min_width: number, max_width: number): void; + set_homogeneous(homogeneous: boolean): void; + set_orientation(orientation: FlowOrientation): void; + set_row_height(min_height: number, max_height: number): void; + set_row_spacing(spacing: number): void; + set_snap_to_grid(snap_to_grid: boolean): void; +} +export module GestureAction { + export interface ConstructorProperties extends Action.ConstructorProperties { + [key: string]: any; + n_touch_points: number; + threshold_trigger_distance_x: number; + threshold_trigger_distance_y: number; + threshold_trigger_edge: GestureTriggerEdge; + } +} +export class GestureAction extends Action { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + n_touch_points: number; + threshold_trigger_distance_x: number; + threshold_trigger_distance_y: number; + threshold_trigger_edge: GestureTriggerEdge; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'gesture-begin', callback: (_source: this, actor: Actor) => boolean): number; + connect_after(signal: 'gesture-begin', callback: (_source: this, actor: Actor) => boolean): number; + emit(signal: 'gesture-begin', actor: Actor): void; + connect(signal: 'gesture-cancel', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'gesture-cancel', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'gesture-cancel', actor: Actor): void; + connect(signal: 'gesture-end', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'gesture-end', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'gesture-end', actor: Actor): void; + connect(signal: 'gesture-progress', callback: (_source: this, actor: Actor) => boolean): number; + connect_after(signal: 'gesture-progress', callback: (_source: this, actor: Actor) => boolean): number; + emit(signal: 'gesture-progress', actor: Actor): void; + // Constructors + static ["new"](): GestureAction; + // Members + cancel(): void; + get_device(point: number): InputDevice; + get_last_event(point: number): Event; + get_motion_coords(point: number): [number | null, number | null]; + get_motion_delta(point: number): [number, number | null, number | null]; + get_n_current_points(): number; + get_n_touch_points(): number; + get_press_coords(point: number): [number | null, number | null]; + get_release_coords(point: number): [number | null, number | null]; + get_sequence(point: number): EventSequence; + get_threshold_trigger_distance(): [number | null, number | null]; + get_threshold_trigger_edge(): GestureTriggerEdge; + get_threshold_trigger_egde(): GestureTriggerEdge; + get_velocity(point: number): [number, number | null, number | null]; + set_n_touch_points(nb_points: number): void; + set_threshold_trigger_distance(x: number, y: number): void; + set_threshold_trigger_edge(edge: GestureTriggerEdge): void; + 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; +} +export module GridLayout { + export interface ConstructorProperties extends LayoutManager.ConstructorProperties { + [key: string]: any; + column_homogeneous: boolean; + column_spacing: number; + orientation: Orientation; + row_homogeneous: boolean; + row_spacing: number; + } +} +export class GridLayout extends LayoutManager { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + column_homogeneous: boolean; + column_spacing: number; + orientation: Orientation; + row_homogeneous: boolean; + row_spacing: number; + // Constructors + static ["new"](): GridLayout; + // Members + attach(child: Actor, left: number, top: number, width: number, height: number): void; + attach_next_to(child: Actor, sibling: Actor | null, side: GridPosition, width: number, height: number): void; + get_child_at(left: number, top: number): Actor; + get_column_homogeneous(): boolean; + get_column_spacing(): number; + get_orientation(): Orientation; + get_row_homogeneous(): boolean; + get_row_spacing(): number; + insert_column(position: number): void; + insert_next_to(sibling: Actor, side: GridPosition): void; + insert_row(position: number): void; + set_column_homogeneous(homogeneous: boolean): void; + set_column_spacing(spacing: number): void; + set_orientation(orientation: Orientation): void; + set_row_homogeneous(homogeneous: boolean): void; + set_row_spacing(spacing: number): void; +} +export module Group { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + } +} +export class Group extends Actor implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): Group; + static ["new"](...args: never[]): never; + // Members + get_n_children(): number; + get_nth_child(index_: number): Actor; + remove_all(): void; +} +export module Image { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Image extends GObject.Object implements Content { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + set_area(data: (Uint8Array | string), pixel_format: Cogl.PixelFormat, rect: cairo.RectangleInt, row_stride: number): boolean; + set_bytes(data: (GLib.Bytes | Uint8Array), pixel_format: Cogl.PixelFormat, width: number, height: number, row_stride: number): boolean; + set_data(data: (Uint8Array | string), pixel_format: Cogl.PixelFormat, width: number, height: number, row_stride: number): boolean; + set_data(...args: never[]): never; + static new(): Content; + // Implemented Members + get_preferred_size(): [boolean, number, number]; + invalidate(): void; + vfunc_attached(actor: Actor): void; + vfunc_detached(actor: Actor): void; + vfunc_get_preferred_size(): [boolean, number, number]; + vfunc_invalidate(): void; + vfunc_paint_content(actor: Actor, node: PaintNode): void; +} +export module InputDevice { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + backend: Backend; + device_manager: DeviceManager; + device_mode: InputMode; + device_type: InputDeviceType; + enabled: boolean; + has_cursor: boolean; + id: number; + n_axes: number; + name: string; + product_id: string; + vendor_id: string; + } +} +export class InputDevice extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + backend: Backend; + device_manager: DeviceManager; + device_mode: InputMode; + device_type: InputDeviceType; + enabled: boolean; + has_cursor: boolean; + id: number; + n_axes: number; + name: string; + product_id: string; + vendor_id: string; + // Members + get_associated_device(): InputDevice; + get_axis(index_: number): InputAxis; + get_axis_value(axes: number[], axis: InputAxis): [boolean, number]; + get_coords(sequence: EventSequence | null): [boolean, Point]; + get_device_coords(): [number, number]; + get_device_id(): number; + get_device_mode(): InputMode; + get_device_name(): string; + get_device_type(): InputDeviceType; + get_enabled(): boolean; + get_grabbed_actor(): Actor; + get_has_cursor(): boolean; + get_key(index_: number): [boolean, number, ModifierType]; + get_modifier_state(): ModifierType; + get_n_axes(): number; + get_n_keys(): number; + get_pointer_actor(): Actor; + get_pointer_stage(): Stage; + get_product_id(): string; + get_slave_devices(): GLib.List; + get_vendor_id(): string; + grab(actor: Actor): void; + keycode_to_evdev(hardware_keycode: number, evdev_keycode: number): boolean; + sequence_get_grabbed_actor(sequence: EventSequence): Actor; + sequence_grab(sequence: EventSequence, actor: Actor): void; + sequence_ungrab(sequence: EventSequence): void; + set_enabled(enabled: boolean): void; + set_key(index_: number, keyval: number, modifiers: ModifierType): void; + ungrab(): void; + update_from_event(event: Event, update_stage: boolean): void; +} +export module Interval { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + "final": GObject.Value; + initial: GObject.Value; + value_type: GType; + } +} +export class Interval extends GObject.InitiallyUnowned implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + "final": GObject.Value; + initial: GObject.Value; + value_type: GType; + // Constructors + static new_with_values(gtype: GType, initial: (GObject.Value | string | boolean | number) | null, _final: (GObject.Value | string | boolean | number) | null): Interval; + // Members + clone(): Interval; + compute(factor: number): GObject.Value; + compute_value(factor: number): [boolean, GObject.Value]; + get_final_value(): GObject.Value; + get_initial_value(): GObject.Value; + get_value_type(): GType; + is_valid(): boolean; + peek_final_value(): GObject.Value; + peek_initial_value(): GObject.Value; + set_final(value: (GObject.Value | string | boolean | number)): void; + set_initial(value: (GObject.Value | string | boolean | number)): void; + validate(pspec: GObject.ParamSpec): boolean; + vfunc_compute_value(factor: number): [boolean, GObject.Value]; + vfunc_validate(pspec: GObject.ParamSpec): boolean; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module KeyframeTransition { + export interface ConstructorProperties extends PropertyTransition.ConstructorProperties { + [key: string]: any; + } +} +export class KeyframeTransition extends PropertyTransition implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](property_name: string): KeyframeTransition; + static ["new"](...args: never[]): never; + // Members + clear(): void; + get_key_frame(index_: number): [number | null, AnimationMode | null, GObject.Value]; + get_n_key_frames(): number; + set_key_frame(index_: number, key: number, mode: AnimationMode, value: (GObject.Value | string | boolean | number)): void; + set_key_frames(key_frames: number[]): void; + set_modes(modes: AnimationMode[]): void; + set_values(values: (GObject.Value | string | boolean | number)[]): void; +} +export module LayoutManager { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + } +} +export abstract class LayoutManager extends GObject.InitiallyUnowned { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'layout-changed', callback: (_source: this) => void): number; + connect_after(signal: 'layout-changed', callback: (_source: this) => void): number; + emit(signal: 'layout-changed'): void; + // Members + allocate(container: Container, allocation: ActorBox, flags: AllocationFlags): void; + begin_animation(duration: number, mode: number): Alpha; + child_get_property(container: Container, actor: Actor, property_name: string, value: (GObject.Value | string | boolean | number)): void; + child_set_property(container: Container, actor: Actor, property_name: string, value: (GObject.Value | string | boolean | number)): void; + end_animation(): void; + find_child_property(name: string): GObject.ParamSpec; + get_animation_progress(): number; + get_child_meta(container: Container, actor: Actor): LayoutMeta; + get_preferred_height(container: Container, for_width: number): [number | null, number | null]; + get_preferred_width(container: Container, for_height: number): [number | null, number | null]; + layout_changed(): void; + list_child_properties(): GObject.ParamSpec[]; + set_container(container: Container | null): void; + vfunc_allocate(container: Container, allocation: ActorBox, flags: AllocationFlags): void; + vfunc_begin_animation(duration: number, mode: number): Alpha; + vfunc_end_animation(): void; + vfunc_get_animation_progress(): number; + vfunc_get_child_meta_type(): GType; + vfunc_get_preferred_height(container: Container, for_width: number): [number | null, number | null]; + vfunc_get_preferred_width(container: Container, for_height: number): [number | null, number | null]; + vfunc_layout_changed(): void; + vfunc_set_container(container: Container | null): void; +} +export module LayoutMeta { + export interface ConstructorProperties extends ChildMeta.ConstructorProperties { + [key: string]: any; + manager: LayoutManager; + } +} +export abstract class LayoutMeta extends ChildMeta { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + manager: LayoutManager; + // Members + get_manager(): LayoutManager; +} +export module ListModel { + export interface ConstructorProperties extends Model.ConstructorProperties { + [key: string]: any; + } +} +export class ListModel extends Model implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static newv(types: GType[], names: string[]): ListModel; + static newv(...args: never[]): never; +} +export module Model { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + filter_set: boolean; + } +} +export abstract class Model extends GObject.Object implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + filter_set: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'filter-changed', callback: (_source: this) => void): number; + connect_after(signal: 'filter-changed', callback: (_source: this) => void): number; + emit(signal: 'filter-changed'): void; + connect(signal: 'row-added', callback: (_source: this, iter: ModelIter) => void): number; + connect_after(signal: 'row-added', callback: (_source: this, iter: ModelIter) => void): number; + emit(signal: 'row-added', iter: ModelIter): void; + connect(signal: 'row-changed', callback: (_source: this, iter: ModelIter) => void): number; + connect_after(signal: 'row-changed', callback: (_source: this, iter: ModelIter) => void): number; + emit(signal: 'row-changed', iter: ModelIter): void; + connect(signal: 'row-removed', callback: (_source: this, iter: ModelIter) => void): number; + connect_after(signal: 'row-removed', callback: (_source: this, iter: ModelIter) => void): number; + emit(signal: 'row-removed', iter: ModelIter): void; + connect(signal: 'sort-changed', callback: (_source: this) => void): number; + connect_after(signal: 'sort-changed', callback: (_source: this) => void): number; + emit(signal: 'sort-changed'): void; + // Members + appendv(columns: number[], values: (GObject.Value | string | boolean | number)[]): void; + filter_iter(iter: ModelIter): boolean; + filter_row(row: number): boolean; + foreach(func: ModelForeachFunc): void; + get_column_name(column: number): string; + get_column_type(column: number): GType; + get_filter_set(): boolean; + get_first_iter(): ModelIter; + get_iter_at_row(row: number): ModelIter; + get_last_iter(): ModelIter; + get_n_columns(): number; + get_n_rows(): number; + get_sorting_column(): number; + insert_value(row: number, column: number, value: (GObject.Value | string | boolean | number)): void; + insertv(row: number, columns: number[], values: (GObject.Value | string | boolean | number)[]): void; + prependv(columns: number[], values: (GObject.Value | string | boolean | number)[]): void; + remove(row: number): void; + resort(): void; + set_filter(func: ModelFilterFunc | null, notify: GLib.DestroyNotify): void; + set_names(names: string[]): void; + set_sort(column: number, func: ModelSortFunc | null, notify: GLib.DestroyNotify): void; + set_sorting_column(column: number): void; + set_types(types: GType[]): void; + vfunc_filter_changed(): void; + vfunc_get_column_name(column: number): string; + vfunc_get_column_type(column: number): GType; + vfunc_get_iter_at_row(row: number): ModelIter; + vfunc_get_n_columns(): number; + vfunc_get_n_rows(): number; + vfunc_remove_row(row: number): void; + vfunc_row_added(iter: ModelIter): void; + vfunc_row_changed(iter: ModelIter): void; + vfunc_row_removed(iter: ModelIter): void; + vfunc_sort_changed(): void; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module ModelIter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + model: Model; + row: number; + } +} +export abstract class ModelIter extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + model: Model; + row: number; + // Members + copy(): ModelIter; + get_model(): Model; + get_row(): number; + get_value(column: number): GObject.Value; + is_first(): boolean; + is_last(): boolean; + next(): ModelIter; + prev(): ModelIter; + set_value(column: number, value: (GObject.Value | string | boolean | number)): void; + vfunc_copy(): this; + vfunc_get_model(): Model; + vfunc_get_row(): number; + vfunc_get_value(column: number): GObject.Value; + vfunc_is_first(): boolean; + vfunc_is_last(): boolean; + vfunc_next(): this; + vfunc_prev(): this; + vfunc_set_value(column: number, value: (GObject.Value | string | boolean | number)): void; +} +export module OffscreenEffect { + export interface ConstructorProperties extends Effect.ConstructorProperties { + [key: string]: any; + } +} +export abstract class OffscreenEffect extends Effect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + create_texture(width: number, height: number): Cogl.Handle; + get_target(): any; + get_target_rect(): [boolean, Rect]; + get_target_size(): [boolean, number, number]; + get_texture(): Cogl.Handle; + paint_target(): void; + vfunc_create_texture(width: number, height: number): Cogl.Handle; + vfunc_paint_target(): void; +} +export module PageTurnEffect { + export interface ConstructorProperties extends DeformEffect.ConstructorProperties { + [key: string]: any; + angle: number; + period: number; + radius: number; + } +} +export class PageTurnEffect extends DeformEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + angle: number; + period: number; + radius: number; + // Constructors + static ["new"](period: number, angle: number, radius: number): PageTurnEffect; + // Members + get_angle(): number; + get_period(): number; + get_radius(): number; + set_angle(angle: number): void; + set_period(period: number): void; + set_radius(radius: number): void; +} +export module PaintNode { + export interface ConstructorProperties { + [key: string]: any; + } +} +export abstract class PaintNode { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + add_child(child: PaintNode): void; + add_rectangle(rect: ActorBox): void; + add_texture_rectangle(rect: ActorBox, x_1: number, y_1: number, x_2: number, y_2: number): void; + ref(): PaintNode; + set_name(name: string): void; + unref(): void; +} +export module PanAction { + export interface ConstructorProperties extends GestureAction.ConstructorProperties { + [key: string]: any; + acceleration_factor: number; + deceleration: number; + interpolate: boolean; + pan_axis: PanAxis; + } +} +export class PanAction extends GestureAction { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + acceleration_factor: number; + deceleration: number; + interpolate: boolean; + pan_axis: PanAxis; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'pan', callback: (_source: this, actor: Actor, is_interpolated: boolean) => boolean): number; + connect_after(signal: 'pan', callback: (_source: this, actor: Actor, is_interpolated: boolean) => boolean): number; + emit(signal: 'pan', actor: Actor, is_interpolated: boolean): void; + connect(signal: 'pan-stopped', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'pan-stopped', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'pan-stopped', actor: Actor): void; + // Constructors + static ["new"](): PanAction; + static ["new"](...args: never[]): never; + // Members + get_acceleration_factor(): number; + get_constrained_motion_delta(point: number): [number, number | null, number | null]; + get_deceleration(): number; + get_interpolate(): boolean; + get_interpolated_coords(): [number | null, number | null]; + get_interpolated_delta(): [number, number | null, number | null]; + get_motion_coords(point: number): [number | null, number | null]; + get_motion_delta(point: number): [number, number | null, number | null]; + get_pan_axis(): PanAxis; + set_acceleration_factor(factor: number): void; + set_deceleration(rate: number): void; + set_interpolate(should_interpolate: boolean): void; + set_pan_axis(axis: PanAxis): void; + vfunc_pan(actor: Actor, is_interpolated: boolean): boolean; + vfunc_pan_stopped(actor: Actor): void; +} +export module ParamSpecUnit { + export interface ConstructorProperties extends GObject.ParamSpec.ConstructorProperties { + [key: string]: any; + } +} +export class ParamSpecUnit extends GObject.ParamSpec { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module Path { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { + [key: string]: any; + description: string; + length: number; + } +} +export class Path extends GObject.InitiallyUnowned { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + description: string; + length: number; + // Constructors + static ["new"](): Path; + static new_with_description(desc: string): Path; + // Members + add_cairo_path(cpath: cairo.Path): void; + add_close(): void; + add_curve_to(x_1: number, y_1: number, x_2: number, y_2: number, x_3: number, y_3: number): void; + add_line_to(x: number, y: number): void; + add_move_to(x: number, y: number): void; + add_node(node: PathNode): void; + add_rel_curve_to(x_1: number, y_1: number, x_2: number, y_2: number, x_3: number, y_3: number): void; + add_rel_line_to(x: number, y: number): void; + add_rel_move_to(x: number, y: number): void; + add_string(str: string): boolean; + clear(): void; + foreach(callback: PathCallback): void; + get_description(): string; + get_length(): number; + get_n_nodes(): number; + get_node(index_: number): PathNode; + get_nodes(): GLib.SList; + get_position(progress: number): [number, Knot]; + insert_node(index_: number, node: PathNode): void; + remove_node(index_: number): void; + replace_node(index_: number, node: PathNode): void; + set_description(str: string): boolean; + to_cairo_path(cr: cairo.Context): void; +} +export module PathConstraint { + export interface ConstructorProperties extends Constraint.ConstructorProperties { + [key: string]: any; + offset: number; + path: Path; + } +} +export class PathConstraint extends Constraint { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + offset: number; + path: Path; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'node-reached', callback: (_source: this, actor: Actor, index: number) => void): number; + connect_after(signal: 'node-reached', callback: (_source: this, actor: Actor, index: number) => void): number; + emit(signal: 'node-reached', actor: Actor, index: number): void; + // Constructors + static ["new"](path: Path | null, offset: number): PathConstraint; + // Members + get_offset(): number; + get_path(): Path; + set_offset(offset: number): void; + set_path(path: Path | null): void; +} +export module PipelineNode { + export interface ConstructorProperties extends PaintNode.ConstructorProperties { + [key: string]: any; + } +} +export class PipelineNode extends PaintNode { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module PropertyTransition { + export interface ConstructorProperties extends Transition.ConstructorProperties { + [key: string]: any; + property_name: string; + } +} +export class PropertyTransition extends Transition implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + property_name: string; + // Constructors + static ["new"](property_name: string | null): PropertyTransition; + static ["new"](...args: never[]): never; + // Members + get_property_name(): string; + set_property_name(property_name: string | null): void; +} +export module Rectangle { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + border_color: Color; + border_width: number; + color: Color; + has_border: boolean; + } +} +export class Rectangle extends Actor implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + border_color: Color; + border_width: number; + color: Color; + has_border: boolean; + // Constructors + static ["new"](): Rectangle; + static ["new"](...args: never[]): never; + static new_with_color(color: Color): Rectangle; + // Members + get_border_color(): Color; + get_border_width(): number; + get_color(): Color; + set_border_color(color: Color): void; + set_border_width(width: number): void; + set_color(color: Color): void; +} +export module RotateAction { + export interface ConstructorProperties extends GestureAction.ConstructorProperties { + [key: string]: any; + } +} +export class RotateAction extends GestureAction { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'rotate', callback: (_source: this, actor: Actor, angle: number) => boolean): number; + connect_after(signal: 'rotate', callback: (_source: this, actor: Actor, angle: number) => boolean): number; + emit(signal: 'rotate', actor: Actor, angle: number): void; + // Constructors + static ["new"](): RotateAction; + static ["new"](...args: never[]): never; + // Members + vfunc_rotate(actor: Actor, angle: number): boolean; +} +export module Score { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + loop: boolean; + } +} +export class Score extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + loop: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'completed', callback: (_source: this) => void): number; + connect_after(signal: 'completed', callback: (_source: this) => void): number; + emit(signal: 'completed'): void; + connect(signal: 'paused', callback: (_source: this) => void): number; + connect_after(signal: 'paused', callback: (_source: this) => void): number; + emit(signal: 'paused'): void; + connect(signal: 'started', callback: (_source: this) => void): number; + connect_after(signal: 'started', callback: (_source: this) => void): number; + emit(signal: 'started'): void; + connect(signal: 'timeline-completed', callback: (_source: this, timeline: Timeline) => void): number; + connect_after(signal: 'timeline-completed', callback: (_source: this, timeline: Timeline) => void): number; + emit(signal: 'timeline-completed', timeline: Timeline): void; + connect(signal: 'timeline-started', callback: (_source: this, timeline: Timeline) => void): number; + connect_after(signal: 'timeline-started', callback: (_source: this, timeline: Timeline) => void): number; + emit(signal: 'timeline-started', timeline: Timeline): void; + // Constructors + static ["new"](): Score; + // Members + append(parent: Timeline | null, timeline: Timeline): number; + append_at_marker(parent: Timeline, marker_name: string, timeline: Timeline): number; + get_loop(): boolean; + get_timeline(id_: number): Timeline; + is_playing(): boolean; + list_timelines(): GLib.SList; + pause(): void; + remove(id_: number): void; + remove_all(): void; + rewind(): void; + set_loop(loop: boolean): void; + start(): void; + stop(): void; + vfunc_completed(): void; + vfunc_paused(): void; + vfunc_started(): void; + vfunc_timeline_completed(timeline: Timeline): void; + vfunc_timeline_started(timeline: Timeline): void; +} +export module Script { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + filename: string; + filename_set: boolean; + translation_domain: string; + } +} +export class Script extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + filename: string; + filename_set: boolean; + translation_domain: string; + // Constructors + static ["new"](): Script; + // Members + add_search_paths(paths: string[]): void; + add_states(name: string | null, state: State): void; + connect_signals(user_data: any | null): void; + connect_signals_full(func: ScriptConnectFunc): void; + ensure_objects(): void; + get_object(name: string): T; + get_states(name: string | null): State; + get_translation_domain(): string; + get_type_from_name(type_name: string): GType; + list_objects(): GLib.List; + load_from_data(data: string, length: number): number; + load_from_file(filename: string): number; + load_from_resource(resource_path: string): number; + lookup_filename(filename: string): string; + set_translation_domain(domain: string | null): void; + unmerge_objects(merge_id: number): void; + vfunc_get_type_from_name(type_name: string): GType; +} +export module ScrollActor { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + scroll_mode: ScrollMode; + } +} +export class ScrollActor extends Actor implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + scroll_mode: ScrollMode; + // Constructors + static ["new"](): ScrollActor; + static ["new"](...args: never[]): never; + // Members + get_scroll_mode(): ScrollMode; + scroll_to_point(point: Point): void; + scroll_to_rect(rect: Rect): void; + set_scroll_mode(mode: ScrollMode): void; +} +export module Settings { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + backend: Backend; + dnd_drag_threshold: number; + double_click_distance: number; + double_click_time: number; + font_antialias: number; + font_dpi: number; + font_hint_style: string; + font_hinting: number; + font_name: string; + font_subpixel_order: string; + fontconfig_timestamp: number; + long_press_duration: number; + password_hint_time: number; + unscaled_font_dpi: number; + window_scaling_factor: number; + } +} +export class Settings extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + backend: Backend; + dnd_drag_threshold: number; + double_click_distance: number; + double_click_time: number; + font_antialias: number; + font_dpi: number; + font_hint_style: string; + font_hinting: number; + font_name: string; + font_subpixel_order: string; + fontconfig_timestamp: number; + long_press_duration: number; + password_hint_time: number; + unscaled_font_dpi: number; + window_scaling_factor: number; + // Members + static get_default(): Settings; +} +export module Shader { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + compiled: boolean; + enabled: boolean; + fragment_source: string; + vertex_source: string; + } +} +export class Shader extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + compiled: boolean; + enabled: boolean; + fragment_source: string; + vertex_source: string; + // Constructors + static ["new"](): Shader; + // Members + compile(): boolean; + get_cogl_fragment_shader(): Cogl.Handle; + get_cogl_program(): Cogl.Handle; + get_cogl_vertex_shader(): Cogl.Handle; + get_fragment_source(): string; + get_is_enabled(): boolean; + get_vertex_source(): string; + is_compiled(): boolean; + release(): void; + set_fragment_source(data: string, length: number): void; + set_is_enabled(enabled: boolean): void; + set_uniform(name: string, value: (GObject.Value | string | boolean | number)): void; + set_vertex_source(data: string, length: number): void; +} +export module ShaderEffect { + export interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { + [key: string]: any; + shader_type: ShaderType; + } +} +export class ShaderEffect extends OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + shader_type: ShaderType; + // Constructors + static ["new"](shader_type: ShaderType): ShaderEffect; + // Members + get_program(): Cogl.Handle; + get_shader(): Cogl.Handle; + set_shader_source(source: string): boolean; + set_uniform_value(name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_get_static_shader_source(): string; +} +export module ShaderFloat { + export interface ConstructorProperties { + [key: string]: any; + } +} +export class ShaderFloat { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module ShaderInt { + export interface ConstructorProperties { + [key: string]: any; + } +} +export class ShaderInt { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module ShaderMatrix { + export interface ConstructorProperties { + [key: string]: any; + } +} +export class ShaderMatrix { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module SnapConstraint { + export interface ConstructorProperties extends Constraint.ConstructorProperties { + [key: string]: any; + from_edge: SnapEdge; + offset: number; + source: Actor; + to_edge: SnapEdge; + } +} +export class SnapConstraint extends Constraint { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + from_edge: SnapEdge; + offset: number; + source: Actor; + to_edge: SnapEdge; + // Constructors + static ["new"](source: Actor | null, from_edge: SnapEdge, to_edge: SnapEdge, offset: number): SnapConstraint; + // Members + get_edges(): [SnapEdge, SnapEdge]; + get_offset(): number; + get_source(): Actor; + set_edges(from_edge: SnapEdge, to_edge: SnapEdge): void; + set_offset(offset: number): void; + set_source(source: Actor | null): void; +} +export module Stage { + export interface ConstructorProperties extends Group.ConstructorProperties { + [key: string]: any; + accept_focus: boolean; + color: Color; + cursor_visible: boolean; + fog: Fog; + fullscreen_set: boolean; + key_focus: Actor; + no_clear_hint: boolean; + offscreen: boolean; + perspective: Perspective; + title: string; + use_alpha: boolean; + use_fog: boolean; + user_resizable: boolean; + } +} +export class Stage extends Group implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + accept_focus: boolean; + color: Color; + cursor_visible: boolean; + fog: Fog; + fullscreen_set: boolean; + key_focus: Actor; + no_clear_hint: boolean; + offscreen: boolean; + perspective: Perspective; + title: string; + use_alpha: boolean; + use_fog: boolean; + user_resizable: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'after-paint', callback: (_source: this) => void): number; + connect_after(signal: 'after-paint', callback: (_source: this) => void): number; + emit(signal: 'after-paint'): void; + connect(signal: 'deactivate', callback: (_source: this) => void): number; + connect_after(signal: 'deactivate', callback: (_source: this) => void): number; + emit(signal: 'deactivate'): void; + connect(signal: 'delete-event', callback: (_source: this, event: Event) => boolean): number; + connect_after(signal: 'delete-event', callback: (_source: this, event: Event) => boolean): number; + emit(signal: 'delete-event', event: Event): void; + connect(signal: 'fullscreen', callback: (_source: this) => void): number; + connect_after(signal: 'fullscreen', callback: (_source: this) => void): number; + emit(signal: 'fullscreen'): void; + connect(signal: 'unfullscreen', callback: (_source: this) => void): number; + connect_after(signal: 'unfullscreen', callback: (_source: this) => void): number; + emit(signal: 'unfullscreen'): void; + // Constructors + static ["new"](): Stage; + static ["new"](...args: never[]): never; + // Members + ensure_current(): void; + ensure_redraw(): void; + ensure_viewport(): void; + event(event: Event): boolean; + event(...args: never[]): never; + get_accept_focus(): boolean; + get_actor_at_pos(pick_mode: PickMode, x: number, y: number): Actor; + get_color(): Color; + get_fog(): Fog; + get_fullscreen(): boolean; + get_key_focus(): Actor; + get_minimum_size(): [number, number]; + get_motion_events_enabled(): boolean; + get_no_clear_hint(): boolean; + get_perspective(): Perspective | null; + get_redraw_clip_bounds(): cairo.RectangleInt; + get_throttle_motion_events(): boolean; + get_title(): string; + get_use_alpha(): boolean; + get_use_fog(): boolean; + get_user_resizable(): boolean; + hide_cursor(): void; + is_default(): boolean; + queue_redraw(): void; + read_pixels(x: number, y: number, width: number, height: number): Uint8Array; + set_accept_focus(accept_focus: boolean): void; + set_color(color: Color): void; + set_fog(fog: Fog): void; + set_fullscreen(fullscreen: boolean): void; + set_key_focus(actor: Actor | null): void; + set_minimum_size(width: number, height: number): void; + set_motion_events_enabled(enabled: boolean): void; + set_no_clear_hint(no_clear: boolean): void; + set_perspective(perspective: Perspective): void; + set_throttle_motion_events(throttle: boolean): void; + set_title(title: string): void; + set_use_alpha(use_alpha: boolean): void; + set_use_fog(fog: boolean): void; + set_user_resizable(resizable: boolean): void; + show_cursor(): void; + vfunc_activate(): void; + vfunc_deactivate(): void; + vfunc_delete_event(event: Event): boolean; + vfunc_fullscreen(): void; + vfunc_unfullscreen(): void; + static get_default(): Stage; +} +export module StageManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + default_stage: Stage; + } +} +export class StageManager extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + default_stage: Stage; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'stage-added', callback: (_source: this, stage: Stage) => void): number; + connect_after(signal: 'stage-added', callback: (_source: this, stage: Stage) => void): number; + emit(signal: 'stage-added', stage: Stage): void; + connect(signal: 'stage-removed', callback: (_source: this, stage: Stage) => void): number; + connect_after(signal: 'stage-removed', callback: (_source: this, stage: Stage) => void): number; + emit(signal: 'stage-removed', stage: Stage): void; + // Members + get_default_stage(): Stage; + list_stages(): GLib.SList; + peek_stages(): GLib.SList; + set_default_stage(stage: Stage): void; + vfunc_stage_added(stage: Stage): void; + vfunc_stage_removed(stage: Stage): void; + static get_default(): StageManager; +} +export module State { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + duration: number; + state: string; + } +} +export class State extends GObject.Object implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + duration: number; + state: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'completed', callback: (_source: this) => void): number; + connect_after(signal: 'completed', callback: (_source: this) => void): number; + emit(signal: 'completed'): void; + // Constructors + static ["new"](): State; + // Members + get_animator(source_state_name: string, target_state_name: string): Animator; + get_duration(source_state_name: string | null, target_state_name: string | null): number; + get_keys(source_state_name: string | null, target_state_name: string | null, object: GObject.Object | null, property_name: string | null): GLib.List; + get_state(): string; + get_states(): GLib.List; + get_timeline(): Timeline; + remove_key(source_state_name: string | null, target_state_name: string | null, object: GObject.Object | null, property_name: string | null): void; + set_animator(source_state_name: string, target_state_name: string, animator: Animator | null): void; + set_duration(source_state_name: string | null, target_state_name: string | null, duration: number): void; + set_key(source_state_name: string | null, target_state_name: string, object: GObject.Object, property_name: string, mode: number, value: (GObject.Value | string | boolean | number), pre_delay: number, post_delay: number): State; + set_state(target_state_name: string): Timeline; + warp_to_state(target_state_name: string): Timeline; + vfunc_completed(): void; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module SwipeAction { + export interface ConstructorProperties extends GestureAction.ConstructorProperties { + [key: string]: any; + } +} +export class SwipeAction extends GestureAction { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'swept', callback: (_source: this, actor: Actor, direction: SwipeDirection) => void): number; + connect_after(signal: 'swept', callback: (_source: this, actor: Actor, direction: SwipeDirection) => void): number; + emit(signal: 'swept', actor: Actor, direction: SwipeDirection): void; + connect(signal: 'swipe', callback: (_source: this, actor: Actor, direction: SwipeDirection) => boolean): number; + connect_after(signal: 'swipe', callback: (_source: this, actor: Actor, direction: SwipeDirection) => boolean): number; + emit(signal: 'swipe', actor: Actor, direction: SwipeDirection): void; + // Constructors + static ["new"](): SwipeAction; + static ["new"](...args: never[]): never; + // Members + vfunc_swept(actor: Actor, direction: SwipeDirection): void; + vfunc_swipe(actor: Actor, direction: SwipeDirection): boolean; +} +export module TableLayout { + export interface ConstructorProperties extends LayoutManager.ConstructorProperties { + [key: string]: any; + column_spacing: number; + easing_duration: number; + easing_mode: number; + row_spacing: number; + use_animations: boolean; + } +} +export class TableLayout extends LayoutManager { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + column_spacing: number; + easing_duration: number; + easing_mode: number; + row_spacing: number; + use_animations: boolean; + // Constructors + static ["new"](): TableLayout; + // Members + get_alignment(actor: Actor): [TableAlignment, TableAlignment]; + get_column_count(): number; + get_column_spacing(): number; + get_easing_duration(): number; + get_easing_mode(): number; + get_expand(actor: Actor): [boolean, boolean]; + get_fill(actor: Actor): [boolean, boolean]; + get_row_count(): number; + get_row_spacing(): number; + get_span(actor: Actor): [number, number]; + get_use_animations(): boolean; + pack(actor: Actor, column: number, row: number): void; + set_alignment(actor: Actor, x_align: TableAlignment, y_align: TableAlignment): void; + set_column_spacing(spacing: number): void; + set_easing_duration(msecs: number): void; + set_easing_mode(mode: number): void; + set_expand(actor: Actor, x_expand: boolean, y_expand: boolean): void; + set_fill(actor: Actor, x_fill: boolean, y_fill: boolean): void; + set_row_spacing(spacing: number): void; + set_span(actor: Actor, column_span: number, row_span: number): void; + set_use_animations(animate: boolean): void; +} +export module TapAction { + export interface ConstructorProperties extends GestureAction.ConstructorProperties { + [key: string]: any; + } +} +export class TapAction extends GestureAction { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'tap', callback: (_source: this, actor: Actor) => void): number; + connect_after(signal: 'tap', callback: (_source: this, actor: Actor) => void): number; + emit(signal: 'tap', actor: Actor): void; + // Constructors + static ["new"](): TapAction; + static ["new"](...args: never[]): never; + // Members + vfunc_tap(actor: Actor): boolean; +} +export module Text { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + activatable: boolean; + attributes: Pango.AttrList; + buffer: TextBuffer; + color: Color; + cursor_color: Color; + cursor_color_set: boolean; + cursor_position: number; + cursor_size: number; + cursor_visible: boolean; + editable: boolean; + ellipsize: Pango.EllipsizeMode; + font_description: Pango.FontDescription; + font_name: string; + justify: boolean; + line_alignment: Pango.Alignment; + line_wrap: boolean; + line_wrap_mode: Pango.WrapMode; + max_length: number; + password_char: number; + position: number | any; + selectable: boolean; + selected_text_color: Color; + selected_text_color_set: boolean; + selection_bound: number; + selection_color: Color; + selection_color_set: boolean; + single_line_mode: boolean; + text: string; + use_markup: boolean; + } +} +export class Text extends Actor implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + activatable: boolean; + attributes: Pango.AttrList; + buffer: TextBuffer; + color: Color; + cursor_color: Color; + cursor_color_set: boolean; + cursor_position: number; + cursor_size: number; + cursor_visible: boolean; + editable: boolean; + ellipsize: Pango.EllipsizeMode; + font_description: Pango.FontDescription; + font_name: string; + justify: boolean; + line_alignment: Pango.Alignment; + line_wrap: boolean; + line_wrap_mode: Pango.WrapMode; + max_length: number; + password_char: number; + position: number | any; + selectable: boolean; + selected_text_color: Color; + selected_text_color_set: boolean; + selection_bound: number; + selection_color: Color; + selection_color_set: boolean; + single_line_mode: boolean; + text: string; + use_markup: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'activate', callback: (_source: this) => void): number; + connect_after(signal: 'activate', callback: (_source: this) => void): number; + emit(signal: 'activate'): void; + connect(signal: 'cursor-changed', callback: (_source: this) => void): number; + connect_after(signal: 'cursor-changed', callback: (_source: this) => void): number; + emit(signal: 'cursor-changed'): void; + connect(signal: 'cursor-event', callback: (_source: this, geometry: Geometry) => void): number; + connect_after(signal: 'cursor-event', callback: (_source: this, geometry: Geometry) => void): number; + emit(signal: 'cursor-event', geometry: Geometry): void; + connect(signal: 'delete-text', callback: (_source: this, start_pos: number, end_pos: number) => void): number; + connect_after(signal: 'delete-text', callback: (_source: this, start_pos: number, end_pos: number) => void): number; + emit(signal: 'delete-text', start_pos: number, end_pos: number): void; + connect(signal: 'insert-text', callback: (_source: this, new_text: string, new_text_length: number, position: any | null) => void): number; + connect_after(signal: 'insert-text', callback: (_source: this, new_text: string, new_text_length: number, position: any | null) => void): number; + emit(signal: 'insert-text', new_text: string, new_text_length: number, position: any | null): void; + connect(signal: 'text-changed', callback: (_source: this) => void): number; + connect_after(signal: 'text-changed', callback: (_source: this) => void): number; + emit(signal: 'text-changed'): void; + // Constructors + static ["new"](): Text; + static ["new"](...args: never[]): never; + static new_full(font_name: string, text: string, color: Color): Text; + static new_with_buffer(buffer: TextBuffer): Text; + static new_with_text(font_name: string | null, text: string): Text; + // Members + activate(): boolean; + coords_to_position(x: number, y: number): number; + delete_chars(n_chars: number): void; + delete_selection(): boolean; + delete_text(start_pos: number, end_pos: number): void; + get_activatable(): boolean; + get_attributes(): Pango.AttrList; + get_buffer(): TextBuffer; + get_chars(start_pos: number, end_pos: number): string; + get_color(): Color; + get_cursor_color(): Color; + get_cursor_position(): number; + get_cursor_rect(): Rect; + get_cursor_size(): number; + get_cursor_visible(): boolean; + get_editable(): boolean; + get_ellipsize(): Pango.EllipsizeMode; + get_font_description(): Pango.FontDescription; + get_font_name(): string; + get_justify(): boolean; + get_layout(): Pango.Layout; + get_layout_offsets(): [number, number]; + get_line_alignment(): Pango.Alignment; + get_line_wrap(): boolean; + get_line_wrap_mode(): Pango.WrapMode; + get_max_length(): number; + get_password_char(): number; + get_selectable(): boolean; + get_selected_text_color(): Color; + get_selection(): string; + get_selection_bound(): number; + get_selection_color(): Color; + get_single_line_mode(): boolean; + get_text(): string; + get_use_markup(): boolean; + insert_text(text: string, position: number): void; + insert_unichar(wc: number): void; + position_to_coords(position: number): [boolean, number, number, number]; + set_activatable(activatable: boolean): void; + set_attributes(attrs: Pango.AttrList | null): void; + set_buffer(buffer: TextBuffer): void; + set_color(color: Color): void; + set_cursor_color(color: Color | null): void; + set_cursor_position(position: number): void; + set_cursor_size(size: number): void; + set_cursor_visible(cursor_visible: boolean): void; + set_editable(editable: boolean): void; + set_ellipsize(mode: Pango.EllipsizeMode): void; + set_font_description(font_desc: Pango.FontDescription): void; + set_font_name(font_name: string | null): void; + set_justify(justify: boolean): void; + set_line_alignment(alignment: Pango.Alignment): void; + set_line_wrap(line_wrap: boolean): void; + set_line_wrap_mode(wrap_mode: Pango.WrapMode): void; + set_markup(markup: string | null): void; + set_max_length(max: number): void; + set_password_char(wc: number): void; + set_preedit_string(preedit_str: string | null, preedit_attrs: Pango.AttrList | null, cursor_pos: number): void; + set_selectable(selectable: boolean): void; + set_selected_text_color(color: Color | null): void; + set_selection(start_pos: number, end_pos: number): void; + set_selection_bound(selection_bound: number): void; + set_selection_color(color: Color | null): void; + set_single_line_mode(single_line: boolean): void; + set_text(text: string | null): void; + set_use_markup(setting: boolean): void; + vfunc_activate(): void; + vfunc_cursor_changed(): void; + vfunc_cursor_event(geometry: Geometry): void; + vfunc_text_changed(): void; +} +export module TextBuffer { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + length: number; + max_length: number; + text: string; + } +} +export class TextBuffer extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + length: number; + max_length: number; + text: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'deleted-text', callback: (_source: this, position: number, n_chars: number) => void): number; + connect_after(signal: 'deleted-text', callback: (_source: this, position: number, n_chars: number) => void): number; + emit(signal: 'deleted-text', position: number, n_chars: number): void; + connect(signal: 'inserted-text', callback: (_source: this, position: number, chars: string, n_chars: number) => void): number; + connect_after(signal: 'inserted-text', callback: (_source: this, position: number, chars: string, n_chars: number) => void): number; + emit(signal: 'inserted-text', position: number, chars: string, n_chars: number): void; + // Constructors + static ["new"](): TextBuffer; + static new_with_text(text: string | null, text_len: number): TextBuffer; + // Members + delete_text(position: number, n_chars: number): number; + emit_deleted_text(position: number, n_chars: number): void; + emit_inserted_text(position: number, chars: string, n_chars: number): void; + get_bytes(): number; + get_length(): number; + get_max_length(): number; + get_text(): string; + insert_text(position: number, chars: string, n_chars: number): number; + set_max_length(max_length: number): void; + set_text(chars: string, n_chars: number): void; + vfunc_delete_text(position: number, n_chars: number): number; + vfunc_deleted_text(position: number, n_chars: number): void; + vfunc_get_length(): number; + vfunc_get_text(n_bytes: number): string; + vfunc_insert_text(position: number, chars: string, n_chars: number): number; + vfunc_inserted_text(position: number, chars: string, n_chars: number): void; +} +export module TextNode { + export interface ConstructorProperties extends PaintNode.ConstructorProperties { + [key: string]: any; + } +} +export class TextNode extends PaintNode { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](layout: Pango.Layout | null, color: Color | null): TextNode; +} +export module Texture { + export interface ConstructorProperties extends Actor.ConstructorProperties { + [key: string]: any; + disable_slicing: boolean; + filename: string; + filter_quality: TextureQuality; + keep_aspect_ratio: boolean; + load_async: boolean; + load_data_async: boolean; + pick_with_alpha: boolean; + pixel_format: Cogl.PixelFormat; + repeat_x: boolean; + repeat_y: boolean; + sync_size: boolean; + tile_waste: number; + } +} +export class Texture extends Actor implements Atk.ImplementorIface, Animatable, Container, Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + disable_slicing: boolean; + filename: string; + filter_quality: TextureQuality; + keep_aspect_ratio: boolean; + load_async: boolean; + load_data_async: boolean; + pick_with_alpha: boolean; + pixel_format: Cogl.PixelFormat; + repeat_x: boolean; + repeat_y: boolean; + sync_size: boolean; + tile_waste: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'load-finished', callback: (_source: this, error: GLib.Error) => void): number; + connect_after(signal: 'load-finished', callback: (_source: this, error: GLib.Error) => void): number; + emit(signal: 'load-finished', error: GLib.Error): void; + connect(signal: 'pixbuf-change', callback: (_source: this) => void): number; + connect_after(signal: 'pixbuf-change', callback: (_source: this) => void): number; + emit(signal: 'pixbuf-change'): void; + connect(signal: 'size-change', callback: (_source: this, width: number, height: number) => void): number; + connect_after(signal: 'size-change', callback: (_source: this, width: number, height: number) => void): number; + emit(signal: 'size-change', width: number, height: number): void; + // Constructors + static ["new"](): Texture; + static ["new"](...args: never[]): never; + static new_from_actor(actor: Actor): Texture; + static new_from_file(filename: string): Texture; + // Members + get_base_size(): [number, number]; + get_cogl_material(): Cogl.Handle; + get_cogl_texture(): Cogl.Handle; + get_filter_quality(): TextureQuality; + get_keep_aspect_ratio(): boolean; + get_load_async(): boolean; + get_load_data_async(): boolean; + get_max_tile_waste(): number; + get_pick_with_alpha(): boolean; + get_pixel_format(): Cogl.PixelFormat; + get_repeat(): [boolean, boolean]; + get_sync_size(): boolean; + set_area_from_rgb_data(data: (Uint8Array | string), has_alpha: boolean, x: number, y: number, width: number, height: number, rowstride: number, bpp: number, flags: TextureFlags): boolean; + set_cogl_material(cogl_material: Cogl.Handle): void; + set_cogl_texture(cogl_tex: Cogl.Handle): void; + set_filter_quality(filter_quality: TextureQuality): void; + set_from_file(filename: string): boolean; + set_from_rgb_data(data: (Uint8Array | string), has_alpha: boolean, width: number, height: number, rowstride: number, bpp: number, flags: TextureFlags): boolean; + set_from_yuv_data(data: (Uint8Array | string), width: number, height: number, flags: TextureFlags): boolean; + set_keep_aspect_ratio(keep_aspect: boolean): void; + set_load_async(load_async: boolean): void; + set_load_data_async(load_async: boolean): void; + set_pick_with_alpha(pick_with_alpha: boolean): void; + set_repeat(repeat_x: boolean, repeat_y: boolean): void; + set_sync_size(sync_size: boolean): void; + vfunc_load_finished(error: GLib.Error): void; + vfunc_pixbuf_change(): void; + vfunc_size_change(width: number, height: number): void; +} +export module TextureNode { + export interface ConstructorProperties extends PipelineNode.ConstructorProperties { + [key: string]: any; + } +} +export class TextureNode extends PipelineNode { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](texture: Cogl.Texture, color: Color | null, min_filter: ScalingFilter, mag_filter: ScalingFilter): TextureNode; +} +export module Timeline { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + auto_reverse: boolean; + delay: number; + direction: TimelineDirection; + duration: number; + loop: boolean; + progress_mode: AnimationMode; + repeat_count: number; + } +} +export class Timeline extends GObject.Object implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + auto_reverse: boolean; + delay: number; + direction: TimelineDirection; + duration: number; + loop: boolean; + progress_mode: AnimationMode; + repeat_count: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'completed', callback: (_source: this) => void): number; + connect_after(signal: 'completed', callback: (_source: this) => void): number; + emit(signal: 'completed'): void; + connect(signal: 'marker-reached', callback: (_source: this, marker_name: string, msecs: number) => void): number; + connect_after(signal: 'marker-reached', callback: (_source: this, marker_name: string, msecs: number) => void): number; + emit(signal: 'marker-reached', marker_name: string, msecs: number): void; + connect(signal: 'new-frame', callback: (_source: this, msecs: number) => void): number; + connect_after(signal: 'new-frame', callback: (_source: this, msecs: number) => void): number; + emit(signal: 'new-frame', msecs: number): void; + connect(signal: 'paused', callback: (_source: this) => void): number; + connect_after(signal: 'paused', callback: (_source: this) => void): number; + emit(signal: 'paused'): void; + connect(signal: 'started', callback: (_source: this) => void): number; + connect_after(signal: 'started', callback: (_source: this) => void): number; + emit(signal: 'started'): void; + connect(signal: 'stopped', callback: (_source: this, is_finished: boolean) => void): number; + connect_after(signal: 'stopped', callback: (_source: this, is_finished: boolean) => void): number; + emit(signal: 'stopped', is_finished: boolean): void; + // Constructors + static ["new"](msecs: number): Timeline; + // Members + add_marker(marker_name: string, progress: number): void; + add_marker_at_time(marker_name: string, msecs: number): void; + advance(msecs: number): void; + advance_to_marker(marker_name: string): void; + clone(): Timeline; + get_auto_reverse(): boolean; + get_cubic_bezier_progress(): [boolean, Point, Point]; + get_current_repeat(): number; + get_delay(): number; + get_delta(): number; + get_direction(): TimelineDirection; + get_duration(): number; + get_duration_hint(): number; + get_elapsed_time(): number; + get_loop(): boolean; + get_progress(): number; + get_progress_mode(): AnimationMode; + get_repeat_count(): number; + get_step_progress(): [boolean, number, StepMode]; + has_marker(marker_name: string): boolean; + is_playing(): boolean; + list_markers(msecs: number): string[]; + pause(): void; + remove_marker(marker_name: string): void; + rewind(): void; + set_auto_reverse(reverse: boolean): void; + set_cubic_bezier_progress(c_1: Point, c_2: Point): void; + set_delay(msecs: number): void; + set_direction(direction: TimelineDirection): void; + set_duration(msecs: number): void; + set_loop(loop: boolean): void; + set_progress_func(func: TimelineProgressFunc | null, notify: GLib.DestroyNotify): void; + set_progress_mode(mode: AnimationMode): void; + set_repeat_count(count: number): void; + set_step_progress(n_steps: number, step_mode: StepMode): void; + skip(msecs: number): void; + start(): void; + stop(): void; + vfunc_completed(): void; + vfunc_marker_reached(marker_name: string, msecs: number): void; + vfunc_new_frame(msecs: number): void; + vfunc_paused(): void; + vfunc_started(): void; + vfunc_stopped(is_finished: boolean): void; + // Implemented Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module Transition { + export interface ConstructorProperties extends Timeline.ConstructorProperties { + [key: string]: any; + animatable: Animatable; + interval: Interval; + remove_on_complete: boolean; + } +} +export abstract class Transition extends Timeline implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + animatable: Animatable; + interval: Interval; + remove_on_complete: boolean; + // Members + get_animatable(): Animatable; + get_interval(): Interval; + get_remove_on_complete(): boolean; + set_animatable(animatable: Animatable | null): void; + set_from(value: (GObject.Value | string | boolean | number)): void; + set_interval(interval: Interval | null): void; + set_remove_on_complete(remove_complete: boolean): void; + set_to(value: (GObject.Value | string | boolean | number)): void; + vfunc_attached(animatable: Animatable): void; + vfunc_compute_value(animatable: Animatable, interval: Interval, progress: number): void; + vfunc_detached(animatable: Animatable): void; +} +export module TransitionGroup { + export interface ConstructorProperties extends Transition.ConstructorProperties { + [key: string]: any; + } +} +export class TransitionGroup extends Transition implements Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): TransitionGroup; + static ["new"](...args: never[]): never; + // Members + add_transition(transition: Transition): void; + remove_all(): void; + remove_transition(transition: Transition): void; +} +export module ZoomAction { + export interface ConstructorProperties extends GestureAction.ConstructorProperties { + [key: string]: any; + zoom_axis: ZoomAxis; + } +} +export class ZoomAction extends GestureAction { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + zoom_axis: ZoomAxis; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'zoom', callback: (_source: this, actor: Actor, focal_point: Point, factor: number) => boolean): number; + connect_after(signal: 'zoom', callback: (_source: this, actor: Actor, focal_point: Point, factor: number) => boolean): number; + emit(signal: 'zoom', actor: Actor, focal_point: Point, factor: number): void; + // Constructors + static ["new"](): ZoomAction; + static ["new"](...args: never[]): never; + // Members + get_focal_point(): Point; + get_transformed_focal_point(): Point; + get_zoom_axis(): ZoomAxis; + set_zoom_axis(axis: ZoomAxis): void; + vfunc_zoom(actor: Actor, focal_point: Point, factor: number): boolean; +} +export class ActorBox { + constructor(x_1: number, y_1: number, x_2: number, y_2: number); + constructor(copy: ActorBox); + // Fields + x1: number; + y1: number; + x2: number; + y2: number; + // Constructors + static ["new"](x_1: number, y_1: number, x_2: number, y_2: number): ActorBox; + // Members + clamp_to_pixel(): void; + contains(x: number, y: number): boolean; + copy(): ActorBox; + equal(box_b: ActorBox): boolean; + free(): void; + from_vertices(verts: Vertex[]): void; + get_area(): number; + get_height(): number; + get_origin(): [number | null, number | null]; + get_size(): [number | null, number | null]; + get_width(): number; + get_x(): number; + get_y(): number; + init(x_1: number, y_1: number, x_2: number, y_2: number): ActorBox; + init_rect(x: number, y: number, width: number, height: number): void; + interpolate(_final: ActorBox, progress: number): ActorBox; + set_origin(x: number, y: number): void; + set_size(width: number, height: number): void; + union(b: ActorBox): ActorBox; + static alloc(): ActorBox; +} +export class ActorIter { + constructor(properties?: { + dummy1?: any; + dummy2?: any; + dummy3?: any; + dummy4?: number; + dummy5?: any; + }); + constructor(copy: ActorIter); + // Fields + dummy1: any; + dummy2: any; + dummy3: any; + dummy4: number; + dummy5: any; + // Members + destroy(): void; + init(root: Actor): void; + is_valid(): boolean; + next(): [boolean, Actor]; + prev(): [boolean, Actor]; + remove(): void; +} +export class ActorMetaPrivate { + constructor(copy: ActorMetaPrivate); +} +export class ActorPrivate { + constructor(copy: ActorPrivate); +} +export class AlphaPrivate { + constructor(copy: AlphaPrivate); +} +export class AnimationPrivate { + constructor(copy: AnimationPrivate); +} +export class AnimatorKey { + constructor(copy: AnimatorKey); + // Members + get_mode(): number; + get_object(): T; + get_progress(): number; + get_property_name(): string; + get_property_type(): GType; + get_value(value: (GObject.Value | string | boolean | number)): boolean; +} +export class AnimatorPrivate { + constructor(copy: AnimatorPrivate); +} +export class AnyEvent { + constructor(copy: AnyEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; +} +export class BehaviourDepthPrivate { + constructor(copy: BehaviourDepthPrivate); +} +export class BehaviourEllipsePrivate { + constructor(copy: BehaviourEllipsePrivate); +} +export class BehaviourOpacityPrivate { + constructor(copy: BehaviourOpacityPrivate); +} +export class BehaviourPathPrivate { + constructor(copy: BehaviourPathPrivate); +} +export class BehaviourPrivate { + constructor(copy: BehaviourPrivate); +} +export class BehaviourRotatePrivate { + constructor(copy: BehaviourRotatePrivate); +} +export class BehaviourScalePrivate { + constructor(copy: BehaviourScalePrivate); +} +export class BinLayoutPrivate { + constructor(copy: BinLayoutPrivate); +} +export class BoxLayoutPrivate { + constructor(copy: BoxLayoutPrivate); +} +export class BoxPrivate { + constructor(copy: BoxPrivate); +} +export class ButtonEvent { + constructor(copy: ButtonEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + x: number; + y: number; + modifier_state: ModifierType; + button: number; + click_count: number; + axes: number; + device: InputDevice; +} +export class CairoTexturePrivate { + constructor(copy: CairoTexturePrivate); +} +export class CanvasPrivate { + constructor(copy: CanvasPrivate); +} +export class ClickActionPrivate { + constructor(copy: ClickActionPrivate); +} +export class ClonePrivate { + constructor(copy: ClonePrivate); +} +export class Color { + constructor(red: number, green: number, blue: number, alpha: number); + constructor(copy: Color); + // Fields + red: number; + green: number; + blue: number; + alpha: number; + // Constructors + static alloc(): Color; + static ["new"](red: number, green: number, blue: number, alpha: number): Color; + // Members + add(b: Color): Color; + copy(): Color; + darken(): Color; + equal(v2: Color): boolean; + free(): void; + hash(): number; + init(red: number, green: number, blue: number, alpha: number): Color; + interpolate(_final: Color, progress: number): Color; + lighten(): Color; + shade(factor: number): Color; + subtract(b: Color): Color; + to_hls(): [number, number, number]; + to_pixel(): number; + to_string(): string; + static from_hls(hue: number, luminance: number, saturation: number): Color; + static from_pixel(pixel: number): Color; + static from_string(str: string): [boolean, Color]; + static get_static(color: StaticColor): Color; +} +export class CrossingEvent { + constructor(copy: CrossingEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + x: number; + y: number; + device: InputDevice; + related: Actor; +} +export class DeformEffectPrivate { + constructor(copy: DeformEffectPrivate); +} +export class DeviceManagerPrivate { + constructor(copy: DeviceManagerPrivate); +} +export class DragActionPrivate { + constructor(copy: DragActionPrivate); +} +export class DropActionPrivate { + constructor(copy: DropActionPrivate); +} +export class EventSequence { + constructor(copy: EventSequence); +} +export class FlowLayoutPrivate { + constructor(copy: FlowLayoutPrivate); +} +export class Fog { + constructor(properties?: { + z_near?: number; + z_far?: number; + }); + constructor(copy: Fog); + // Fields + z_near: number; + z_far: number; +} +export class Geometry { + constructor(properties?: { + x?: number; + y?: number; + width?: number; + height?: number; + }); + constructor(copy: Geometry); + // Fields + x: number; + y: number; + width: number; + height: number; + // Members + intersects(geometry1: Geometry): boolean; + union(geometry_b: Geometry): Geometry; +} +export class GestureActionPrivate { + constructor(copy: GestureActionPrivate); +} +export class GridLayoutPrivate { + constructor(copy: GridLayoutPrivate); +} +export class GroupPrivate { + constructor(copy: GroupPrivate); +} +export class ImagePrivate { + constructor(copy: ImagePrivate); +} +export class IntervalPrivate { + constructor(copy: IntervalPrivate); +} +export class KeyEvent { + constructor(copy: KeyEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + modifier_state: ModifierType; + keyval: number; + hardware_keycode: number; + unicode_value: number; + device: InputDevice; +} +export class KeyframeTransitionPrivate { + constructor(copy: KeyframeTransitionPrivate); +} +export class Knot { + constructor(properties?: { + x?: number; + y?: number; + }); + constructor(copy: Knot); + // Fields + x: number; + y: number; + // Members + copy(): Knot; + equal(knot_b: Knot): boolean; + free(): void; +} +export class ListModelPrivate { + constructor(copy: ListModelPrivate); +} +export class Margin { + constructor(); + constructor(copy: Margin); + // Fields + left: number; + right: number; + top: number; + bottom: number; + // Constructors + static ["new"](): Margin; + // Members + copy(): Margin; + free(): void; +} +export class Matrix { + constructor(copy: Matrix); + // Members + free(): void; + init_from_array(values: number[]): Matrix; + init_from_matrix(b: Matrix): Matrix; + init_identity(): Matrix; + static alloc(): Matrix; +} +export class ModelIterPrivate { + constructor(copy: ModelIterPrivate); +} +export class ModelPrivate { + constructor(copy: ModelPrivate); +} +export class MotionEvent { + constructor(copy: MotionEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + x: number; + y: number; + modifier_state: ModifierType; + axes: number; + device: InputDevice; +} +export class OffscreenEffectPrivate { + constructor(copy: OffscreenEffectPrivate); +} +export class PaintNodePrivate { + constructor(copy: PaintNodePrivate); +} +export class PaintVolume { + constructor(copy: PaintVolume); + // Members + copy(): PaintVolume; + free(): void; + get_depth(): number; + get_height(): number; + get_origin(): Vertex; + get_width(): number; + set_depth(depth: number): void; + set_from_allocation(actor: Actor): boolean; + set_height(height: number): void; + set_origin(origin: Vertex): void; + set_width(width: number): void; + union(another_pv: PaintVolume): void; + union_box(box: ActorBox): void; +} +export class PanActionPrivate { + constructor(copy: PanActionPrivate); +} +export class PathNode { + constructor(copy: PathNode); + // Fields + type: PathNodeType; + points: Knot[]; + // Members + copy(): PathNode; + equal(node_b: PathNode): boolean; + free(): void; +} +export class PathPrivate { + constructor(copy: PathPrivate); +} +export class Perspective { + constructor(properties?: { + fovy?: number; + aspect?: number; + z_near?: number; + z_far?: number; + }); + constructor(copy: Perspective); + // Fields + fovy: number; + aspect: number; + z_near: number; + z_far: number; +} +export class Point { + constructor(); + constructor(copy: Point); + // Fields + x: number; + y: number; + // Constructors + static alloc(): Point; + // Members + copy(): Point; + distance(b: Point): [number, number | null, number | null]; + equals(b: Point): boolean; + free(): void; + init(x: number, y: number): Point; + static zero(): Point; +} +export class PropertyTransitionPrivate { + constructor(copy: PropertyTransitionPrivate); +} +export class Rect { + constructor(); + constructor(copy: Rect); + // Fields + origin: Point; + size: Size; + // Constructors + static alloc(): Rect; + // Members + clamp_to_pixel(): void; + contains_point(point: Point): boolean; + contains_rect(b: Rect): boolean; + copy(): Rect; + equals(b: Rect): boolean; + free(): void; + get_center(): Point; + get_height(): number; + get_width(): number; + get_x(): number; + get_y(): number; + init(x: number, y: number, width: number, height: number): Rect; + inset(d_x: number, d_y: number): void; + intersection(b: Rect): [boolean, Rect | null]; + normalize(): Rect; + offset(d_x: number, d_y: number): void; + union(b: Rect): Rect; + static zero(): Rect; +} +export class RectanglePrivate { + constructor(copy: RectanglePrivate); +} +export class RotateActionPrivate { + constructor(copy: RotateActionPrivate); +} +export class ScorePrivate { + constructor(copy: ScorePrivate); +} +export class ScriptPrivate { + constructor(copy: ScriptPrivate); +} +export class ScrollActorPrivate { + constructor(copy: ScrollActorPrivate); +} +export class ScrollEvent { + constructor(copy: ScrollEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + x: number; + y: number; + direction: ScrollDirection; + modifier_state: ModifierType; + axes: number; + device: InputDevice; + scroll_source: ScrollSource; + finish_flags: ScrollFinishFlags; +} +export class ShaderEffectPrivate { + constructor(copy: ShaderEffectPrivate); +} +export class ShaderPrivate { + constructor(copy: ShaderPrivate); +} +export class Size { + constructor(); + constructor(copy: Size); + // Fields + width: number; + height: number; + // Constructors + static alloc(): Size; + // Members + copy(): Size; + equals(b: Size): boolean; + free(): void; + init(width: number, height: number): Size; +} +export class StagePrivate { + constructor(copy: StagePrivate); +} +export class StageStateEvent { + constructor(copy: StageStateEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + changed_mask: StageState; + new_state: StageState; +} +export class StateKey { + constructor(copy: StateKey); + // Members + get_mode(): number; + get_object(): T; + get_post_delay(): number; + get_pre_delay(): number; + get_property_name(): string; + get_property_type(): GType; + get_source_state_name(): string; + get_target_state_name(): string; + get_value(value: (GObject.Value | string | boolean | number)): boolean; +} +export class StatePrivate { + constructor(copy: StatePrivate); +} +export class SwipeActionPrivate { + constructor(copy: SwipeActionPrivate); +} +export class TableLayoutPrivate { + constructor(copy: TableLayoutPrivate); +} +export class TapActionPrivate { + constructor(copy: TapActionPrivate); +} +export class TextBufferPrivate { + constructor(copy: TextBufferPrivate); +} +export class TextPrivate { + constructor(copy: TextPrivate); +} +export class TexturePrivate { + constructor(copy: TexturePrivate); +} +export class TimelinePrivate { + constructor(copy: TimelinePrivate); +} +export class TouchEvent { + constructor(copy: TouchEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + x: number; + y: number; + sequence: EventSequence; + modifier_state: ModifierType; + axes: number; + device: InputDevice; +} +export class TouchpadPinchEvent { + constructor(copy: TouchpadPinchEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + phase: TouchpadGesturePhase; + x: number; + y: number; + dx: number; + dy: number; + angle_delta: number; + scale: number; +} +export class TouchpadSwipeEvent { + constructor(copy: TouchpadSwipeEvent); + // Fields + type: EventType; + time: number; + flags: EventFlags; + stage: Stage; + source: Actor; + phase: TouchpadGesturePhase; + n_fingers: number; + x: number; + y: number; + dx: number; + dy: number; +} +export class TransitionGroupPrivate { + constructor(copy: TransitionGroupPrivate); +} +export class TransitionPrivate { + constructor(copy: TransitionPrivate); +} +export class Units { + constructor(copy: Units); + // Fields + unit_type: UnitType; + value: number; + pixels: number; + pixels_set: number; + serial: number; + // Members + copy(): Units; + free(): void; + get_unit_type(): UnitType; + get_unit_value(): number; + to_pixels(): number; + to_string(): string; + static from_cm(cm: number): Units; + static from_em(em: number): Units; + static from_em_for_font(font_name: string | null, em: number): Units; + static from_mm(mm: number): Units; + static from_pixels(px: number): Units; + static from_pt(pt: number): Units; + static from_string(str: string): [boolean, Units]; +} +export class Vertex { + constructor(x: number, y: number, z: number); + constructor(copy: Vertex); + // Fields + x: number; + y: number; + z: number; + // Constructors + static alloc(): Vertex; + static ["new"](x: number, y: number, z: number): Vertex; + // Members + copy(): Vertex; + equal(vertex_b: Vertex): boolean; + free(): void; + init(x: number, y: number, z: number): Vertex; +} +export class ZoomActionPrivate { + constructor(copy: ZoomActionPrivate); +} +export class Event { + constructor(type: EventType); + constructor(copy: Event); + // Fields + any: AnyEvent; + button: ButtonEvent; + key: KeyEvent; + motion: MotionEvent; + scroll: ScrollEvent; + stage_state: StageStateEvent; + crossing: CrossingEvent; + touch: TouchEvent; + touchpad_pinch: TouchpadPinchEvent; + touchpad_swipe: TouchpadSwipeEvent; + // Constructors + static ["new"](type: EventType): Event; + // Members + copy(): Event; + free(): void; + get_angle(target: Event): number; + get_axes(): [number, number]; + get_button(): number; + get_click_count(): number; + get_coords(): [number, number]; + get_device(): InputDevice; + get_device_id(): number; + get_device_type(): InputDeviceType; + get_distance(target: Event): number; + get_event_sequence(): EventSequence; + get_flags(): EventFlags; + get_gesture_motion_delta(): [number | null, number | null]; + get_gesture_phase(): TouchpadGesturePhase; + get_gesture_pinch_angle_delta(): number; + get_gesture_pinch_scale(): number; + get_gesture_swipe_finger_count(): number; + get_key_code(): number; + get_key_symbol(): number; + get_key_unicode(): number; + get_position(position: Point): void; + get_related(): Actor; + get_scroll_delta(): [number, number]; + get_scroll_direction(): ScrollDirection; + get_scroll_finish_flags(): ScrollFinishFlags; + get_scroll_source(): ScrollSource; + get_source(): Actor; + get_source_device(): InputDevice; + get_stage(): Stage; + get_state(): ModifierType; + get_state_full(): [ModifierType | null, ModifierType | null, ModifierType | null, ModifierType | null, ModifierType | null]; + get_time(): number; + has_control_modifier(): boolean; + has_shift_modifier(): boolean; + is_pointer_emulated(): boolean; + put(): void; + set_button(button: number): void; + set_coords(x: number, y: number): void; + set_device(device: InputDevice | null): void; + set_flags(flags: EventFlags): void; + set_key_code(key_code: number): void; + set_key_symbol(key_sym: number): void; + set_key_unicode(key_unicode: number): void; + set_related(actor: Actor | null): void; + set_scroll_delta(dx: number, dy: number): void; + set_scroll_direction(direction: ScrollDirection): void; + set_source(actor: Actor | null): void; + set_source_device(device: InputDevice | null): void; + set_stage(stage: Stage | null): void; + set_state(state: ModifierType): void; + set_time(time_: number): void; + type(): EventType; + static add_filter(stage: Stage | null, func: EventFilterFunc, notify: GLib.DestroyNotify): number; + static get(): Event; + static peek(): Event; + static remove_filter(id: number): void; +} +export interface AnimatableNamespace { + $gtype: GType; +} +export interface Animatable extends GObject.Object { + // Members + animate_property(animation: Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + find_property(property_name: string): GObject.ParamSpec; + get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + interpolate_value(property_name: string, interval: Interval, progress: number): [boolean, GObject.Value]; + set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_animate_property(animation: Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + vfunc_find_property(property_name: string): GObject.ParamSpec; + vfunc_get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_interpolate_value(property_name: string, interval: Interval, progress: number): [boolean, GObject.Value]; + vfunc_set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; +} + +export const Animatable: AnimatableNamespace; +export interface ContainerNamespace { + $gtype: GType; + class_find_child_property(klass: GObject.Object, property_name: string): GObject.ParamSpec; + class_list_child_properties(klass: GObject.Object): GObject.ParamSpec[]; +} +export interface Container extends GObject.Object { + // Members + add_actor(actor: Actor): void; + child_get_property(child: Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + child_notify(child: Actor, pspec: GObject.ParamSpec): void; + child_set_property(child: Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + create_child_meta(actor: Actor): void; + destroy_child_meta(actor: Actor): void; + find_child_by_name(child_name: string): Actor; + foreach(callback: Callback): void; + foreach_with_internals(callback: Callback): void; + get_child_meta(actor: Actor): ChildMeta; + get_children(): GLib.List; + lower_child(actor: Actor, sibling: Actor | null): void; + raise_child(actor: Actor, sibling: Actor | null): void; + remove_actor(actor: Actor): void; + sort_depth_order(): void; + vfunc_actor_added(actor: Actor): void; + vfunc_actor_removed(actor: Actor): void; + vfunc_add(actor: Actor): void; + vfunc_child_notify(child: Actor, pspec: GObject.ParamSpec): void; + vfunc_create_child_meta(actor: Actor): void; + vfunc_destroy_child_meta(actor: Actor): void; + vfunc_foreach(callback: Callback): void; + vfunc_foreach_with_internals(callback: Callback): void; + vfunc_get_child_meta(actor: Actor): ChildMeta; + vfunc_lower(actor: Actor, sibling: Actor | null): void; + vfunc_raise(actor: Actor, sibling: Actor | null): void; + vfunc_remove(actor: Actor): void; + vfunc_sort_depth_order(): void; +} + +export const Container: ContainerNamespace; +export interface ContentNamespace { + $gtype: GType; +} +export interface Content extends GObject.Object { + // Members + get_preferred_size(): [boolean, number, number]; + invalidate(): void; + vfunc_attached(actor: Actor): void; + vfunc_detached(actor: Actor): void; + vfunc_get_preferred_size(): [boolean, number, number]; + vfunc_invalidate(): void; + vfunc_paint_content(actor: Actor, node: PaintNode): void; +} + +export const Content: ContentNamespace; +export interface MediaNamespace { + $gtype: GType; +} +export interface Media extends GObject.Object { + // Properties + audio_volume: number; + buffer_fill: number; + can_seek: boolean; + duration: number; + playing: boolean; + progress: number; + subtitle_font_name: string; + subtitle_uri: string; + uri: string; + // Members + get_audio_volume(): number; + get_buffer_fill(): number; + get_can_seek(): boolean; + get_duration(): number; + get_playing(): boolean; + get_progress(): number; + get_subtitle_font_name(): string; + get_subtitle_uri(): string; + get_uri(): string; + set_audio_volume(volume: number): void; + set_filename(filename: string): void; + set_playing(playing: boolean): void; + set_progress(progress: number): void; + set_subtitle_font_name(font_name: string): void; + set_subtitle_uri(uri: string): void; + set_uri(uri: string): void; + vfunc_eos(): void; + vfunc_error(error: GLib.Error): void; +} + +export const Media: MediaNamespace; +export interface ScriptableNamespace { + $gtype: GType; +} +export interface Scriptable extends GObject.Object { + // Members + get_id(): string; + parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} + +export const Scriptable: ScriptableNamespace; \ No newline at end of file diff --git a/gi/cogl.d.ts b/gi/cogl.d.ts new file mode 100644 index 0000000..1e7f110 --- /dev/null +++ b/gi/cogl.d.ts @@ -0,0 +1,1872 @@ + + +/** + * Cogl + */ +import * as GObject from "gobject"; +import * as GLib from "glib"; + +type GType = object; + +export const AFIRST_BIT: number; + +export const A_BIT: number; + +export const BGR_BIT: number; + +export const DEPTH_BIT: number; + +export const PREMULT_BIT: number; + +export const STENCIL_BIT: number; + +export const TEXTURE_MAX_WASTE: number; + +export const VERSION_COMPONENT_BITS: number; + +export const VERSION_MAX_COMPONENT_VALUE: number; + +export function bitmap_error_quark(): number; + +export function blend_string_error_quark(): number; + +export function buffer_get_size(buffer: Buffer): number; + +export function buffer_get_update_hint(buffer: Buffer): BufferUpdateHint; + +export function buffer_map(buffer: Buffer, access: BufferAccess, hints: BufferMapHint): any | null; + +export function buffer_map_range(buffer: Buffer, offset: number, size: number, access: BufferAccess, hints: BufferMapHint): any | null; + +export function buffer_set_data(buffer: Buffer, offset: number, data: any | null, size: number): Bool; + +export function buffer_set_update_hint(buffer: Buffer, hint: BufferUpdateHint): void; + +export function buffer_unmap(buffer: Buffer): void; + +export function color_equal(v1: any | null, v2: any | null): Bool; + +export function color_init_from_hsl(hue: number, saturation: number, luminance: number): Color; + +export function debug_matrix_entry_print(entry: MatrixEntry): void; + +export function debug_matrix_print(matrix: Matrix): void; + +export function debug_object_foreach_type(func: DebugObjectForeachTypeCallback): void; + +export function debug_object_print_instances(): void; + +export function error_copy(error: GLib.Error): GLib.Error; + +export function error_free(error: GLib.Error): void; + +export function error_matches(error: GLib.Error, domain: number, code: number): Bool; + +export function euler_equal(v1: any | null, v2: any | null): Bool; + +export function foreach_feature(context: Context, callback: FeatureCallback): void; + +export function framebuffer_error_quark(): number; + +export function get_clock_time(context: Context): number; + +export function get_draw_framebuffer(): Framebuffer; + +export function get_static_identity_quaternion(): Quaternion; + +export function get_static_zero_quaternion(): Quaternion; + +export function gles2_texture_get_handle(texture: Texture, handle: number, target: number): Bool; + +export function glib_renderer_source_new(renderer: Renderer, priority: number): GLib.Source; + +export function glib_source_new(context: Context, priority: number): GLib.Source; + +export function gtype_matrix_get_type(): GType; + +export function handle_get_type(): GType; + +export function handle_ref(handle: Handle): Handle; + +export function handle_unref(handle: Handle): void; + +export function has_feature(context: Context, feature: FeatureID): Bool; + +export function is_atlas_texture(object: any | null): Bool; + +export function is_attribute(object: any | null): Bool; + +export function is_attribute_buffer(object: any | null): Bool; + +export function is_bitmap(object: any | null): Bool; + +export function is_buffer(object: any | null): Bool; + +export function is_context(object: any | null): Bool; + +export function is_display(object: any | null): Bool; + +export function is_frame_info(object: any | null): Bool; + +export function is_framebuffer(object: any | null): Bool; + +export function is_gles2_context(object: any | null): Bool; + +export function is_index_buffer(object: any | null): Bool; + +export function is_indices(object: any | null): Bool; + +export function is_matrix_stack(object: any | null): Bool; + +export function is_onscreen(object: any | null): Bool; + +export function is_onscreen_template(object: any | null): Bool; + +export function is_output(object: any | null): Bool; + +export function is_pipeline(object: any | null): Bool; + +export function is_pixel_buffer(object: any | null): Bool; + +export function is_primitive(object: any | null): Bool; + +export function is_primitive_texture(object: any | null): Bool; + +export function is_renderer(object: any | null): Bool; + +export function is_snippet(object: any | null): Bool; + +export function is_sub_texture(object: any | null): Bool; + +export function is_swap_chain(object: any | null): Bool; + +export function is_texture(object: any | null): Bool; + +export function is_texture_2d(object: any | null): Bool; + +export function is_texture_2d_sliced(object: any | null): Bool; + +export function is_texture_3d(object: any | null): Bool; + +export function is_texture_pixmap_x11(object: any | null): Bool; + +export function is_texture_rectangle(object: any | null): Bool; + +export function kms_display_queue_modes_reset(display: Display): void; + +export function kms_display_set_ignore_crtc(display: Display, id: number, ignore: Bool): void; + +export function kms_display_set_layout(display: Display, width: number, height: number, crtcs: KmsCrtc, n_crtcs: number): Bool; + +export function kms_renderer_get_gbm(renderer: Renderer): any | null; + +export function kms_renderer_get_kms_fd(renderer: Renderer): number; + +export function kms_renderer_set_kms_fd(renderer: Renderer, fd: number): void; + +export function matrix_equal(v1: any | null, v2: any | null): Bool; + +export function poll_renderer_dispatch(renderer: Renderer, poll_fds: PollFD, n_poll_fds: number): void; + +export function poll_renderer_get_info(renderer: Renderer, poll_fds: PollFD, n_poll_fds: number, timeout: number): number; + +export function pop_gles2_context(ctx: Context): void; + +export function push_gles2_context(ctx: Context, gles2_ctx: GLES2Context, read_buffer: Framebuffer, write_buffer: Framebuffer): Bool; + +export function quaternion_equal(v1: any | null, v2: any | null): Bool; + +export function renderer_error_quark(): number; + +export function texture_error_quark(): number; + +export function vector3_add(result: number, a: number, b: number): void; + +export function vector3_copy(vector: number): number; + +export function vector3_cross_product(result: number, u: number, v: number): void; + +export function vector3_distance(a: number, b: number): number; + +export function vector3_divide_scalar(vector: number, scalar: number): void; + +export function vector3_dot_product(a: number, b: number): number; + +export function vector3_equal(v1: any | null, v2: any | null): Bool; + +export function vector3_equal_with_epsilon(vector0: number, vector1: number, epsilon: number): Bool; + +export function vector3_free(vector: number): void; + +export function vector3_init(vector: number, x: number, y: number, z: number): void; + +export function vector3_init_zero(vector: number): void; + +export function vector3_invert(vector: number): void; + +export function vector3_magnitude(vector: number): number; + +export function vector3_multiply_scalar(vector: number, scalar: number): void; + +export function vector3_normalize(vector: number): void; + +export function vector3_subtract(result: number, a: number, b: number): void; + +export function wayland_display_set_compositor_display(display: Display, wayland_display: any | null): void; + +export function wayland_onscreen_get_shell_surface(onscreen: Onscreen): any | null; + +export function wayland_onscreen_get_surface(onscreen: Onscreen): any | null; + +export function wayland_onscreen_resize(onscreen: Onscreen, width: number, height: number, offset_x: number, offset_y: number): void; + +export function wayland_onscreen_set_foreign_surface(onscreen: Onscreen, surface: any | null): void; + +export function wayland_renderer_get_display(renderer: Renderer): any | null; + +export function wayland_renderer_set_event_dispatch_enabled(renderer: Renderer, enable: Bool): void; + +export function wayland_renderer_set_foreign_display(renderer: Renderer, display: any | null): void; + +export function wayland_texture_set_region_from_shm_buffer(texture: Texture, src_x: number, src_y: number, width: number, height: number, shm_buffer: any | null, dst_x: number, dst_y: number, level: number): Bool; + +export function x11_onscreen_get_visual_xid(onscreen: Onscreen): number; + +export function x11_onscreen_get_window_xid(onscreen: Onscreen): number; + +export type DebugObjectForeachTypeCallback = (info: DebugObjectTypeInfo) => void; + +export type FeatureCallback = (feature: FeatureID) => void; + +export type FenceCallback = (fence: Fence) => void; + +export type FrameCallback = (onscreen: Onscreen, event: FrameEvent, info: FrameInfo) => void; + +export type FuncPtr = () => void; + +export type MetaTextureCallback = (sub_texture: Texture, sub_texture_coords: number, meta_coords: number) => void; + +export type OnscreenDirtyCallback = (onscreen: Onscreen, info: OnscreenDirtyInfo) => void; + +export type OnscreenResizeCallback = (onscreen: Onscreen, width: number, height: number) => void; + +export type OnscreenX11MaskCallback = (onscreen: Onscreen, event_mask: number) => void; + +export type OutputCallback = (output: Output) => void; + +export type PipelineLayerCallback = (pipeline: Pipeline, layer_index: number) => Bool; + +export type PrimitiveAttributeCallback = (primitive: Primitive, attribute: Attribute) => Bool; + +export type SwapBuffersNotify = (framebuffer: Framebuffer) => void; +export enum AttributeType { + BYTE = 5120, + UNSIGNED_BYTE = 5121, + SHORT = 5122, + UNSIGNED_SHORT = 5123, + FLOAT = 5126, +} +export enum BitmapError { + FAILED = 0, + UNKNOWN_TYPE = 1, + CORRUPT_IMAGE = 2, +} +export enum BlendStringError { + PARSE_ERROR = 0, + ARGUMENT_PARSE_ERROR = 1, + INVALID_ERROR = 2, + GPU_UNSUPPORTED_ERROR = 3, +} +export enum BufferError { + BUFFER_ERROR_MAP = 0, +} +export enum BufferUpdateHint { + STATIC = 0, + DYNAMIC = 1, + STREAM = 2, +} +export enum DepthTestFunction { + NEVER = 512, + LESS = 513, + EQUAL = 514, + LEQUAL = 515, + GREATER = 516, + NOTEQUAL = 517, + GEQUAL = 518, + ALWAYS = 519, +} +export enum Driver { + ANY = 0, + NOP = 1, + GL = 2, + GL3 = 3, + GLES1 = 4, + GLES2 = 5, + WEBGL = 6, +} +export enum FeatureID { + OGL_FEATURE_ID_TEXTURE_NPOT_BASIC = 1, + OGL_FEATURE_ID_TEXTURE_NPOT_MIPMAP = 2, + OGL_FEATURE_ID_TEXTURE_NPOT_REPEAT = 3, + OGL_FEATURE_ID_TEXTURE_NPOT = 4, + OGL_FEATURE_ID_TEXTURE_RECTANGLE = 5, + OGL_FEATURE_ID_TEXTURE_3D = 6, + OGL_FEATURE_ID_GLSL = 7, + OGL_FEATURE_ID_ARBFP = 8, + OGL_FEATURE_ID_OFFSCREEN = 9, + OGL_FEATURE_ID_OFFSCREEN_MULTISAMPLE = 10, + OGL_FEATURE_ID_ONSCREEN_MULTIPLE = 11, + OGL_FEATURE_ID_UNSIGNED_INT_INDICES = 12, + OGL_FEATURE_ID_DEPTH_RANGE = 13, + OGL_FEATURE_ID_POINT_SPRITE = 14, + OGL_FEATURE_ID_MAP_BUFFER_FOR_READ = 15, + OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE = 16, + OGL_FEATURE_ID_MIRRORED_REPEAT = 17, + OGL_FEATURE_ID_SWAP_BUFFERS_EVENT = 18, + OGL_FEATURE_ID_GLES2_CONTEXT = 19, + OGL_FEATURE_ID_DEPTH_TEXTURE = 20, + OGL_FEATURE_ID_PRESENTATION_TIME = 21, + OGL_FEATURE_ID_FENCE = 22, + OGL_FEATURE_ID_PER_VERTEX_POINT_SIZE = 23, + OGL_FEATURE_ID_TEXTURE_RG = 24, + OGL_FEATURE_ID_BUFFER_AGE = 25, +} +export enum FilterReturn { + CONTINUE = 0, + REMOVE = 1, +} +export enum FogMode { + LINEAR = 0, + EXPONENTIAL = 1, + EXPONENTIAL_SQUARED = 2, +} +export enum FrameEvent { + SYNC = 1, + COMPLETE = 2, +} +export enum FramebufferError { + FRAMEBUFFER_ERROR_ALLOCATE = 0, +} +export enum GLES2ContextError { + UNSUPPORTED = 0, + DRIVER = 1, +} +export enum IndicesType { + BYTE = 0, + SHORT = 1, + INT = 2, +} +export enum MaterialAlphaFunc { + NEVER = 512, + LESS = 513, + EQUAL = 514, + LEQUAL = 515, + GREATER = 516, + NOTEQUAL = 517, + GEQUAL = 518, + ALWAYS = 519, +} +export enum MaterialFilter { + NEAREST = 9728, + LINEAR = 9729, + NEAREST_MIPMAP_NEAREST = 9984, + LINEAR_MIPMAP_NEAREST = 9985, + NEAREST_MIPMAP_LINEAR = 9986, + LINEAR_MIPMAP_LINEAR = 9987, +} +export enum MaterialLayerType { + TEXTURE = 0, +} +export enum MaterialWrapMode { + REPEAT = 10497, + CLAMP_TO_EDGE = 33071, + AUTOMATIC = 519, +} +export enum PipelineAlphaFunc { + NEVER = 512, + LESS = 513, + EQUAL = 514, + LEQUAL = 515, + GREATER = 516, + NOTEQUAL = 517, + GEQUAL = 518, + ALWAYS = 519, +} +export enum PipelineCullFaceMode { + NONE = 0, + FRONT = 1, + BACK = 2, + BOTH = 3, +} +export enum PipelineFilter { + NEAREST = 9728, + LINEAR = 9729, + NEAREST_MIPMAP_NEAREST = 9984, + LINEAR_MIPMAP_NEAREST = 9985, + NEAREST_MIPMAP_LINEAR = 9986, + LINEAR_MIPMAP_LINEAR = 9987, +} +export enum PipelineWrapMode { + REPEAT = 10497, + MIRRORED_REPEAT = 33648, + CLAMP_TO_EDGE = 33071, + AUTOMATIC = 519, +} +export enum PixelFormat { + ANY = 0, + A_8 = 17, + RGB_565 = 4, + RGBA_4444 = 21, + RGBA_5551 = 22, + YUV = 7, + G_8 = 8, + RG_88 = 9, + RGB_888 = 2, + BGR_888 = 34, + RGBA_8888 = 19, + BGRA_8888 = 51, + ARGB_8888 = 83, + ABGR_8888 = 115, + RGBA_1010102 = 29, + BGRA_1010102 = 61, + ARGB_2101010 = 93, + ABGR_2101010 = 125, + RGBA_8888_PRE = 147, + BGRA_8888_PRE = 179, + ARGB_8888_PRE = 211, + ABGR_8888_PRE = 243, + RGBA_4444_PRE = 149, + RGBA_5551_PRE = 150, + RGBA_1010102_PRE = 157, + BGRA_1010102_PRE = 189, + ARGB_2101010_PRE = 221, + ABGR_2101010_PRE = 253, + DEPTH_16 = 265, + DEPTH_32 = 259, + DEPTH_24_STENCIL_8 = 771, +} +export enum PollFDEvent { + IN = 1, + PRI = 2, + OUT = 4, + ERR = 8, + HUP = 16, + NVAL = 32, +} +export enum RendererError { + XLIB_DISPLAY_OPEN = 0, + BAD_CONSTRAINT = 1, +} +export enum ShaderType { + VERTEX = 0, + FRAGMENT = 1, +} +export enum SnippetHook { + VERTEX = 0, + VERTEX_TRANSFORM = 1, + VERTEX_GLOBALS = 2, + POINT_SIZE = 3, + FRAGMENT = 2048, + FRAGMENT_GLOBALS = 2049, + TEXTURE_COORD_TRANSFORM = 4096, + LAYER_FRAGMENT = 6144, + TEXTURE_LOOKUP = 6145, +} +export enum StereoMode { + BOTH = 0, + LEFT = 1, + RIGHT = 2, +} +export enum SubpixelOrder { + UNKNOWN = 0, + NONE = 1, + HORIZONTAL_RGB = 2, + HORIZONTAL_BGR = 3, + VERTICAL_RGB = 4, + VERTICAL_BGR = 5, +} +export enum SystemError { + COGL_SYSTEM_ERROR_UNSUPPORTED = 0, + COGL_SYSTEM_ERROR_NO_MEMORY = 1, +} +export enum TextureComponents { + A = 1, + RG = 2, + RGB = 3, + RGBA = 4, + DEPTH = 5, +} +export enum TextureError { + SIZE = 0, + FORMAT = 1, + BAD_PARAMETER = 2, + TYPE = 3, +} +export enum TexturePixmapX11Error { + TEXTURE_PIXMAP_X11_ERROR_X11 = 0, +} +export enum TexturePixmapX11ReportLevel { + RAW_RECTANGLES = 0, + DELTA_RECTANGLES = 1, + BOUNDING_BOX = 2, + NON_EMPTY = 3, +} +export class TextureType { + constructor(copy: TextureType); + // Properties + static "2D": number; + static "3D": number; + static RECTANGLE: number; +} +export enum VerticesMode { + POINTS = 0, + LINES = 1, + LINE_LOOP = 2, + LINE_STRIP = 3, + TRIANGLES = 4, + TRIANGLE_STRIP = 5, + TRIANGLE_FAN = 6, +} +export enum Winding { + CLOCKWISE = 0, + COUNTER_CLOCKWISE = 1, +} +export enum WinsysFeature { + MULTIPLE_ONSCREEN = 0, + SWAP_THROTTLE = 1, + VBLANK_COUNTER = 2, + VBLANK_WAIT = 3, + TEXTURE_FROM_PIXMAP = 4, + SWAP_BUFFERS_EVENT = 5, + SWAP_REGION = 6, + SWAP_REGION_THROTTLE = 7, + SWAP_REGION_SYNCHRONIZED = 8, + BUFFER_AGE = 9, + SYNC_AND_COMPLETE_EVENT = 10, + N_FEATURES = 11, +} +export enum WinsysID { + ANY = 0, + STUB = 1, + GLX = 2, + EGL_XLIB = 3, + EGL_NULL = 4, + EGL_GDL = 5, + EGL_WAYLAND = 6, + EGL_KMS = 7, + EGL_ANDROID = 8, + EGL_MIR = 9, + WGL = 10, + SDL = 11, +} +export enum BufferAccess { + READ = 1, + WRITE = 2, + READ_WRITE = 3, +} +export enum BufferBit { + COLOR = 1, + DEPTH = 2, + STENCIL = 4, +} +export enum BufferMapHint { + "" = 1, + _RANGE = 2, +} +export enum BufferTarget { + WINDOW_BUFFER = 2, + OFFSCREEN_BUFFER = 4, +} +export enum ColorMask { + NONE = 0, + RED = 1, + GREEN = 2, + BLUE = 4, + ALPHA = 8, + ALL = 15, +} +export enum FeatureFlags { + TEXTURE_RECTANGLE = 2, + TEXTURE_NPOT = 4, + TEXTURE_YUV = 8, + TEXTURE_READ_PIXELS = 16, + SHADERS_GLSL = 32, + OFFSCREEN = 64, + OFFSCREEN_MULTISAMPLE = 128, + OFFSCREEN_BLIT = 256, + FOUR_CLIP_PLANES = 512, + STENCIL_BUFFER = 1024, + VBOS = 2048, + PBOS = 4096, + UNSIGNED_INT_INDICES = 8192, + DEPTH_RANGE = 16384, + TEXTURE_NPOT_BASIC = 32768, + TEXTURE_NPOT_MIPMAP = 65536, + TEXTURE_NPOT_REPEAT = 131072, + POINT_SPRITE = 262144, + TEXTURE_3D = 524288, + SHADERS_ARBFP = 1048576, + MAP_BUFFER_FOR_READ = 2097152, + MAP_BUFFER_FOR_WRITE = 4194304, + ONSCREEN_MULTIPLE = 8388608, + DEPTH_TEXTURE = 16777216, +} +export enum ReadPixelsFlags { + COLOR_BUFFER = 1, +} +export enum RendererConstraint { + USES_X11 = 1, + USES_XLIB = 2, + USES_EGL = 4, + SUPPORTS_COGL_GLES2 = 8, +} +export enum TextureFlags { + NONE = 0, + NO_AUTO_MIPMAP = 1, + NO_SLICING = 2, + NO_ATLAS = 4, +} +export module AtlasTexture { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class AtlasTexture extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static new_from_bitmap(bmp: Bitmap): AtlasTexture; + static new_from_data(ctx: Context, width: number, height: number, format: PixelFormat, rowstride: number, data: number): AtlasTexture; + static new_from_file(ctx: Context, filename: string): AtlasTexture; + static new_with_size(ctx: Context, width: number, height: number): AtlasTexture; +} +export module Attribute { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Attribute extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](attribute_buffer: AttributeBuffer, name: string, stride: number, offset: number, components: number, type: AttributeType): Attribute; + static new_const_1f(context: Context, name: string, value: number): Attribute; + static new_const_2f(context: Context, name: string, component0: number, component1: number): Attribute; + static new_const_2fv(context: Context, name: string, value: number): Attribute; + static new_const_2x2fv(context: Context, name: string, matrix2x2: number, transpose: Bool): Attribute; + static new_const_3f(context: Context, name: string, component0: number, component1: number, component2: number): Attribute; + static new_const_3fv(context: Context, name: string, value: number): Attribute; + static new_const_3x3fv(context: Context, name: string, matrix3x3: number, transpose: Bool): Attribute; + static new_const_4f(context: Context, name: string, component0: number, component1: number, component2: number, component3: number): Attribute; + static new_const_4fv(context: Context, name: string, value: number): Attribute; + static new_const_4x4fv(context: Context, name: string, matrix4x4: number, transpose: Bool): Attribute; + // Members + get_buffer(): AttributeBuffer; + get_normalized(): Bool; + set_buffer(attribute_buffer: AttributeBuffer): void; + set_normalized(normalized: Bool): void; +} +export module AttributeBuffer { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class AttributeBuffer extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static new_with_size(context: Context, bytes: number): AttributeBuffer; +} +export module Bitmap { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Bitmap extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static new_for_data(context: Context, width: number, height: number, format: PixelFormat, rowstride: number, data: number): Bitmap; + static new_from_buffer(buffer: Buffer, format: PixelFormat, width: number, height: number, rowstride: number, offset: number): Bitmap; + static new_from_file(filename: string): Bitmap; + static new_with_size(context: Context, width: number, height: number, format: PixelFormat): Bitmap; + // Members + get_buffer(): PixelBuffer; + get_format(): PixelFormat; + get_height(): number; + get_rowstride(): number; + get_width(): number; + static get_size_from_file(filename: string): [Bool, number, number]; +} +export module Context { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Context extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](display: Display | null): Context; + // Members + get_display(): Display; + get_renderer(): Renderer; +} +export module Display { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Display extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](renderer: Renderer, onscreen_template: OnscreenTemplate): Display; + // Members + get_renderer(): Renderer; + set_onscreen_template(onscreen_template: OnscreenTemplate): void; + setup(): Bool; +} +export module Fixed { + export interface ConstructorProperties { + [key: string]: any; + } +} +export class Fixed { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module FrameInfo { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class FrameInfo extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + get_frame_counter(): number; + get_output(): Output; + get_presentation_time(): number; + get_refresh_rate(): number; +} +export module GLES2Context { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class GLES2Context extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](ctx: Context): GLES2Context; + // Members + get_vtable(): GLES2Vtable; +} +export module IndexBuffer { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class IndexBuffer extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](context: Context, bytes: number): IndexBuffer; +} +export module Indices { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Indices extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](context: Context, type: IndicesType, indices_data: any | null, n_indices: number): Indices; + static new_for_buffer(type: IndicesType, buffer: IndexBuffer, offset: number): Indices; + // Members + get_offset(): number; + get_type(): IndicesType; + set_offset(offset: number): void; +} +export module MatrixStack { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class MatrixStack extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](ctx: Context): MatrixStack; + // Members + frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void; + get(): [Matrix, Matrix]; + get_entry(): MatrixEntry; + get_inverse(): [Bool, Matrix]; + load_identity(): void; + multiply(matrix: Matrix): void; + orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void; + perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void; + pop(): void; + push(): void; + rotate(angle: number, x: number, y: number, z: number): void; + rotate_euler(euler: Euler): void; + rotate_quaternion(quaternion: Quaternion): void; + scale(x: number, y: number, z: number): void; + set(matrix: Matrix): void; + translate(x: number, y: number, z: number): void; +} +export module Object { + export interface ConstructorProperties { + [key: string]: any; + } +} +export abstract class Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + static value_get_object(value: (GObject.Value | string | boolean | number)): any | null; + static value_set_object(value: (GObject.Value | string | boolean | number), object: any | null): void; +} +export module Onscreen { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Onscreen extends Object implements Framebuffer { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](context: Context, width: number, height: number): Onscreen; + // Members + add_dirty_callback(callback: OnscreenDirtyCallback, destroy: UserDataDestroyCallback | null): OnscreenDirtyClosure; + add_frame_callback(callback: FrameCallback, destroy: UserDataDestroyCallback | null): FrameClosure; + add_resize_callback(callback: OnscreenResizeCallback, destroy: UserDataDestroyCallback | null): OnscreenResizeClosure; + add_swap_buffers_callback(callback: SwapBuffersNotify): number; + get_buffer_age(): number; + get_frame_counter(): number; + get_resizable(): Bool; + hide(): void; + remove_dirty_callback(closure: OnscreenDirtyClosure): void; + remove_frame_callback(closure: FrameClosure): void; + remove_resize_callback(closure: OnscreenResizeClosure): void; + remove_swap_buffers_callback(id: number): void; + set_resizable(resizable: Bool): void; + set_swap_throttled(throttled: Bool): void; + show(): void; + swap_buffers(): void; + swap_buffers_with_damage(rectangles: number, n_rectangles: number): void; + swap_region(rectangles: number, n_rectangles: number): void; + // Implemented Members + allocate(): Bool; + cancel_fence_callback(closure: FenceClosure): void; + clear(buffers: number, color: Color): void; + clear4f(buffers: number, red: number, green: number, blue: number, alpha: number): void; + discard_buffers(buffers: number): void; + draw_attributes(pipeline: Pipeline, mode: VerticesMode, first_vertex: number, n_vertices: number, attributes: Attribute, n_attributes: number): void; + draw_indexed_attributes(pipeline: Pipeline, mode: VerticesMode, first_vertex: number, n_vertices: number, indices: Indices, attributes: Attribute, n_attributes: number): void; + draw_multitextured_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number, tex_coords: number[], tex_coords_len: number): void; + draw_primitive(pipeline: Pipeline, primitive: Primitive): void; + draw_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number): void; + draw_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void; + draw_textured_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number, s_1: number, t_1: number, s_2: number, t_2: number): void; + draw_textured_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void; + finish(): void; + frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void; + get_alpha_bits(): number; + get_blue_bits(): number; + get_color_mask(): ColorMask; + get_context(): Context; + get_depth_bits(): number; + get_depth_texture(): Texture; + get_depth_texture_enabled(): Bool; + get_depth_write_enabled(): Bool; + get_dither_enabled(): Bool; + get_green_bits(): number; + get_height(): number; + get_is_stereo(): Bool; + get_modelview_matrix(): Matrix; + get_projection_matrix(): Matrix; + get_red_bits(): number; + get_samples_per_pixel(): number; + get_stereo_mode(): StereoMode; + get_viewport4fv(): number[]; + get_viewport_height(): number; + get_viewport_width(): number; + get_viewport_x(): number; + get_viewport_y(): number; + get_width(): number; + identity_matrix(): void; + orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void; + perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void; + pop_clip(): void; + pop_matrix(): void; + push_matrix(): void; + push_primitive_clip(primitive: Primitive, bounds_x1: number, bounds_y1: number, bounds_x2: number, bounds_y2: number): void; + push_rectangle_clip(x_1: number, y_1: number, x_2: number, y_2: number): void; + push_scissor_clip(x: number, y: number, width: number, height: number): void; + read_pixels(x: number, y: number, width: number, height: number, format: PixelFormat, pixels: number): Bool; + read_pixels_into_bitmap(x: number, y: number, source: ReadPixelsFlags, bitmap: Bitmap): Bool; + resolve_samples(): void; + resolve_samples_region(x: number, y: number, width: number, height: number): void; + rotate(angle: number, x: number, y: number, z: number): void; + rotate_euler(euler: Euler): void; + rotate_quaternion(quaternion: Quaternion): void; + scale(x: number, y: number, z: number): void; + set_color_mask(color_mask: ColorMask): void; + set_depth_texture_enabled(enabled: Bool): void; + set_depth_write_enabled(depth_write_enabled: Bool): void; + set_dither_enabled(dither_enabled: Bool): void; + set_modelview_matrix(matrix: Matrix): void; + set_projection_matrix(matrix: Matrix): void; + set_samples_per_pixel(samples_per_pixel: number): void; + set_stereo_mode(stereo_mode: StereoMode): void; + set_viewport(x: number, y: number, width: number, height: number): void; + transform(matrix: Matrix): void; + translate(x: number, y: number, z: number): void; +} +export module OnscreenTemplate { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class OnscreenTemplate extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](swap_chain: SwapChain): OnscreenTemplate; + // Members + set_samples_per_pixel(n: number): void; + set_stereo_enabled(enabled: Bool): void; + set_swap_throttled(throttled: Bool): void; +} +export module Output { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Output extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + get_height(): number; + get_mm_height(): number; + get_mm_width(): number; + get_refresh_rate(): number; + get_subpixel_order(): SubpixelOrder; + get_width(): number; + get_x(): number; + get_y(): number; +} +export module Pipeline { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Pipeline extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](context: Context): Pipeline; + // Members + add_layer_snippet(layer: number, snippet: Snippet): void; + add_snippet(snippet: Snippet): void; + copy(): Pipeline; + foreach_layer(callback: PipelineLayerCallback): void; + get_alpha_test_function(): PipelineAlphaFunc; + get_alpha_test_reference(): number; + get_ambient(ambient: Color): void; + get_color(): Color; + get_color_mask(): ColorMask; + get_cull_face_mode(): PipelineCullFaceMode; + get_depth_state(): DepthState; + get_diffuse(diffuse: Color): void; + get_emission(emission: Color): void; + get_front_face_winding(): Winding; + get_layer_mag_filter(layer_index: number): PipelineFilter; + get_layer_min_filter(layer_index: number): PipelineFilter; + get_layer_point_sprite_coords_enabled(layer_index: number): Bool; + get_layer_texture(layer_index: number): Texture; + get_layer_wrap_mode_p(layer_index: number): PipelineWrapMode; + get_layer_wrap_mode_s(layer_index: number): PipelineWrapMode; + get_layer_wrap_mode_t(layer_index: number): PipelineWrapMode; + get_n_layers(): number; + get_per_vertex_point_size(): Bool; + get_point_size(): number; + get_shininess(): number; + get_specular(specular: Color): void; + get_uniform_location(uniform_name: string): number; + get_user_program(): Handle; + remove_layer(layer_index: number): void; + set_alpha_test_function(alpha_func: PipelineAlphaFunc, alpha_reference: number): void; + set_ambient(ambient: Color): void; + set_ambient_and_diffuse(color: Color): void; + set_blend(blend_string: string): Bool; + set_blend_constant(constant_color: Color): void; + set_color(color: Color): void; + set_color4f(red: number, green: number, blue: number, alpha: number): void; + set_color4ub(red: number, green: number, blue: number, alpha: number): void; + set_color_mask(color_mask: ColorMask): void; + set_cull_face_mode(cull_face_mode: PipelineCullFaceMode): void; + set_depth_state(state: DepthState): Bool; + set_diffuse(diffuse: Color): void; + set_emission(emission: Color): void; + set_front_face_winding(front_winding: Winding): void; + set_layer_combine(layer_index: number, blend_string: string): Bool; + set_layer_combine_constant(layer_index: number, constant: Color): void; + set_layer_filters(layer_index: number, min_filter: PipelineFilter, mag_filter: PipelineFilter): void; + set_layer_matrix(layer_index: number, matrix: Matrix): void; + set_layer_null_texture(layer_index: number, texture_type: TextureType): void; + set_layer_point_sprite_coords_enabled(layer_index: number, enable: Bool): Bool; + set_layer_texture(layer_index: number, texture: Texture): void; + set_layer_wrap_mode(layer_index: number, mode: PipelineWrapMode): void; + set_layer_wrap_mode_p(layer_index: number, mode: PipelineWrapMode): void; + set_layer_wrap_mode_s(layer_index: number, mode: PipelineWrapMode): void; + set_layer_wrap_mode_t(layer_index: number, mode: PipelineWrapMode): void; + set_per_vertex_point_size(enable: Bool): Bool; + set_point_size(point_size: number): void; + set_shininess(shininess: number): void; + set_specular(specular: Color): void; + set_uniform_1f(uniform_location: number, value: number): void; + set_uniform_1i(uniform_location: number, value: number): void; + set_uniform_float(uniform_location: number, n_components: number, count: number, value: number): void; + set_uniform_int(uniform_location: number, n_components: number, count: number, value: number): void; + set_uniform_matrix(uniform_location: number, dimensions: number, count: number, transpose: Bool, value: number): void; + set_user_program(program: Handle): void; +} +export module PixelBuffer { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class PixelBuffer extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](context: Context, size: number, data: any | null): PixelBuffer; +} +export module Primitive { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Primitive extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static new_p2(context: Context, mode: VerticesMode, data: VertexP2[]): Primitive; + static new_p2c4(context: Context, mode: VerticesMode, data: VertexP2C4[]): Primitive; + static new_p2t2(context: Context, mode: VerticesMode, data: VertexP2T2[]): Primitive; + static new_p2t2c4(context: Context, mode: VerticesMode, data: VertexP2T2C4[]): Primitive; + static new_p3(context: Context, mode: VerticesMode, data: VertexP3[]): Primitive; + static new_p3c4(context: Context, mode: VerticesMode, data: VertexP3C4[]): Primitive; + static new_p3t2(context: Context, mode: VerticesMode, data: VertexP3T2[]): Primitive; + static new_p3t2c4(context: Context, mode: VerticesMode, data: VertexP3T2C4[]): Primitive; + static new_with_attributes(mode: VerticesMode, n_vertices: number, attributes: Attribute, n_attributes: number): Primitive; + // Members + copy(): Primitive; + draw(framebuffer: Framebuffer, pipeline: Pipeline): void; + foreach_attribute(callback: PrimitiveAttributeCallback): void; + get_first_vertex(): number; + get_indices(): Indices; + get_mode(): VerticesMode; + get_n_vertices(): number; + set_attributes(attributes: Attribute, n_attributes: number): void; + set_first_vertex(first_vertex: number): void; + set_indices(indices: Indices, n_indices: number): void; + set_mode(mode: VerticesMode): void; + set_n_vertices(n_vertices: number): void; + static texture_set_auto_mipmap(primitive_texture: PrimitiveTexture, value: Bool): void; +} +export module Renderer { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Renderer extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): Renderer; + // Members + add_constraint(constraint: RendererConstraint): void; + check_onscreen_template(onscreen_template: OnscreenTemplate): Bool; + connect(): Bool; + foreach_output(callback: OutputCallback): void; + get_driver(): Driver; + get_n_fragment_texture_units(): number; + get_winsys_id(): WinsysID; + remove_constraint(constraint: RendererConstraint): void; + set_driver(driver: Driver): void; + set_winsys_id(winsys_id: WinsysID): void; +} +export module Snippet { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Snippet extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](hook: SnippetHook, declarations: string, post: string): Snippet; + // Members + get_declarations(): string; + get_hook(): SnippetHook; + get_post(): string; + get_pre(): string; + get_replace(): string; + set_declarations(declarations: string): void; + set_post(post: string): void; + set_pre(pre: string): void; + set_replace(replace: string): void; +} +export module SubTexture { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class SubTexture extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](ctx: Context, parent_texture: Texture, sub_x: number, sub_y: number, sub_width: number, sub_height: number): SubTexture; + // Members + get_parent(): Texture; +} +export module SwapChain { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class SwapChain extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): SwapChain; + // Members + set_has_alpha(has_alpha: Bool): void; + set_length(length: number): void; +} +export module Texture2D { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Texture2D extends Object implements Texture { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static gl_new_from_foreign(ctx: Context, gl_handle: number, width: number, height: number, format: PixelFormat): Texture2D; + static new_from_bitmap(bitmap: Bitmap): Texture2D; + static new_from_data(ctx: Context, width: number, height: number, format: PixelFormat, rowstride: number, data: number): Texture2D; + static new_from_file(ctx: Context, filename: string): Texture2D; + static new_with_size(ctx: Context, width: number, height: number): Texture2D; + // Implemented Members + allocate(): Bool; + get_components(): TextureComponents; + get_data(format: PixelFormat, rowstride: number, data: number): number; + get_gl_texture(): [Bool, number | null, number | null]; + get_height(): number; + get_max_waste(): number; + get_premultiplied(): Bool; + get_width(): number; + is_sliced(): Bool; + set_components(components: TextureComponents): void; + set_data(format: PixelFormat, rowstride: number, data: number, level: number): Bool; + set_premultiplied(premultiplied: Bool): void; + set_region(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, width: number, height: number, format: PixelFormat, rowstride: number, data: number): Bool; + set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): Bool; +} +export module Texture2DSliced { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Texture2DSliced extends Object implements Texture { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static new_from_bitmap(bmp: Bitmap, max_waste: number): Texture2DSliced; + static new_from_data(ctx: Context, width: number, height: number, max_waste: number, format: PixelFormat, rowstride: number, data: number): Texture2DSliced; + static new_from_file(ctx: Context, filename: string, max_waste: number): Texture2DSliced; + static new_with_size(ctx: Context, width: number, height: number, max_waste: number): Texture2DSliced; + // Implemented Members + allocate(): Bool; + get_components(): TextureComponents; + get_data(format: PixelFormat, rowstride: number, data: number): number; + get_gl_texture(): [Bool, number | null, number | null]; + get_height(): number; + get_max_waste(): number; + get_premultiplied(): Bool; + get_width(): number; + is_sliced(): Bool; + set_components(components: TextureComponents): void; + set_data(format: PixelFormat, rowstride: number, data: number, level: number): Bool; + set_premultiplied(premultiplied: Bool): void; + set_region(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, width: number, height: number, format: PixelFormat, rowstride: number, data: number): Bool; + set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): Bool; +} +export module Texture3D { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class Texture3D extends Object implements Texture { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static new_from_bitmap(bitmap: Bitmap, height: number, depth: number): Texture3D; + static new_from_data(context: Context, width: number, height: number, depth: number, format: PixelFormat, rowstride: number, image_stride: number, data: number): Texture3D; + static new_with_size(context: Context, width: number, height: number, depth: number): Texture3D; + // Implemented Members + allocate(): Bool; + get_components(): TextureComponents; + get_data(format: PixelFormat, rowstride: number, data: number): number; + get_gl_texture(): [Bool, number | null, number | null]; + get_height(): number; + get_max_waste(): number; + get_premultiplied(): Bool; + get_width(): number; + is_sliced(): Bool; + set_components(components: TextureComponents): void; + set_data(format: PixelFormat, rowstride: number, data: number, level: number): Bool; + set_premultiplied(premultiplied: Bool): void; + set_region(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, width: number, height: number, format: PixelFormat, rowstride: number, data: number): Bool; + set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): Bool; +} +export module TexturePixmapX11 { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class TexturePixmapX11 extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](context: Context, pixmap: number, automatic_updates: Bool): TexturePixmapX11; + static new_left(context: Context, pixmap: number, automatic_updates: Bool): TexturePixmapX11; + // Members + is_using_tfp_extension(): Bool; + set_damage_object(damage: number, report_level: TexturePixmapX11ReportLevel): void; + update_area(x: number, y: number, width: number, height: number): void; + static error_quark(): number; +} +export module TextureRectangle { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + } +} +export class TextureRectangle extends Object implements Texture { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static new_from_bitmap(bitmap: Bitmap): TextureRectangle; + static new_from_foreign(ctx: Context, gl_handle: number, width: number, height: number, format: PixelFormat): TextureRectangle; + static new_with_size(ctx: Context, width: number, height: number): TextureRectangle; + // Implemented Members + allocate(): Bool; + get_components(): TextureComponents; + get_data(format: PixelFormat, rowstride: number, data: number): number; + get_gl_texture(): [Bool, number | null, number | null]; + get_height(): number; + get_max_waste(): number; + get_premultiplied(): Bool; + get_width(): number; + is_sliced(): Bool; + set_components(components: TextureComponents): void; + set_data(format: PixelFormat, rowstride: number, data: number, level: number): Bool; + set_premultiplied(premultiplied: Bool): void; + set_region(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, width: number, height: number, format: PixelFormat, rowstride: number, data: number): Bool; + set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): Bool; +} +export class Color { + constructor(); + constructor(copy: Color); + // Fields + private_member_red: number; + private_member_green: number; + private_member_blue: number; + private_member_alpha: number; + private_member_padding0: number; + private_member_padding1: number; + private_member_padding2: number; + // Constructors + static ["new"](): Color; + // Members + copy(): Color; + free(): void; + get_alpha(): number; + get_alpha_byte(): number; + get_alpha_float(): number; + get_blue(): number; + get_blue_byte(): number; + get_blue_float(): number; + get_green(): number; + get_green_byte(): number; + get_green_float(): number; + get_red(): number; + get_red_byte(): number; + get_red_float(): number; + init_from_4f(red: number, green: number, blue: number, alpha: number): void; + init_from_4fv(color_array: number): void; + init_from_4ub(red: number, green: number, blue: number, alpha: number): void; + premultiply(): void; + set_alpha(alpha: number): void; + set_alpha_byte(alpha: number): void; + set_alpha_float(alpha: number): void; + set_blue(blue: number): void; + set_blue_byte(blue: number): void; + set_blue_float(blue: number): void; + set_from_4f(red: number, green: number, blue: number, alpha: number): void; + set_from_4ub(red: number, green: number, blue: number, alpha: number): void; + set_green(green: number): void; + set_green_byte(green: number): void; + set_green_float(green: number): void; + set_red(red: number): void; + set_red_byte(red: number): void; + set_red_float(red: number): void; + to_hsl(): [number, number, number]; + unpremultiply(): void; + static equal(v1: any | null, v2: any | null): Bool; + static init_from_hsl(hue: number, saturation: number, luminance: number): Color; +} +export class DebugObjectTypeInfo { + constructor(properties?: { + name?: string; + instance_count?: number; + }); + constructor(copy: DebugObjectTypeInfo); + // Fields + name: string; + instance_count: number; +} +export class DepthState { + constructor(copy: DepthState); + // Fields + private_member_magic: number; + private_member_test_enabled: Bool; + private_member_test_function: DepthTestFunction; + private_member_write_enabled: Bool; + private_member_range_near: number; + private_member_range_far: number; + private_member_padding0: number; + private_member_padding1: number; + private_member_padding2: number; + private_member_padding3: number; + private_member_padding4: number; + private_member_padding5: number; + private_member_padding6: number; + private_member_padding7: number; + private_member_padding8: number; + private_member_padding9: number; + // Members + get_range(near_val: number, far_val: number): void; + get_test_enabled(): Bool; + get_test_function(): DepthTestFunction; + get_write_enabled(): Bool; + init(): void; + set_range(near_val: number, far_val: number): void; + set_test_enabled(enable: Bool): void; + set_test_function(_function: DepthTestFunction): void; + set_write_enabled(enable: Bool): void; +} +export class Euler { + constructor(properties?: { + heading?: number; + pitch?: number; + roll?: number; + padding0?: number; + padding1?: number; + padding2?: number; + padding3?: number; + padding4?: number; + }); + constructor(copy: Euler); + // Fields + heading: number; + pitch: number; + roll: number; + padding0: number; + padding1: number; + padding2: number; + padding3: number; + padding4: number; + // Members + copy(): Euler; + free(): void; + init(heading: number, pitch: number, roll: number): void; + init_from_matrix(matrix: Matrix): void; + init_from_quaternion(quaternion: Quaternion): void; + static equal(v1: any | null, v2: any | null): Bool; +} +export class Fence { + constructor(copy: Fence); +} +export class FenceClosure { + constructor(copy: FenceClosure); + // Members + get_user_data(): any | null; +} +export class FrameClosure { + constructor(copy: FrameClosure); +} +export class GLES2Vtable { + constructor(copy: GLES2Vtable); +} +export class GtypeClass { + constructor(properties?: { + base_class?: GObject.TypeClass; + dummy?: number; + }); + constructor(copy: GtypeClass); + // Fields + base_class: GObject.TypeClass; + dummy: number; +} +export class GtypeObject { + constructor(properties?: { + dummy?: number; + }); + constructor(copy: GtypeObject); + // Fields + dummy: number; +} +export class KmsCrtc { + constructor(copy: KmsCrtc); + // Fields + id: number; + x: number; + y: number; + connectors: number; + count: number; + ignore: Bool; +} +export class Matrix { + constructor(properties?: { + xx?: number; + yx?: number; + zx?: number; + wx?: number; + xy?: number; + yy?: number; + zy?: number; + wy?: number; + xz?: number; + yz?: number; + zz?: number; + wz?: number; + xw?: number; + yw?: number; + zw?: number; + ww?: number; + private_member_inv?: number[]; + private_member_type?: number; + private_member_flags?: number; + private_member__padding3?: number; + }); + constructor(copy: Matrix); + // Fields + xx: number; + yx: number; + zx: number; + wx: number; + xy: number; + yy: number; + zy: number; + wy: number; + xz: number; + yz: number; + zz: number; + wz: number; + xw: number; + yw: number; + zw: number; + ww: number; + private_member_inv: number[]; + private_member_type: number; + private_member_flags: number; + private_member__padding3: number; + // Members + copy(): Matrix; + free(): void; + frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void; + get_array(): number; + get_inverse(): [Bool, Matrix]; + init_from_array(array: number): void; + init_from_euler(euler: Euler): void; + init_from_quaternion(quaternion: Quaternion): void; + init_identity(): void; + init_translation(tx: number, ty: number, tz: number): void; + is_identity(): Bool; + look_at(eye_position_x: number, eye_position_y: number, eye_position_z: number, object_x: number, object_y: number, object_z: number, world_up_x: number, world_up_y: number, world_up_z: number): void; + multiply(a: Matrix, b: Matrix): void; + ortho(left: number, right: number, bottom: number, top: number, near: number, far: number): void; + orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void; + perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void; + project_points(n_components: number, stride_in: number, points_in: any | null, stride_out: number, points_out: any | null, n_points: number): void; + rotate(angle: number, x: number, y: number, z: number): void; + rotate_euler(euler: Euler): void; + rotate_quaternion(quaternion: Quaternion): void; + scale(sx: number, sy: number, sz: number): void; + transform_point(x: number, y: number, z: number, w: number): [number, number, number, number]; + transform_points(n_components: number, stride_in: number, points_in: any | null, stride_out: number, points_out: any | null, n_points: number): void; + translate(x: number, y: number, z: number): void; + transpose(): void; + view_2d_in_frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_2d: number, width_2d: number, height_2d: number): void; + view_2d_in_perspective(fov_y: number, aspect: number, z_near: number, z_2d: number, width_2d: number, height_2d: number): void; + static equal(v1: any | null, v2: any | null): Bool; +} +export class MatrixEntry { + constructor(copy: MatrixEntry); + // Members + calculate_translation(entry1: MatrixEntry): [Bool, number, number, number]; + equal(entry1: MatrixEntry): Bool; + get(): [Matrix, Matrix]; + is_identity(): Bool; + ref(): MatrixEntry; + unref(): void; +} +export class OnscreenDirtyClosure { + constructor(copy: OnscreenDirtyClosure); +} +export class OnscreenDirtyInfo { + constructor(properties?: { + x?: number; + y?: number; + width?: number; + height?: number; + }); + constructor(copy: OnscreenDirtyInfo); + // Fields + x: number; + y: number; + width: number; + height: number; +} +export class OnscreenResizeClosure { + constructor(copy: OnscreenResizeClosure); +} +export class PollFD { + constructor(properties?: { + fd?: number; + }); + constructor(copy: PollFD); + // Fields + fd: number; +} +export class Quaternion { + constructor(properties?: { + w?: number; + x?: number; + y?: number; + z?: number; + padding0?: number; + padding1?: number; + padding2?: number; + padding3?: number; + }); + constructor(copy: Quaternion); + // Fields + w: number; + x: number; + y: number; + z: number; + padding0: number; + padding1: number; + padding2: number; + padding3: number; + // Members + copy(): Quaternion; + dot_product(b: Quaternion): number; + free(): void; + get_rotation_angle(): number; + get_rotation_axis(): number; + init(angle: number, x: number, y: number, z: number): void; + init_from_angle_vector(angle: number, axis3f: number): void; + init_from_array(array: number): void; + init_from_euler(euler: Euler): void; + init_from_matrix(matrix: Matrix): void; + init_from_quaternion(src: Quaternion): void; + init_from_x_rotation(angle: number): void; + init_from_y_rotation(angle: number): void; + init_from_z_rotation(angle: number): void; + init_identity(): void; + invert(): void; + multiply(left: Quaternion, right: Quaternion): void; + nlerp(a: Quaternion, b: Quaternion, t: number): void; + normalize(): void; + pow(exponent: number): void; + slerp(a: Quaternion, b: Quaternion, t: number): void; + squad(prev: Quaternion, a: Quaternion, b: Quaternion, next: Quaternion, t: number): void; + static equal(v1: any | null, v2: any | null): Bool; +} +export class TextureVertex { + constructor(properties?: { + x?: number; + y?: number; + z?: number; + tx?: number; + ty?: number; + color?: Color; + }); + constructor(copy: TextureVertex); + // Fields + x: number; + y: number; + z: number; + tx: number; + ty: number; + color: Color; +} +export class UserDataKey { + constructor(properties?: { + unused?: number; + }); + constructor(copy: UserDataKey); + // Fields + unused: number; +} +export class VertexP2 { + constructor(properties?: { + x?: number; + y?: number; + }); + constructor(copy: VertexP2); + // Fields + x: number; + y: number; +} +export class VertexP2C4 { + constructor(properties?: { + x?: number; + y?: number; + r?: number; + g?: number; + b?: number; + a?: number; + }); + constructor(copy: VertexP2C4); + // Fields + x: number; + y: number; + r: number; + g: number; + b: number; + a: number; +} +export class VertexP2T2 { + constructor(properties?: { + x?: number; + y?: number; + s?: number; + t?: number; + }); + constructor(copy: VertexP2T2); + // Fields + x: number; + y: number; + s: number; + t: number; +} +export class VertexP2T2C4 { + constructor(properties?: { + x?: number; + y?: number; + s?: number; + t?: number; + r?: number; + g?: number; + b?: number; + a?: number; + }); + constructor(copy: VertexP2T2C4); + // Fields + x: number; + y: number; + s: number; + t: number; + r: number; + g: number; + b: number; + a: number; +} +export class VertexP3 { + constructor(properties?: { + x?: number; + y?: number; + z?: number; + }); + constructor(copy: VertexP3); + // Fields + x: number; + y: number; + z: number; +} +export class VertexP3C4 { + constructor(properties?: { + x?: number; + y?: number; + z?: number; + r?: number; + g?: number; + b?: number; + a?: number; + }); + constructor(copy: VertexP3C4); + // Fields + x: number; + y: number; + z: number; + r: number; + g: number; + b: number; + a: number; +} +export class VertexP3T2 { + constructor(properties?: { + x?: number; + y?: number; + z?: number; + s?: number; + t?: number; + }); + constructor(copy: VertexP3T2); + // Fields + x: number; + y: number; + z: number; + s: number; + t: number; +} +export class VertexP3T2C4 { + constructor(properties?: { + x?: number; + y?: number; + z?: number; + s?: number; + t?: number; + r?: number; + g?: number; + b?: number; + a?: number; + }); + constructor(copy: VertexP3T2C4); + // Fields + x: number; + y: number; + z: number; + s: number; + t: number; + r: number; + g: number; + b: number; + a: number; +} +export interface FramebufferNamespace { + error_quark(): number; +} +export interface Framebuffer extends Object { + // Members + allocate(): Bool; + cancel_fence_callback(closure: FenceClosure): void; + clear(buffers: number, color: Color): void; + clear4f(buffers: number, red: number, green: number, blue: number, alpha: number): void; + discard_buffers(buffers: number): void; + draw_attributes(pipeline: Pipeline, mode: VerticesMode, first_vertex: number, n_vertices: number, attributes: Attribute, n_attributes: number): void; + draw_indexed_attributes(pipeline: Pipeline, mode: VerticesMode, first_vertex: number, n_vertices: number, indices: Indices, attributes: Attribute, n_attributes: number): void; + draw_multitextured_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number, tex_coords: number[], tex_coords_len: number): void; + draw_primitive(pipeline: Pipeline, primitive: Primitive): void; + draw_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number): void; + draw_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void; + draw_textured_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number, s_1: number, t_1: number, s_2: number, t_2: number): void; + draw_textured_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void; + finish(): void; + frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void; + get_alpha_bits(): number; + get_blue_bits(): number; + get_color_mask(): ColorMask; + get_context(): Context; + get_depth_bits(): number; + get_depth_texture(): Texture; + get_depth_texture_enabled(): Bool; + get_depth_write_enabled(): Bool; + get_dither_enabled(): Bool; + get_green_bits(): number; + get_height(): number; + get_is_stereo(): Bool; + get_modelview_matrix(): Matrix; + get_projection_matrix(): Matrix; + get_red_bits(): number; + get_samples_per_pixel(): number; + get_stereo_mode(): StereoMode; + get_viewport4fv(): number[]; + get_viewport_height(): number; + get_viewport_width(): number; + get_viewport_x(): number; + get_viewport_y(): number; + get_width(): number; + identity_matrix(): void; + orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void; + perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void; + pop_clip(): void; + pop_matrix(): void; + push_matrix(): void; + push_primitive_clip(primitive: Primitive, bounds_x1: number, bounds_y1: number, bounds_x2: number, bounds_y2: number): void; + push_rectangle_clip(x_1: number, y_1: number, x_2: number, y_2: number): void; + push_scissor_clip(x: number, y: number, width: number, height: number): void; + read_pixels(x: number, y: number, width: number, height: number, format: PixelFormat, pixels: number): Bool; + read_pixels_into_bitmap(x: number, y: number, source: ReadPixelsFlags, bitmap: Bitmap): Bool; + resolve_samples(): void; + resolve_samples_region(x: number, y: number, width: number, height: number): void; + rotate(angle: number, x: number, y: number, z: number): void; + rotate_euler(euler: Euler): void; + rotate_quaternion(quaternion: Quaternion): void; + scale(x: number, y: number, z: number): void; + set_color_mask(color_mask: ColorMask): void; + set_depth_texture_enabled(enabled: Bool): void; + set_depth_write_enabled(depth_write_enabled: Bool): void; + set_dither_enabled(dither_enabled: Bool): void; + set_modelview_matrix(matrix: Matrix): void; + set_projection_matrix(matrix: Matrix): void; + set_samples_per_pixel(samples_per_pixel: number): void; + set_stereo_mode(stereo_mode: StereoMode): void; + set_viewport(x: number, y: number, width: number, height: number): void; + transform(matrix: Matrix): void; + translate(x: number, y: number, z: number): void; +} + +export const Framebuffer: FramebufferNamespace; +export interface Texture extends Object { + // Members + allocate(): Bool; + get_components(): TextureComponents; + get_data(format: PixelFormat, rowstride: number, data: number): number; + get_gl_texture(): [Bool, number | null, number | null]; + get_height(): number; + get_max_waste(): number; + get_premultiplied(): Bool; + get_width(): number; + is_sliced(): Bool; + set_components(components: TextureComponents): void; + set_data(format: PixelFormat, rowstride: number, data: number, level: number): Bool; + set_premultiplied(premultiplied: Bool): void; + set_region(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, width: number, height: number, format: PixelFormat, rowstride: number, data: number): Bool; + set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): Bool; +} + +export type Angle = number; + +export type Bool = number; + +export type Buffer = void; + +export type Handle = any; + +export type MetaTexture = void; + +export type PrimitiveTexture = void; + +export type UserDataDestroyCallback = GLib.DestroyNotify; \ No newline at end of file diff --git a/gi/gck.d.ts b/gi/gck.d.ts new file mode 100644 index 0000000..2fb77b5 --- /dev/null +++ b/gi/gck.d.ts @@ -0,0 +1,641 @@ + + +/** + * Gck + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +type GType = object; + +export const INVALID: number; + +export const MAJOR_VERSION: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const URI_FOR_MODULE_WITH_VERSION: number; + +export const URI_FOR_OBJECT_ON_TOKEN: number; + +export const URI_FOR_OBJECT_ON_TOKEN_AND_MODULE: number; + +export const VENDOR_CODE: number; + +export function builder_unref(builder: any | null): void; + +export function error_get_quark(): GLib.Quark; + +export function list_get_boxed_type(): GType; + +export function message_from_rv(rv: number): string; + +export function modules_enumerate_objects(modules: GLib.List, attrs: Attributes, session_options: SessionOptions): Enumerator; + +export function modules_enumerate_uri(modules: GLib.List, uri: string, session_options: SessionOptions): Enumerator; + +export function modules_get_slots(modules: GLib.List, token_present: boolean): GLib.List; + +export function modules_initialize_registered(cancellable: Gio.Cancellable | null): GLib.List; + +export function modules_initialize_registered_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + +export function modules_initialize_registered_finish(result: Gio.AsyncResult): GLib.List; + +export function modules_object_for_uri(modules: GLib.List, uri: string, session_options: SessionOptions): Object | null; + +export function modules_objects_for_uri(modules: GLib.List, uri: string, session_options: SessionOptions): GLib.List; + +export function modules_token_for_uri(modules: GLib.List, uri: string): Slot; + +export function modules_tokens_for_uri(modules: GLib.List, uri: string): GLib.List; + +export function objects_from_handle_array(session: Session, object_handles: number[]): GLib.List; + +export function slots_enumerate_objects(slots: GLib.List, match: Attributes, options: SessionOptions): Enumerator; + +export function uri_build(uri_data: UriData, flags: UriFlags): string; + +export function uri_error_get_quark(): GLib.Quark; + +export function uri_parse(string: string, flags: UriFlags): UriData; + +export function value_to_boolean(value: (Uint8Array | string), result: boolean): boolean; + +export function value_to_ulong(value: (Uint8Array | string), result: number): boolean; + +export type Allocator = (data: any | null, length: number) => any | null; +export enum BuilderFlags { + NONE = 0, + SECURE_MEMORY = 1, +} +export enum Error { + PROBLEM = -951891199, +} +export enum UriError { + BAD_SCHEME = 1, + BAD_ENCODING = 2, + BAD_SYNTAX = 3, + BAD_VERSION = 4, + NOT_FOUND = 5, +} +export enum SessionOptions { + READ_ONLY = 0, + READ_WRITE = 2, + LOGIN_USER = 4, + AUTHENTICATE = 8, +} +export enum UriFlags { + FOR_OBJECT = 2, + FOR_TOKEN = 4, + FOR_MODULE = 8, + WITH_VERSION = 16, + FOR_ANY = 65535, +} +export module Enumerator { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + chained: Enumerator; + interaction: Gio.TlsInteraction; + } +} +export class Enumerator extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + chained: Enumerator; + interaction: Gio.TlsInteraction; + // Members + get_chained(): Enumerator | null; + get_interaction(): Gio.TlsInteraction | null; + get_object_type(): GType; + next(cancellable: Gio.Cancellable | null): Object | null; + next_async(max_objects: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + next_finish(result: Gio.AsyncResult): GLib.List; + next_n(max_objects: number, cancellable: Gio.Cancellable | null): GLib.List; + set_chained(chained: Enumerator | null): void; + set_interaction(interaction: Gio.TlsInteraction | null): void; + set_object_type(object_type: GType, attr_types: number[]): void; +} +export module Module { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + functions: any; + path: string; + } +} +export class Module extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + functions: any; + path: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'authenticate-object', callback: (_source: this, object: Object, label: string, password: any | null) => boolean): number; + connect_after(signal: 'authenticate-object', callback: (_source: this, object: Object, label: string, password: any | null) => boolean): number; + emit(signal: 'authenticate-object', object: Object, label: string, password: any | null): void; + connect(signal: 'authenticate-slot', callback: (_source: this, slot: Slot, string: string, password: any | null) => boolean): number; + connect_after(signal: 'authenticate-slot', callback: (_source: this, slot: Slot, string: string, password: any | null) => boolean): number; + emit(signal: 'authenticate-slot', slot: Slot, string: string, password: any | null): void; + // Members + equal(module2: Module): boolean; + get_info(): ModuleInfo; + get_path(): string; + get_slots(token_present: boolean): GLib.List; + hash(): number; + match(uri: UriData): boolean; + vfunc_authenticate_object(object: Object, label: string, password: string): boolean; + vfunc_authenticate_slot(slot: Slot, label: string, password: string): boolean; + static initialize(path: string, cancellable: Gio.Cancellable | null): Module; + static initialize_async(path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static initialize_finish(result: Gio.AsyncResult): Module | null; +} +export module Object { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + handle: number; + module: Module; + session: Session; + } +} +export class Object extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + handle: number; + module: Module; + session: Session; + // Members + cache_lookup(attr_types: number[], cancellable: Gio.Cancellable | null): Attributes; + cache_lookup_async(attr_types: number[], cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + cache_lookup_finish(result: Gio.AsyncResult): Attributes; + destroy(cancellable: Gio.Cancellable | null): boolean; + destroy_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + destroy_finish(result: Gio.AsyncResult): boolean; + equal(object2: Object): boolean; + get_async(attr_types: number[], cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + get_data(attr_type: number, cancellable: Gio.Cancellable | null): Uint8Array; + get_data(...args: never[]): never; + get_data_async(attr_type: number, allocator: Allocator, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + get_data_finish(result: Gio.AsyncResult): Uint8Array; + get_finish(result: Gio.AsyncResult): Attributes; + get_full(attr_types: number[], cancellable: Gio.Cancellable | null): Attributes; + get_handle(): number; + get_module(): Module; + get_session(): Session; + get_template(attr_type: number, cancellable: Gio.Cancellable | null): Attributes; + get_template_async(attr_type: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + get_template_finish(result: Gio.AsyncResult): Attributes; + hash(): number; + set(attrs: Attributes, cancellable: Gio.Cancellable | null): boolean; + set(...args: never[]): never; + set_async(attrs: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + set_finish(result: Gio.AsyncResult): boolean; + set_template(attr_type: number, attrs: Attributes, cancellable: Gio.Cancellable | null): boolean; + set_template_async(attr_type: number, attrs: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + set_template_finish(result: Gio.AsyncResult): boolean; + static from_handle(session: Session, object_handle: number): Object; +} +export module Password { + export interface ConstructorProperties extends Gio.TlsPassword.ConstructorProperties { + [key: string]: any; + key: Object; + module: Module; + token: Slot; + } +} +export class Password extends Gio.TlsPassword { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + key: Object; + module: Module; + token: Slot; + // Members + get_key(): Object; + get_module(): Module; + get_token(): Slot; +} +export module Session { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + app_data: any; + handle: number; + interaction: Gio.TlsInteraction; + module: Module; + opening_flags: number; + options: SessionOptions; + slot: Slot; + } +} +export class Session extends GObject.Object implements Gio.AsyncInitable, Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + app_data: any; + handle: number; + interaction: Gio.TlsInteraction; + module: Module; + opening_flags: number; + options: SessionOptions; + slot: Slot; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'discard-handle', callback: (_source: this, handle: number) => boolean): number; + connect_after(signal: 'discard-handle', callback: (_source: this, handle: number) => boolean): number; + emit(signal: 'discard-handle', handle: number): void; + // Members + create_object(attrs: Attributes, cancellable: Gio.Cancellable | null): Object; + create_object_async(attrs: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + create_object_finish(result: Gio.AsyncResult): Object; + decrypt(key: Object, mech_type: number, input: (Uint8Array | string), cancellable: Gio.Cancellable | null): Uint8Array; + decrypt_async(key: Object, mechanism: Mechanism, input: (Uint8Array | string), cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + decrypt_finish(result: Gio.AsyncResult): Uint8Array; + decrypt_full(key: Object, mechanism: Mechanism, input: (Uint8Array | string), cancellable: Gio.Cancellable | null): Uint8Array; + derive_key(base: Object, mech_type: number, attrs: Attributes, cancellable: Gio.Cancellable | null): Object; + derive_key_async(base: Object, mechanism: Mechanism, attrs: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + derive_key_finish(result: Gio.AsyncResult): Object; + derive_key_full(base: Object, mechanism: Mechanism, attrs: Attributes, cancellable: Gio.Cancellable | null): Object; + encrypt(key: Object, mech_type: number, input: (Uint8Array | string), cancellable: Gio.Cancellable | null): Uint8Array; + encrypt_async(key: Object, mechanism: Mechanism, input: (Uint8Array | string), cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + encrypt_finish(result: Gio.AsyncResult): Uint8Array; + encrypt_full(key: Object, mechanism: Mechanism, input: (Uint8Array | string), cancellable: Gio.Cancellable | null): Uint8Array; + enumerate_objects(match: Attributes): Enumerator; + find_handles(match: Attributes, cancellable: Gio.Cancellable | null): number[] | null; + find_handles_async(match: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + find_handles_finish(result: Gio.AsyncResult): number[] | null; + find_objects(match: Attributes, cancellable: Gio.Cancellable | null): GLib.List; + find_objects_async(match: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + find_objects_finish(result: Gio.AsyncResult): GLib.List; + generate_key_pair(mech_type: number, public_attrs: Attributes, private_attrs: Attributes, cancellable: Gio.Cancellable | null): [boolean, Object | null, Object | null]; + generate_key_pair_async(mechanism: Mechanism, public_attrs: Attributes, private_attrs: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + generate_key_pair_finish(result: Gio.AsyncResult): [boolean, Object | null, Object | null]; + generate_key_pair_full(mechanism: Mechanism, public_attrs: Attributes, private_attrs: Attributes, cancellable: Gio.Cancellable | null): [boolean, Object | null, Object | null]; + get_handle(): number; + get_info(): SessionInfo; + get_interaction(): Gio.TlsInteraction | null; + get_module(): Module; + get_options(): SessionOptions; + get_slot(): Slot; + get_state(): number; + init_pin(pin: (Uint8Array | string) | null, cancellable: Gio.Cancellable | null): boolean; + init_pin_async(pin: (Uint8Array | string) | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + init_pin_finish(result: Gio.AsyncResult): boolean; + login(user_type: number, pin: (Uint8Array | string) | null, cancellable: Gio.Cancellable | null): boolean; + login_async(user_type: number, pin: (Uint8Array | string) | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + login_finish(result: Gio.AsyncResult): boolean; + login_interactive(user_type: number, interaction: Gio.TlsInteraction | null, cancellable: Gio.Cancellable | null): boolean; + login_interactive_async(user_type: number, interaction: Gio.TlsInteraction | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + login_interactive_finish(result: Gio.AsyncResult): boolean; + logout(cancellable: Gio.Cancellable | null): boolean; + logout_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + logout_finish(result: Gio.AsyncResult): boolean; + set_interaction(interaction: Gio.TlsInteraction | null): void; + set_pin(old_pin: (Uint8Array | string) | null, new_pin: (Uint8Array | string) | null, cancellable: Gio.Cancellable | null): boolean; + set_pin_async(old_pin: (Uint8Array | string) | null, n_old_pin: number, new_pin: (Uint8Array | string) | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + set_pin_finish(result: Gio.AsyncResult): boolean; + sign(key: Object, mech_type: number, input: (Uint8Array | string), cancellable: Gio.Cancellable | null): Uint8Array; + sign_async(key: Object, mechanism: Mechanism, input: (Uint8Array | string), cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + sign_finish(result: Gio.AsyncResult): Uint8Array; + sign_full(key: Object, mechanism: Mechanism, input: (Uint8Array | string), n_result: number, cancellable: Gio.Cancellable | null): number; + unwrap_key(wrapper: Object, mech_type: number, input: (Uint8Array | string), attrs: Attributes, cancellable: Gio.Cancellable | null): Object; + unwrap_key_async(wrapper: Object, mechanism: Mechanism, input: (Uint8Array | string), attrs: Attributes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + unwrap_key_finish(result: Gio.AsyncResult): Object; + unwrap_key_full(wrapper: Object, mechanism: Mechanism, input: (Uint8Array | string), attrs: Attributes, cancellable: Gio.Cancellable | null): Object; + verify(key: Object, mech_type: number, input: (Uint8Array | string), signature: (Uint8Array | string), cancellable: Gio.Cancellable | null): boolean; + verify_async(key: Object, mechanism: Mechanism, input: (Uint8Array | string), signature: (Uint8Array | string), cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + verify_finish(result: Gio.AsyncResult): boolean; + verify_full(key: Object, mechanism: Mechanism, input: (Uint8Array | string), signature: (Uint8Array | string), cancellable: Gio.Cancellable | null): boolean; + wrap_key(wrapper: Object, mech_type: number, wrapped: Object, cancellable: Gio.Cancellable | null): Uint8Array; + wrap_key_async(wrapper: Object, mechanism: Mechanism, wrapped: Object, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + wrap_key_finish(result: Gio.AsyncResult): Uint8Array; + wrap_key_full(wrapper: Object, mechanism: Mechanism, wrapped: Object, cancellable: Gio.Cancellable | null): Uint8Array; + static from_handle(slot: Slot, session_handle: number, options: SessionOptions): Session; + static open(slot: Slot, options: SessionOptions, interaction: Gio.TlsInteraction | null, cancellable: Gio.Cancellable | null): Session; + static open_async(slot: Slot, options: SessionOptions, interaction: Gio.TlsInteraction | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static open_finish(result: Gio.AsyncResult): Session; + // Implemented Members + init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + init_finish(res: Gio.AsyncResult): boolean; + new_finish(res: Gio.AsyncResult): T; + vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_init_finish(res: Gio.AsyncResult): boolean; + init(cancellable: Gio.Cancellable | null): boolean; + vfunc_init(cancellable: Gio.Cancellable | null): boolean; +} +export module Slot { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + handle: number; + module: Module; + } +} +export class Slot extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + handle: number; + module: Module; + // Members + enumerate_objects(match: Attributes, options: SessionOptions): Enumerator; + equal(slot2: Slot): boolean; + get_handle(): number; + get_info(): SlotInfo; + get_mechanism_info(mech_type: number): MechanismInfo; + get_mechanisms(): number[]; + get_module(): Module; + get_token_info(): TokenInfo; + has_flags(flags: number): boolean; + hash(): number; + match(uri: UriData): boolean; + open_session(options: SessionOptions, cancellable: Gio.Cancellable | null): Session; + open_session_async(options: SessionOptions, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + open_session_finish(result: Gio.AsyncResult): Session; + static from_handle(module: Module, slot_id: number): Slot; +} +export class Attribute { + constructor(attr_type: number, value: number, length: number); + constructor(copy: Attribute); + // Fields + type: number; + value: Uint8Array; + length: number; + // Constructors + static ["new"](attr_type: number, value: number, length: number): Attribute; + static new_boolean(attr_type: number, value: boolean): Attribute; + static new_date(attr_type: number, value: GLib.Date): Attribute; + static new_empty(attr_type: number): Attribute; + static new_invalid(attr_type: number): Attribute; + static new_string(attr_type: number, value: string): Attribute; + static new_ulong(attr_type: number, value: number): Attribute; + // Members + clear(): void; + dump(): void; + dup(): Attribute; + equal(attr2: Attribute): boolean; + free(): void; + get_boolean(): boolean; + get_data(): Uint8Array; + get_date(value: GLib.Date): void; + get_string(): string | null; + get_ulong(): number; + hash(): number; + init_copy(src: Attribute): void; + is_invalid(): boolean; +} +export class Attributes { + constructor(reserved: number); + constructor(copy: Attributes); + // Constructors + static ["new"](reserved: number): Attributes; + // Members + at(index: number): Attribute; + contains(match: Attribute): boolean; + count(): number; + dump(): void; + find(attr_type: number): Attribute; + find_boolean(attr_type: number): [boolean, boolean]; + find_date(attr_type: number): [boolean, GLib.Date]; + find_string(attr_type: number): [boolean, string]; + find_ulong(attr_type: number): [boolean, number]; + ref(): Attributes; + ref_sink(): Attributes; + to_string(): string; + unref(): void; +} +export class Builder { + constructor(flags: BuilderFlags); + constructor(copy: Builder); + // Fields + x: number[]; + // Constructors + static ["new"](flags: BuilderFlags): Builder; + // Members + add_all(attrs: Attributes): void; + add_attribute(attr: Attribute): void; + add_boolean(attr_type: number, value: boolean): void; + add_data(attr_type: number, value: (Uint8Array | string) | null): void; + add_date(attr_type: number, value: GLib.Date): void; + add_empty(attr_type: number): void; + add_invalid(attr_type: number): void; + add_only(attrs: Attributes, only_types: number[]): void; + add_string(attr_type: number, value: string | null): void; + add_ulong(attr_type: number, value: number): void; + clear(): void; + copy(): Builder; + end(): Attributes; + find(attr_type: number): Attribute; + find_boolean(attr_type: number): [boolean, boolean]; + find_date(attr_type: number): [boolean, GLib.Date]; + find_string(attr_type: number): [boolean, string]; + find_ulong(attr_type: number): [boolean, number]; + init(): void; + init_full(flags: BuilderFlags): void; + ref(): Builder; + set_all(attrs: Attributes): void; + set_boolean(attr_type: number, value: boolean): void; + set_data(attr_type: number, value: (Uint8Array | string) | null): void; + set_date(attr_type: number, value: GLib.Date): void; + set_empty(attr_type: number): void; + set_invalid(attr_type: number): void; + set_string(attr_type: number, value: string): void; + set_ulong(attr_type: number, value: number): void; + steal(): Attributes; + take_data(attr_type: number, value: (Uint8Array | string) | null): void; + static unref(builder: any | null): void; +} +export class EnumeratorPrivate { + constructor(copy: EnumeratorPrivate); +} +export class Mechanism { + constructor(properties?: { + type?: number; + parameter?: any; + n_parameter?: number; + }); + constructor(copy: Mechanism); + // Fields + type: number; + parameter: any; + n_parameter: number; +} +export class MechanismInfo { + constructor(properties?: { + min_key_size?: number; + max_key_size?: number; + flags?: number; + }); + constructor(copy: MechanismInfo); + // Fields + min_key_size: number; + max_key_size: number; + flags: number; + // Members + copy(): MechanismInfo; + free(): void; +} +export class ModuleInfo { + constructor(properties?: { + pkcs11_version_major?: number; + pkcs11_version_minor?: number; + manufacturer_id?: string; + flags?: number; + library_description?: string; + library_version_major?: number; + library_version_minor?: number; + }); + constructor(copy: ModuleInfo); + // Fields + pkcs11_version_major: number; + pkcs11_version_minor: number; + manufacturer_id: string; + flags: number; + library_description: string; + library_version_major: number; + library_version_minor: number; + // Members + copy(): ModuleInfo; + free(): void; +} +export class ModulePrivate { + constructor(copy: ModulePrivate); +} +export class ObjectPrivate { + constructor(copy: ObjectPrivate); +} +export class PasswordPrivate { + constructor(copy: PasswordPrivate); +} +export class SessionInfo { + constructor(properties?: { + slot_id?: number; + state?: number; + flags?: number; + device_error?: number; + }); + constructor(copy: SessionInfo); + // Fields + slot_id: number; + state: number; + flags: number; + device_error: number; + // Members + copy(): SessionInfo; + free(): void; +} +export class SessionPrivate { + constructor(copy: SessionPrivate); +} +export class SlotInfo { + constructor(properties?: { + slot_description?: string; + manufacturer_id?: string; + flags?: number; + hardware_version_major?: number; + hardware_version_minor?: number; + firmware_version_major?: number; + firmware_version_minor?: number; + }); + constructor(copy: SlotInfo); + // Fields + slot_description: string; + manufacturer_id: string; + flags: number; + hardware_version_major: number; + hardware_version_minor: number; + firmware_version_major: number; + firmware_version_minor: number; + // Members + copy(): SlotInfo; + free(): void; +} +export class SlotPrivate { + constructor(copy: SlotPrivate); +} +export class TokenInfo { + constructor(properties?: { + label?: string; + manufacturer_id?: string; + model?: string; + serial_number?: string; + flags?: number; + max_session_count?: number; + session_count?: number; + max_rw_session_count?: number; + rw_session_count?: number; + max_pin_len?: number; + min_pin_len?: number; + total_public_memory?: number; + free_public_memory?: number; + total_private_memory?: number; + free_private_memory?: number; + hardware_version_major?: number; + hardware_version_minor?: number; + firmware_version_major?: number; + firmware_version_minor?: number; + utc_time?: number; + }); + constructor(copy: TokenInfo); + // Fields + label: string; + manufacturer_id: string; + model: string; + serial_number: string; + flags: number; + max_session_count: number; + session_count: number; + max_rw_session_count: number; + rw_session_count: number; + max_pin_len: number; + min_pin_len: number; + total_public_memory: number; + free_public_memory: number; + total_private_memory: number; + free_private_memory: number; + hardware_version_major: number; + hardware_version_minor: number; + firmware_version_major: number; + firmware_version_minor: number; + utc_time: number; + // Members + copy(): TokenInfo; + free(): void; +} +export class UriData { + constructor(); + constructor(copy: UriData); + // Fields + any_unrecognized: boolean; + module_info: ModuleInfo; + token_info: TokenInfo; + attributes: Attributes; + dummy: any[]; + // Constructors + static ["new"](): UriData; + // Members + copy(): UriData; + free(): void; +} +export interface ObjectCacheNamespace { + $gtype: GType; +} +export interface ObjectCache extends Object { + // Properties + attributes: Attributes; + // Members + fill(attrs: Attributes): void; + set_attributes(attrs: Attributes | null): void; + update(attr_types: number[], cancellable: Gio.Cancellable | null): boolean; + update_async(attr_types: number[], cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + update_finish(result: Gio.AsyncResult): boolean; + vfunc_fill(attrs: Attributes): void; +} + +export const ObjectCache: ObjectCacheNamespace; \ No newline at end of file diff --git a/gi/gcr.d.ts b/gi/gcr.d.ts new file mode 100644 index 0000000..9f27f4b --- /dev/null +++ b/gi/gcr.d.ts @@ -0,0 +1,861 @@ + + +/** + * Gcr + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as Gck from "gck"; +type GType = object; + +export const ICON_CERTIFICATE: string; + +export const ICON_GNUPG: string; + +export const ICON_HOME_DIRECTORY: string; + +export const ICON_KEY: string; + +export const ICON_KEY_PAIR: string; + +export const ICON_PASSWORD: string; + +export const ICON_SMART_CARD: string; + +export const MAJOR_VERSION: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const PURPOSE_CLIENT_AUTH: string; + +export const PURPOSE_CODE_SIGNING: string; + +export const PURPOSE_EMAIL: string; + +export const PURPOSE_SERVER_AUTH: string; + +export const SECRET_EXCHANGE_PROTOCOL_1: string; + +export const UNLOCK_OPTION_ALWAYS: string; + +export const UNLOCK_OPTION_IDLE: string; + +export const UNLOCK_OPTION_SESSION: string; + +export const UNLOCK_OPTION_TIMEOUT: string; + +export function certificate_compare(first: Comparable | null, other: Comparable | null): number; + +export function data_error_get_domain(): GLib.Quark; + +export function fingerprint_from_attributes(attrs: Gck.Attributes, checksum_type: GLib.ChecksumType): Uint8Array | null; + +export function fingerprint_from_subject_public_key_info(key_info: (Uint8Array | string), checksum_type: GLib.ChecksumType): Uint8Array | null; + +export function icon_for_token(token_info: Gck.TokenInfo): Gio.Icon; + +export function importer_create_for_parsed(parsed: Parsed): GLib.List; + +export function importer_queue_and_filter_for_parsed(importers: GLib.List, parsed: Parsed): GLib.List; + +export function importer_register(importer_type: GType, attrs: Gck.Attributes): void; + +export function importer_register_well_known(): void; + +export function mock_prompter_disconnect(): void; + +export function mock_prompter_expect_close(): void; + +export function mock_prompter_expect_confirm_cancel(): void; + +export function mock_prompter_expect_password_cancel(): void; + +export function mock_prompter_get_delay_msec(): number; + +export function mock_prompter_is_expecting(): boolean; + +export function mock_prompter_is_prompting(): boolean; + +export function mock_prompter_set_delay_msec(delay_msec: number): void; + +export function mock_prompter_start(): string; + +export function mock_prompter_stop(): void; + +export function parsed_unref(parsed: any | null): void; + +export function pkcs11_add_module(module: Gck.Module): void; + +export function pkcs11_add_module_from_file(module_path: string, unused: any | null): boolean; + +export function pkcs11_get_modules(): GLib.List; + +export function pkcs11_get_trust_lookup_slots(): GLib.List; + +export function pkcs11_get_trust_lookup_uris(): string[] | null; + +export function pkcs11_get_trust_store_slot(): Gck.Slot | null; + +export function pkcs11_get_trust_store_uri(): string | null; + +export function pkcs11_initialize(cancellable: Gio.Cancellable | null): boolean; + +export function pkcs11_initialize_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + +export function pkcs11_initialize_finish(result: Gio.AsyncResult): boolean; + +export function pkcs11_set_modules(modules: GLib.List): void; + +export function pkcs11_set_trust_lookup_uris(pkcs11_uris: string | null): void; + +export function pkcs11_set_trust_store_uri(pkcs11_uri: string | null): void; + +export function trust_add_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean; + +export function trust_add_pinned_certificate_async(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + +export function trust_add_pinned_certificate_finish(result: Gio.AsyncResult): boolean; + +export function trust_is_certificate_anchored(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null): boolean; + +export function trust_is_certificate_anchored_async(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + +export function trust_is_certificate_anchored_finish(result: Gio.AsyncResult): boolean; + +export function trust_is_certificate_pinned(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean; + +export function trust_is_certificate_pinned_async(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + +export function trust_is_certificate_pinned_finish(result: Gio.AsyncResult): boolean; + +export function trust_remove_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean; + +export function trust_remove_pinned_certificate_async(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + +export function trust_remove_pinned_certificate_finish(result: Gio.AsyncResult): boolean; + +export type FilterCollectionFunc = (object: GObject.Object) => boolean; +export enum CertificateChainStatus { + UNKNOWN = 0, + INCOMPLETE = 1, + DISTRUSTED = 2, + SELFSIGNED = 3, + PINNED = 4, + ANCHORED = 5, +} +export enum CertificateRequestFormat { + CERTIFICATE_REQUEST_PKCS10 = 1, +} +export enum DataError { + FAILURE = -1, + UNRECOGNIZED = 1, + CANCELLED = 2, + LOCKED = 3, +} +export enum DataFormat { + ALL = -1, + INVALID = 0, + DER_PRIVATE_KEY = 100, + DER_PRIVATE_KEY_RSA = 101, + DER_PRIVATE_KEY_DSA = 102, + DER_PRIVATE_KEY_EC = 103, + DER_SUBJECT_PUBLIC_KEY = 150, + DER_CERTIFICATE_X509 = 200, + DER_PKCS7 = 300, + DER_PKCS8 = 400, + DER_PKCS8_PLAIN = 401, + DER_PKCS8_ENCRYPTED = 402, + DER_PKCS10 = 450, + DER_SPKAC = 455, + BASE64_SPKAC = 456, + DER_PKCS12 = 500, + OPENSSH_PUBLIC = 600, + OPENPGP_PACKET = 700, + OPENPGP_ARMOR = 701, + PEM = 1000, + PEM_PRIVATE_KEY_RSA = 1001, + PEM_PRIVATE_KEY_DSA = 1002, + PEM_CERTIFICATE_X509 = 1003, + PEM_PKCS7 = 1004, + PEM_PKCS8_PLAIN = 1005, + PEM_PKCS8_ENCRYPTED = 1006, + PEM_PKCS12 = 1007, + PEM_PRIVATE_KEY = 1008, + PEM_PKCS10 = 1009, + PEM_PRIVATE_KEY_EC = 1010, + PEM_PUBLIC_KEY = 1011, +} +export enum PromptReply { + CANCEL = 0, + CONTINUE = 1, +} +export enum SystemPromptError { + SYSTEM_PROMPT_IN_PROGRESS = 1, +} +export enum SystemPrompterMode { + SINGLE = 0, + MULTIPLE = 1, +} +export enum CertificateChainFlags { + NONE = 0, + NO_LOOKUPS = 1, +} +export enum ColumnFlags { + NONE = 0, + HIDDEN = 2, + SORTABLE = 4, +} +export module CertificateChain { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + length: number; + } +} +export class CertificateChain extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + length: number; + // Constructors + static ["new"](): CertificateChain; + // Members + add(certificate: Certificate): void; + build(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null): boolean; + build_async(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + build_finish(result: Gio.AsyncResult): boolean; + get_anchor(): Certificate; + get_certificate(index: number): Certificate; + get_endpoint(): Certificate; + get_length(): number; + get_status(): CertificateChainStatus; +} +export module CertificateRequest { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + private_key: Gck.Object; + } +} +export class CertificateRequest extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + private_key: Gck.Object; + // Members + complete(cancellable: Gio.Cancellable | null): boolean; + complete_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + complete_finish(result: Gio.AsyncResult): boolean; + encode(textual: boolean): Uint8Array; + get_format(): CertificateRequestFormat; + get_private_key(): Gck.Object; + set_cn(cn: string): void; + static capable(private_key: Gck.Object, cancellable: Gio.Cancellable | null): boolean; + static capable_async(private_key: Gck.Object, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static capable_finish(result: Gio.AsyncResult): boolean; + static prepare(format: CertificateRequestFormat, private_key: Gck.Object): CertificateRequest; +} +export module FilterCollection { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + underlying: Collection; + } +} +export class FilterCollection extends GObject.Object implements Collection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + underlying: Collection; + // Constructors + static new_with_callback(underlying: Collection, callback: FilterCollectionFunc | null, destroy_func: GLib.DestroyNotify): FilterCollection; + // Members + get_underlying(): Collection; + refilter(): void; + set_callback(callback: FilterCollectionFunc | null, destroy_func: GLib.DestroyNotify): void; + // Implemented Members + contains(object: GObject.Object): boolean; + emit_added(object: GObject.Object): void; + emit_removed(object: GObject.Object): void; + get_length(): number; + get_objects(): GLib.List; + vfunc_added(object: GObject.Object): void; + vfunc_contains(object: GObject.Object): boolean; + vfunc_get_length(): number; + vfunc_get_objects(): GLib.List; + vfunc_removed(object: GObject.Object): void; +} +export module Parser { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + parsed_attributes: Gck.Attributes; + parsed_description: string; + parsed_label: string; + } +} +export class Parser extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + parsed_attributes: Gck.Attributes; + parsed_description: string; + parsed_label: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'authenticate', callback: (_source: this, count: number) => boolean): number; + connect_after(signal: 'authenticate', callback: (_source: this, count: number) => boolean): number; + emit(signal: 'authenticate', count: number): void; + connect(signal: 'parsed', callback: (_source: this) => void): number; + connect_after(signal: 'parsed', callback: (_source: this) => void): number; + emit(signal: 'parsed'): void; + // Constructors + static ["new"](): Parser; + // Members + add_password(password: string | null): void; + format_disable(format: DataFormat): void; + format_enable(format: DataFormat): void; + format_supported(format: DataFormat): boolean; + get_filename(): string; + get_parsed(): Parsed; + get_parsed_attributes(): Gck.Attributes | null; + get_parsed_block(): Uint8Array | null; + get_parsed_bytes(): GLib.Bytes; + get_parsed_description(): string | null; + get_parsed_format(): DataFormat; + get_parsed_label(): string | null; + parse_bytes(data: (GLib.Bytes | Uint8Array)): boolean; + parse_data(data: (Uint8Array | string)): boolean; + parse_stream(input: Gio.InputStream, cancellable: Gio.Cancellable | null): boolean; + parse_stream_async(input: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + parse_stream_finish(result: Gio.AsyncResult): boolean; + set_filename(filename: string | null): void; + vfunc_authenticate(count: number): boolean; + vfunc_parsed(): void; +} +export module Pkcs11Certificate { + export interface ConstructorProperties extends Gck.Object.ConstructorProperties { + [key: string]: any; + attributes: Gck.Attributes; + } +} +export class Pkcs11Certificate extends Gck.Object implements Certificate, Comparable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + attributes: Gck.Attributes; + // Implemented Properties + description: string; + expiry: GLib.Date; + icon: Gio.Icon; + issuer: string; + label: string; + markup: string; + subject: string; + // Members + get_attributes(): Gck.Attributes; + static lookup_issuer(certificate: Certificate, cancellable: Gio.Cancellable | null): Certificate; + static lookup_issuer_async(certificate: Certificate, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static lookup_issuer_finish(result: Gio.AsyncResult): Certificate; + // Implemented Members + get_basic_constraints(): [boolean, boolean | null, number | null]; + get_der_data(): Uint8Array; + get_expiry_date(): GLib.Date; + get_fingerprint(type: GLib.ChecksumType): Uint8Array; + get_fingerprint_hex(type: GLib.ChecksumType): string; + get_issued_date(): GLib.Date; + get_issuer_cn(): string; + get_issuer_dn(): string; + get_issuer_name(): string; + get_issuer_part(part: string): string | null; + get_issuer_raw(): Uint8Array; + get_key_size(): number; + get_markup_text(): string; + get_serial_number(): Uint8Array; + get_serial_number_hex(): string; + get_subject_cn(): string; + get_subject_dn(): string; + get_subject_name(): string; + get_subject_part(part: string): string | null; + get_subject_raw(): Uint8Array; + is_issuer(issuer: Certificate): boolean; + mixin_emit_notify(): void; + vfunc_get_der_data(): Uint8Array; + compare(other: Comparable | null): number; + compare(...args: never[]): never; + vfunc_compare(other: Comparable | null): number; +} +export module SecretExchange { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + protocol: string; + } +} +export class SecretExchange extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + protocol: string; + // Constructors + static ["new"](protocol: string | null): SecretExchange; + // Members + begin(): string; + get_protocol(): string; + get_secret(): string[]; + receive(exchange: string): boolean; + send(secret: string | null, secret_len: number): string; + vfunc_derive_transport_key(peer: number, n_peer: number): boolean; + vfunc_generate_exchange_key(scheme: string, public_key: number, n_public_key: number): boolean; +} +export module SimpleCertificate { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class SimpleCertificate extends GObject.Object implements Certificate, Comparable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Implemented Properties + description: string; + expiry: GLib.Date; + icon: Gio.Icon; + issuer: string; + label: string; + markup: string; + subject: string; + // Constructors + static ["new"](data: (Uint8Array | string)): SimpleCertificate; + // Implemented Members + get_basic_constraints(): [boolean, boolean | null, number | null]; + get_der_data(): Uint8Array; + get_expiry_date(): GLib.Date; + get_fingerprint(type: GLib.ChecksumType): Uint8Array; + get_fingerprint_hex(type: GLib.ChecksumType): string; + get_issued_date(): GLib.Date; + get_issuer_cn(): string; + get_issuer_dn(): string; + get_issuer_name(): string; + get_issuer_part(part: string): string | null; + get_issuer_raw(): Uint8Array; + get_key_size(): number; + get_markup_text(): string; + get_serial_number(): Uint8Array; + get_serial_number_hex(): string; + get_subject_cn(): string; + get_subject_dn(): string; + get_subject_name(): string; + get_subject_part(part: string): string | null; + get_subject_raw(): Uint8Array; + is_issuer(issuer: Certificate): boolean; + mixin_emit_notify(): void; + vfunc_get_der_data(): Uint8Array; + compare(other: Comparable | null): number; + compare(...args: never[]): never; + vfunc_compare(other: Comparable | null): number; +} +export module SimpleCollection { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class SimpleCollection extends GObject.Object implements Collection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): SimpleCollection; + // Members + add(object: GObject.Object): void; + remove(object: GObject.Object): void; + // Implemented Members + contains(object: GObject.Object): boolean; + emit_added(object: GObject.Object): void; + emit_removed(object: GObject.Object): void; + get_length(): number; + get_objects(): GLib.List; + vfunc_added(object: GObject.Object): void; + vfunc_contains(object: GObject.Object): boolean; + vfunc_get_length(): number; + vfunc_get_objects(): GLib.List; + vfunc_removed(object: GObject.Object): void; +} +export module SshAskpass { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + interaction: Gio.TlsInteraction; + } +} +export class SshAskpass extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + interaction: Gio.TlsInteraction; + // Constructors + static ["new"](interaction: Gio.TlsInteraction): SshAskpass; + // Members + get_interaction(): Gio.TlsInteraction; + static child_setup(askpass: any | null): void; +} +export module SystemPrompt { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + bus_name: string; + secret_exchange: SecretExchange; + timeout_seconds: number; + } +} +export class SystemPrompt extends GObject.Object implements Prompt, Gio.AsyncInitable, Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + bus_name: string; + secret_exchange: SecretExchange; + timeout_seconds: number; + // Implemented Properties + caller_window: string; + cancel_label: string; + choice_chosen: boolean; + choice_label: string; + continue_label: string; + description: string; + message: string; + password_new: boolean; + password_strength: number; + title: string; + warning: string; + // Members + close(cancellable: Gio.Cancellable | null): boolean; + close(...args: never[]): never; + close_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + close_finish(result: Gio.AsyncResult): boolean; + get_secret_exchange(): SecretExchange; + static error_get_domain(): GLib.Quark; + static open(timeout_seconds: number, cancellable: Gio.Cancellable | null): SystemPrompt; + static open_async(timeout_seconds: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + static open_finish(result: Gio.AsyncResult): SystemPrompt; + static open_for_prompter(prompter_name: string | null, timeout_seconds: number, cancellable: Gio.Cancellable | null): SystemPrompt; + static open_for_prompter_async(prompter_name: string | null, timeout_seconds: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + // Implemented Members + confirm(cancellable: Gio.Cancellable | null): PromptReply; + confirm_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + confirm_finish(result: Gio.AsyncResult): PromptReply; + confirm_run(cancellable: Gio.Cancellable | null): PromptReply; + get_caller_window(): string; + get_cancel_label(): string; + get_choice_chosen(): boolean; + get_choice_label(): string; + get_continue_label(): string; + get_description(): string; + get_message(): string; + get_password_new(): boolean; + get_password_strength(): number; + get_title(): string; + get_warning(): string; + password(cancellable: Gio.Cancellable | null): string; + password_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + password_finish(result: Gio.AsyncResult): string; + password_run(cancellable: Gio.Cancellable | null): string; + reset(): void; + set_caller_window(window_id: string): void; + set_cancel_label(cancel_label: string): void; + set_choice_chosen(chosen: boolean): void; + set_choice_label(choice_label: string | null): void; + set_continue_label(continue_label: string): void; + set_description(description: string): void; + set_message(message: string): void; + set_password_new(new_password: boolean): void; + set_title(title: string): void; + set_warning(warning: string | null): void; + vfunc_prompt_close(): void; + vfunc_prompt_confirm_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_prompt_confirm_finish(result: Gio.AsyncResult): PromptReply; + vfunc_prompt_password_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_prompt_password_finish(result: Gio.AsyncResult): string; + init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + init_finish(res: Gio.AsyncResult): boolean; + new_finish(res: Gio.AsyncResult): T; + vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_init_finish(res: Gio.AsyncResult): boolean; + init(cancellable: Gio.Cancellable | null): boolean; + vfunc_init(cancellable: Gio.Cancellable | null): boolean; +} +export module SystemPrompter { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + prompt_type: GType; + prompting: boolean; + } +} +export class SystemPrompter extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + prompt_type: GType; + prompting: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'new-prompt', callback: (_source: this) => Prompt): number; + connect_after(signal: 'new-prompt', callback: (_source: this) => Prompt): number; + emit(signal: 'new-prompt'): void; + // Constructors + static ["new"](mode: SystemPrompterMode, prompt_type: GType): SystemPrompter; + // Members + get_mode(): SystemPrompterMode; + get_prompt_type(): GType; + get_prompting(): boolean; + register(connection: Gio.DBusConnection): void; + unregister(wait: boolean): void; +} +export module UnionCollection { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class UnionCollection extends GObject.Object implements Collection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): UnionCollection; + // Members + add(collection: Collection): void; + elements(): GLib.List; + have(collection: Collection): boolean; + remove(collection: Collection): void; + size(): number; + take(collection: Collection): void; + // Implemented Members + contains(object: GObject.Object): boolean; + emit_added(object: GObject.Object): void; + emit_removed(object: GObject.Object): void; + get_length(): number; + get_objects(): GLib.List; + vfunc_added(object: GObject.Object): void; + vfunc_contains(object: GObject.Object): boolean; + vfunc_get_length(): number; + vfunc_get_objects(): GLib.List; + vfunc_removed(object: GObject.Object): void; +} +export class CertificateChainPrivate { + constructor(copy: CertificateChainPrivate); +} +export class Column { + constructor(copy: Column); + // Fields + property_name: string; + property_type: GType; + column_type: GType; + label: string; + flags: ColumnFlags; + transformer: GObject.ValueTransform; + user_data: any; + reserved: any; +} +export class FilterCollectionPrivate { + constructor(copy: FilterCollectionPrivate); +} +export class Parsed { + constructor(copy: Parsed); + // Members + get_attributes(): Gck.Attributes | null; + get_bytes(): GLib.Bytes; + get_data(): Uint8Array | null; + get_description(): string | null; + get_filename(): string; + get_format(): DataFormat; + get_label(): string | null; + ref(): Parsed; + static unref(parsed: any | null): void; +} +export class ParserPrivate { + constructor(copy: ParserPrivate); +} +export class Pkcs11CertificatePrivate { + constructor(copy: Pkcs11CertificatePrivate); +} +export class SecretExchangePrivate { + constructor(copy: SecretExchangePrivate); +} +export class SimpleCertificatePrivate { + constructor(copy: SimpleCertificatePrivate); +} +export class SimpleCollectionPrivate { + constructor(copy: SimpleCollectionPrivate); +} +export class SystemPromptPrivate { + constructor(copy: SystemPromptPrivate); +} +export class SystemPrompterPrivate { + constructor(copy: SystemPrompterPrivate); +} +export class UnionCollectionPrivate { + constructor(copy: UnionCollectionPrivate); +} +export interface CertificateNamespace { + compare(first: Comparable | null, other: Comparable | null): number; + compare(...args: never[]): never; +} +export interface Certificate extends Comparable { + // Properties + description: string; + expiry: GLib.Date; + icon: Gio.Icon; + issuer: string; + label: string; + markup: string; + subject: string; + // Members + get_basic_constraints(): [boolean, boolean | null, number | null]; + get_der_data(): Uint8Array; + get_expiry_date(): GLib.Date; + get_fingerprint(type: GLib.ChecksumType): Uint8Array; + get_fingerprint_hex(type: GLib.ChecksumType): string; + get_issued_date(): GLib.Date; + get_issuer_cn(): string; + get_issuer_dn(): string; + get_issuer_name(): string; + get_issuer_part(part: string): string | null; + get_issuer_raw(): Uint8Array; + get_key_size(): number; + get_markup_text(): string; + get_serial_number(): Uint8Array; + get_serial_number_hex(): string; + get_subject_cn(): string; + get_subject_dn(): string; + get_subject_name(): string; + get_subject_part(part: string): string | null; + get_subject_raw(): Uint8Array; + is_issuer(issuer: Certificate): boolean; + mixin_emit_notify(): void; + vfunc_get_der_data(): Uint8Array; +} + +export const Certificate: CertificateNamespace; +export interface CollectionNamespace { + $gtype: GType; +} +export interface Collection extends GObject.Object { + // Members + contains(object: GObject.Object): boolean; + emit_added(object: GObject.Object): void; + emit_removed(object: GObject.Object): void; + get_length(): number; + get_objects(): GLib.List; + vfunc_added(object: GObject.Object): void; + vfunc_contains(object: GObject.Object): boolean; + vfunc_get_length(): number; + vfunc_get_objects(): GLib.List; + vfunc_removed(object: GObject.Object): void; +} + +export const Collection: CollectionNamespace; +export interface ComparableNamespace { + $gtype: GType; +} +export interface Comparable extends GObject.Object { + // Members + compare(other: Comparable | null): number; + vfunc_compare(other: Comparable | null): number; +} + +export const Comparable: ComparableNamespace; +export interface ImportInteractionNamespace { + $gtype: GType; +} +export interface ImportInteraction extends Gio.TlsInteraction { + // Members + supplement(builder: Gck.Builder, cancellable: Gio.Cancellable | null): Gio.TlsInteractionResult; + supplement_async(builder: Gck.Builder, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + supplement_finish(result: Gio.AsyncResult): Gio.TlsInteractionResult; + supplement_prep(builder: Gck.Builder): void; + vfunc_supplement(builder: Gck.Builder, cancellable: Gio.Cancellable | null): Gio.TlsInteractionResult; + vfunc_supplement_async(builder: Gck.Builder, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_supplement_finish(result: Gio.AsyncResult): Gio.TlsInteractionResult; + vfunc_supplement_prep(builder: Gck.Builder): void; +} + +export const ImportInteraction: ImportInteractionNamespace; +export interface ImporterNamespace { + $gtype: GType; + create_for_parsed(parsed: Parsed): GLib.List; + queue_and_filter_for_parsed(importers: GLib.List, parsed: Parsed): GLib.List; + register(importer_type: GType, attrs: Gck.Attributes): void; + register_well_known(): void; +} +export interface Importer extends GObject.Object { + // Properties + icon: Gio.Icon; + interaction: Gio.TlsInteraction; + label: string; + uri: string; + // Members + get_interaction(): Gio.TlsInteraction | null; + ["import"](cancellable: Gio.Cancellable | null): boolean; + import_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + import_finish(result: Gio.AsyncResult): boolean; + queue_for_parsed(parsed: Parsed): boolean; + set_interaction(interaction: Gio.TlsInteraction): void; + vfunc_import_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_import_finish(result: Gio.AsyncResult): boolean; + vfunc_import_sync(cancellable: Gio.Cancellable | null): boolean; + vfunc_queue_for_parsed(parsed: Parsed): boolean; +} + +export const Importer: ImporterNamespace; +export interface PromptNamespace { + $gtype: GType; +} +export interface Prompt extends GObject.Object { + // Properties + caller_window: string; + cancel_label: string; + choice_chosen: boolean; + choice_label: string; + continue_label: string; + description: string; + message: string; + password_new: boolean; + password_strength: number; + title: string; + warning: string; + // Members + close(): void; + confirm(cancellable: Gio.Cancellable | null): PromptReply; + confirm_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + confirm_finish(result: Gio.AsyncResult): PromptReply; + confirm_run(cancellable: Gio.Cancellable | null): PromptReply; + get_caller_window(): string; + get_cancel_label(): string; + get_choice_chosen(): boolean; + get_choice_label(): string; + get_continue_label(): string; + get_description(): string; + get_message(): string; + get_password_new(): boolean; + get_password_strength(): number; + get_title(): string; + get_warning(): string; + password(cancellable: Gio.Cancellable | null): string; + password_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + password_finish(result: Gio.AsyncResult): string; + password_run(cancellable: Gio.Cancellable | null): string; + reset(): void; + set_caller_window(window_id: string): void; + set_cancel_label(cancel_label: string): void; + set_choice_chosen(chosen: boolean): void; + set_choice_label(choice_label: string | null): void; + set_continue_label(continue_label: string): void; + set_description(description: string): void; + set_message(message: string): void; + set_password_new(new_password: boolean): void; + set_title(title: string): void; + set_warning(warning: string | null): void; + vfunc_prompt_close(): void; + vfunc_prompt_confirm_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_prompt_confirm_finish(result: Gio.AsyncResult): PromptReply; + vfunc_prompt_password_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_prompt_password_finish(result: Gio.AsyncResult): string; +} + +export const Prompt: PromptNamespace; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gdk.d.ts b/gi/gdk.d.ts similarity index 97% rename from dynamic-panel-transparency@rockon999.github.io/gi/gdk.d.ts rename to gi/gdk.d.ts index 234cc07..996b8c3 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/gdk.d.ts +++ b/gi/gdk.d.ts @@ -4645,7 +4645,7 @@ export function error_trap_push(): void; export function event_get(): Event | null; -export function event_handler_set(func: EventFunc, data: any | null, notify: GLib.DestroyNotify): void; +export function event_handler_set(func: EventFunc, notify: GLib.DestroyNotify): void; export function event_peek(): Event | null; @@ -4731,7 +4731,7 @@ export function pre_parse_libgtk_only(): void; export function property_delete(window: Window, property: Atom): void; -export function property_get(window: Window, property: Atom, type: Atom, offset: number, length: number, pdelete: number): [boolean, Atom, number, number[]]; +export function property_get(window: Window, property: Atom, type: Atom, offset: number, length: number, pdelete: number): [boolean, Atom, number, Uint8Array]; export function query_depths(): number[]; @@ -4759,7 +4759,7 @@ export function set_program_class(program_class: string): void; export function set_show_events(show_events: boolean): void; -export function setting_get(name: string, value: GObject.Value): boolean; +export function setting_get(name: string, value: (GObject.Value | string | boolean | number)): boolean; export function synthesize_window_state(window: Window, unset_flags: WindowState, set_flags: WindowState): void; @@ -4769,13 +4769,13 @@ export function test_simulate_button(window: Window, x: number, y: number, butto export function test_simulate_key(window: Window, x: number, y: number, keyval: number, modifiers: ModifierType, key_pressrelease: EventType): boolean; -export function text_property_to_utf8_list_for_display(display: Display, encoding: Atom, format: number, text: number[]): [number, string[]]; +export function text_property_to_utf8_list_for_display(display: Display, encoding: Atom, format: number, text: (Uint8Array | string)): [number, string[]]; -export function threads_add_idle(priority: number, _function: GLib.SourceFunc, data: any | null, notify: GLib.DestroyNotify | null): number; +export function threads_add_idle(priority: number, _function: GLib.SourceFunc, notify: GLib.DestroyNotify | null): number; -export function threads_add_timeout(priority: number, interval: number, _function: GLib.SourceFunc, data: any | null, notify: GLib.DestroyNotify | null): number; +export function threads_add_timeout(priority: number, interval: number, _function: GLib.SourceFunc, notify: GLib.DestroyNotify | null): number; -export function threads_add_timeout_seconds(priority: number, interval: number, _function: GLib.SourceFunc, data: any | null, notify: GLib.DestroyNotify | null): number; +export function threads_add_timeout_seconds(priority: number, interval: number, _function: GLib.SourceFunc, notify: GLib.DestroyNotify | null): number; export function threads_enter(): void; @@ -4787,9 +4787,9 @@ export function unicode_to_keyval(wc: number): number; export function utf8_to_string_target(str: string): string | null; -export type EventFunc = (event: Event, data: any | null) => void; +export type EventFunc = (event: Event) => void; -export type FilterFunc = (xevent: XEvent, event: Event, data: any | null) => FilterReturn; +export type FilterFunc = (xevent: XEvent, event: Event) => FilterReturn; export type SeatGrabPrepareFunc = (seat: Seat, window: Window) => void; @@ -5346,8 +5346,8 @@ export module AppLaunchContext { } } export class AppLaunchContext extends Gio.AppLaunchContext { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties display: Display; // Constructors @@ -5369,8 +5369,8 @@ export module Cursor { } } export abstract class Cursor extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties cursor_type: CursorType; display: Display; @@ -5410,8 +5410,8 @@ export module Device { } } export abstract class Device extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties associated_device: Device; axes: AxisFlags; @@ -5476,8 +5476,8 @@ export module DeviceManager { } } export abstract class DeviceManager extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties display: Display; // Signals @@ -5508,8 +5508,8 @@ export module DeviceTool { } } export class DeviceTool extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties axes: AxisFlags; hardware_id: number; @@ -5526,8 +5526,8 @@ export module Display { } } export class Display extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -5607,8 +5607,8 @@ export module DisplayManager { } } export class DisplayManager extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties default_display: Display; // Signals @@ -5620,7 +5620,7 @@ export class DisplayManager extends GObject.Object { emit(signal: 'display-opened', display: Display): void; // Members get_default_display(): Display | null; - list_displays(): string[]; + list_displays(): GLib.SList; open_display(name: string): Display | null; set_default_display(display: Display): void; static get(): DisplayManager; @@ -5631,8 +5631,8 @@ export module DragContext { } } export class DragContext extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -5671,8 +5671,8 @@ export module DrawingContext { } } export class DrawingContext extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties clip: cairo.Region; window: Window; @@ -5688,8 +5688,8 @@ export module FrameClock { } } export abstract class FrameClock extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -5735,8 +5735,8 @@ export module GLContext { } } export abstract class GLContext extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties display: Display; shared_context: GLContext; @@ -5766,8 +5766,8 @@ export module Keymap { } } export class Keymap extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -5814,8 +5814,8 @@ export module Monitor { } } export class Monitor extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties display: Display; geometry: Rectangle; @@ -5855,8 +5855,8 @@ export module Screen { } } export class Screen extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties font_options: any; resolution: number; @@ -5893,7 +5893,7 @@ export class Screen extends GObject.Object { get_resolution(): number; get_rgba_visual(): Visual | null; get_root_window(): Window; - get_setting(name: string, value: GObject.Value): boolean; + get_setting(name: string, value: (GObject.Value | string | boolean | number)): boolean; get_system_visual(): Visual; get_toplevel_windows(): GLib.List; get_width(): number; @@ -5917,8 +5917,8 @@ export module Seat { } } export abstract class Seat extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties display: Display; // Signals @@ -5943,7 +5943,7 @@ export abstract class Seat extends GObject.Object { get_keyboard(): Device | null; get_pointer(): Device | null; get_slaves(capabilities: SeatCapabilities): GLib.List; - grab(window: Window, capabilities: SeatCapabilities, owner_events: boolean, cursor: Cursor | null, event: Event | null, prepare_func: SeatGrabPrepareFunc | null, prepare_func_data: any | null): GrabStatus; + grab(window: Window, capabilities: SeatCapabilities, owner_events: boolean, cursor: Cursor | null, event: Event | null, prepare_func: SeatGrabPrepareFunc | null): GrabStatus; ungrab(): void; } export module Visual { @@ -5952,8 +5952,8 @@ export module Visual { } } export class Visual extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members get_bits_per_rgb(): number; get_blue_pixel_details(): [number | null, number | null, number | null]; @@ -5979,8 +5979,8 @@ export module Window { } } export abstract class Window extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties cursor: Cursor; // Signals @@ -6036,7 +6036,7 @@ export abstract class Window extends GObject.Object { get_accept_focus(): boolean; get_background_pattern(): cairo.Pattern | null; get_children(): GLib.List; - get_children_with_user_data(): GLib.List; + get_children_with_user_data(user_data: any | null): GLib.List; get_clip_region(): cairo.Region; get_composited(): boolean; get_cursor(): Cursor | null; @@ -6147,7 +6147,7 @@ export abstract class Window extends GObject.Object { set_transient_for(parent: Window): void; set_type_hint(hint: WindowTypeHint): void; set_urgency_hint(urgent: boolean): void; - set_user_data(): void; + set_user_data(user_data: GObject.Object | null): void; shape_combine_region(shape_region: cairo.Region | null, offset_x: number, offset_y: number): void; show(): void; show_unraised(): void; @@ -6175,6 +6175,12 @@ export class Atom { static intern_static_string(atom_name: string): Atom; } export class Color { + constructor(properties?: { + pixel?: number; + red?: number; + green?: number; + blue?: number; + }); constructor(copy: Color); // Fields pixel: number; @@ -6517,6 +6523,11 @@ export class Geometry { win_gravity: Gravity; } export class KeymapKey { + constructor(properties?: { + keycode?: number; + group?: number; + level?: number; + }); constructor(copy: KeymapKey); // Fields keycode: number; @@ -6524,12 +6535,22 @@ export class KeymapKey { level: number; } export class Point { + constructor(properties?: { + x?: number; + y?: number; + }); constructor(copy: Point); // Fields x: number; y: number; } export class RGBA { + constructor(properties?: { + red?: number; + green?: number; + blue?: number; + alpha?: number; + }); constructor(copy: RGBA); // Fields red: number; @@ -6545,6 +6566,12 @@ export class RGBA { to_string(): string; } export class Rectangle { + constructor(properties?: { + x?: number; + y?: number; + width?: number; + height?: number; + }); constructor(copy: Rectangle); // Fields x: number; @@ -6557,6 +6584,10 @@ export class Rectangle { union(src2: Rectangle): Rectangle; } export class TimeCoord { + constructor(properties?: { + time?: number; + axes?: number[]; + }); constructor(copy: TimeCoord); // Fields time: number; @@ -6649,11 +6680,14 @@ export class Event { set_source_device(device: Device): void; triggers_context_menu(): boolean; static get(): Event | null; - static handler_set(func: EventFunc, data: any | null, notify: GLib.DestroyNotify): void; + static handler_set(func: EventFunc, notify: GLib.DestroyNotify): void; static peek(): Event | null; static request_motions(event: EventMotion): void; } -export interface DevicePad { +export interface DevicePadNamespace { + $gtype: GType; +} +export interface DevicePad extends Device { // Members get_feature_group(feature: DevicePadFeature, feature_idx: number): number; get_group_n_modes(group_idx: number): number; @@ -6661,4 +6695,6 @@ export interface DevicePad { get_n_groups(): number; } +export const DevicePad: DevicePadNamespace; + export type XEvent = void; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gdkpixbuf.d.ts b/gi/gdkpixbuf.d.ts similarity index 85% rename from dynamic-panel-transparency@rockon999.github.io/gi/gdkpixbuf.d.ts rename to gi/gdkpixbuf.d.ts index 7758abd..9ef5b3a 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/gdkpixbuf.d.ts +++ b/gi/gdkpixbuf.d.ts @@ -6,7 +6,7 @@ import * as GObject from "gobject"; import * as Gio from "gio"; import * as GLib from "glib"; -import * as GModule from "gmodule"; + type GType = object; export const PIXBUF_FEATURES_H: number; @@ -21,9 +21,9 @@ export const PIXBUF_VERSION: string; export function pixbuf_error_quark(): GLib.Quark; -export type PixbufDestroyNotify = (pixels: number[], data: any | null) => void; +export type PixbufDestroyNotify = (pixels: (Uint8Array | string)) => void; -export type PixbufSaveFunc = (buf: number[], data: any | null) => boolean; +export type PixbufSaveFunc = (buf: (Uint8Array | string)) => boolean; export enum Colorspace { RGB = 0, } @@ -71,8 +71,8 @@ export module Pixbuf { } } export class Pixbuf extends GObject.Object implements Gio.Icon, Gio.LoadableIcon { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties bits_per_sample: number; colorspace: Colorspace; @@ -85,12 +85,12 @@ export class Pixbuf extends GObject.Object implements Gio.Icon, Gio.LoadableIcon width: number; // Constructors static ["new"](colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number): Pixbuf; - static new_from_bytes(data: GLib.Bytes, colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number, rowstride: number): Pixbuf; - static new_from_data(data: number[], colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number, rowstride: number, destroy_fn: PixbufDestroyNotify | null, destroy_fn_data: any | null): Pixbuf; + static new_from_bytes(data: (GLib.Bytes | Uint8Array), colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number, rowstride: number): Pixbuf; + static new_from_data(data: (Uint8Array | string), colorspace: Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number, rowstride: number, destroy_fn: PixbufDestroyNotify | null): Pixbuf; static new_from_file(filename: string): Pixbuf; static new_from_file_at_scale(filename: string, width: number, height: number, preserve_aspect_ratio: boolean): Pixbuf; static new_from_file_at_size(filename: string, width: number, height: number): Pixbuf; - static new_from_inline(data: number[], copy_pixels: boolean): Pixbuf; + static new_from_inline(data: (Uint8Array | string), copy_pixels: boolean): Pixbuf; static new_from_resource(resource_path: string): Pixbuf; static new_from_resource_at_scale(resource_path: string, width: number, height: number, preserve_aspect_ratio: boolean): Pixbuf; static new_from_stream(stream: Gio.InputStream, cancellable: Gio.Cancellable | null): Pixbuf; @@ -116,8 +116,8 @@ export class Pixbuf extends GObject.Object implements Gio.Icon, Gio.LoadableIcon get_n_channels(): number; get_option(key: string): string; get_options(): GLib.HashTable; - get_pixels(): number[]; - get_pixels_with_length(): [number[], number]; + get_pixels(): Uint8Array; + get_pixels(): Uint8Array; get_rowstride(): number; get_width(): number; new_subpixbuf(src_x: number, src_y: number, width: number, height: number): Pixbuf; @@ -126,7 +126,7 @@ export class Pixbuf extends GObject.Object implements Gio.Icon, Gio.LoadableIcon remove_option(key: string): boolean; rotate_simple(angle: PixbufRotation): Pixbuf | null; saturate_and_pixelate(dest: Pixbuf, saturation: number, pixelate: boolean): void; - save_to_bufferv(type: string, option_keys: string[], option_values: string[]): [boolean, number[]]; + save_to_bufferv(type: string, option_keys: string[], option_values: string[]): [boolean, Uint8Array]; save_to_callbackv(save_func: PixbufSaveFunc, type: string, option_keys: string[], option_values: string[]): boolean; save_to_streamv(stream: Gio.OutputStream, type: string, option_keys: string[], option_values: string[], cancellable: Gio.Cancellable | null): boolean; save_to_streamv_async(stream: Gio.OutputStream, type: string, option_keys: string[], option_values: string[], cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; @@ -138,7 +138,7 @@ export class Pixbuf extends GObject.Object implements Gio.Icon, Gio.LoadableIcon static get_file_info(filename: string): [PixbufFormat | null, number | null, number | null]; static get_file_info_async(filename: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; static get_file_info_finish(async_result: Gio.AsyncResult): [PixbufFormat, number, number]; - static get_formats(): string[]; + static get_formats(): GLib.SList; static init_modules(path: string): boolean; static new_from_stream_async(stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; static new_from_stream_at_scale_async(stream: Gio.InputStream, width: number, height: number, preserve_aspect_ratio: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; @@ -163,8 +163,8 @@ export module PixbufAnimation { } } export class PixbufAnimation extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static new_from_file(filename: string): PixbufAnimation; static new_from_resource(resource_path: string): PixbufAnimation; @@ -184,8 +184,8 @@ export module PixbufAnimationIter { } } export class PixbufAnimationIter extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members advance(current_time: GLib.TimeVal | null): boolean; get_delay_time(): number; @@ -198,8 +198,8 @@ export module PixbufLoader { } } export class PixbufLoader extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -226,8 +226,8 @@ export class PixbufLoader extends GObject.Object { get_format(): PixbufFormat | null; get_pixbuf(): Pixbuf; set_size(width: number, height: number): void; - write(buf: number[]): boolean; - write_bytes(buffer: GLib.Bytes): boolean; + write(buf: (Uint8Array | string)): boolean; + write_bytes(buffer: (GLib.Bytes | Uint8Array)): boolean; vfunc_area_prepared(): void; vfunc_area_updated(x: number, y: number, width: number, height: number): void; vfunc_closed(): void; @@ -240,8 +240,8 @@ export module PixbufSimpleAnim { } } export class PixbufSimpleAnim extends PixbufAnimation { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties loop: boolean; // Constructors @@ -257,8 +257,8 @@ export module PixbufSimpleAnimIter { } } export class PixbufSimpleAnimIter extends PixbufAnimationIter { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export class PixbufFormat { constructor(copy: PixbufFormat); diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gio.d.ts b/gi/gio.d.ts similarity index 81% rename from dynamic-panel-transparency@rockon999.github.io/gi/gio.d.ts rename to gi/gio.d.ts index 07e6580..11eaa5f 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/gio.d.ts +++ b/gi/gio.d.ts @@ -289,7 +289,7 @@ export function content_type_get_mime_type(type: string): string | null; export function content_type_get_symbolic_icon(type: string): Icon; -export function content_type_guess(filename: string | null, data: number[] | null): [string, boolean | null]; +export function content_type_guess(filename: string | null, data: (Uint8Array | string) | null): [string, boolean | null]; export function content_type_guess_for_tree(root: File): string[]; @@ -335,7 +335,7 @@ export function dbus_error_unregister_error(error_domain: GLib.Quark, error_code export function dbus_generate_guid(): string; -export function dbus_gvalue_to_gvariant(gvalue: GObject.Value, type: GLib.VariantType): GLib.Variant; +export function dbus_gvalue_to_gvariant(gvalue: (GObject.Value | string | boolean | number), type: GLib.VariantType): GLib.Variant; export function dbus_gvariant_to_gvalue(value: GLib.Variant): GObject.Value; @@ -413,11 +413,11 @@ export function pollable_source_new(pollable_stream: GObject.Object): GLib.Sourc export function pollable_source_new_full(pollable_stream: GObject.Object, child_source: GLib.Source | null, cancellable: Cancellable | null): GLib.Source; -export function pollable_stream_read(stream: InputStream, buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; +export function pollable_stream_read(stream: InputStream, buffer: (Uint8Array | string), blocking: boolean, cancellable: Cancellable | null): number; -export function pollable_stream_write(stream: OutputStream, buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; +export function pollable_stream_write(stream: OutputStream, buffer: (Uint8Array | string), blocking: boolean, cancellable: Cancellable | null): number; -export function pollable_stream_write_all(stream: OutputStream, buffer: number[], blocking: boolean, cancellable: Cancellable | null): [boolean, number]; +export function pollable_stream_write_all(stream: OutputStream, buffer: (Uint8Array | string), blocking: boolean, cancellable: Cancellable | null): [boolean, number]; export function proxy_get_default_for_protocol(protocol: string): Proxy; @@ -541,7 +541,7 @@ export type FileMeasureProgressCallback = (reporting: boolean, current_size: num export type FileProgressCallback = (current_num_bytes: number, total_num_bytes: number) => void; -export type FileReadMoreCallback = (file_contents: string, file_size: number, callback_data: any | null) => boolean; +export type FileReadMoreCallback = (file_contents: string, file_size: number) => boolean; export type IOSchedulerJobFunc = (job: IOSchedulerJob, cancellable: Cancellable | null) => boolean; @@ -549,9 +549,9 @@ export type PollableSourceFunc = (pollable_stream: GObject.Object) => boolean; export type ReallocFunc = (data: any | null, size: number) => any | null; -export type SettingsBindGetMapping = (value: GObject.Value, variant: GLib.Variant) => boolean; +export type SettingsBindGetMapping = (value: (GObject.Value | string | boolean | number), variant: GLib.Variant) => boolean; -export type SettingsBindSetMapping = (value: GObject.Value, expected_type: GLib.VariantType) => GLib.Variant; +export type SettingsBindSetMapping = (value: (GObject.Value | string | boolean | number), expected_type: GLib.VariantType) => GLib.Variant; export type SettingsGetMapping = (value: GLib.Variant) => boolean; @@ -1151,8 +1151,8 @@ export module AppInfoMonitor { } } export class AppInfoMonitor extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -1169,8 +1169,8 @@ export module AppLaunchContext { } } export class AppLaunchContext extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -1209,8 +1209,8 @@ export module Application { } } export class Application extends GObject.Object implements ActionGroup, ActionMap { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties action_group: ActionGroup; application_id: string; @@ -1329,7 +1329,7 @@ export class Application extends GObject.Object implements ActionGroup, ActionMa vfunc_list_actions(): string[]; vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; add_action(action: Action): void; - add_action_entries(entries: ActionEntry[]): void; + add_action_entries(entries: ActionEntry[], user_data: any | null): void; lookup_action(action_name: string): Action; remove_action(action_name: string): void; vfunc_add_action(action: Action): void; @@ -1346,8 +1346,8 @@ export module ApplicationCommandLine { } } export class ApplicationCommandLine extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties "arguments": GLib.Variant; is_remote: boolean; @@ -1355,7 +1355,7 @@ export class ApplicationCommandLine extends GObject.Object { platform_data: GLib.Variant; // Members create_file_for_arg(arg: string): File; - get_arguments(): [string[], number | null]; + get_arguments(): string[]; get_cwd(): string | null; get_environ(): string[]; get_exit_status(): number; @@ -1376,8 +1376,8 @@ export module BufferedInputStream { } } export class BufferedInputStream extends FilterInputStream implements Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties buffer_size: number; // Constructors @@ -1389,8 +1389,8 @@ export class BufferedInputStream extends FilterInputStream implements Seekable { fill_finish(result: AsyncResult): number; get_available(): number; get_buffer_size(): number; - peek(buffer: number[], offset: number): number; - peek_buffer(): [number[], number]; + peek(buffer: (Uint8Array | string), offset: number): number; + peek_buffer(): Uint8Array; read_byte(cancellable: Cancellable | null): number; set_buffer_size(size: number): void; vfunc_fill(count: number, cancellable: Cancellable | null): number; @@ -1416,8 +1416,8 @@ export module BufferedOutputStream { } } export class BufferedOutputStream extends FilterOutputStream implements Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties auto_grow: boolean; buffer_size: number; @@ -1450,12 +1450,12 @@ export module BytesIcon { } } export class BytesIcon extends GObject.Object implements Icon, LoadableIcon { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties bytes: GLib.Bytes; // Constructors - static ["new"](bytes: GLib.Bytes): BytesIcon; + static ["new"](bytes: (GLib.Bytes | Uint8Array)): BytesIcon; // Members get_bytes(): GLib.Bytes; // Implemented Members @@ -1478,8 +1478,8 @@ export module Cancellable { } } export class Cancellable extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect_after(id: string, callback: (...args: any[]) => any): number; emit(id: string, ...args: any[]): void; @@ -1489,7 +1489,7 @@ export class Cancellable extends GObject.Object { static ["new"](): Cancellable; // Members cancel(): void; - connect(callback: GObject.Callback, data: any | null, data_destroy_func: GLib.DestroyNotify | null): number; + connect(callback: GObject.Callback, data_destroy_func: GLib.DestroyNotify | null): number; connect(...args: never[]): never; disconnect(handler_id: number): void; disconnect(...args: never[]): never; @@ -1513,8 +1513,8 @@ export module CharsetConverter { } } export class CharsetConverter extends GObject.Object implements Converter, Initable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties from_charset: string; to_charset: string; @@ -1526,9 +1526,9 @@ export class CharsetConverter extends GObject.Object implements Converter, Inita get_use_fallback(): boolean; set_use_fallback(use_fallback: boolean): void; // Implemented Members - convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + convert(inbuf: (Uint8Array | string), outbuf: (Uint8Array | string), flags: ConverterFlags): [ConverterResult, number, number]; reset(): void; - vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_convert(inbuf: (Uint8Array | string) | null, outbuf: (Uint8Array | string) | null, flags: ConverterFlags): [ConverterResult, number, number]; vfunc_reset(): void; init(cancellable: Cancellable | null): boolean; vfunc_init(cancellable: Cancellable | null): boolean; @@ -1540,8 +1540,8 @@ export module ConverterInputStream { } } export class ConverterInputStream extends FilterInputStream implements PollableInputStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties converter: Converter; // Constructors @@ -1552,11 +1552,11 @@ export class ConverterInputStream extends FilterInputStream implements PollableI can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_readable(): boolean; - read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + read_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_readable(): boolean; - vfunc_read_nonblocking(buffer: number[] | null): number; + vfunc_read_nonblocking(buffer: (Uint8Array | string) | null): number; } export module ConverterOutputStream { export interface ConstructorProperties extends FilterOutputStream.ConstructorProperties { @@ -1565,8 +1565,8 @@ export module ConverterOutputStream { } } export class ConverterOutputStream extends FilterOutputStream implements PollableOutputStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties converter: Converter; // Constructors @@ -1577,12 +1577,12 @@ export class ConverterOutputStream extends FilterOutputStream implements Pollabl can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_writable(): boolean; - write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + write_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_writable(): boolean; - vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_write_nonblocking(buffer: (Uint8Array | string) | null): number; vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; } export module Credentials { @@ -1591,8 +1591,8 @@ export module Credentials { } } export class Credentials extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): Credentials; // Members @@ -1609,8 +1609,8 @@ export module DBusActionGroup { } } export class DBusActionGroup extends GObject.Object implements ActionGroup, RemoteActionGroup { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members static get(connection: DBusConnection, bus_name: string | null, object_path: string): DBusActionGroup; // Implemented Members @@ -1653,8 +1653,8 @@ export module DBusAuthObserver { } } export class DBusAuthObserver extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -1686,8 +1686,8 @@ export module DBusConnection { } } export class DBusConnection extends GObject.Object implements AsyncInitable, Initable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties address: string; authentication_observer: DBusAuthObserver; @@ -1737,9 +1737,9 @@ export class DBusConnection extends GObject.Object implements AsyncInitable, Ini get_stream(): IOStream; get_unique_name(): string | null; is_closed(): boolean; - register_object(object_path: string, interface_info: DBusInterfaceInfo, vtable: DBusInterfaceVTable | null, user_data_free_func: GLib.DestroyNotify): number; - register_object_with_closures(object_path: string, interface_info: DBusInterfaceInfo, method_call_closure: GObject.Closure | null, get_property_closure: GObject.Closure | null, set_property_closure: GObject.Closure | null): number; - register_subtree(object_path: string, vtable: DBusSubtreeVTable, flags: DBusSubtreeFlags, user_data_free_func: GLib.DestroyNotify): number; + register_object(object_path: string, interface_info: DBusInterfaceInfo, vtable: DBusInterfaceVTable | null, user_data: any | null, user_data_free_func: GLib.DestroyNotify): number; + register_object(object_path: string, interface_info: DBusInterfaceInfo, method_call_closure: GObject.Closure | null, get_property_closure: GObject.Closure | null, set_property_closure: GObject.Closure | null): number; + register_subtree(object_path: string, vtable: DBusSubtreeVTable, flags: DBusSubtreeFlags, user_data: any | null, user_data_free_func: GLib.DestroyNotify): number; remove_filter(filter_id: number): void; send_message(message: DBusMessage, flags: DBusSendMessageFlags): [boolean, number | null]; send_message_with_reply(message: DBusMessage, flags: DBusSendMessageFlags, timeout_msec: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): number | null; @@ -1758,7 +1758,7 @@ export class DBusConnection extends GObject.Object implements AsyncInitable, Ini // Implemented Members init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; init_finish(res: AsyncResult): boolean; - new_finish(res: AsyncResult): GObject.Object; + new_finish(res: AsyncResult): T; vfunc_init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_init_finish(res: AsyncResult): boolean; init(cancellable: Cancellable | null): boolean; @@ -1771,8 +1771,8 @@ export module DBusInterfaceSkeleton { } } export abstract class DBusInterfaceSkeleton extends GObject.Object implements DBusInterface { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties g_flags: DBusInterfaceSkeletonFlags; // Signals @@ -1800,7 +1800,7 @@ export abstract class DBusInterfaceSkeleton extends GObject.Object implements DB vfunc_get_info(): DBusInterfaceInfo; vfunc_get_properties(): GLib.Variant; // Implemented Members - dup_object(): DBusObject; + get_object(): DBusObject; set_object(object: DBusObject | null): void; vfunc_dup_object(): DBusObject; vfunc_set_object(object: DBusObject | null): void; @@ -1811,8 +1811,8 @@ export module DBusMenuModel { } } export class DBusMenuModel extends MenuModel { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members static get(connection: DBusConnection, bus_name: string | null, object_path: string): DBusMenuModel; } @@ -1823,13 +1823,13 @@ export module DBusMessage { } } export class DBusMessage extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties locked: boolean; // Constructors static ["new"](): DBusMessage; - static new_from_blob(blob: number[], capabilities: DBusCapabilityFlags): DBusMessage; + static new_from_blob(blob: (Uint8Array | string), capabilities: DBusCapabilityFlags): DBusMessage; static new_method_call(name: string | null, path: string, interface_: string | null, method: string): DBusMessage; static new_signal(path: string, interface_: string, signal: string): DBusMessage; // Members @@ -1841,7 +1841,7 @@ export class DBusMessage extends GObject.Object { get_error_name(): string; get_flags(): DBusMessageFlags; get_header(header_field: DBusMessageHeaderField): GLib.Variant | null; - get_header_fields(): number[]; + get_header_fields(): Uint8Array; get_interface(): string; get_locked(): boolean; get_member(): string; @@ -1873,9 +1873,9 @@ export class DBusMessage extends GObject.Object { set_serial(serial: number): void; set_signature(value: string): void; set_unix_fd_list(fd_list: UnixFDList | null): void; - to_blob(capabilities: DBusCapabilityFlags): [number[], number]; + to_blob(capabilities: DBusCapabilityFlags): Uint8Array; to_gerror(): boolean; - static bytes_needed(blob: number[]): number; + static bytes_needed(blob: (Uint8Array | string)): number; } export module DBusMethodInvocation { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -1883,8 +1883,8 @@ export module DBusMethodInvocation { } } export class DBusMethodInvocation extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members get_connection(): DBusConnection; get_interface_name(): string; @@ -1904,16 +1904,75 @@ export class DBusMethodInvocation extends GObject.Object { export module DBusObjectManagerClient { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { [key: string]: any; + bus_type: BusType; + connection: DBusConnection; + flags: DBusObjectManagerClientFlags; + get_proxy_type_destroy_notify: any; + get_proxy_type_func: any; + get_proxy_type_user_data: any; + name: string; + name_owner: string; + object_path: string; } } -export class DBusObjectManagerClient extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); +export class DBusObjectManagerClient extends GObject.Object implements AsyncInitable, DBusObjectManager, Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + bus_type: BusType; + connection: DBusConnection; + flags: DBusObjectManagerClientFlags; + get_proxy_type_destroy_notify: any; + get_proxy_type_func: any; + get_proxy_type_user_data: any; + name: string; + name_owner: string; + object_path: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'interface-proxy-properties-changed', callback: (_source: this, object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, changed_properties: GLib.Variant, invalidated_properties: string[]) => void): number; + connect_after(signal: 'interface-proxy-properties-changed', callback: (_source: this, object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, changed_properties: GLib.Variant, invalidated_properties: string[]) => void): number; + emit(signal: 'interface-proxy-properties-changed', object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, changed_properties: GLib.Variant, invalidated_properties: string[]): void; + connect(signal: 'interface-proxy-signal', callback: (_source: this, object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, sender_name: string, signal_name: string, parameters: GLib.Variant) => void): number; + connect_after(signal: 'interface-proxy-signal', callback: (_source: this, object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, sender_name: string, signal_name: string, parameters: GLib.Variant) => void): number; + emit(signal: 'interface-proxy-signal', object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, sender_name: string, signal_name: string, parameters: GLib.Variant): void; // Constructors static new_finish(res: AsyncResult): DBusObjectManagerClient; + static new_finish(...args: never[]): never; static new_for_bus_finish(res: AsyncResult): DBusObjectManagerClient; - static new_for_bus_sync(bus_type: BusType, flags: DBusObjectManagerClientFlags, name: string, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_user_data: any | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null): DBusObjectManagerClient; - static new_sync(connection: DBusConnection, flags: DBusObjectManagerClientFlags, name: string | null, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_user_data: any | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null): DBusObjectManagerClient; + static new_for_bus_sync(bus_type: BusType, flags: DBusObjectManagerClientFlags, name: string, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null): DBusObjectManagerClient; + static new_sync(connection: DBusConnection, flags: DBusObjectManagerClientFlags, name: string | null, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null): DBusObjectManagerClient; + // Members + get_connection(): DBusConnection; + get_flags(): DBusObjectManagerClientFlags; + get_name(): string; + get_name_owner(): string | null; + vfunc_interface_proxy_properties_changed(object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, changed_properties: GLib.Variant, invalidated_properties: string): void; + vfunc_interface_proxy_signal(object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, sender_name: string, signal_name: string, parameters: GLib.Variant): void; + static new(connection: DBusConnection, flags: DBusObjectManagerClientFlags, name: string, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + static new_for_bus(bus_type: BusType, flags: DBusObjectManagerClientFlags, name: string, object_path: string, get_proxy_type_func: DBusProxyTypeFunc | null, get_proxy_type_destroy_notify: GLib.DestroyNotify | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + // Implemented Members + init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + init_finish(res: AsyncResult): boolean; + new_finish(res: AsyncResult): T; + vfunc_init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_init_finish(res: AsyncResult): boolean; + get_interface(object_path: string, interface_name: string): DBusInterface; + get_object(object_path: string): DBusObject; + get_object_path(): string; + get_objects(): GLib.List; + vfunc_get_interface(object_path: string, interface_name: string): DBusInterface; + vfunc_get_object(object_path: string): DBusObject; + vfunc_get_object_path(): string; + vfunc_get_objects(): GLib.List; + vfunc_interface_added(object: DBusObject, interface_: DBusInterface): void; + vfunc_interface_removed(object: DBusObject, interface_: DBusInterface): void; + vfunc_object_added(object: DBusObject): void; + vfunc_object_removed(object: DBusObject): void; + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; } export module DBusObjectManagerServer { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -1923,8 +1982,8 @@ export module DBusObjectManagerServer { } } export class DBusObjectManagerServer extends GObject.Object implements DBusObjectManager { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties connection: DBusConnection; object_path: string; @@ -1959,8 +2018,8 @@ export module DBusObjectProxy { } } export class DBusObjectProxy extends GObject.Object implements DBusObject { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties g_connection: DBusConnection; g_object_path: string; @@ -1985,8 +2044,8 @@ export module DBusObjectSkeleton { } } export class DBusObjectSkeleton extends GObject.Object implements DBusObject { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties g_object_path: string; // Signals @@ -2018,16 +2077,84 @@ export class DBusObjectSkeleton extends GObject.Object implements DBusObject { export module DBusProxy { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { [key: string]: any; + g_bus_type: BusType; + g_connection: DBusConnection; + g_default_timeout: number; + g_flags: DBusProxyFlags; + g_interface_info: DBusInterfaceInfo; + g_interface_name: string; + g_name: string; + g_name_owner: string; + g_object_path: string; } } -export class DBusProxy extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); +export class DBusProxy extends GObject.Object implements AsyncInitable, DBusInterface, Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + g_bus_type: BusType; + g_connection: DBusConnection; + g_default_timeout: number; + g_flags: DBusProxyFlags; + g_interface_info: DBusInterfaceInfo; + g_interface_name: string; + g_name: string; + g_name_owner: string; + g_object_path: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'g-properties-changed', callback: (_source: this, changed_properties: GLib.Variant, invalidated_properties: string[]) => void): number; + connect_after(signal: 'g-properties-changed', callback: (_source: this, changed_properties: GLib.Variant, invalidated_properties: string[]) => void): number; + emit(signal: 'g-properties-changed', changed_properties: GLib.Variant, invalidated_properties: string[]): void; + connect(signal: 'g-signal', callback: (_source: this, sender_name: string | null, signal_name: string, parameters: GLib.Variant) => void): number; + connect_after(signal: 'g-signal', callback: (_source: this, sender_name: string | null, signal_name: string, parameters: GLib.Variant) => void): number; + emit(signal: 'g-signal', sender_name: string | null, signal_name: string, parameters: GLib.Variant): void; // Constructors static new_finish(res: AsyncResult): DBusProxy; + static new_finish(...args: never[]): never; static new_for_bus_finish(res: AsyncResult): DBusProxy; static new_for_bus_sync(bus_type: BusType, flags: DBusProxyFlags, info: DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Cancellable | null): DBusProxy; static new_sync(connection: DBusConnection, flags: DBusProxyFlags, info: DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Cancellable | null): DBusProxy; + // Members + call(method_name: string, parameters: GLib.Variant | null, flags: DBusCallFlags, timeout_msec: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + call_finish(res: AsyncResult): GLib.Variant; + call_sync(method_name: string, parameters: GLib.Variant | null, flags: DBusCallFlags, timeout_msec: number, cancellable: Cancellable | null): GLib.Variant; + call_with_unix_fd_list(method_name: string, parameters: GLib.Variant | null, flags: DBusCallFlags, timeout_msec: number, fd_list: UnixFDList | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + call_with_unix_fd_list_finish(res: AsyncResult): [GLib.Variant, UnixFDList | null]; + call_with_unix_fd_list_sync(method_name: string, parameters: GLib.Variant | null, flags: DBusCallFlags, timeout_msec: number, fd_list: UnixFDList | null, cancellable: Cancellable | null): [GLib.Variant, UnixFDList | null]; + get_cached_property(property_name: string): GLib.Variant | null; + get_cached_property_names(): string[] | null; + get_connection(): DBusConnection; + get_default_timeout(): number; + get_flags(): DBusProxyFlags; + get_interface_info(): DBusInterfaceInfo | null; + get_interface_name(): string; + get_name(): string; + get_name_owner(): string | null; + get_object_path(): string; + set_cached_property(property_name: string, value: GLib.Variant | null): void; + set_default_timeout(timeout_msec: number): void; + set_interface_info(info: DBusInterfaceInfo | null): void; + vfunc_g_properties_changed(changed_properties: GLib.Variant, invalidated_properties: string): void; + vfunc_g_signal(sender_name: string, signal_name: string, parameters: GLib.Variant): void; + static new(connection: DBusConnection, flags: DBusProxyFlags, info: DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + static new_for_bus(bus_type: BusType, flags: DBusProxyFlags, info: DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + // Implemented Members + init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + init_finish(res: AsyncResult): boolean; + new_finish(res: AsyncResult): T; + vfunc_init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_init_finish(res: AsyncResult): boolean; + get_object(): DBusObject; + get_info(): DBusInterfaceInfo; + set_object(object: DBusObject | null): void; + vfunc_dup_object(): DBusObject; + vfunc_get_info(): DBusInterfaceInfo; + vfunc_set_object(object: DBusObject | null): void; + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; } export module DBusServer { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -2041,8 +2168,8 @@ export module DBusServer { } } export class DBusServer extends GObject.Object implements Initable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; address: string; @@ -2078,8 +2205,8 @@ export module DataInputStream { } } export class DataInputStream extends BufferedInputStream implements Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties byte_order: DataStreamByteOrder; newline_type: DataStreamNewlineType; @@ -2090,13 +2217,12 @@ export class DataInputStream extends BufferedInputStream implements Seekable { get_byte_order(): DataStreamByteOrder; get_newline_type(): DataStreamNewlineType; read_byte(cancellable: Cancellable | null): number; - read_byte(...args: never[]): never; read_int16(cancellable: Cancellable | null): number; read_int32(cancellable: Cancellable | null): number; read_int64(cancellable: Cancellable | null): number; - read_line(cancellable: Cancellable | null): [number[] | null, number | null]; + read_line(cancellable: Cancellable | null): [Uint8Array | null, number | null]; read_line_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; - read_line_finish(result: AsyncResult): [number[] | null, number | null]; + read_line_finish(result: AsyncResult): [Uint8Array | null, number | null]; read_line_finish_utf8(result: AsyncResult): [string | null, number | null]; read_line_utf8(cancellable: Cancellable | null): [string | null, number | null]; read_uint16(cancellable: Cancellable | null): number; @@ -2118,8 +2244,8 @@ export module DataOutputStream { } } export class DataOutputStream extends FilterOutputStream implements Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties byte_order: DataStreamByteOrder; // Constructors @@ -2154,8 +2280,8 @@ export module DesktopAppInfo { } } export class DesktopAppInfo extends GObject.Object implements AppInfo { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties filename: string; // Constructors @@ -2175,11 +2301,11 @@ export class DesktopAppInfo extends GObject.Object implements AppInfo { get_show_in(desktop_env: string | null): boolean; get_startup_wm_class(): string; get_string(key: string): string; - get_string_list(key: string): [string[], number | null]; + get_string_list(key: string): string[]; has_key(key: string): boolean; launch_action(action_name: string, launch_context: AppLaunchContext | null): void; - launch_uris_as_manager(uris: GLib.List, launch_context: AppLaunchContext | null, spawn_flags: GLib.SpawnFlags, user_setup: GLib.SpawnChildSetupFunc | null, user_setup_data: any | null, pid_callback: DesktopAppLaunchCallback | null, pid_callback_data: any | null): boolean; - launch_uris_as_manager_with_fds(uris: GLib.List, launch_context: AppLaunchContext | null, spawn_flags: GLib.SpawnFlags, user_setup: GLib.SpawnChildSetupFunc | null, user_setup_data: any | null, pid_callback: DesktopAppLaunchCallback | null, pid_callback_data: any | null, stdin_fd: number, stdout_fd: number, stderr_fd: number): boolean; + launch_uris_as_manager(uris: GLib.List, launch_context: AppLaunchContext | null, spawn_flags: GLib.SpawnFlags): boolean; + launch_uris_as_manager_with_fds(uris: GLib.List, launch_context: AppLaunchContext | null, spawn_flags: GLib.SpawnFlags, stdin_fd: number, stdout_fd: number, stderr_fd: number): boolean; list_actions(): string[]; static get_implementations(_interface: string): GLib.List; static search(search_string: string): string[][]; @@ -2244,8 +2370,8 @@ export module Emblem { } } export class Emblem extends GObject.Object implements Icon { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties icon: GObject.Object; origin: EmblemOrigin; @@ -2270,8 +2396,8 @@ export module EmblemedIcon { } } export class EmblemedIcon extends GObject.Object implements Icon { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties gicon: Icon; // Constructors @@ -2296,8 +2422,8 @@ export module FileEnumerator { } } export class FileEnumerator extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties container: File; // Members @@ -2326,8 +2452,8 @@ export module FileIOStream { } } export class FileIOStream extends IOStream implements Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members get_etag(): string; query_info(attributes: string, cancellable: Cancellable | null): FileInfo; @@ -2356,8 +2482,8 @@ export module FileIcon { } } export class FileIcon extends GObject.Object implements Icon, LoadableIcon { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties file: File; // Constructors @@ -2384,8 +2510,8 @@ export module FileInfo { } } export class FileInfo extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): FileInfo; // Members @@ -2398,7 +2524,7 @@ export class FileInfo extends GObject.Object { get_attribute_data(attribute: string): [boolean, FileAttributeType | null, any | null, FileAttributeStatus | null]; get_attribute_int32(attribute: string): number; get_attribute_int64(attribute: string): number; - get_attribute_object(attribute: string): GObject.Object; + get_attribute_object(attribute: string): T; get_attribute_status(attribute: string): FileAttributeStatus; get_attribute_string(attribute: string): string; get_attribute_stringv(attribute: string): string[]; @@ -2458,8 +2584,8 @@ export module FileInputStream { } } export class FileInputStream extends InputStream implements Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members query_info(attributes: string, cancellable: Cancellable | null): FileInfo; query_info_async(attributes: string, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; @@ -2487,8 +2613,8 @@ export module FileMonitor { } } export abstract class FileMonitor extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties cancelled: boolean; rate_limit: number; @@ -2513,8 +2639,8 @@ export module FileOutputStream { } } export class FileOutputStream extends OutputStream implements Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members get_etag(): string; query_info(attributes: string, cancellable: Cancellable | null): FileInfo; @@ -2542,8 +2668,8 @@ export module FilenameCompleter { } } export class FilenameCompleter extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -2567,8 +2693,8 @@ export module FilterInputStream { } } export abstract class FilterInputStream extends InputStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties base_stream: InputStream; close_base_stream: boolean; @@ -2585,8 +2711,8 @@ export module FilterOutputStream { } } export abstract class FilterOutputStream extends OutputStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties base_stream: OutputStream; close_base_stream: boolean; @@ -2601,8 +2727,8 @@ export module IOModule { } } export class IOModule extends GObject.TypeModule implements GObject.TypePlugin { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](filename: string): IOModule; // Members @@ -2625,8 +2751,8 @@ export module IOStream { } } export abstract class IOStream extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties closed: boolean; input_stream: InputStream; @@ -2667,8 +2793,8 @@ export module InetAddress { } } export class InetAddress extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties bytes: any; family: SocketFamily; @@ -2684,7 +2810,7 @@ export class InetAddress extends GObject.Object { is_site_local: boolean; // Constructors static new_any(family: SocketFamily): InetAddress; - static new_from_bytes(bytes: number[], family: SocketFamily): InetAddress; + static new_from_bytes(bytes: (Uint8Array | string), family: SocketFamily): InetAddress; static new_from_string(string: string): InetAddress; static new_loopback(family: SocketFamily): InetAddress; // Members @@ -2713,8 +2839,8 @@ export module InetAddressMask { } } export class InetAddressMask extends GObject.Object implements Initable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties address: InetAddress; family: SocketFamily; @@ -2743,8 +2869,8 @@ export module InetSocketAddress { } } export class InetSocketAddress extends SocketAddress implements SocketConnectable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties address: InetAddress; flowinfo: number; @@ -2765,8 +2891,8 @@ export module InputStream { } } export abstract class InputStream extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members clear_pending(): void; close(cancellable: Cancellable | null): boolean; @@ -2774,11 +2900,11 @@ export abstract class InputStream extends GObject.Object { close_finish(result: AsyncResult): boolean; has_pending(): boolean; is_closed(): boolean; - read(buffer: number[], cancellable: Cancellable | null): number; - read_all(buffer: number[], cancellable: Cancellable | null): [boolean, number]; - read_all_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; + read_all(buffer: (Uint8Array | string), cancellable: Cancellable | null): [boolean, number]; + read_all_async(buffer: (Uint8Array | string), io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; read_all_finish(result: AsyncResult): [boolean, number]; - read_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + read_async(buffer: (Uint8Array | string), io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; read_bytes(count: number, cancellable: Cancellable | null): GLib.Bytes; read_bytes_async(count: number, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; read_bytes_finish(result: AsyncResult): GLib.Bytes; @@ -2790,7 +2916,7 @@ export abstract class InputStream extends GObject.Object { vfunc_close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_close_finish(result: AsyncResult): boolean; vfunc_close_fn(cancellable: Cancellable | null): boolean; - vfunc_read_async(buffer: number[] | null, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_read_async(buffer: (Uint8Array | string) | null, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_read_finish(result: AsyncResult): number; vfunc_read_fn(buffer: any | null, count: number, cancellable: Cancellable | null): number; vfunc_skip(count: number, cancellable: Cancellable | null): number; @@ -2803,27 +2929,28 @@ export module ListStore { item_type: GType; } } -export class ListStore extends GObject.Object implements ListModel { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); +export class ListStore extends GObject.Object implements ListModel { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties item_type: GType; // Constructors static ["new"](item_type: GType): ListStore; // Members - append(item: GObject.Object): void; - insert(position: number, item: GObject.Object): void; - insert_sorted(item: GObject.Object, compare_func: GLib.CompareDataFunc): number; + append(item: A): void; + insert(position: number, item: A): void; + insert_sorted(item: A, compare_func: GLib.CompareDataFunc): number; remove(position: number): void; remove_all(): void; sort(compare_func: GLib.CompareDataFunc): void; - splice(position: number, n_removals: number, additions: GObject.Object[]): void; + splice(position: number, n_removals: number, additions: A[]): void; + [Symbol.iterator]: () => IterableIterator; // Implemented Members get_item_type(): GType; get_n_items(): number; - get_object(position: number): GObject.Object | null; + get_item(position: number): A | null; items_changed(position: number, removed: number, added: number): void; - vfunc_get_item(position: number): GObject.Object | null; + vfunc_get_item(position: number): A | null; vfunc_get_item_type(): GType; vfunc_get_n_items(): number; } @@ -2833,24 +2960,24 @@ export module MemoryInputStream { } } export class MemoryInputStream extends InputStream implements PollableInputStream, Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): MemoryInputStream; - static new_from_bytes(bytes: GLib.Bytes): MemoryInputStream; - static new_from_data(data: number[], destroy: GLib.DestroyNotify | null): MemoryInputStream; + static new_from_bytes(bytes: (GLib.Bytes | Uint8Array)): MemoryInputStream; + static new_from_data(data: (Uint8Array | string), destroy: GLib.DestroyNotify | null): MemoryInputStream; // Members - add_bytes(bytes: GLib.Bytes): void; - add_data(data: number[], destroy: GLib.DestroyNotify | null): void; + add_bytes(bytes: (GLib.Bytes | Uint8Array)): void; + add_data(data: (Uint8Array | string), destroy: GLib.DestroyNotify | null): void; // Implemented Members can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_readable(): boolean; - read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + read_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_readable(): boolean; - vfunc_read_nonblocking(buffer: number[] | null): number; + vfunc_read_nonblocking(buffer: (Uint8Array | string) | null): number; can_seek(): boolean; can_truncate(): boolean; seek(offset: number, type: GLib.SeekType, cancellable: Cancellable | null): boolean; @@ -2871,8 +2998,8 @@ export module MemoryOutputStream { } } export class MemoryOutputStream extends OutputStream implements PollableOutputStream, Seekable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties data: any; data_size: number; @@ -2891,12 +3018,12 @@ export class MemoryOutputStream extends OutputStream implements PollableOutputSt can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_writable(): boolean; - write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + write_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_writable(): boolean; - vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_write_nonblocking(buffer: (Uint8Array | string) | null): number; vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; can_seek(): boolean; can_truncate(): boolean; @@ -2915,8 +3042,8 @@ export module Menu { } } export class Menu extends MenuModel { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): Menu; // Members @@ -2942,8 +3069,8 @@ export module MenuAttributeIter { } } export abstract class MenuAttributeIter extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: MenuAttributeIterPrivate; // Members @@ -2959,8 +3086,8 @@ export module MenuItem { } } export class MenuItem extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](label: string | null, detailed_action: string | null): MenuItem; static new_from_model(model: MenuModel, item_index: number): MenuItem; @@ -2984,8 +3111,8 @@ export module MenuLinkIter { } } export abstract class MenuLinkIter extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: MenuLinkIterPrivate; // Members @@ -3001,8 +3128,8 @@ export module MenuModel { } } export abstract class MenuModel extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: MenuModelPrivate; // Signals @@ -3032,13 +3159,82 @@ export abstract class MenuModel extends GObject.Object { export module MountOperation { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { [key: string]: any; + anonymous: boolean; + choice: number; + domain: string; + is_tcrypt_hidden_volume: boolean; + is_tcrypt_system_volume: boolean; + password: string; + password_save: PasswordSave; + pim: number; + username: string; } } export class MountOperation extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + anonymous: boolean; + choice: number; + domain: string; + is_tcrypt_hidden_volume: boolean; + is_tcrypt_system_volume: boolean; + password: string; + password_save: PasswordSave; + pim: number; + username: string; + // Fields + priv: MountOperationPrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'aborted', callback: (_source: this) => void): number; + connect_after(signal: 'aborted', callback: (_source: this) => void): number; + emit(signal: 'aborted'): void; + connect(signal: 'ask-password', callback: (_source: this, message: string, default_user: string, default_domain: string, flags: AskPasswordFlags) => void): number; + connect_after(signal: 'ask-password', callback: (_source: this, message: string, default_user: string, default_domain: string, flags: AskPasswordFlags) => void): number; + emit(signal: 'ask-password', message: string, default_user: string, default_domain: string, flags: AskPasswordFlags): void; + connect(signal: 'ask-question', callback: (_source: this, message: string, choices: string[]) => void): number; + connect_after(signal: 'ask-question', callback: (_source: this, message: string, choices: string[]) => void): number; + emit(signal: 'ask-question', message: string, choices: string[]): void; + connect(signal: 'reply', callback: (_source: this, result: MountOperationResult) => void): number; + connect_after(signal: 'reply', callback: (_source: this, result: MountOperationResult) => void): number; + emit(signal: 'reply', result: MountOperationResult): void; + connect(signal: 'show-processes', callback: (_source: this, message: string, processes: GLib.Pid[], choices: string[]) => void): number; + connect_after(signal: 'show-processes', callback: (_source: this, message: string, processes: GLib.Pid[], choices: string[]) => void): number; + emit(signal: 'show-processes', message: string, processes: GLib.Pid[], choices: string[]): void; + connect(signal: 'show-unmount-progress', callback: (_source: this, message: string, time_left: number, bytes_left: number) => void): number; + connect_after(signal: 'show-unmount-progress', callback: (_source: this, message: string, time_left: number, bytes_left: number) => void): number; + emit(signal: 'show-unmount-progress', message: string, time_left: number, bytes_left: number): void; // Constructors static ["new"](): MountOperation; + // Members + get_anonymous(): boolean; + get_choice(): number; + get_domain(): string; + get_is_tcrypt_hidden_volume(): boolean; + get_is_tcrypt_system_volume(): boolean; + get_password(): string; + get_password_save(): PasswordSave; + get_pim(): number; + get_username(): string; + reply(result: MountOperationResult): void; + set_anonymous(anonymous: boolean): void; + set_choice(choice: number): void; + set_domain(domain: string): void; + set_is_tcrypt_hidden_volume(hidden_volume: boolean): void; + set_is_tcrypt_system_volume(system_volume: boolean): void; + set_password(password: string): void; + set_password_save(save: PasswordSave): void; + set_pim(pim: number): void; + set_username(username: string): void; + vfunc_aborted(): void; + vfunc_ask_password(message: string, default_user: string, default_domain: string, flags: AskPasswordFlags): void; + vfunc_ask_question(message: string, choices: string[]): void; + vfunc_reply(result: MountOperationResult): void; + vfunc_show_processes(message: string, processes: GLib.Pid[], choices: string[]): void; + vfunc_show_unmount_progress(message: string, time_left: number, bytes_left: number): void; } export module NativeVolumeMonitor { export interface ConstructorProperties extends VolumeMonitor.ConstructorProperties { @@ -3046,8 +3242,8 @@ export module NativeVolumeMonitor { } } export abstract class NativeVolumeMonitor extends VolumeMonitor { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export module NetworkAddress { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -3058,8 +3254,8 @@ export module NetworkAddress { } } export class NetworkAddress extends GObject.Object implements SocketConnectable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties hostname: string; port: number; @@ -3091,8 +3287,8 @@ export module NetworkService { } } export class NetworkService extends GObject.Object implements SocketConnectable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties domain: string; protocol: string; @@ -3120,16 +3316,16 @@ export module Notification { } } export class Notification extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](title: string): Notification; // Members add_button(label: string, detailed_action: string): void; - add_button_with_target_value(label: string, action: string, target: GLib.Variant | null): void; + add_button_with_target(label: string, action: string, target: GLib.Variant | null): void; set_body(body: string | null): void; set_default_action(detailed_action: string): void; - set_default_action_and_target_value(action: string, target: GLib.Variant | null): void; + set_default_action_and_target(action: string, target: GLib.Variant | null): void; set_icon(icon: Icon): void; set_priority(priority: NotificationPriority): void; set_title(title: string): void; @@ -3141,8 +3337,8 @@ export module OutputStream { } } export abstract class OutputStream extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members clear_pending(): void; close(cancellable: Cancellable | null): boolean; @@ -3158,13 +3354,13 @@ export abstract class OutputStream extends GObject.Object { splice(source: InputStream, flags: OutputStreamSpliceFlags, cancellable: Cancellable | null): number; splice_async(source: InputStream, flags: OutputStreamSpliceFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; splice_finish(result: AsyncResult): number; - write(buffer: number[], cancellable: Cancellable | null): number; - write_all(buffer: number[], cancellable: Cancellable | null): [boolean, number | null]; - write_all_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + write(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; + write_all(buffer: (Uint8Array | string), cancellable: Cancellable | null): [boolean, number | null]; + write_all_async(buffer: (Uint8Array | string), io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; write_all_finish(result: AsyncResult): [boolean, number | null]; - write_async(buffer: number[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; - write_bytes(bytes: GLib.Bytes, cancellable: Cancellable | null): number; - write_bytes_async(bytes: GLib.Bytes, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + write_async(buffer: (Uint8Array | string), io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + write_bytes(bytes: (GLib.Bytes | Uint8Array), cancellable: Cancellable | null): number; + write_bytes_async(bytes: (GLib.Bytes | Uint8Array), io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; write_bytes_finish(result: AsyncResult): number; write_finish(result: AsyncResult): number; writev(vectors: OutputVector[], cancellable: Cancellable | null): [boolean, number | null]; @@ -3182,9 +3378,9 @@ export abstract class OutputStream extends GObject.Object { vfunc_splice(source: InputStream, flags: OutputStreamSpliceFlags, cancellable: Cancellable | null): number; vfunc_splice_async(source: InputStream, flags: OutputStreamSpliceFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_splice_finish(result: AsyncResult): number; - vfunc_write_async(buffer: number[] | null, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_write_async(buffer: (Uint8Array | string) | null, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_write_finish(result: AsyncResult): number; - vfunc_write_fn(buffer: number[] | null, cancellable: Cancellable | null): number; + vfunc_write_fn(buffer: (Uint8Array | string) | null, cancellable: Cancellable | null): number; vfunc_writev_async(vectors: OutputVector[], io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_writev_finish(result: AsyncResult): [boolean, number | null]; vfunc_writev_fn(vectors: OutputVector[], cancellable: Cancellable | null): [boolean, number | null]; @@ -3198,8 +3394,8 @@ export module Permission { } } export abstract class Permission extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties allowed: boolean; can_acquire: boolean; @@ -3236,8 +3432,8 @@ export module PropertyAction { } } export class PropertyAction extends GObject.Object implements Action { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties enabled: boolean; invert_boolean: boolean; @@ -3280,8 +3476,8 @@ export module ProxyAddress { } } export class ProxyAddress extends InetSocketAddress implements SocketConnectable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties destination_hostname: string; destination_port: number; @@ -3312,8 +3508,8 @@ export module ProxyAddressEnumerator { } } export class ProxyAddressEnumerator extends SocketAddressEnumerator { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties connectable: SocketConnectable; default_port: number; @@ -3326,8 +3522,8 @@ export module Resolver { } } export abstract class Resolver extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ResolverPrivate; // Signals @@ -3384,8 +3580,8 @@ export module Settings { } } export class Settings extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties backend: SettingsBackend; delay_apply: boolean; @@ -3473,8 +3669,8 @@ export module SettingsBackend { } } export abstract class SettingsBackend extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members changed(key: string, origin_tag: any | null): void; changed_tree(tree: GLib.Tree, origin_tag: any | null): void; @@ -3505,8 +3701,8 @@ export module SimpleAction { } } export class SimpleAction extends GObject.Object implements Action { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties enabled: boolean; name: string; @@ -3554,12 +3750,12 @@ export module SimpleActionGroup { } } export class SimpleActionGroup extends GObject.Object implements ActionGroup, ActionMap { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): SimpleActionGroup; // Members - add_entries(entries: ActionEntry[]): void; + add_entries(entries: ActionEntry[], user_data: any | null): void; insert(action: Action): void; lookup(action_name: string): Action; remove(action_name: string): void; @@ -3593,7 +3789,7 @@ export class SimpleActionGroup extends GObject.Object implements ActionGroup, Ac vfunc_list_actions(): string[]; vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; add_action(action: Action): void; - add_action_entries(entries: ActionEntry[]): void; + add_action_entries(entries: ActionEntry[], user_data: any | null): void; lookup_action(action_name: string): Action; remove_action(action_name: string): void; vfunc_add_action(action: Action): void; @@ -3606,8 +3802,8 @@ export module SimpleAsyncResult { } } export class SimpleAsyncResult extends GObject.Object implements AsyncResult { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](source_object: GObject.Object | null, callback: AsyncReadyCallback | null, source_tag: any | null): SimpleAsyncResult; static new_from_error(source_object: GObject.Object | null, callback: AsyncReadyCallback | null, error: GLib.Error): SimpleAsyncResult; @@ -3624,11 +3820,11 @@ export class SimpleAsyncResult extends GObject.Object implements AsyncResult { set_op_res_gssize(op_res: number): void; static is_valid(result: AsyncResult, source: GObject.Object | null, source_tag: any | null): boolean; // Implemented Members - get_source_object(): GObject.Object | null; + get_source_object(): T | null; get_user_data(): any | null; is_tagged(source_tag: any | null): boolean; legacy_propagate_error(): boolean; - vfunc_get_source_object(): GObject.Object | null; + vfunc_get_source_object(): T | null; vfunc_get_user_data(): any | null; vfunc_is_tagged(source_tag: any | null): boolean; } @@ -3640,8 +3836,8 @@ export module SimpleIOStream { } } export class SimpleIOStream extends IOStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties input_stream: InputStream; output_stream: OutputStream; @@ -3654,8 +3850,8 @@ export module SimplePermission { } } export class SimplePermission extends Permission { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](allowed: boolean): SimplePermission; } @@ -3663,13 +3859,29 @@ export module SimpleProxyResolver { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { [key: string]: any; default_proxy: string; + ignore_hosts: string[]; } } -export class SimpleProxyResolver extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); +export class SimpleProxyResolver extends GObject.Object implements ProxyResolver { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties default_proxy: string; + ignore_hosts: string[]; + // Members + set_default_proxy(default_proxy: string): void; + set_ignore_hosts(ignore_hosts: string): void; + set_uri_proxy(uri_scheme: string, proxy: string): void; + static new(default_proxy: string | null, ignore_hosts: string | null): ProxyResolver; + // Implemented Members + is_supported(): boolean; + lookup(uri: string, cancellable: Cancellable | null): string[]; + lookup_async(uri: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_finish(result: AsyncResult): string[]; + vfunc_is_supported(): boolean; + vfunc_lookup(uri: string, cancellable: Cancellable | null): string[]; + vfunc_lookup_async(uri: string, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_finish(result: AsyncResult): string[]; } export module Socket { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -3691,8 +3903,8 @@ export module Socket { } } export class Socket extends GObject.Object implements DatagramBased, Initable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties blocking: boolean; broadcast: boolean; @@ -3749,19 +3961,19 @@ export class Socket extends GObject.Object implements DatagramBased, Initable { leave_multicast_group(group: InetAddress, source_specific: boolean, iface: string | null): boolean; leave_multicast_group_ssm(group: InetAddress, source_specific: InetAddress | null, iface: string | null): boolean; listen(): boolean; - receive(buffer: number[], cancellable: Cancellable | null): number; - receive_from(buffer: number[], cancellable: Cancellable | null): [number, SocketAddress | null]; + receive(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; + receive_from(buffer: (Uint8Array | string), cancellable: Cancellable | null): [number, SocketAddress | null]; receive_message(vectors: InputVector[], flags: SocketMsgFlags, cancellable: Cancellable | null): [number, SocketAddress | null, SocketControlMessage[] | null, SocketMsgFlags]; receive_messages(messages: InputMessage[], flags: SocketMsgFlags, cancellable: Cancellable | null): number; receive_messages(...args: never[]): never; - receive_with_blocking(buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; - send(buffer: number[], cancellable: Cancellable | null): number; + receive_with_blocking(buffer: (Uint8Array | string), blocking: boolean, cancellable: Cancellable | null): number; + send(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; send_message(address: SocketAddress | null, vectors: OutputVector[], messages: SocketControlMessage[] | null, flags: SocketMsgFlags, cancellable: Cancellable | null): number; send_message_with_timeout(address: SocketAddress | null, vectors: OutputVector[], messages: SocketControlMessage[] | null, flags: SocketMsgFlags, timeout_us: number, cancellable: Cancellable | null): [PollableReturn, number | null]; send_messages(messages: OutputMessage[], flags: SocketMsgFlags, cancellable: Cancellable | null): number; send_messages(...args: never[]): never; - send_to(address: SocketAddress | null, buffer: number[], cancellable: Cancellable | null): number; - send_with_blocking(buffer: number[], blocking: boolean, cancellable: Cancellable | null): number; + send_to(address: SocketAddress | null, buffer: (Uint8Array | string), cancellable: Cancellable | null): number; + send_with_blocking(buffer: (Uint8Array | string), blocking: boolean, cancellable: Cancellable | null): number; set_blocking(blocking: boolean): void; set_broadcast(broadcast: boolean): void; set_keepalive(keepalive: boolean): void; @@ -3790,8 +4002,8 @@ export module SocketAddress { } } export abstract class SocketAddress extends GObject.Object implements SocketConnectable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties family: SocketFamily; // Constructors @@ -3817,8 +4029,8 @@ export module SocketAddressEnumerator { } } export abstract class SocketAddressEnumerator extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members next(cancellable: Cancellable | null): SocketAddress; next_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; @@ -3842,8 +4054,8 @@ export module SocketClient { } } export class SocketClient extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties enable_proxy: boolean; family: SocketFamily; @@ -3905,8 +4117,8 @@ export module SocketConnection { } } export class SocketConnection extends IOStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties socket: Socket; // Fields @@ -3929,8 +4141,8 @@ export module SocketControlMessage { } } export abstract class SocketControlMessage extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: SocketControlMessagePrivate; // Members @@ -3942,7 +4154,7 @@ export abstract class SocketControlMessage extends GObject.Object { vfunc_get_size(): number; vfunc_get_type(): number; vfunc_serialize(data: any): void; - static deserialize(level: number, type: number, data: number[]): SocketControlMessage; + static deserialize(level: number, type: number, data: (Uint8Array | string)): SocketControlMessage; } export module SocketListener { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -3951,8 +4163,8 @@ export module SocketListener { } } export class SocketListener extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties listen_backlog: number; // Fields @@ -3989,8 +4201,8 @@ export module SocketService { } } export class SocketService extends SocketListener { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; // Fields @@ -4014,14 +4226,46 @@ export class SocketService extends SocketListener { export module Subprocess { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { [key: string]: any; + argv: string[]; + flags: SubprocessFlags; } } -export class Subprocess extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); +export class Subprocess extends GObject.Object implements Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + argv: string[]; + flags: SubprocessFlags; // Constructors - static newv(argv: string[], flags: SubprocessFlags): Subprocess; - static newv(...args: never[]): never; + static ["new"](argv: string[], flags: SubprocessFlags): Subprocess; + // Members + communicate(stdin_buf: (GLib.Bytes | Uint8Array) | null, cancellable: Cancellable | null): [boolean, GLib.Bytes | null, GLib.Bytes | null]; + communicate_async(stdin_buf: (GLib.Bytes | Uint8Array) | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + communicate_finish(result: AsyncResult): [boolean, GLib.Bytes | null, GLib.Bytes | null]; + communicate_utf8(stdin_buf: string | null, cancellable: Cancellable | null): [boolean, string | null, string | null]; + communicate_utf8_async(stdin_buf: string | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + communicate_utf8_finish(result: AsyncResult): [boolean, string | null, string | null]; + force_exit(): void; + get_exit_status(): number; + get_identifier(): string; + get_if_exited(): boolean; + get_if_signaled(): boolean; + get_status(): number; + get_stderr_pipe(): InputStream; + get_stdin_pipe(): OutputStream; + get_stdout_pipe(): InputStream; + get_successful(): boolean; + get_term_sig(): number; + send_signal(signal_num: number): void; + wait(cancellable: Cancellable | null): boolean; + wait_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + wait_check(cancellable: Cancellable | null): boolean; + wait_check_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + wait_check_finish(result: AsyncResult): boolean; + wait_finish(result: AsyncResult): boolean; + // Implemented Members + init(cancellable: Cancellable | null): boolean; + vfunc_init(cancellable: Cancellable | null): boolean; } export module SubprocessLauncher { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -4030,8 +4274,8 @@ export module SubprocessLauncher { } } export class SubprocessLauncher extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties flags: SubprocessFlags; // Constructors @@ -4059,12 +4303,12 @@ export module Task { } } export class Task extends GObject.Object implements AsyncResult { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties completed: boolean; // Constructors - static ["new"](source_object: GObject.Object | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null, callback_data: any | null): Task; + static ["new"](source_object: GObject.Object | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): Task; // Members get_cancellable(): Cancellable; get_check_cancellable(): boolean; @@ -4073,7 +4317,7 @@ export class Task extends GObject.Object implements AsyncResult { get_name(): string | null; get_priority(): number; get_return_on_cancel(): boolean; - get_source_object(): GObject.Object | null; + get_source_object(): T | null; get_source_tag(): any | null; get_task_data(): any | null; had_error(): boolean; @@ -4092,12 +4336,12 @@ export class Task extends GObject.Object implements AsyncResult { set_source_tag(source_tag: any | null): void; set_task_data(task_data: any | null, task_data_destroy: GLib.DestroyNotify | null): void; static is_valid(result: AsyncResult, source_object: GObject.Object | null): boolean; - static report_error(source_object: GObject.Object | null, callback: AsyncReadyCallback | null, callback_data: any | null, source_tag: any | null, error: GLib.Error): void; + static report_error(source_object: GObject.Object | null, callback: AsyncReadyCallback | null, source_tag: any | null, error: GLib.Error): void; // Implemented Members get_user_data(): any | null; is_tagged(source_tag: any | null): boolean; legacy_propagate_error(): boolean; - vfunc_get_source_object(): GObject.Object | null; + vfunc_get_source_object(): T | null; vfunc_get_user_data(): any | null; vfunc_is_tagged(source_tag: any | null): boolean; } @@ -4108,8 +4352,8 @@ export module TcpConnection { } } export class TcpConnection extends SocketConnection { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties graceful_disconnect: boolean; // Fields @@ -4125,8 +4369,8 @@ export module TcpWrapperConnection { } } export class TcpWrapperConnection extends TcpConnection { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties base_io_stream: IOStream; // Fields @@ -4143,8 +4387,8 @@ export module TestDBus { } } export class TestDBus extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties flags: TestDBusFlags; // Constructors @@ -4162,17 +4406,32 @@ export module ThemedIcon { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { [key: string]: any; name: string; + names: string[]; + use_default_fallbacks: boolean; } } -export class ThemedIcon extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); +export class ThemedIcon extends GObject.Object implements Icon { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties name: string; + names: string[]; + use_default_fallbacks: boolean; // Constructors static ["new"](iconname: string): ThemedIcon; static new_from_names(iconnames: string[]): ThemedIcon; static new_with_default_fallbacks(iconname: string): ThemedIcon; + // Members + append_name(iconname: string): void; + get_names(): string[]; + prepend_name(iconname: string): void; + // Implemented Members + equal(icon2: Icon | null): boolean; + serialize(): GLib.Variant; + to_string(): string | null; + vfunc_equal(icon2: Icon | null): boolean; + vfunc_hash(): number; + vfunc_serialize(): GLib.Variant; } export module ThreadedSocketService { export interface ConstructorProperties extends SocketService.ConstructorProperties { @@ -4181,8 +4440,8 @@ export module ThreadedSocketService { } } export class ThreadedSocketService extends SocketService { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties max_threads: number; // Fields @@ -4203,21 +4462,21 @@ export class ThreadedSocketService extends SocketService { export module TlsCertificate { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { [key: string]: any; - certificate: number[]; + certificate: Uint8Array; certificate_pem: string; issuer: TlsCertificate; - private_key: number[]; + private_key: Uint8Array; private_key_pem: string; } } export abstract class TlsCertificate extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties - certificate: number[]; + certificate: Uint8Array; certificate_pem: string; issuer: TlsCertificate; - private_key: number[]; + private_key: Uint8Array; private_key_pem: string; // Fields priv: TlsCertificatePrivate; @@ -4235,11 +4494,36 @@ export abstract class TlsCertificate extends GObject.Object { export module TlsConnection { export interface ConstructorProperties extends IOStream.ConstructorProperties { [key: string]: any; + advertised_protocols: string[]; + base_io_stream: IOStream; + certificate: TlsCertificate; + database: TlsDatabase; + interaction: TlsInteraction; + negotiated_protocol: string; + peer_certificate: TlsCertificate; + peer_certificate_errors: TlsCertificateFlags; + rehandshake_mode: TlsRehandshakeMode; + require_close_notify: boolean; + use_system_certdb: boolean; } } export abstract class TlsConnection extends IOStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + advertised_protocols: string[]; + base_io_stream: IOStream; + certificate: TlsCertificate; + database: TlsDatabase; + interaction: TlsInteraction; + negotiated_protocol: string; + peer_certificate: TlsCertificate; + peer_certificate_errors: TlsCertificateFlags; + rehandshake_mode: TlsRehandshakeMode; + require_close_notify: boolean; + use_system_certdb: boolean; + // Fields + priv: TlsConnectionPrivate; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -4247,6 +4531,31 @@ export abstract class TlsConnection extends IOStream { connect(signal: 'accept-certificate', callback: (_source: this, peer_cert: TlsCertificate, errors: TlsCertificateFlags) => boolean): number; connect_after(signal: 'accept-certificate', callback: (_source: this, peer_cert: TlsCertificate, errors: TlsCertificateFlags) => boolean): number; emit(signal: 'accept-certificate', peer_cert: TlsCertificate, errors: TlsCertificateFlags): void; + // Members + emit_accept_certificate(peer_cert: TlsCertificate, errors: TlsCertificateFlags): boolean; + get_certificate(): TlsCertificate; + get_database(): TlsDatabase; + get_interaction(): TlsInteraction; + get_negotiated_protocol(): string | null; + get_peer_certificate(): TlsCertificate; + get_peer_certificate_errors(): TlsCertificateFlags; + get_rehandshake_mode(): TlsRehandshakeMode; + get_require_close_notify(): boolean; + get_use_system_certdb(): boolean; + handshake(cancellable: Cancellable | null): boolean; + handshake_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + handshake_finish(result: AsyncResult): boolean; + set_advertised_protocols(protocols: string[] | null): void; + set_certificate(certificate: TlsCertificate): void; + set_database(database: TlsDatabase): void; + set_interaction(interaction: TlsInteraction | null): void; + set_rehandshake_mode(mode: TlsRehandshakeMode): void; + set_require_close_notify(require_close_notify: boolean): void; + set_use_system_certdb(use_system_certdb: boolean): void; + vfunc_accept_certificate(peer_cert: TlsCertificate, errors: TlsCertificateFlags): boolean; + vfunc_handshake(cancellable: Cancellable | null): boolean; + vfunc_handshake_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_handshake_finish(result: AsyncResult): boolean; } export module TlsDatabase { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -4254,8 +4563,8 @@ export module TlsDatabase { } } export abstract class TlsDatabase extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: TlsDatabasePrivate; // Members @@ -4266,8 +4575,8 @@ export abstract class TlsDatabase extends GObject.Object { lookup_certificate_issuer(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): TlsCertificate; lookup_certificate_issuer_async(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; lookup_certificate_issuer_finish(result: AsyncResult): TlsCertificate; - lookup_certificates_issued_by(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): GLib.List; - lookup_certificates_issued_by_async(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + lookup_certificates_issued_by(issuer_raw_dn: (Uint8Array | string), interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): GLib.List; + lookup_certificates_issued_by_async(issuer_raw_dn: (Uint8Array | string), interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; lookup_certificates_issued_by_finish(result: AsyncResult): GLib.List; verify_chain(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null): TlsCertificateFlags; verify_chain_async(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; @@ -4279,8 +4588,8 @@ export abstract class TlsDatabase extends GObject.Object { vfunc_lookup_certificate_issuer(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): TlsCertificate; vfunc_lookup_certificate_issuer_async(certificate: TlsCertificate, interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_lookup_certificate_issuer_finish(result: AsyncResult): TlsCertificate; - vfunc_lookup_certificates_issued_by(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): GLib.List; - vfunc_lookup_certificates_issued_by_async(issuer_raw_dn: number[], interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_lookup_certificates_issued_by(issuer_raw_dn: (Uint8Array | string), interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null): GLib.List; + vfunc_lookup_certificates_issued_by_async(issuer_raw_dn: (Uint8Array | string), interaction: TlsInteraction | null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_lookup_certificates_issued_by_finish(result: AsyncResult): GLib.List; vfunc_verify_chain(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null): TlsCertificateFlags; vfunc_verify_chain_async(chain: TlsCertificate, purpose: string, identity: SocketConnectable | null, interaction: TlsInteraction | null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; @@ -4292,8 +4601,8 @@ export module TlsInteraction { } } export class TlsInteraction extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members ask_password(password: TlsPassword, cancellable: Cancellable | null): TlsInteractionResult; ask_password_async(password: TlsPassword, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; @@ -4319,8 +4628,8 @@ export module TlsPassword { } } export class TlsPassword extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties description: string; flags: TlsPasswordFlags; @@ -4336,12 +4645,12 @@ export class TlsPassword extends GObject.Object { get_warning(): string; set_description(description: string): void; set_flags(flags: TlsPasswordFlags): void; - set_value(value: number[]): void; - set_value_full(value: number[], destroy: GLib.DestroyNotify | null): void; + set_value(value: (Uint8Array | string)): void; + set_value_full(value: (Uint8Array | string), destroy: GLib.DestroyNotify | null): void; set_warning(warning: string): void; vfunc_get_default_warning(): string; vfunc_get_value(length: number | null): number; - vfunc_set_value(value: number[], destroy: GLib.DestroyNotify | null): void; + vfunc_set_value(value: (Uint8Array | string), destroy: GLib.DestroyNotify | null): void; } export module UnixConnection { export interface ConstructorProperties extends SocketConnection.ConstructorProperties { @@ -4349,8 +4658,8 @@ export module UnixConnection { } } export class UnixConnection extends SocketConnection { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: UnixConnectionPrivate | any; // Members @@ -4370,8 +4679,8 @@ export module UnixCredentialsMessage { } } export class UnixCredentialsMessage extends SocketControlMessage { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties credentials: Credentials; // Fields @@ -4389,8 +4698,8 @@ export module UnixFDList { } } export class UnixFDList extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: UnixFDListPrivate; // Constructors @@ -4400,8 +4709,8 @@ export class UnixFDList extends GObject.Object { append(fd: number): number; get(index_: number): number; get_length(): number; - peek_fds(): [number[], number | null]; - steal_fds(): [number[], number | null]; + peek_fds(): number[]; + steal_fds(): number[]; } export module UnixFDMessage { export interface ConstructorProperties extends SocketControlMessage.ConstructorProperties { @@ -4410,8 +4719,8 @@ export module UnixFDMessage { } } export class UnixFDMessage extends SocketControlMessage { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties fd_list: UnixFDList; // Fields @@ -4422,7 +4731,7 @@ export class UnixFDMessage extends SocketControlMessage { // Members append_fd(fd: number): boolean; get_fd_list(): UnixFDList; - steal_fds(): [number[], number | null]; + steal_fds(): number[]; } export module UnixInputStream { export interface ConstructorProperties extends InputStream.ConstructorProperties { @@ -4432,8 +4741,8 @@ export module UnixInputStream { } } export class UnixInputStream extends InputStream implements FileDescriptorBased, PollableInputStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties close_fd: boolean; fd: number; @@ -4448,11 +4757,11 @@ export class UnixInputStream extends InputStream implements FileDescriptorBased, can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_readable(): boolean; - read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + read_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_readable(): boolean; - vfunc_read_nonblocking(buffer: number[] | null): number; + vfunc_read_nonblocking(buffer: (Uint8Array | string) | null): number; } export module UnixMountMonitor { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -4460,8 +4769,8 @@ export module UnixMountMonitor { } } export class UnixMountMonitor extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -4486,8 +4795,8 @@ export module UnixOutputStream { } } export class UnixOutputStream extends OutputStream implements FileDescriptorBased, PollableOutputStream { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties close_fd: boolean; fd: number; @@ -4502,12 +4811,12 @@ export class UnixOutputStream extends OutputStream implements FileDescriptorBase can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_writable(): boolean; - write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + write_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_writable(): boolean; - vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_write_nonblocking(buffer: (Uint8Array | string) | null): number; vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; } export module UnixSocketAddress { @@ -4516,17 +4825,17 @@ export module UnixSocketAddress { "abstract": boolean; address_type: UnixSocketAddressType; path: string; - path_as_array: number[]; + path_as_array: Uint8Array; } } export class UnixSocketAddress extends SocketAddress implements SocketConnectable { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties "abstract": boolean; address_type: UnixSocketAddressType; path: string; - path_as_array: number[]; + path_as_array: Uint8Array; // Constructors static ["new"](path: string): UnixSocketAddress; static new_abstract(path: number[]): UnixSocketAddress; @@ -4544,15 +4853,15 @@ export module Vfs { } } export class Vfs extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members get_file_for_path(path: string): File; get_file_for_uri(uri: string): File; get_supported_uri_schemes(): string[]; is_active(): boolean; parse_name(parse_name: string): File; - register_uri_scheme(scheme: string, uri_func: VfsFileLookupFunc | null, uri_data: any | null, uri_destroy: GLib.DestroyNotify | null, parse_name_func: VfsFileLookupFunc | null, parse_name_data: any | null, parse_name_destroy: GLib.DestroyNotify | null): boolean; + register_uri_scheme(scheme: string, uri_func: VfsFileLookupFunc | null, uri_destroy: GLib.DestroyNotify | null, parse_name_func: VfsFileLookupFunc | null, parse_name_destroy: GLib.DestroyNotify | null): boolean; unregister_uri_scheme(scheme: string): boolean; vfunc_add_writable_namespaces(list: FileAttributeInfoList): void; vfunc_get_file_for_path(path: string): File; @@ -4573,8 +4882,8 @@ export module VolumeMonitor { } } export class VolumeMonitor extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -4650,8 +4959,8 @@ export module ZlibCompressor { } } export class ZlibCompressor extends GObject.Object implements Converter { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties file_info: FileInfo; format: ZlibCompressorFormat; @@ -4662,9 +4971,9 @@ export class ZlibCompressor extends GObject.Object implements Converter { get_file_info(): FileInfo; set_file_info(file_info: FileInfo | null): void; // Implemented Members - convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + convert(inbuf: (Uint8Array | string), outbuf: (Uint8Array | string), flags: ConverterFlags): [ConverterResult, number, number]; reset(): void; - vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_convert(inbuf: (Uint8Array | string) | null, outbuf: (Uint8Array | string) | null, flags: ConverterFlags): [ConverterResult, number, number]; vfunc_reset(): void; } export module ZlibDecompressor { @@ -4675,8 +4984,8 @@ export module ZlibDecompressor { } } export class ZlibDecompressor extends GObject.Object implements Converter { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties file_info: FileInfo; format: ZlibCompressorFormat; @@ -4685,12 +4994,18 @@ export class ZlibDecompressor extends GObject.Object implements Converter { // Members get_file_info(): FileInfo; // Implemented Members - convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + convert(inbuf: (Uint8Array | string), outbuf: (Uint8Array | string), flags: ConverterFlags): [ConverterResult, number, number]; reset(): void; - vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_convert(inbuf: (Uint8Array | string) | null, outbuf: (Uint8Array | string) | null, flags: ConverterFlags): [ConverterResult, number, number]; vfunc_reset(): void; } export class ActionEntry { + constructor(properties?: { + name?: string; + parameter_type?: string; + state?: string; + padding?: number[]; + }); constructor(copy: ActionEntry); // Fields name: string; @@ -4746,6 +5061,10 @@ export class DBusArgInfo { unref(): void; } export class DBusErrorEntry { + constructor(properties?: { + error_code?: number; + dbus_error_name?: string; + }); constructor(copy: DBusErrorEntry); // Fields error_code: number; @@ -4978,6 +5297,10 @@ export class InputStreamPrivate { constructor(copy: InputStreamPrivate); } export class InputVector { + constructor(properties?: { + buffer?: any; + size?: number; + }); constructor(copy: InputVector); // Fields buffer: any; @@ -5024,6 +5347,10 @@ export class OutputStreamPrivate { constructor(copy: OutputStreamPrivate); } export class OutputVector { + constructor(properties?: { + buffer?: any; + size?: number; + }); constructor(copy: OutputVector); // Fields buffer: any; @@ -5042,10 +5369,10 @@ export class ResolverPrivate { constructor(copy: ResolverPrivate); } export class Resource { - constructor(data: GLib.Bytes); + constructor(data: (GLib.Bytes | Uint8Array)); constructor(copy: Resource); // Constructors - static new_from_data(data: GLib.Bytes): Resource; + static new_from_data(data: (GLib.Bytes | Uint8Array)): Resource; // Members _register(): void; _unregister(): void; @@ -5217,11 +5544,12 @@ export class UnixSocketAddressPrivate { constructor(copy: UnixSocketAddressPrivate); } export interface ActionNamespace { + $gtype: GType; name_is_valid(action_name: string): boolean; parse_detailed_name(detailed_name: string): [boolean, string, GLib.Variant]; print_detailed_name(action_name: string, target_value: GLib.Variant | null): string; } -export interface Action { +export interface Action extends GObject.Object { // Properties enabled: boolean; name: string; @@ -5248,7 +5576,10 @@ export interface Action { } export const Action: ActionNamespace; -export interface ActionGroup { +export interface ActionGroupNamespace { + $gtype: GType; +} +export interface ActionGroup extends GObject.Object { // Members action_added(action_name: string): void; action_enabled_changed(action_name: string, enabled: boolean): void; @@ -5279,17 +5610,25 @@ export interface ActionGroup { vfunc_list_actions(): string[]; vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; } -export interface ActionMap { + +export const ActionGroup: ActionGroupNamespace; +export interface ActionMapNamespace { + $gtype: GType; +} +export interface ActionMap extends GObject.Object { // Members add_action(action: Action): void; - add_action_entries(entries: ActionEntry[]): void; + add_action_entries(entries: ActionEntry[], user_data: any | null): void; lookup_action(action_name: string): Action; remove_action(action_name: string): void; vfunc_add_action(action: Action): void; vfunc_lookup_action(action_name: string): Action; vfunc_remove_action(action_name: string): void; } + +export const ActionMap: ActionMapNamespace; export interface AppInfoNamespace { + $gtype: GType; create_from_commandline(commandline: string, application_name: string | null, flags: AppInfoCreateFlags): AppInfo; get_all(): GLib.List; get_all_for_type(content_type: string): GLib.List; @@ -5302,7 +5641,7 @@ export interface AppInfoNamespace { launch_default_for_uri_finish(result: AsyncResult): boolean; reset_type_associations(content_type: string): void; } -export interface AppInfo { +export interface AppInfo extends GObject.Object { // Members add_supports_type(content_type: string): boolean; can_delete(): boolean; @@ -5358,45 +5697,64 @@ export interface AppInfo { export const AppInfo: AppInfoNamespace; export interface AsyncInitableNamespace { + $gtype: GType; newv_async(object_type: GType, n_parameters: number, parameters: GObject.Parameter, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; } -export interface AsyncInitable { +export interface AsyncInitable extends GObject.Object { // Members init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; init_finish(res: AsyncResult): boolean; - new_finish(res: AsyncResult): GObject.Object; + new_finish(res: AsyncResult): T; vfunc_init_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_init_finish(res: AsyncResult): boolean; } export const AsyncInitable: AsyncInitableNamespace; -export interface AsyncResult { +export interface AsyncResultNamespace { + $gtype: GType; +} +export interface AsyncResult extends GObject.Object { // Members - get_source_object(): GObject.Object | null; + get_source_object(): T | null; get_user_data(): any | null; is_tagged(source_tag: any | null): boolean; legacy_propagate_error(): boolean; - vfunc_get_source_object(): GObject.Object | null; + vfunc_get_source_object(): T | null; vfunc_get_user_data(): any | null; vfunc_is_tagged(source_tag: any | null): boolean; } -export interface Converter { + +export const AsyncResult: AsyncResultNamespace; +export interface ConverterNamespace { + $gtype: GType; +} +export interface Converter extends GObject.Object { // Members - convert(inbuf: number[], outbuf: number[], flags: ConverterFlags): [ConverterResult, number, number]; + convert(inbuf: (Uint8Array | string), outbuf: (Uint8Array | string), flags: ConverterFlags): [ConverterResult, number, number]; reset(): void; - vfunc_convert(inbuf: number[] | null, outbuf: number[] | null, flags: ConverterFlags): [ConverterResult, number, number]; + vfunc_convert(inbuf: (Uint8Array | string) | null, outbuf: (Uint8Array | string) | null, flags: ConverterFlags): [ConverterResult, number, number]; vfunc_reset(): void; } -export interface DBusInterface { + +export const Converter: ConverterNamespace; +export interface DBusInterfaceNamespace { + $gtype: GType; +} +export interface DBusInterface extends GObject.Object { // Members - dup_object(): DBusObject; + get_object(): DBusObject; get_info(): DBusInterfaceInfo; set_object(object: DBusObject | null): void; vfunc_dup_object(): DBusObject; vfunc_get_info(): DBusInterfaceInfo; vfunc_set_object(object: DBusObject | null): void; } -export interface DBusObject { + +export const DBusInterface: DBusInterfaceNamespace; +export interface DBusObjectNamespace { + $gtype: GType; +} +export interface DBusObject extends GObject.Object { // Members get_interface(interface_name: string): DBusInterface; get_interfaces(): GLib.List; @@ -5407,7 +5765,12 @@ export interface DBusObject { vfunc_interface_added(interface_: DBusInterface): void; vfunc_interface_removed(interface_: DBusInterface): void; } -export interface DBusObjectManager { + +export const DBusObject: DBusObjectNamespace; +export interface DBusObjectManagerNamespace { + $gtype: GType; +} +export interface DBusObjectManager extends GObject.Object { // Members get_interface(object_path: string, interface_name: string): DBusInterface; get_object(object_path: string): DBusObject; @@ -5422,7 +5785,12 @@ export interface DBusObjectManager { vfunc_object_added(object: DBusObject): void; vfunc_object_removed(object: DBusObject): void; } -export interface DatagramBased { + +export const DBusObjectManager: DBusObjectManagerNamespace; +export interface DatagramBasedNamespace { + $gtype: GType; +} +export interface DatagramBased extends GObject.Object { // Members condition_check(condition: GLib.IOCondition): GLib.IOCondition; condition_wait(condition: GLib.IOCondition, timeout: number, cancellable: Cancellable | null): boolean; @@ -5435,12 +5803,22 @@ export interface DatagramBased { vfunc_receive_messages(messages: InputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; vfunc_send_messages(messages: OutputMessage[], flags: number, timeout: number, cancellable: Cancellable | null): number; } -export interface DesktopAppInfoLookup { + +export const DatagramBased: DatagramBasedNamespace; +export interface DesktopAppInfoLookupNamespace { + $gtype: GType; +} +export interface DesktopAppInfoLookup extends GObject.Object { // Members get_default_for_uri_scheme(uri_scheme: string): AppInfo; vfunc_get_default_for_uri_scheme(uri_scheme: string): AppInfo; } -export interface Drive { + +export const DesktopAppInfoLookup: DesktopAppInfoLookupNamespace; +export interface DriveNamespace { + $gtype: GType; +} +export interface Drive extends GObject.Object { // Members can_eject(): boolean; can_poll_for_media(): boolean; @@ -5503,10 +5881,13 @@ export interface Drive { vfunc_stop_button(): void; vfunc_stop_finish(result: AsyncResult): boolean; } + +export const Drive: DriveNamespace; export interface DtlsClientConnectionNamespace { + $gtype: GType; ["new"](base_socket: DatagramBased, server_identity: SocketConnectable | null): DtlsClientConnection; } -export interface DtlsClientConnection { +export interface DtlsClientConnection extends DatagramBased { // Properties accepted_cas: GLib.List; server_identity: SocketConnectable; @@ -5520,18 +5901,70 @@ export interface DtlsClientConnection { } export const DtlsClientConnection: DtlsClientConnectionNamespace; -export interface DtlsConnection { +export interface DtlsConnectionNamespace { + $gtype: GType; } +export interface DtlsConnection extends DatagramBased { + // Properties + advertised_protocols: string[]; + base_socket: DatagramBased; + certificate: TlsCertificate; + database: TlsDatabase; + interaction: TlsInteraction; + negotiated_protocol: string; + peer_certificate: TlsCertificate; + peer_certificate_errors: TlsCertificateFlags; + rehandshake_mode: TlsRehandshakeMode; + require_close_notify: boolean; + // Members + close(cancellable: Cancellable | null): boolean; + close_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + close_finish(result: AsyncResult): boolean; + emit_accept_certificate(peer_cert: TlsCertificate, errors: TlsCertificateFlags): boolean; + get_certificate(): TlsCertificate; + get_database(): TlsDatabase; + get_interaction(): TlsInteraction; + get_negotiated_protocol(): string | null; + get_peer_certificate(): TlsCertificate; + get_peer_certificate_errors(): TlsCertificateFlags; + get_rehandshake_mode(): TlsRehandshakeMode; + get_require_close_notify(): boolean; + handshake(cancellable: Cancellable | null): boolean; + handshake_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + handshake_finish(result: AsyncResult): boolean; + set_advertised_protocols(protocols: string[] | null): void; + set_certificate(certificate: TlsCertificate): void; + set_database(database: TlsDatabase): void; + set_interaction(interaction: TlsInteraction | null): void; + set_rehandshake_mode(mode: TlsRehandshakeMode): void; + set_require_close_notify(require_close_notify: boolean): void; + shutdown(shutdown_read: boolean, shutdown_write: boolean, cancellable: Cancellable | null): boolean; + shutdown_async(shutdown_read: boolean, shutdown_write: boolean, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + shutdown_finish(result: AsyncResult): boolean; + vfunc_accept_certificate(peer_cert: TlsCertificate, errors: TlsCertificateFlags): boolean; + vfunc_get_negotiated_protocol(): string | null; + vfunc_handshake(cancellable: Cancellable | null): boolean; + vfunc_handshake_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_handshake_finish(result: AsyncResult): boolean; + vfunc_set_advertised_protocols(protocols: string[] | null): void; + vfunc_shutdown(shutdown_read: boolean, shutdown_write: boolean, cancellable: Cancellable | null): boolean; + vfunc_shutdown_async(shutdown_read: boolean, shutdown_write: boolean, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + vfunc_shutdown_finish(result: AsyncResult): boolean; +} + +export const DtlsConnection: DtlsConnectionNamespace; export interface DtlsServerConnectionNamespace { + $gtype: GType; ["new"](base_socket: DatagramBased, certificate: TlsCertificate | null): DtlsServerConnection; } -export interface DtlsServerConnection { +export interface DtlsServerConnection extends DatagramBased { // Properties authentication_mode: TlsAuthenticationMode; } export const DtlsServerConnection: DtlsServerConnectionNamespace; export interface FileNamespace { + $gtype: GType; new_for_commandline_arg(arg: string): File; new_for_commandline_arg_and_cwd(arg: string, cwd: string): File; new_for_path(path: string): File; @@ -5539,13 +5972,13 @@ export interface FileNamespace { new_tmp(tmpl: string | null): [File, FileIOStream]; parse_name(parse_name: string): File; } -export interface File { +export interface File extends GObject.Object { // Members append_to(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; append_to_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; append_to_finish(res: AsyncResult): FileOutputStream; - copy(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; - copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null, callback: AsyncReadyCallback | null): void; + copy(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): boolean; + copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null): void; copy_attributes(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null): boolean; copy_finish(res: AsyncResult): boolean; create(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; @@ -5586,10 +6019,10 @@ export interface File { load_bytes(cancellable: Cancellable | null): [GLib.Bytes, string | null]; load_bytes_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; load_bytes_finish(result: AsyncResult): [GLib.Bytes, string | null]; - load_contents(cancellable: Cancellable | null): [boolean, number[], string | null]; + load_contents(cancellable: Cancellable | null): [boolean, Uint8Array, string | null]; load_contents_async(cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; - load_contents_finish(res: AsyncResult): [boolean, number[], string | null]; - load_partial_contents_finish(res: AsyncResult): [boolean, number[], string | null]; + load_contents_finish(res: AsyncResult): [boolean, Uint8Array, string | null]; + load_partial_contents_finish(res: AsyncResult): [boolean, Uint8Array, string | null]; make_directory(cancellable: Cancellable | null): boolean; make_directory_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; make_directory_finish(result: AsyncResult): boolean; @@ -5603,7 +6036,7 @@ export interface File { mount_enclosing_volume_finish(result: AsyncResult): boolean; mount_mountable(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; mount_mountable_finish(result: AsyncResult): File; - move(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; + move(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): boolean; open_readwrite(cancellable: Cancellable | null): FileIOStream; open_readwrite_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; open_readwrite_finish(res: AsyncResult): FileIOStream; @@ -5628,9 +6061,9 @@ export interface File { read_finish(res: AsyncResult): FileInputStream; replace(etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; replace_async(etag: string | null, make_backup: boolean, flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; - replace_contents(contents: number[], etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): [boolean, string | null]; - replace_contents_async(contents: number[], etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; - replace_contents_bytes_async(contents: GLib.Bytes, etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + replace_contents(contents: (Uint8Array | string), etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): [boolean, string | null]; + replace_contents_async(contents: (Uint8Array | string), etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; + replace_contents_bytes_async(contents: (GLib.Bytes | Uint8Array), etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; replace_contents_finish(res: AsyncResult): [boolean, string | null]; replace_finish(res: AsyncResult): FileOutputStream; replace_readwrite(etag: string | null, make_backup: boolean, flags: FileCreateFlags, cancellable: Cancellable | null): FileIOStream; @@ -5665,8 +6098,8 @@ export interface File { vfunc_append_to(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; vfunc_append_to_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_append_to_finish(res: AsyncResult): FileOutputStream; - vfunc_copy(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; - vfunc_copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null, callback: AsyncReadyCallback | null): void; + vfunc_copy(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): boolean; + vfunc_copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null): void; vfunc_copy_finish(res: AsyncResult): boolean; vfunc_create(flags: FileCreateFlags, cancellable: Cancellable | null): FileOutputStream; vfunc_create_async(flags: FileCreateFlags, io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; @@ -5711,7 +6144,7 @@ export interface File { vfunc_mount_enclosing_volume_finish(result: AsyncResult): boolean; vfunc_mount_mountable(flags: MountMountFlags, mount_operation: MountOperation | null, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_mount_mountable_finish(result: AsyncResult): this; - vfunc_move(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, progress_callback_data: any | null): boolean; + vfunc_move(destination: File, flags: FileCopyFlags, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): boolean; vfunc_open_readwrite(cancellable: Cancellable | null): FileIOStream; vfunc_open_readwrite_async(io_priority: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_open_readwrite_finish(res: AsyncResult): FileIOStream; @@ -5757,17 +6190,23 @@ export interface File { } export const File: FileNamespace; -export interface FileDescriptorBased { +export interface FileDescriptorBasedNamespace { + $gtype: GType; +} +export interface FileDescriptorBased extends GObject.Object { // Members get_fd(): number; vfunc_get_fd(): number; } + +export const FileDescriptorBased: FileDescriptorBasedNamespace; export interface IconNamespace { + $gtype: GType; deserialize(value: GLib.Variant): Icon; hash(icon: any): number; new_for_string(str: string): Icon; } -export interface Icon { +export interface Icon extends GObject.Object { // Members equal(icon2: Icon | null): boolean; serialize(): GLib.Variant; @@ -5778,22 +6217,37 @@ export interface Icon { } export const Icon: IconNamespace; -export interface Initable { +export interface InitableNamespace { + $gtype: GType; + newv(object_type: GType, parameters: GObject.Parameter[], cancellable: Cancellable | null): T; + newv(...args: never[]): never; +} +export interface Initable extends GObject.Object { // Members init(cancellable: Cancellable | null): boolean; vfunc_init(cancellable: Cancellable | null): boolean; } -export interface ListModel { + +export const Initable: InitableNamespace; +export interface ListModelNamespace { + $gtype: GType; +} +export interface ListModel extends GObject.Object { // Members get_item_type(): GType; get_n_items(): number; - get_object(position: number): GObject.Object | null; + get_item(position: number): A | null; items_changed(position: number, removed: number, added: number): void; - vfunc_get_item(position: number): GObject.Object | null; + vfunc_get_item(position: number): A | null; vfunc_get_item_type(): GType; vfunc_get_n_items(): number; } -export interface LoadableIcon { + +export const ListModel: ListModelNamespace; +export interface LoadableIconNamespace { + $gtype: GType; +} +export interface LoadableIcon extends Icon { // Members load(size: number, cancellable: Cancellable | null): [InputStream, string | null]; load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; @@ -5802,7 +6256,12 @@ export interface LoadableIcon { vfunc_load_async(size: number, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; vfunc_load_finish(res: AsyncResult): [InputStream, string | null]; } -export interface Mount { + +export const LoadableIcon: LoadableIconNamespace; +export interface MountNamespace { + $gtype: GType; +} +export interface Mount extends GObject.Object { // Members can_eject(): boolean; can_unmount(): boolean; @@ -5859,10 +6318,13 @@ export interface Mount { vfunc_unmount_with_operation_finish(result: AsyncResult): boolean; vfunc_unmounted(): void; } + +export const Mount: MountNamespace; export interface NetworkMonitorNamespace { + $gtype: GType; get_default(): NetworkMonitor; } -export interface NetworkMonitor { +export interface NetworkMonitor extends Initable { // Properties connectivity: NetworkConnectivity; network_available: boolean; @@ -5881,36 +6343,48 @@ export interface NetworkMonitor { } export const NetworkMonitor: NetworkMonitorNamespace; -export interface PollableInputStream { +export interface PollableInputStreamNamespace { + $gtype: GType; +} +export interface PollableInputStream extends InputStream { // Members can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_readable(): boolean; - read_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + read_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_readable(): boolean; - vfunc_read_nonblocking(buffer: number[] | null): number; + vfunc_read_nonblocking(buffer: (Uint8Array | string) | null): number; +} + +export const PollableInputStream: PollableInputStreamNamespace; +export interface PollableOutputStreamNamespace { + $gtype: GType; } -export interface PollableOutputStream { +export interface PollableOutputStream extends OutputStream { // Members can_poll(): boolean; create_source(cancellable: Cancellable | null): GLib.Source; is_writable(): boolean; - write_nonblocking(buffer: number[], cancellable: Cancellable | null): number; + write_nonblocking(buffer: (Uint8Array | string), cancellable: Cancellable | null): number; writev_nonblocking(vectors: OutputVector[], cancellable: Cancellable | null): [PollableReturn, number | null]; vfunc_can_poll(): boolean; vfunc_create_source(cancellable: Cancellable | null): GLib.Source; vfunc_is_writable(): boolean; - vfunc_write_nonblocking(buffer: number[] | null): number; + vfunc_write_nonblocking(buffer: (Uint8Array | string) | null): number; vfunc_writev_nonblocking(vectors: OutputVector[]): [PollableReturn, number | null]; } + +export const PollableOutputStream: PollableOutputStreamNamespace; export interface ProxyNamespace { + $gtype: GType; get_default_for_protocol(protocol: string): Proxy; } -export interface Proxy { +export interface Proxy extends GObject.Object { // Members connect(connection: IOStream, proxy_address: ProxyAddress, cancellable: Cancellable | null): IOStream; + connect(...args: never[]): never; connect_async(connection: IOStream, proxy_address: ProxyAddress, cancellable: Cancellable | null, callback: AsyncReadyCallback | null): void; connect_finish(result: AsyncResult): IOStream; supports_hostname(): boolean; @@ -5922,9 +6396,10 @@ export interface Proxy { export const Proxy: ProxyNamespace; export interface ProxyResolverNamespace { + $gtype: GType; get_default(): ProxyResolver; } -export interface ProxyResolver { +export interface ProxyResolver extends GObject.Object { // Members is_supported(): boolean; lookup(uri: string, cancellable: Cancellable | null): string[]; @@ -5937,14 +6412,22 @@ export interface ProxyResolver { } export const ProxyResolver: ProxyResolverNamespace; -export interface RemoteActionGroup { +export interface RemoteActionGroupNamespace { + $gtype: GType; +} +export interface RemoteActionGroup extends ActionGroup { // Members activate_action_full(action_name: string, parameter: GLib.Variant | null, platform_data: GLib.Variant): void; change_action_state_full(action_name: string, value: GLib.Variant, platform_data: GLib.Variant): void; vfunc_activate_action_full(action_name: string, parameter: GLib.Variant | null, platform_data: GLib.Variant): void; vfunc_change_action_state_full(action_name: string, value: GLib.Variant, platform_data: GLib.Variant): void; } -export interface Seekable { + +export const RemoteActionGroup: RemoteActionGroupNamespace; +export interface SeekableNamespace { + $gtype: GType; +} +export interface Seekable extends GObject.Object { // Members can_seek(): boolean; can_truncate(): boolean; @@ -5957,7 +6440,12 @@ export interface Seekable { vfunc_tell(): number; vfunc_truncate_fn(offset: number, cancellable: Cancellable | null): boolean; } -export interface SocketConnectable { + +export const Seekable: SeekableNamespace; +export interface SocketConnectableNamespace { + $gtype: GType; +} +export interface SocketConnectable extends GObject.Object { // Members enumerate(): SocketAddressEnumerator; proxy_enumerate(): SocketAddressEnumerator; @@ -5966,10 +6454,13 @@ export interface SocketConnectable { vfunc_proxy_enumerate(): SocketAddressEnumerator; vfunc_to_string(): string; } + +export const SocketConnectable: SocketConnectableNamespace; export interface TlsBackendNamespace { + $gtype: GType; get_default(): TlsBackend; } -export interface TlsBackend { +export interface TlsBackend extends GObject.Object { // Members get_certificate_type(): GType; get_client_connection_type(): GType; @@ -5988,9 +6479,10 @@ export interface TlsBackend { export const TlsBackend: TlsBackendNamespace; export interface TlsClientConnectionNamespace { + $gtype: GType; ["new"](base_io_stream: IOStream, server_identity: SocketConnectable | null): TlsClientConnection; } -export interface TlsClientConnection { +export interface TlsClientConnection extends TlsConnection { // Properties accepted_cas: GLib.List; server_identity: SocketConnectable; @@ -6010,24 +6502,29 @@ export interface TlsClientConnection { export const TlsClientConnection: TlsClientConnectionNamespace; export interface TlsFileDatabaseNamespace { + $gtype: GType; ["new"](anchors: string): TlsFileDatabase; } -export interface TlsFileDatabase { +export interface TlsFileDatabase extends TlsDatabase { // Properties anchors: string; } export const TlsFileDatabase: TlsFileDatabaseNamespace; export interface TlsServerConnectionNamespace { + $gtype: GType; ["new"](base_io_stream: IOStream, certificate: TlsCertificate | null): TlsServerConnection; } -export interface TlsServerConnection { +export interface TlsServerConnection extends TlsConnection { // Properties authentication_mode: TlsAuthenticationMode; } export const TlsServerConnection: TlsServerConnectionNamespace; -export interface Volume { +export interface VolumeNamespace { + $gtype: GType; +} +export interface Volume extends GObject.Object { // Members can_eject(): boolean; can_mount(): boolean; @@ -6070,6 +6567,8 @@ export interface Volume { vfunc_removed(): void; vfunc_should_automount(): boolean; } + +export const Volume: VolumeNamespace; export interface SettingsSchema { _realGetKey: typeof SettingsSchema.prototype.get_key; } @@ -6080,53 +6579,49 @@ export interface Settings { _children: string[]; _realMethods: typeof Settings.prototype; } - + export interface DBus { readonly session: DBusConnection; readonly system: DBusConnection; - + // Namespace some functions get: typeof bus_get; get_finish: typeof bus_get_finish; get_sync: typeof bus_get_sync; - + own_name: typeof bus_own_name; own_name_on_connection: typeof bus_own_name_on_connection; unown_name: typeof bus_unown_name; - + watch_name: typeof bus_watch_name; watch_name_on_connection: typeof bus_watch_name_on_connection; unwatch_name: typeof bus_unwatch_name; } - + export let DBus: DBus; - + export interface DBusConnection { - watch_name(name, flags, appeared, vanished): ReturnType; - unwatch_name(id): ReturnType; - own_name(name, flags, acquired, lost): ReturnType; - unown_name(id): ReturnType; + watch_name(name: any, flags: any, appeared: any, vanished: any): ReturnType; + unwatch_name(id: any): ReturnType; + own_name(name: any, flags: any, acquired: any, lost: any): ReturnType; + unown_name(id: any): ReturnType; } - + export interface DBusProxy { - connectSignal(); - disconnectSignal(); + connectSignal(): any; + disconnectSignal(): any; } - + export module DBusProxy { - function makeProxyWrapper(); + function makeProxyWrapper(): any; } - + export interface DBusExportedObject { - wrapJSObject(); + wrapJSObject(): any; } - + export let DBusExportedObject: DBusExportedObject; - -export interface ListStore { - [Symbol.iterator]: () => IterableIterator; -} - -export function _promisify(); - + +export function _promisify(): any; + export let _LocalFilePrototype: File; diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/glib.d.ts b/gi/glib.d.ts similarity index 92% rename from dynamic-panel-transparency@rockon999.github.io/gi/glib.d.ts rename to gi/glib.d.ts index 9257746..2443639 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/glib.d.ts +++ b/gi/glib.d.ts @@ -361,15 +361,15 @@ export function atomic_ref_count_inc(arc: number): void; export function atomic_ref_count_init(arc: number): void; -export function base64_decode(text: string): [number[], number]; +export function base64_decode(text: string): Uint8Array; -export function base64_decode_inplace(text: number[]): [number, number[]]; +export function base64_decode_inplace(text: (Uint8Array | string)): [number, Uint8Array]; -export function base64_encode(data: number[] | null): string; +export function base64_encode(data: (Uint8Array | string) | null): string; -export function base64_encode_close(break_lines: boolean, state: number, save: number): [number, number[], number, number]; +export function base64_encode_close(break_lines: boolean, state: number, save: number): [number, Uint8Array, number, number]; -export function base64_encode_step(_in: number[], break_lines: boolean, state: number, save: number): [number, number[], number, number]; +export function base64_encode_step(_in: (Uint8Array | string), break_lines: boolean, state: number, save: number): [number, Uint8Array, number, number]; export function basename(file_name: string): string; @@ -391,15 +391,15 @@ export function build_filenamev(args: string[]): string; export function build_pathv(separator: string, args: string[]): string; -export function byte_array_free(array: number[], free_segment: boolean): number; +export function byte_array_free(array: (Uint8Array | string), free_segment: boolean): number; -export function byte_array_free_to_bytes(array: number[]): Bytes; +export function byte_array_free_to_bytes(array: (Uint8Array | string)): Bytes; -export function byte_array_new(): number[]; +export function byte_array_new(): Uint8Array; -export function byte_array_new_take(data: number[]): number[]; +export function byte_array_new_take(data: (Uint8Array | string)): Uint8Array; -export function byte_array_unref(array: number[]): void; +export function byte_array_unref(array: (Uint8Array | string)): void; export function canonicalize_filename(filename: string, relative_to: string | null): string; @@ -409,7 +409,7 @@ export function check_version(required_major: number, required_minor: number, re export function checksum_type_get_length(checksum_type: ChecksumType): number; -export function child_watch_add(priority: number, pid: Pid, _function: ChildWatchFunc, data: any | null, notify: DestroyNotify | null): number; +export function child_watch_add(priority: number, pid: Pid, _function: ChildWatchFunc, notify: DestroyNotify | null): number; export function child_watch_source_new(pid: Pid): Source; @@ -417,23 +417,23 @@ export function clear_error(): void; export function close(fd: number): boolean; -export function compute_checksum_for_bytes(checksum_type: ChecksumType, data: Bytes): string; +export function compute_checksum_for_bytes(checksum_type: ChecksumType, data: (Bytes | Uint8Array)): string; -export function compute_checksum_for_data(checksum_type: ChecksumType, data: number[]): string; +export function compute_checksum_for_data(checksum_type: ChecksumType, data: (Uint8Array | string)): string; export function compute_checksum_for_string(checksum_type: ChecksumType, str: string, length: number): string; -export function compute_hmac_for_bytes(digest_type: ChecksumType, key: Bytes, data: Bytes): string; +export function compute_hmac_for_bytes(digest_type: ChecksumType, key: (Bytes | Uint8Array), data: (Bytes | Uint8Array)): string; -export function compute_hmac_for_data(digest_type: ChecksumType, key: number[], data: number[]): string; +export function compute_hmac_for_data(digest_type: ChecksumType, key: (Uint8Array | string), data: (Uint8Array | string)): string; -export function compute_hmac_for_string(digest_type: ChecksumType, key: number[], str: string, length: number): string; +export function compute_hmac_for_string(digest_type: ChecksumType, key: (Uint8Array | string), str: string, length: number): string; -export function convert(str: number[], to_codeset: string, from_codeset: string): [number[], number | null, number | null]; +export function convert(str: (Uint8Array | string), to_codeset: string, from_codeset: string): [Uint8Array, number | null]; export function convert_error_quark(): Quark; -export function convert_with_fallback(str: number[], to_codeset: string, from_codeset: string, fallback: string): [number[], number | null, number | null]; +export function convert_with_fallback(str: (Uint8Array | string), to_codeset: string, from_codeset: string, fallback: string): [Uint8Array, number | null]; export function datalist_foreach(datalist: Data, func: DataForeachFunc): void; @@ -511,13 +511,13 @@ export function file_error_from_errno(err_no: number): FileError; export function file_error_quark(): Quark; -export function file_get_contents(filename: string): [boolean, number[]]; +export function file_get_contents(filename: string): [boolean, Uint8Array]; export function file_open_tmp(tmpl: string | null): [number, string]; export function file_read_link(filename: string): string; -export function file_set_contents(filename: string, contents: number[]): boolean; +export function file_set_contents(filename: string, contents: (Uint8Array | string)): boolean; export function file_test(filename: string, test: FileTest): boolean; @@ -647,7 +647,7 @@ export function hostname_to_ascii(hostname: string): string; export function hostname_to_unicode(hostname: string): string; -export function idle_add(priority: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): number; +export function idle_add(priority: number, _function: SourceFunc, notify: DestroyNotify | null): number; export function idle_remove_by_data(data: any | null): boolean; @@ -677,9 +677,9 @@ export function key_file_error_quark(): Quark; export function listenv(): string[]; -export function locale_from_utf8(utf8string: string, len: number): [number[], number | null, number | null]; +export function locale_from_utf8(utf8string: string, len: number): [Uint8Array, number | null]; -export function locale_to_utf8(opsysstring: number[]): [string, number | null, number | null]; +export function locale_to_utf8(opsysstring: (Uint8Array | string)): [string, number | null, number | null]; export function log_default_handler(log_domain: string | null, log_level: LogLevelFlags, message: string | null, unused_data: any | null): void; @@ -691,21 +691,21 @@ export function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags export function log_set_handler(log_domain: string | null, log_levels: LogLevelFlags, log_func: LogFunc, destroy: DestroyNotify): number; -export function log_set_writer_func(func: LogWriterFunc | null, user_data_free: DestroyNotify): void; +export function log_set_writer_func(user_data_free: DestroyNotify): void; export function log_structured_array(log_level: LogLevelFlags, fields: LogField[]): void; export function log_variant(log_domain: string | null, log_level: LogLevelFlags, fields: Variant): void; -export function log_writer_default(log_level: LogLevelFlags, fields: LogField[]): LogWriterOutput; +export function log_writer_default(log_level: LogLevelFlags, fields: LogField[], user_data: any | null): LogWriterOutput; export function log_writer_format_fields(log_level: LogLevelFlags, fields: LogField[], use_color: boolean): string; export function log_writer_is_journald(output_fd: number): boolean; -export function log_writer_journald(log_level: LogLevelFlags, fields: LogField[]): LogWriterOutput; +export function log_writer_journald(log_level: LogLevelFlags, fields: LogField[], user_data: any | null): LogWriterOutput; -export function log_writer_standard_streams(log_level: LogLevelFlags, fields: LogField[]): LogWriterOutput; +export function log_writer_standard_streams(log_level: LogLevelFlags, fields: LogField[], user_data: any | null): LogWriterOutput; export function log_writer_supports_color(output_fd: number): boolean; @@ -905,9 +905,9 @@ export function slice_set_config(ckey: SliceConfig, value: number): void; export function source_remove(tag: number): boolean; -export function source_remove_by_funcs_user_data(funcs: SourceFuncs): boolean; +export function source_remove_by_funcs_user_data(funcs: SourceFuncs, user_data: any | null): boolean; -export function source_remove_by_user_data(): boolean; +export function source_remove_by_user_data(user_data: any | null): boolean; export function source_set_name_by_id(tag: number, name: string): void; @@ -925,13 +925,13 @@ export function spawn_close_pid(pid: Pid): void; export function spawn_command_line_async(command_line: string): boolean; -export function spawn_command_line_sync(command_line: string): [boolean, number[] | null, number[] | null, number | null]; +export function spawn_command_line_sync(command_line: string): [boolean, Uint8Array | null, Uint8Array | null, number | null]; export function spawn_error_quark(): Quark; export function spawn_exit_error_quark(): Quark; -export function spawn_sync(working_directory: string | null, argv: string[], envp: string[] | null, flags: SpawnFlags, child_setup: SpawnChildSetupFunc | null): [boolean, number[] | null, number[] | null, number | null]; +export function spawn_sync(working_directory: string | null, argv: string[], envp: string[] | null, flags: SpawnFlags, child_setup: SpawnChildSetupFunc | null): [boolean, Uint8Array | null, Uint8Array | null, number | null]; export function stpcpy(dest: string, src: string): string; @@ -1101,9 +1101,9 @@ export function thread_yield(): void; export function time_val_from_iso8601(iso_date: string): [boolean, TimeVal]; -export function timeout_add(priority: number, interval: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): number; +export function timeout_add(priority: number, interval: number, _function: SourceFunc, notify: DestroyNotify | null): number; -export function timeout_add_seconds(priority: number, interval: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): number; +export function timeout_add_seconds(priority: number, interval: number, _function: SourceFunc, notify: DestroyNotify | null): number; export function timeout_source_new(interval: number): Source; @@ -1287,9 +1287,9 @@ export function utf8_to_ucs4_fast(str: string, len: number): [number, number | n export function utf8_to_utf16(str: string, len: number): [number, number | null, number | null]; -export function utf8_validate(str: number[]): [boolean, string | null]; +export function utf8_validate(str: (Uint8Array | string)): [boolean, string | null]; -export function utf8_validate_len(str: number[]): [boolean, string | null]; +export function utf8_validate_len(str: (Uint8Array | string)): [boolean, string | null]; export function uuid_string_is_valid(str: string): boolean; @@ -2208,6 +2208,10 @@ export enum TraverseFlags { NON_LEAFS = 2, } export class Array { + constructor(properties?: { + data?: string; + len?: number; + }); constructor(copy: Array); // Fields data: string; @@ -2246,21 +2250,21 @@ export class BookmarkFile { free(): void; get_added(uri: string): number; get_app_info(uri: string, name: string): [boolean, string | null, number | null, number | null]; - get_applications(uri: string): [string[], number | null]; + get_applications(uri: string): string[]; get_description(uri: string): string; - get_groups(uri: string): [string[], number | null]; + get_groups(uri: string): string[]; get_icon(uri: string): [boolean, string | null, string | null]; get_is_private(uri: string): boolean; get_mime_type(uri: string): string; get_modified(uri: string): number; get_size(): number; get_title(uri: string | null): string; - get_uris(): [string[], number | null]; + get_uris(): string[]; get_visited(uri: string): number; has_application(uri: string, name: string): boolean; has_group(uri: string, group: string): boolean; has_item(uri: string): boolean; - load_from_data(data: number[]): boolean; + load_from_data(data: (Uint8Array | string)): boolean; load_from_data_dirs(file: string): [boolean, string | null]; load_from_file(filename: string): boolean; move_item(old_uri: string, new_uri: string | null): boolean; @@ -2277,39 +2281,43 @@ export class BookmarkFile { set_modified(uri: string, modified: number): void; set_title(uri: string | null, title: string): void; set_visited(uri: string, visited: number): void; - to_data(): [number[], number | null]; + to_data(): Uint8Array; to_file(filename: string): boolean; static error_quark(): Quark; } export class ByteArray { + constructor(properties?: { + data?: number; + len?: number; + }); constructor(copy: ByteArray); // Fields data: number; len: number; // Members - static free(array: number[], free_segment: boolean): number; - static free_to_bytes(array: number[]): Bytes; - static new(): number[]; - static new_take(data: number[]): number[]; - static unref(array: number[]): void; + static free(array: (Uint8Array | string), free_segment: boolean): number; + static free_to_bytes(array: (Uint8Array | string)): Bytes; + static new(): Uint8Array; + static new_take(data: (Uint8Array | string)): Uint8Array; + static unref(array: (Uint8Array | string)): void; } export class Bytes { - constructor(data: number[] | null); + constructor(data: (Uint8Array | string) | null); constructor(copy: Bytes); // Constructors - static ["new"](data: number[] | null): Bytes; - static new_take(data: number[] | null): Bytes; + static ["new"](data: (Uint8Array | string) | null): Bytes; + static new_take(data: (Uint8Array | string) | null): Bytes; // Members - compare(bytes2: Bytes): number; - equal(bytes2: Bytes): boolean; - get_data(): [number[] | null, number | null]; + compare(bytes2: (Bytes | Uint8Array)): number; + equal(bytes2: (Bytes | Uint8Array)): boolean; + get_data(): Uint8Array | null; get_size(): number; hash(): number; new_from_bytes(offset: number, length: number): Bytes; ref(): Bytes; unref(): void; - unref_to_array(): number[]; - unref_to_data(): [number[], number]; + unref_to_array(): Uint8Array; + unref_to_data(): Uint8Array; toArray(): Uint8Array; } export class Checksum { @@ -2322,10 +2330,14 @@ export class Checksum { free(): void; get_string(): string; reset(): void; - update(data: number[]): void; + update(data: (Uint8Array | string)): void; static type_get_length(checksum_type: ChecksumType): number; } export class Cond { + constructor(properties?: { + p?: any; + i?: number[]; + }); constructor(copy: Cond); // Fields p: any; @@ -2459,6 +2471,10 @@ export class DateTime { static hash(datetime: any): number; } export class DebugKey { + constructor(properties?: { + key?: string; + value?: number; + }); constructor(copy: DebugKey); // Fields key: string; @@ -2473,7 +2489,7 @@ export class Dir { static make_tmp(tmpl: string | null): string; } export class Error { - constructor({ message: string, code: number }); + constructor(values: { message: string, code: number }); constructor(copy: Error); // Fields domain: Quark; @@ -2505,6 +2521,14 @@ export class HashTable { static unref(hash_table: HashTable): void; } export class HashTableIter { + constructor(properties?: { + dummy1?: any; + dummy2?: any; + dummy3?: any; + dummy4?: number; + dummy5?: boolean; + dummy6?: any; + }); constructor(copy: HashTableIter); // Fields dummy1: any; @@ -2523,10 +2547,10 @@ export class HashTableIter { export class Hmac { constructor(copy: Hmac); // Members - get_digest(buffer: number[]): void; + get_digest(buffer: (Uint8Array | string)): void; get_string(): string; unref(): void; - update(data: number[]): void; + update(data: (Uint8Array | string)): void; } export class Hook { constructor(copy: Hook); @@ -2600,10 +2624,10 @@ export class IOChannel { get_line_term(length: number): string; init(): void; read(buf: string, count: number, bytes_read: number): IOError; - read_chars(): [IOStatus, number[], number | null]; + read_chars(): [IOStatus, Uint8Array, number | null]; read_line(): [IOStatus, string, number | null, number | null]; read_line_string(buffer: String, terminator_pos: number | null): IOStatus; - read_to_end(): [IOStatus, number[]]; + read_to_end(): [IOStatus, Uint8Array]; read_unichar(): [IOStatus, number]; ref(): IOChannel; seek(offset: number, type: SeekType): IOError; @@ -2618,7 +2642,7 @@ export class IOChannel { unix_get_fd(): number; unref(): void; write(buf: string, count: number, bytes_written: number): IOError; - write_chars(buf: number[], count: number): [IOStatus, number]; + write_chars(buf: (Uint8Array | string), count: number): [IOStatus, number]; write_unichar(thechar: number): IOStatus; static error_from_errno(en: number): IOChannelError; static error_quark(): Quark; @@ -2633,25 +2657,25 @@ export class KeyFile { static ["new"](): KeyFile; // Members get_boolean(group_name: string, key: string): boolean; - get_boolean_list(group_name: string, key: string): [boolean[], number]; + get_boolean_list(group_name: string, key: string): boolean[]; get_comment(group_name: string | null, key: string): string; get_double(group_name: string, key: string): number; - get_double_list(group_name: string, key: string): [number[], number]; + get_double_list(group_name: string, key: string): number[]; get_groups(): [string[], number | null]; get_int64(group_name: string, key: string): number; get_integer(group_name: string, key: string): number; - get_integer_list(group_name: string, key: string): [number[], number]; + get_integer_list(group_name: string, key: string): number[]; get_keys(group_name: string): [string[], number | null]; get_locale_for_key(group_name: string, key: string, locale: string | null): string | null; get_locale_string(group_name: string, key: string, locale: string | null): string; - get_locale_string_list(group_name: string, key: string, locale: string | null): [string[], number | null]; + get_locale_string_list(group_name: string, key: string, locale: string | null): string[]; get_start_group(): string; get_string(group_name: string, key: string): string; - get_string_list(group_name: string, key: string): [string[], number | null]; + get_string_list(group_name: string, key: string): string[]; get_uint64(group_name: string, key: string): number; get_value(group_name: string, key: string): string; has_group(group_name: string): boolean; - load_from_bytes(bytes: Bytes, flags: KeyFileFlags): boolean; + load_from_bytes(bytes: (Bytes | Uint8Array), flags: KeyFileFlags): boolean; load_from_data(data: string, length: number, flags: KeyFileFlags): boolean; load_from_data_dirs(file: string, flags: KeyFileFlags): [boolean, string | null]; load_from_dirs(file: string, search_dirs: string[], flags: KeyFileFlags): [boolean, string | null]; @@ -2687,6 +2711,11 @@ export class List { prev: List; } export class LogField { + constructor(properties?: { + key?: string; + value?: any; + length?: number; + }); constructor(copy: LogField); // Fields key: string; @@ -2703,10 +2732,10 @@ export class MainContext { add_poll(fd: PollFD, priority: number): void; check(max_priority: number, fds: PollFD[]): boolean; dispatch(): void; - find_source_by_funcs_user_data(funcs: SourceFuncs): Source; + find_source_by_funcs_user_data(funcs: SourceFuncs, user_data: any | null): Source; find_source_by_id(source_id: number): Source; - find_source_by_user_data(): Source; - invoke_full(priority: number, _function: SourceFunc, data: any | null, notify: DestroyNotify | null): void; + find_source_by_user_data(user_data: any | null): Source; + invoke_full(priority: number, _function: SourceFunc, notify: DestroyNotify | null): void; is_owner(): boolean; iteration(may_block: boolean): boolean; pending(): boolean; @@ -2752,10 +2781,10 @@ export class MappedFile { unref(): void; } export class MarkupParseContext { - constructor(parser: MarkupParser, flags: MarkupParseFlags, user_data_dnotify: DestroyNotify); + constructor(parser: MarkupParser, flags: MarkupParseFlags, user_data: any | null, user_data_dnotify: DestroyNotify); constructor(copy: MarkupParseContext); // Constructors - static ["new"](parser: MarkupParser, flags: MarkupParseFlags, user_data_dnotify: DestroyNotify): MarkupParseContext; + static ["new"](parser: MarkupParser, flags: MarkupParseFlags, user_data: any | null, user_data_dnotify: DestroyNotify): MarkupParseContext; // Members end_parse(): boolean; free(): void; @@ -2764,7 +2793,7 @@ export class MarkupParseContext { get_user_data(): any | null; parse(text: string, text_len: number): boolean; pop(): any | null; - push(parser: MarkupParser): void; + push(parser: MarkupParser, user_data: any | null): void; ref(): MarkupParseContext; unref(): void; } @@ -2842,7 +2871,7 @@ export class OptionContext { set_main_group(group: OptionGroup): void; set_strict_posix(strict_posix: boolean): void; set_summary(summary: string | null): void; - set_translate_func(func: TranslateFunc | null, data: any | null, destroy_notify: DestroyNotify | null): void; + set_translate_func(func: TranslateFunc | null, destroy_notify: DestroyNotify | null): void; set_translation_domain(domain: string): void; } export class OptionEntry { @@ -2857,15 +2886,15 @@ export class OptionEntry { arg_description: string; } export class OptionGroup { - constructor(name: string, description: string, help_description: string, destroy: DestroyNotify | null); + constructor(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null); constructor(copy: OptionGroup); // Constructors - static ["new"](name: string, description: string, help_description: string, destroy: DestroyNotify | null): OptionGroup; + static ["new"](name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null): OptionGroup; // Members add_entries(entries: OptionEntry): void; free(): void; ref(): OptionGroup; - set_translate_func(func: TranslateFunc | null, data: any | null, destroy_notify: DestroyNotify | null): void; + set_translate_func(func: TranslateFunc | null, destroy_notify: DestroyNotify | null): void; set_translation_domain(domain: string): void; unref(): void; } @@ -2876,6 +2905,11 @@ export class PatternSpec { free(): void; } export class PollFD { + constructor(properties?: { + fd?: number; + events?: number; + revents?: number; + }); constructor(copy: PollFD); // Fields fd: number; @@ -2894,6 +2928,10 @@ export class Private { set(value: any | null): void; } export class PtrArray { + constructor(properties?: { + pdata?: any; + len?: number; + }); constructor(copy: PtrArray); // Fields pdata: any; @@ -2928,6 +2966,10 @@ export class Queue { reverse(): void; } export class RWLock { + constructor(properties?: { + p?: any; + i?: number[]; + }); constructor(copy: RWLock); // Fields p: any; @@ -2954,6 +2996,10 @@ export class Rand { set_seed_array(seed: number, seed_length: number): void; } export class RecMutex { + constructor(properties?: { + p?: any; + i?: number[]; + }); constructor(copy: RecMutex); // Fields p: any; @@ -3000,7 +3046,7 @@ export class SList { constructor(copy: SList); // Fields data: any; - next: string[]; + next: SList; } export class Scanner { constructor(copy: Scanner); @@ -3045,6 +3091,35 @@ export class Scanner { unexp_token(expected_token: TokenType, identifier_spec: string, symbol_spec: string, symbol_name: string, message: string, is_error: number): void; } export class ScannerConfig { + constructor(properties?: { + cset_skip_characters?: string; + cset_identifier_first?: string; + cset_identifier_nth?: string; + cpair_comment_single?: string; + case_sensitive?: number; + skip_comment_multi?: number; + skip_comment_single?: number; + scan_comment_multi?: number; + scan_identifier?: number; + scan_identifier_1char?: number; + scan_identifier_NULL?: number; + scan_symbols?: number; + scan_binary?: number; + scan_octal?: number; + scan_float?: number; + scan_hex?: number; + scan_hex_dollar?: number; + scan_string_sq?: number; + scan_string_dq?: number; + numbers_2_int?: number; + int_2_float?: number; + identifier_2_string?: number; + char_2_token?: number; + symbol_2_token?: number; + scope_0_fallback?: number; + store_int64?: number; + padding_dummy?: number; + }); constructor(copy: ScannerConfig); // Fields cset_skip_characters: string; @@ -3120,7 +3195,7 @@ export class Source { priority: number; flags: number; source_id: number; - poll_fds: string[]; + poll_fds: SList; prev: Source; next: Source; name: string; @@ -3148,7 +3223,7 @@ export class Source { remove_child_source(child_source: Source): void; remove_poll(fd: PollFD): void; remove_unix_fd(tag: any): void; - set_callback(func: SourceFunc, data: any | null, notify: DestroyNotify | null): void; + set_callback(func: SourceFunc, notify: DestroyNotify | null): void; set_callback_indirect(callback_data: any | null, callback_funcs: SourceCallbackFuncs): void; set_can_recurse(can_recurse: boolean): void; set_funcs(funcs: SourceFuncs): void; @@ -3157,8 +3232,8 @@ export class Source { set_ready_time(ready_time: number): void; unref(): void; static remove(tag: number): boolean; - static remove_by_funcs_user_data(funcs: SourceFuncs): boolean; - static remove_by_user_data(): boolean; + static remove_by_funcs_user_data(funcs: SourceFuncs, user_data: any | null): boolean; + static remove_by_user_data(user_data: any | null): boolean; static set_name_by_id(tag: number, name: string): void; } export class SourceCallbackFuncs { @@ -3177,6 +3252,11 @@ export class StatBuf { constructor(copy: StatBuf); } export class String { + constructor(properties?: { + str?: string; + len?: number; + allocated_len?: number; + }); constructor(copy: String); // Fields str: string; @@ -3224,6 +3304,14 @@ export class TestCase { constructor(copy: TestCase); } export class TestConfig { + constructor(properties?: { + test_initialized?: boolean; + test_quick?: boolean; + test_perf?: boolean; + test_verbose?: boolean; + test_quiet?: boolean; + test_undefined?: boolean; + }); constructor(copy: TestConfig); // Fields test_initialized: boolean; @@ -3237,7 +3325,7 @@ export class TestLogBuffer { constructor(copy: TestLogBuffer); // Fields data: String; - msgs: string[]; + msgs: SList; // Members free(): void; push(n_bytes: number, bytes: number): void; @@ -3291,6 +3379,10 @@ export class ThreadPool { static stop_unused_threads(): void; } export class TimeVal { + constructor(properties?: { + tv_sec?: number; + tv_usec?: number; + }); constructor(copy: TimeVal); // Fields tv_sec: number; @@ -3359,13 +3451,13 @@ export class Variant { static new_array(child_type: VariantType | null, children: Variant[] | null): Variant; static new_boolean(value: boolean): Variant; static new_byte(value: number): Variant; - static new_bytestring(string: number[]): Variant; + static new_bytestring(string: (Uint8Array | string)): Variant; static new_bytestring_array(strv: string[]): Variant; static new_dict_entry(key: Variant, value: Variant): Variant; static new_double(value: number): Variant; static new_fixed_array(element_type: VariantType, elements: any | null, n_elements: number, element_size: number): Variant; - static new_from_bytes(type: VariantType, bytes: Bytes, trusted: boolean): Variant; - static new_from_data(type: VariantType, data: number[], trusted: boolean, notify: DestroyNotify): Variant; + static new_from_bytes(type: VariantType, bytes: (Bytes | Uint8Array), trusted: boolean): Variant; + static new_from_data(type: VariantType, data: (Uint8Array | string), trusted: boolean, notify: DestroyNotify, user_data: any | null): Variant; static new_handle(value: number): Variant; static new_int16(value: number): Variant; static new_int32(value: number): Variant; @@ -3388,16 +3480,16 @@ export class Variant { check_format_string(format_string: string, copy_only: boolean): boolean; classify(): VariantClass; compare(two: Variant): number; - dup_bytestring(): [number[], number | null]; - dup_bytestring_array(): [string[], number | null]; - dup_objv(): [string[], number | null]; + dup_bytestring(): Uint8Array; + dup_bytestring_array(): string[]; + dup_objv(): string[]; dup_string(): [string, number]; - dup_strv(): [string[], number | null]; + dup_strv(): string[]; equal(two: Variant): boolean; get_boolean(): boolean; get_byte(): number; - get_bytestring(): number[]; - get_bytestring_array(): [string[], number | null]; + get_bytestring(): Uint8Array; + get_bytestring_array(): string[]; get_child_value(index_: number): Variant; get_data(): any | null; get_data_as_bytes(): Bytes; @@ -3408,10 +3500,10 @@ export class Variant { get_int64(): number; get_maybe(): Variant | null; get_normal_form(): Variant; - get_objv(): [string[], number | null]; + get_objv(): string[]; get_size(): number; get_string(): [string, number | null]; - get_strv(): [string[], number | null]; + get_strv(): string[]; get_type(): VariantType; get_type_string(): string; get_uint16(): number; @@ -3509,16 +3601,26 @@ export class VariantType { static string_scan(string: string, limit: string | null): [boolean, string | null]; } export class DoubleIEEE754 { + constructor(properties?: { + v_double?: number; + }); constructor(copy: DoubleIEEE754); // Fields v_double: number; } export class FloatIEEE754 { + constructor(properties?: { + v_float?: number; + }); constructor(copy: FloatIEEE754); // Fields v_float: number; } export class Mutex { + constructor(properties?: { + p?: any; + i?: number[]; + }); constructor(copy: Mutex); // Fields p: any; @@ -3531,6 +3633,20 @@ export class Mutex { unlock(): void; } export class TokenValue { + constructor(properties?: { + v_symbol?: any; + v_identifier?: string; + v_binary?: number; + v_octal?: number; + v_int?: number; + v_int64?: number; + v_float?: number; + v_hex?: number; + v_string?: string; + v_comment?: string; + v_char?: number; + v_error?: number; + }); constructor(copy: TokenValue); // Fields v_symbol: any; @@ -3569,7 +3685,7 @@ export type TimeSpan = number; export type Type = number; -export function log_structured(logDomain, logLevel, stringFields); +export function log_structured(logDomain: any, logLevel: any, stringFields: any): any; export function strstrip(str: string): string;declare global { interface Error { diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gobject.d.ts b/gi/gobject.d.ts similarity index 67% rename from dynamic-panel-transparency@rockon999.github.io/gi/gobject.d.ts rename to gi/gobject.d.ts index e0dbe04..227b8e8 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/gobject.d.ts +++ b/gi/gobject.d.ts @@ -39,51 +39,51 @@ export function boxed_copy(boxed_type: GType, src_boxed: any): any; export function boxed_free(boxed_type: GType, boxed: any): void; -export function cclosure_marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_BOOLEAN__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_BOOLEAN__FLAGS(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__BOOLEAN(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__BOOLEAN(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__BOXED(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__CHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__CHAR(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__DOUBLE(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__DOUBLE(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__ENUM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__ENUM(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__FLAGS(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__FLOAT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__FLOAT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__INT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__INT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__LONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__LONG(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__OBJECT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__OBJECT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__PARAM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__PARAM(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__POINTER(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__STRING(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__STRING(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__UCHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__UCHAR(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__UINT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__UINT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__UINT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__UINT_POINTER(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__ULONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__ULONG(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__VARIANT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__VARIANT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_VOID__VOID(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_VOID__VOID(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; -export function cclosure_marshal_generic(closure: Closure, return_gvalue: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; +export function cclosure_marshal_generic(closure: Closure, return_gvalue: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; export function enum_complete_type_info(g_enum_type: GType, const_values: EnumValue): TypeInfo; @@ -157,31 +157,31 @@ export function param_spec_variant(name: string, nick: string, blurb: string, ty export function param_type_register_static(name: string, pspec_info: ParamSpecTypeInfo): GType; -export function param_value_convert(pspec: ParamSpec, src_value: Value, dest_value: Value, strict_validation: boolean): boolean; +export function param_value_convert(pspec: ParamSpec, src_value: (Value | string | boolean | number), dest_value: (Value | string | boolean | number), strict_validation: boolean): boolean; -export function param_value_defaults(pspec: ParamSpec, value: Value): boolean; +export function param_value_defaults(pspec: ParamSpec, value: (Value | string | boolean | number)): boolean; -export function param_value_set_default(pspec: ParamSpec, value: Value): void; +export function param_value_set_default(pspec: ParamSpec, value: (Value | string | boolean | number)): void; -export function param_value_validate(pspec: ParamSpec, value: Value): boolean; +export function param_value_validate(pspec: ParamSpec, value: (Value | string | boolean | number)): boolean; -export function param_values_cmp(pspec: ParamSpec, value1: Value, value2: Value): number; +export function param_values_cmp(pspec: ParamSpec, value1: (Value | string | boolean | number), value2: (Value | string | boolean | number)): number; export function pointer_type_register_static(name: string): GType; -export function signal_accumulator_first_wins(ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, dummy: any | null): boolean; +export function signal_accumulator_first_wins(ihint: SignalInvocationHint, return_accu: (Value | string | boolean | number), handler_return: (Value | string | boolean | number), dummy: any | null): boolean; -export function signal_accumulator_true_handled(ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, dummy: any | null): boolean; +export function signal_accumulator_true_handled(ihint: SignalInvocationHint, return_accu: (Value | string | boolean | number), handler_return: (Value | string | boolean | number), dummy: any | null): boolean; -export function signal_add_emission_hook(signal_id: number, detail: GLib.Quark, hook_func: SignalEmissionHook, hook_data: any | null, data_destroy: GLib.DestroyNotify): number; +export function signal_add_emission_hook(signal_id: number, detail: GLib.Quark, hook_func: SignalEmissionHook, data_destroy: GLib.DestroyNotify): number; -export function signal_chain_from_overridden(instance_and_params: Value[], return_value: Value): void; +export function signal_chain_from_overridden(instance_and_params: (Value | string | boolean | number)[], return_value: (Value | string | boolean | number)): void; export function signal_connect_closure(instance: Object, detailed_signal: string, closure: Closure, after: boolean): number; export function signal_connect_closure_by_id(instance: Object, signal_id: number, detail: GLib.Quark, closure: Closure, after: boolean): number; -export function signal_emitv(instance_and_params: Value[], signal_id: number, detail: GLib.Quark, return_value: Value | null): Value | null; +export function signal_emitv(instance_and_params: (Value | string | boolean | number)[], signal_id: number, detail: GLib.Quark, return_value: (Value | string | boolean | number) | null): Value | null; export function signal_get_invocation_hint(instance: Object): SignalInvocationHint; @@ -229,7 +229,7 @@ export function _real_signal_handlers_unblock_matched(instance: Object, mask: Si export function signal_has_handler_pending(instance: Object, signal_id: number, detail: GLib.Quark, may_be_blocked: boolean): boolean; -export function signal_list_ids(itype: GType): [number[], number]; +export function signal_list_ids(itype: GType): number[]; export function signal_lookup(name: string, itype: GType): number; @@ -255,7 +255,7 @@ export function source_set_closure(source: GLib.Source, closure: Closure): void; export function source_set_dummy_callback(source: GLib.Source): void; -export function strdup_value_contents(value: Value): string; +export function strdup_value_contents(value: (Value | string | boolean | number)): string; export function type_add_class_private(class_type: GType, private_size: number): void; @@ -275,11 +275,11 @@ export function type_check_instance_is_fundamentally_a(instance: TypeInstance, f export function type_check_is_value_type(type: GType): boolean; -export function type_check_value(value: Value): boolean; +export function type_check_value(value: (Value | string | boolean | number)): boolean; -export function type_check_value_holds(value: Value, type: GType): boolean; +export function type_check_value_holds(value: (Value | string | boolean | number), type: GType): boolean; -export function type_children(type: GType): [GType[], number | null]; +export function type_children(type: GType): GType[]; export function type_class_adjust_private_offset(g_class: any | null, private_size_or_offset: number): void; @@ -325,9 +325,9 @@ export function type_interface_get_plugin(instance_type: GType, interface_type: export function type_interface_peek(instance_class: TypeClass, iface_type: GType): TypeInterface; -export function type_interface_prerequisites(interface_type: GType): [GType[], number | null]; +export function type_interface_prerequisites(interface_type: GType): GType[]; -export function type_interfaces(type: GType): [GType[], number | null]; +export function type_interfaces(type: GType): GType[]; export function type_is_a(type: GType, is_a_type: GType): boolean; @@ -363,7 +363,7 @@ export type BaseFinalizeFunc = (g_class: TypeClass) => void; export type BaseInitFunc = (g_class: TypeClass) => void; -export type BindingTransformFunc = (binding: Binding, from_value: Value, to_value: Value) => boolean; +export type BindingTransformFunc = (binding: Binding, from_value: (Value | string | boolean | number), to_value: (Value | string | boolean | number)) => boolean; export type BoxedCopyFunc = (boxed: any) => any; @@ -375,7 +375,7 @@ export type ClassFinalizeFunc = (g_class: TypeClass, class_data: any | null) => export type ClassInitFunc = (g_class: TypeClass, class_data: any | null) => void; -export type ClosureMarshal = (closure: Closure, return_value: Value | null, param_values: Value[], invocation_hint: any | null, marshal_data: any | null) => void; +export type ClosureMarshal = (closure: Closure, return_value: (Value | string | boolean | number) | null, param_values: (Value | string | boolean | number)[], invocation_hint: any | null, marshal_data: any | null) => void; export type ClosureNotify = (data: any | null, closure: Closure) => void; @@ -387,13 +387,13 @@ export type InterfaceInitFunc = (g_iface: TypeInterface, iface_data: any | null) export type ObjectFinalizeFunc = (object: Object) => void; -export type ObjectGetPropertyFunc = (object: Object, property_id: number, value: Value, pspec: ParamSpec) => void; +export type ObjectGetPropertyFunc = (object: Object, property_id: number, value: (Value | string | boolean | number), pspec: ParamSpec) => void; -export type ObjectSetPropertyFunc = (object: Object, property_id: number, value: Value, pspec: ParamSpec) => void; +export type ObjectSetPropertyFunc = (object: Object, property_id: number, value: (Value | string | boolean | number), pspec: ParamSpec) => void; -export type SignalAccumulator = (ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, data: any | null) => boolean; +export type SignalAccumulator = (ihint: SignalInvocationHint, return_accu: (Value | string | boolean | number), handler_return: (Value | string | boolean | number), data: any | null) => boolean; -export type SignalEmissionHook = (ihint: SignalInvocationHint, param_values: Value[], data: any | null) => boolean; +export type SignalEmissionHook = (ihint: SignalInvocationHint, param_values: (Value | string | boolean | number)[], data: any | null) => boolean; export type ToggleNotify = (data: any | null, object: Object, is_last_ref: boolean) => void; @@ -409,7 +409,7 @@ export type TypePluginUnuse = (plugin: TypePlugin) => void; export type TypePluginUse = (plugin: TypePlugin) => void; -export type ValueTransform = (src_value: Value, dest_value: Value) => void; +export type ValueTransform = (src_value: (Value | string | boolean | number), dest_value: (Value | string | boolean | number)) => void; export type WeakNotify = (data: any | null, where_the_object_was: Object) => void; export enum BindingFlags { @@ -483,8 +483,8 @@ export module Binding { } } export class Binding extends Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties flags: BindingFlags; source: Object; @@ -493,9 +493,9 @@ export class Binding extends Object { target_property: string; // Members get_flags(): BindingFlags; - get_source(): Object; + get_source(): T; get_source_property(): string; - get_target(): Object; + get_target(): T; get_target_property(): string; unbind(): void; } @@ -505,8 +505,8 @@ export module InitiallyUnowned { } } export class InitiallyUnowned extends Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields g_type_instance: TypeInstance; } @@ -516,8 +516,8 @@ export module Object { } } export class Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields g_type_instance: TypeInstance; // Signals @@ -532,21 +532,21 @@ export class Object { // Members bind_property(source_property: string, target: Object, target_property: string, flags: BindingFlags): Binding; bind_property_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: BindingTransformFunc | null, transform_from: BindingTransformFunc | null, notify: GLib.DestroyNotify | null): Binding; - bind_property_with_closures(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: Closure, transform_from: Closure): Binding; + bind_property_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: Closure, transform_from: Closure): Binding; force_floating(): void; freeze_notify(): void; get_data(key: string): any | null; - get_property(property_name: string, value: Value): void; + get_property(property_name: string, value: (Value | string | boolean | number)): void; get_qdata(quark: GLib.Quark): any | null; - getv(names: string[], values: Value[]): void; + getv(names: string[], values: (Value | string | boolean | number)[]): void; is_floating(): boolean; notify(property_name: string): void; notify_by_pspec(pspec: ParamSpec): void; - ref(): Object; - ref_sink(): Object; + ref(): T; + ref_sink(): T; run_dispose(): void; set_data(key: string, data: any | null): void; - set_property(property_name: string, value: Value): void; + set_property(property_name: string, value: (Value | string | boolean | number)): void; steal_data(key: string): any | null; steal_qdata(quark: GLib.Quark): any | null; thaw_notify(): void; @@ -556,22 +556,23 @@ export class Object { vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: ParamSpec): void; vfunc_dispose(): void; vfunc_finalize(): void; - vfunc_get_property(property_id: number, value: Value, pspec: ParamSpec): void; + vfunc_get_property(property_id: number, value: (Value | string | boolean | number), pspec: ParamSpec): void; vfunc_notify(pspec: ParamSpec): void; - vfunc_set_property(property_id: number, value: Value, pspec: ParamSpec): void; + vfunc_set_property(property_id: number, value: (Value | string | boolean | number), pspec: ParamSpec): void; static compat_control(what: number, data: any | null): number; static interface_find_property(g_iface: TypeInterface, property_name: string): ParamSpec; static interface_install_property(g_iface: TypeInterface, pspec: ParamSpec): void; - static interface_list_properties(g_iface: TypeInterface): [ParamSpec[], number]; + static interface_list_properties(g_iface: TypeInterface): ParamSpec[]; + static $gtype: GType; static _classInit: (klass: any) => any; connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; emit(id: string, ...args: any[]): void; disconnect(id: number): void; set(params: T): void - block_signal_handler(id: number); - unblock_signal_handler(id: number); - stop_emission_by_name(detailedName: string); + block_signal_handler(id: number): number; + unblock_signal_handler(id: number): number; + stop_emission_by_name(detailedName: string): number; } export module ParamSpec { export interface ConstructorProperties { @@ -579,8 +580,8 @@ export module ParamSpec { } } export abstract class ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields g_type_instance: TypeInstance; name: string; @@ -599,9 +600,9 @@ export abstract class ParamSpec { sink(): void; steal_qdata(quark: GLib.Quark): any | null; vfunc_finalize(): void; - vfunc_value_set_default(value: Value): void; - vfunc_value_validate(value: Value): boolean; - vfunc_values_cmp(value1: Value, value2: Value): number; + vfunc_value_set_default(value: (Value | string | boolean | number)): void; + vfunc_value_validate(value: (Value | string | boolean | number)): boolean; + vfunc_values_cmp(value1: (Value | string | boolean | number), value2: (Value | string | boolean | number)): number; static char(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; static uchar(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any):ParamSpec; static int(name: any, nick: any, blurb: any, flags: any, minimum: any, maximum: any, defaultValue: any): ParamSpec; @@ -627,8 +628,8 @@ export module ParamSpecBoolean { } } export class ParamSpecBoolean extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields default_value: boolean; } @@ -638,8 +639,8 @@ export module ParamSpecBoxed { } } export class ParamSpecBoxed extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export module ParamSpecChar { export interface ConstructorProperties extends ParamSpec.ConstructorProperties { @@ -647,8 +648,8 @@ export module ParamSpecChar { } } export class ParamSpecChar extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -660,8 +661,8 @@ export module ParamSpecDouble { } } export class ParamSpecDouble extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -674,8 +675,8 @@ export module ParamSpecEnum { } } export class ParamSpecEnum extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields enum_class: EnumClass; default_value: number; @@ -686,8 +687,8 @@ export module ParamSpecFlags { } } export class ParamSpecFlags extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields flags_class: FlagsClass; default_value: number; @@ -698,8 +699,8 @@ export module ParamSpecFloat { } } export class ParamSpecFloat extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -712,8 +713,8 @@ export module ParamSpecGType { } } export class ParamSpecGType extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields is_a_type: GType; } @@ -723,8 +724,8 @@ export module ParamSpecInt { } } export class ParamSpecInt extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -736,8 +737,8 @@ export module ParamSpecInt64 { } } export class ParamSpecInt64 extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -749,8 +750,8 @@ export module ParamSpecLong { } } export class ParamSpecLong extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -762,8 +763,8 @@ export module ParamSpecObject { } } export class ParamSpecObject extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export module ParamSpecOverride { export interface ConstructorProperties extends ParamSpec.ConstructorProperties { @@ -771,8 +772,8 @@ export module ParamSpecOverride { } } export class ParamSpecOverride extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export module ParamSpecParam { export interface ConstructorProperties extends ParamSpec.ConstructorProperties { @@ -780,8 +781,8 @@ export module ParamSpecParam { } } export class ParamSpecParam extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export module ParamSpecPointer { export interface ConstructorProperties extends ParamSpec.ConstructorProperties { @@ -789,8 +790,8 @@ export module ParamSpecPointer { } } export class ParamSpecPointer extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export module ParamSpecString { export interface ConstructorProperties extends ParamSpec.ConstructorProperties { @@ -798,8 +799,8 @@ export module ParamSpecString { } } export class ParamSpecString extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields default_value: string; cset_first: string; @@ -814,8 +815,8 @@ export module ParamSpecUChar { } } export class ParamSpecUChar extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -827,8 +828,8 @@ export module ParamSpecUInt { } } export class ParamSpecUInt extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -840,8 +841,8 @@ export module ParamSpecUInt64 { } } export class ParamSpecUInt64 extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -853,8 +854,8 @@ export module ParamSpecULong { } } export class ParamSpecULong extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields minimum: number; maximum: number; @@ -866,8 +867,8 @@ export module ParamSpecUnichar { } } export class ParamSpecUnichar extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields default_value: number; } @@ -877,8 +878,8 @@ export module ParamSpecValueArray { } } export class ParamSpecValueArray extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields element_spec: ParamSpec; fixed_n_elements: number; @@ -889,8 +890,8 @@ export module ParamSpecVariant { } } export class ParamSpecVariant extends ParamSpec { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields type: GLib.VariantType; default_value: GLib.Variant; @@ -901,12 +902,12 @@ export module TypeModule { } } export abstract class TypeModule extends Object implements TypePlugin { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields use_count: number; - type_infos: string[]; - interface_infos: string[]; + type_infos: GLib.SList; + interface_infos: GLib.SList; name: string; // Members add_interface(instance_type: GType, interface_type: GType, interface_info: InterfaceInfo): void; @@ -929,29 +930,29 @@ export class CClosure { closure: Closure; callback: any; // Members - static marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_BOOLEAN__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__BOOLEAN(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__BOXED(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__CHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__DOUBLE(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__ENUM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__FLAGS(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__FLOAT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__INT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__LONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__OBJECT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__PARAM(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__STRING(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__UCHAR(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__UINT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__UINT_POINTER(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__ULONG(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__VARIANT(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_VOID__VOID(closure: Closure, return_value: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; - static marshal_generic(closure: Closure, return_gvalue: Value, n_param_values: number, param_values: Value, invocation_hint: any | null, marshal_data: any | null): void; + static marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_BOOLEAN__FLAGS(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__BOOLEAN(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__BOXED(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__CHAR(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__DOUBLE(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__ENUM(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__FLAGS(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__FLOAT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__INT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__LONG(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__OBJECT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__PARAM(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__POINTER(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__STRING(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__UCHAR(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__UINT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__UINT_POINTER(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__ULONG(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__VARIANT(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_VOID__VOID(closure: Closure, return_value: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; + static marshal_generic(closure: Closure, return_gvalue: (Value | string | boolean | number), n_param_values: number, param_values: (Value | string | boolean | number), invocation_hint: any | null, marshal_data: any | null): void; } export type Closure = (...args: P[]) => R; @@ -962,6 +963,13 @@ export class ClosureNotifyData { notify: ClosureNotify; } export class EnumClass { + constructor(properties?: { + g_type_class?: TypeClass; + minimum?: number; + maximum?: number; + n_values?: number; + values?: EnumValue; + }); constructor(copy: EnumClass); // Fields g_type_class: TypeClass; @@ -971,6 +979,11 @@ export class EnumClass { values: EnumValue; } export class EnumValue { + constructor(properties?: { + value?: number; + value_name?: string; + value_nick?: string; + }); constructor(copy: EnumValue); // Fields value: number; @@ -978,6 +991,12 @@ export class EnumValue { value_nick: string; } export class FlagsClass { + constructor(properties?: { + g_type_class?: TypeClass; + mask?: number; + n_values?: number; + values?: FlagsValue; + }); constructor(copy: FlagsClass); // Fields g_type_class: TypeClass; @@ -986,6 +1005,11 @@ export class FlagsClass { values: FlagsValue; } export class FlagsValue { + constructor(properties?: { + value?: number; + value_name?: string; + value_nick?: string; + }); constructor(copy: FlagsValue); // Fields value: number; @@ -1009,13 +1033,18 @@ export class ParamSpecPool { constructor(copy: ParamSpecPool); // Members insert(pspec: ParamSpec, owner_type: GType): void; - list(owner_type: GType): [ParamSpec[], number]; + list(owner_type: GType): ParamSpec[]; list_owned(owner_type: GType): GLib.List; lookup(param_name: string, owner_type: GType, walk_ancestors: boolean): ParamSpec; remove(pspec: ParamSpec): void; static new(type_prefixing: boolean): ParamSpecPool; } export class ParamSpecTypeInfo { + constructor(properties?: { + instance_size?: number; + n_preallocs?: number; + value_type?: GType; + }); constructor(copy: ParamSpecTypeInfo); // Fields instance_size: number; @@ -1023,6 +1052,10 @@ export class ParamSpecTypeInfo { value_type: GType; } export class Parameter { + constructor(properties?: { + name?: string; + value?: Value; + }); constructor(copy: Parameter); // Fields name: string; @@ -1047,6 +1080,9 @@ export class SignalQuery { param_types: GType[]; } export class TypeClass { + constructor(properties?: { + g_type?: GType; + }); constructor(copy: TypeClass); // Fields g_type: GType; @@ -1080,6 +1116,9 @@ export class TypeInfo { value_table: TypeValueTable; } export class TypeInstance { + constructor(properties?: { + g_class?: TypeClass; + }); constructor(copy: TypeInstance); // Fields g_class: TypeClass; @@ -1087,6 +1126,10 @@ export class TypeInstance { get_private(private_type: GType): any | null; } export class TypeInterface { + constructor(properties?: { + g_type?: GType; + g_instance_type?: GType; + }); constructor(copy: TypeInterface); // Fields g_type: GType; @@ -1096,7 +1139,7 @@ export class TypeInterface { static add_prerequisite(interface_type: GType, prerequisite_type: GType): void; static get_plugin(instance_type: GType, interface_type: GType): TypePlugin; static peek(instance_class: TypeClass, iface_type: GType): TypeInterface; - static prerequisites(interface_type: GType): [GType[], number | null]; + static prerequisites(interface_type: GType): GType[]; } export class TypePluginClass { constructor(copy: TypePluginClass); @@ -1108,6 +1151,12 @@ export class TypePluginClass { complete_interface_info: TypePluginCompleteInterfaceInfo; } export class TypeQuery { + constructor(properties?: { + type?: GType; + type_name?: string; + class_size?: number; + instance_size?: number; + }); constructor(copy: TypeQuery); // Fields type: GType; @@ -1116,19 +1165,27 @@ export class TypeQuery { instance_size: number; } export class TypeValueTable { + constructor(properties?: { + collect_format?: string; + lcopy_format?: string; + }); constructor(copy: TypeValueTable); // Fields collect_format: string; lcopy_format: string; } export class Value { + constructor(properties?: { + g_type?: GType; + data?: _Value__data__union[]; + }); constructor(copy: Value); // Fields g_type: GType; data: _Value__data__union[]; // Members - copy(dest_value: Value): void; - dup_object(): Object; + copy(dest_value: (Value | string | boolean | number)): void; + dup_object(): T; dup_string(): string; dup_variant(): GLib.Variant | null; fits_pointer(): boolean; @@ -1143,7 +1200,7 @@ export class Value { get_int(): number; get_int64(): number; get_long(): number; - get_object(): Object; + get_object(): T; get_param(): ParamSpec; get_pointer(): any | null; get_schar(): number; @@ -1186,7 +1243,7 @@ export class Value { take_boxed(v_boxed: any | null): void; take_string(v_string: string | null): void; take_variant(variant: GLib.Variant | null): void; - transform(dest_value: Value): boolean; + transform(dest_value: (Value | string | boolean | number)): boolean; unset(): void; static type_compatible(src_type: GType, dest_type: GType): boolean; static type_transformable(src_type: GType, dest_type: GType): boolean; @@ -1201,14 +1258,14 @@ export class ValueArray { // Constructors static ["new"](n_prealloced: number): ValueArray; // Members - append(value: Value | null): ValueArray; + append(value: (Value | string | boolean | number) | null): ValueArray; copy(): ValueArray; get_nth(index_: number): Value; - insert(index_: number, value: Value | null): ValueArray; - prepend(value: Value | null): ValueArray; + insert(index_: number, value: (Value | string | boolean | number) | null): ValueArray; + prepend(value: (Value | string | boolean | number) | null): ValueArray; remove(index_: number): ValueArray; sort(compare_func: GLib.CompareFunc): ValueArray; - sort_with_data(compare_func: GLib.CompareDataFunc): ValueArray; + sort(compare_func: GLib.CompareDataFunc): ValueArray; } export class WeakRef { constructor(copy: WeakRef); @@ -1217,6 +1274,17 @@ export class TypeCValue { constructor(copy: TypeCValue); } export class _Value__data__union { + constructor(properties?: { + v_int?: number; + v_uint?: number; + v_long?: number; + v_ulong?: number; + v_int64?: number; + v_uint64?: number; + v_float?: number; + v_double?: number; + v_pointer?: any; + }); constructor(copy: _Value__data__union); // Fields v_int: number; @@ -1229,7 +1297,10 @@ export class _Value__data__union { v_double: number; v_pointer: any; } -export interface TypePlugin { +export interface TypePluginNamespace { + $gtype: GType; +} +export interface TypePlugin extends Object { // Members complete_interface_info(instance_type: GType, interface_type: GType, info: InterfaceInfo): void; complete_type_info(g_type: GType, info: TypeInfo, value_table: TypeValueTable): void; @@ -1237,17 +1308,21 @@ export interface TypePlugin { use(): void; } +export const TypePlugin: TypePluginNamespace; + export type SignalCMarshaller = ClosureMarshal; export type SignalCVaMarshaller = unknown; export type Type = number; -export function signal_handlers_block_by_func(instance: Object, func: Function); +export function signal_handlers_block_by_func(instance: Object, func: Function): number; -export function signal_handlers_unblock_by_func (instance: Object, func: Function); +export function signal_handlers_unblock_by_func (instance: Object, func: Function): number; -export function signal_handlers_disconnect_by_func(instance: Object, func: Function);export class Interface { +export function signal_handlers_disconnect_by_func(instance: Object, func: Function): number; + +export class Interface { static _classInit: (klass: any) => any; __name__: string; _construct: (params: any, ...otherArgs: any[]) => any; @@ -1261,9 +1336,9 @@ export interface SignalMatch { func: Function; } -export function signal_connect (object: Object, name: string, handler: Function); -export function signal_connect_after(object: Object, name: string, handler: Function); -export function signal_emit_by_name(object: Object, name: string, ...args: any[]); +export function signal_connect (object: Object, name: string, handler: Function): number; +export function signal_connect_after(object: Object, name: string, handler: Function): number; +export function signal_emit_by_name(object: Object, name: string, ...args: any[]): number; export let __gtkCssName__: symbol; export let __gtkTemplate__: symbol; @@ -1322,6 +1397,7 @@ export let TYPE_PARAM: GType; export let TYPE_INTERFACE: GType; export let TYPE_OBJECT: GType; export let TYPE_VARIANT: GType; +export let TYPE_INT: GType; export function registerClass< K, @@ -1330,22 +1406,54 @@ export function registerClass< >( klass: T ): { + $gtype: GType; new (...args: Parameters): T["prototype"]; prototype: T["prototype"]; }; +export type Property = K extends ParamSpecBoolean + ? boolean + : K extends ParamSpecDouble | ParamSpecInt | ParamSpecUInt | ParamSpecFloat | ParamSpecLong + ? number + : K extends ParamSpecInt64 | ParamSpecUInt64 | ParamSpecULong + ? number + : K extends ParamSpecFlags | ParamSpecEnum + ? number + : K extends ParamSpecString | ParamSpecUnichar + ? string + : K extends ParamSpecValueArray + ? any[] + : K extends ParamSpecObject + ? any + : K extends ParamSpecVariant + ? GLib.Variant + : any; + +export type Properties< + Properties extends { [key: string]: ParamSpec } +> = { + [key in keyof Properties]: Property; +}; + export function registerClass< K, P extends { _init(...args: K[]): void }, - T extends { prototype: P } + T extends { prototype: P }, + Props extends { [key: string]: ParamSpec } >( options: { GTypeName?: string; - Properties?: { [key: string]: ParamSpec }; + Properties?: Props; Signals?: { [key: string]: {} }; + Implements?: any[]; + CssName?: string; + Template?: string; + Children?: string[]; + InternalChildren?: string[]; }, klass: T ): { - new (...args: Parameters): T["prototype"]; - prototype: T["prototype"]; + $gtype: GType; + new (...args: Parameters): T["prototype"] & Properties; + prototype: T["prototype"] & Properties; }; diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/gtk.d.ts b/gi/gtk.d.ts similarity index 94% rename from dynamic-panel-transparency@rockon999.github.io/gi/gtk.d.ts rename to gi/gtk.d.ts index 46b6126..56962ef 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/gtk.d.ts +++ b/gi/gtk.d.ts @@ -540,7 +540,7 @@ export const TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID: number; export function accel_groups_activate(object: GObject.Object, accel_key: number, accel_mods: Gdk.ModifierType): boolean; -export function accel_groups_from_object(object: GObject.Object): string[]; +export function accel_groups_from_object(object: GObject.Object): GLib.SList; export function accelerator_get_default_mod_mask(): Gdk.ModifierType; @@ -564,7 +564,7 @@ export function alternative_dialog_button_order(screen: Gdk.Screen | null): bool export function binding_entry_add_signal_from_string(binding_set: BindingSet, signal_desc: string): GLib.TokenType; -export function binding_entry_add_signall(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType, signal_name: string, binding_args: string[]): void; +export function binding_entry_add_signall(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType, signal_name: string, binding_args: GLib.SList): void; export function binding_entry_remove(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType): void; @@ -736,7 +736,7 @@ export function print_error_quark(): GLib.Quark; export function print_run_page_setup_dialog(parent: Window | null, page_setup: PageSetup | null, settings: PrintSettings): PageSetup; -export function print_run_page_setup_dialog_async(parent: Window | null, page_setup: PageSetup | null, settings: PrintSettings, done_cb: PageSetupDoneFunc, data: any | null): void; +export function print_run_page_setup_dialog_async(parent: Window | null, page_setup: PageSetup | null, settings: PrintSettings, done_cb: PageSetupDoneFunc): void; export function propagate_event(widget: Widget, event: Gdk.Event): void; @@ -772,15 +772,15 @@ export function rc_parse_state(scanner: GLib.Scanner): [number, StateType]; export function rc_parse_string(rc_string: string): void; -export function rc_property_parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; +export function rc_property_parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; -export function rc_property_parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; +export function rc_property_parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; -export function rc_property_parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; +export function rc_property_parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; -export function rc_property_parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; +export function rc_property_parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; -export function rc_property_parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; +export function rc_property_parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; export function rc_reparse_all(): boolean; @@ -858,15 +858,15 @@ export function stock_add(items: StockItem[]): void; export function stock_add_static(items: StockItem[]): void; -export function stock_list_ids(): string[]; +export function stock_list_ids(): GLib.SList; export function stock_lookup(stock_id: string): [boolean, StockItem]; -export function stock_set_translate_func(domain: string, func: TranslateFunc, data: any | null, notify: GLib.DestroyNotify): void; +export function stock_set_translate_func(domain: string, func: TranslateFunc, notify: GLib.DestroyNotify): void; export function target_table_free(targets: TargetEntry[]): void; -export function target_table_new_from_list(list: TargetList): [TargetEntry[], number]; +export function target_table_new_from_list(list: TargetList): TargetEntry[]; export function targets_include_image(targets: Gdk.Atom[], writable: boolean): boolean; @@ -884,7 +884,7 @@ export function test_find_sibling(base_widget: Widget, widget_type: GType): Widg export function test_find_widget(widget: Widget, label_pattern: string, widget_type: GType): Widget | null; -export function test_list_all_types(): [GType[], number]; +export function test_list_all_types(): GType[]; export function test_register_all_types(): void; @@ -916,39 +916,39 @@ export function __true(): boolean; export type AccelGroupActivate = (accel_group: AccelGroup, acceleratable: GObject.Object, keyval: number, modifier: Gdk.ModifierType) => boolean; -export type AccelGroupFindFunc = (key: AccelKey, closure: GObject.Closure, data: any | null) => boolean; +export type AccelGroupFindFunc = (key: AccelKey, closure: GObject.Closure) => boolean; export type AccelMapForeach = (data: any | null, accel_path: string, accel_key: number, accel_mods: Gdk.ModifierType, changed: boolean) => void; -export type AssistantPageFunc = (current_page: number, data: any | null) => number; +export type AssistantPageFunc = (current_page: number) => number; export type BuilderConnectFunc = (builder: Builder, object: GObject.Object, signal_name: string, handler_name: string, connect_object: GObject.Object | null, flags: GObject.ConnectFlags) => void; export type CalendarDetailFunc = (calendar: Calendar, year: number, month: number, day: number) => string | null; -export type Callback = (widget: Widget, data: any | null) => void; +export type Callback = (widget: Widget) => void; -export type CellAllocCallback = (renderer: CellRenderer, cell_area: Gdk.Rectangle, cell_background: Gdk.Rectangle, data: any | null) => boolean; +export type CellAllocCallback = (renderer: CellRenderer, cell_area: Gdk.Rectangle, cell_background: Gdk.Rectangle) => boolean; -export type CellCallback = (renderer: CellRenderer, data: any | null) => boolean; +export type CellCallback = (renderer: CellRenderer) => boolean; -export type CellLayoutDataFunc = (cell_layout: CellLayout, cell: CellRenderer, tree_model: TreeModel, iter: TreeIter, data: any | null) => void; +export type CellLayoutDataFunc = (cell_layout: CellLayout, cell: CellRenderer, tree_model: TreeModel, iter: TreeIter) => void; export type ClipboardClearFunc = (clipboard: Clipboard, user_data_or_owner: any | null) => void; export type ClipboardGetFunc = (clipboard: Clipboard, selection_data: SelectionData, info: number, user_data_or_owner: any | null) => void; -export type ClipboardImageReceivedFunc = (clipboard: Clipboard, pixbuf: GdkPixbuf.Pixbuf, data: any | null) => void; +export type ClipboardImageReceivedFunc = (clipboard: Clipboard, pixbuf: GdkPixbuf.Pixbuf) => void; -export type ClipboardReceivedFunc = (clipboard: Clipboard, selection_data: SelectionData, data: any | null) => void; +export type ClipboardReceivedFunc = (clipboard: Clipboard, selection_data: SelectionData) => void; -export type ClipboardRichTextReceivedFunc = (clipboard: Clipboard, format: Gdk.Atom, text: string | null, length: number, data: any | null) => void; +export type ClipboardRichTextReceivedFunc = (clipboard: Clipboard, format: Gdk.Atom, text: string | null, length: number) => void; -export type ClipboardTargetsReceivedFunc = (clipboard: Clipboard, atoms: Gdk.Atom[] | null, data: any | null) => void; +export type ClipboardTargetsReceivedFunc = (clipboard: Clipboard, atoms: Gdk.Atom[] | null) => void; -export type ClipboardTextReceivedFunc = (clipboard: Clipboard, text: string | null, data: any | null) => void; +export type ClipboardTextReceivedFunc = (clipboard: Clipboard, text: string | null) => void; -export type ClipboardURIReceivedFunc = (clipboard: Clipboard, uris: string[], data: any | null) => void; +export type ClipboardURIReceivedFunc = (clipboard: Clipboard, uris: string[]) => void; export type ColorSelectionChangePaletteFunc = (colors: Gdk.Color[]) => void; @@ -956,9 +956,9 @@ export type ColorSelectionChangePaletteWithScreenFunc = (screen: Gdk.Screen, col export type EntryCompletionMatchFunc = (completion: EntryCompletion, key: string, iter: TreeIter) => boolean; -export type FileFilterFunc = (filter_info: FileFilterInfo, data: any | null) => boolean; +export type FileFilterFunc = (filter_info: FileFilterInfo) => boolean; -export type FlowBoxCreateWidgetFunc = (item: Item) => Widget; +export type FlowBoxCreateWidgetFunc = (item: GObject.Object) => Widget; export type FlowBoxFilterFunc = (child: FlowBoxChild) => boolean; @@ -966,13 +966,13 @@ export type FlowBoxForeachFunc = (box: FlowBox, child: FlowBoxChild) => void; export type FlowBoxSortFunc = (child1: FlowBoxChild, child2: FlowBoxChild) => number; -export type FontFilterFunc = (family: Pango.FontFamily, face: Pango.FontFace, data: any | null) => boolean; +export type FontFilterFunc = (family: Pango.FontFamily, face: Pango.FontFace) => boolean; -export type IconViewForeachFunc = (icon_view: IconView, path: TreePath, data: any | null) => void; +export type IconViewForeachFunc = (icon_view: IconView, path: TreePath) => void; -export type KeySnoopFunc = (grab_widget: Widget, event: Gdk.EventKey, func_data: any | null) => number; +export type KeySnoopFunc = (grab_widget: Widget, event: Gdk.EventKey) => number; -export type ListBoxCreateWidgetFunc = (item: Item) => Widget; +export type ListBoxCreateWidgetFunc = (item: GObject.Object) => Widget; export type ListBoxFilterFunc = (row: ListBoxRow) => boolean; @@ -990,53 +990,53 @@ export type ModuleDisplayInitFunc = (display: Gdk.Display) => void; export type ModuleInitFunc = (argv: string[] | null) => void; -export type PageSetupDoneFunc = (page_setup: PageSetup, data: any | null) => void; +export type PageSetupDoneFunc = (page_setup: PageSetup) => void; export type PrintSettingsFunc = (key: string, value: string) => void; -export type RcPropertyParser = (pspec: GObject.ParamSpec, rc_string: GLib.String, property_value: GObject.Value) => boolean; +export type RcPropertyParser = (pspec: GObject.ParamSpec, rc_string: GLib.String, property_value: (GObject.Value | string | boolean | number)) => boolean; export type RecentFilterFunc = (filter_info: RecentFilterInfo) => boolean; export type RecentSortFunc = (a: RecentInfo, b: RecentInfo) => number; -export type StylePropertyParser = (string: string, value: GObject.Value) => boolean; +export type StylePropertyParser = (string: string, value: (GObject.Value | string | boolean | number)) => boolean; -export type TextBufferDeserializeFunc = (register_buffer: TextBuffer, content_buffer: TextBuffer, iter: TextIter, data: number[], create_tags: boolean) => boolean; +export type TextBufferDeserializeFunc = (register_buffer: TextBuffer, content_buffer: TextBuffer, iter: TextIter, data: (Uint8Array | string), create_tags: boolean) => boolean; export type TextBufferSerializeFunc = (register_buffer: TextBuffer, content_buffer: TextBuffer, start: TextIter, end: TextIter, length: number) => number | null; export type TextCharPredicate = (ch: number) => boolean; -export type TextTagTableForeach = (tag: TextTag, data: any | null) => void; +export type TextTagTableForeach = (tag: TextTag) => void; export type TickCallback = (widget: Widget, frame_clock: Gdk.FrameClock) => boolean; -export type TranslateFunc = (path: string, func_data: any | null) => string; +export type TranslateFunc = (path: string) => string; -export type TreeCellDataFunc = (tree_column: TreeViewColumn, cell: CellRenderer, tree_model: TreeModel, iter: TreeIter, data: any | null) => void; +export type TreeCellDataFunc = (tree_column: TreeViewColumn, cell: CellRenderer, tree_model: TreeModel, iter: TreeIter) => void; export type TreeDestroyCountFunc = (tree_view: TreeView, path: TreePath, children: number) => void; export type TreeIterCompareFunc = (model: TreeModel, a: TreeIter, b: TreeIter) => number; -export type TreeModelFilterModifyFunc = (model: TreeModel, iter: TreeIter, column: number, data: any | null) => void; +export type TreeModelFilterModifyFunc = (model: TreeModel, iter: TreeIter, column: number) => void; -export type TreeModelFilterVisibleFunc = (model: TreeModel, iter: TreeIter, data: any | null) => boolean; +export type TreeModelFilterVisibleFunc = (model: TreeModel, iter: TreeIter) => boolean; -export type TreeModelForeachFunc = (model: TreeModel, path: TreePath, iter: TreeIter, data: any | null) => boolean; +export type TreeModelForeachFunc = (model: TreeModel, path: TreePath, iter: TreeIter) => boolean; -export type TreeSelectionForeachFunc = (model: TreeModel, path: TreePath, iter: TreeIter, data: any | null) => void; +export type TreeSelectionForeachFunc = (model: TreeModel, path: TreePath, iter: TreeIter) => void; -export type TreeSelectionFunc = (selection: TreeSelection, model: TreeModel, path: TreePath, path_currently_selected: boolean, data: any | null) => boolean; +export type TreeSelectionFunc = (selection: TreeSelection, model: TreeModel, path: TreePath, path_currently_selected: boolean) => boolean; -export type TreeViewColumnDropFunc = (tree_view: TreeView, column: TreeViewColumn, prev_column: TreeViewColumn, next_column: TreeViewColumn, data: any | null) => boolean; +export type TreeViewColumnDropFunc = (tree_view: TreeView, column: TreeViewColumn, prev_column: TreeViewColumn, next_column: TreeViewColumn) => boolean; export type TreeViewMappingFunc = (tree_view: TreeView, path: TreePath) => void; -export type TreeViewRowSeparatorFunc = (model: TreeModel, iter: TreeIter, data: any | null) => boolean; +export type TreeViewRowSeparatorFunc = (model: TreeModel, iter: TreeIter) => boolean; -export type TreeViewSearchEqualFunc = (model: TreeModel, column: number, key: string, iter: TreeIter, search_data: any | null) => boolean; +export type TreeViewSearchEqualFunc = (model: TreeModel, column: number, key: string, iter: TreeIter) => boolean; export type TreeViewSearchPositionFunc = (tree_view: TreeView, search_dialog: Widget) => void; export enum Align { @@ -1308,6 +1308,9 @@ export enum License { LGPL_3_0_ONLY = 12, AGPL_3_0 = 13, AGPL_3_0_ONLY = 14, + BSD_3 = 15, + APACHE_2_0 = 16, + MPL_2_0 = 17, } export enum MenuDirectionType { PARENT = 0, @@ -1976,11 +1979,42 @@ export enum UIManagerItemType { export module AboutDialog { export interface ConstructorProperties extends Dialog.ConstructorProperties { [key: string]: any; - } -} -export class AboutDialog extends Dialog { + artists: string[]; + authors: string[]; + comments: string; + copyright: string; + documenters: string[]; + license: string; + license_type: License; + logo: GdkPixbuf.Pixbuf; + logo_icon_name: string; + program_name: string; + translator_credits: string; + version: string; + website: string; + website_label: string; + wrap_license: boolean; + } +} +export class AboutDialog extends Dialog implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial): void; + _init(properties?: Partial, ...args: any[]): void; + // Properties + artists: string[]; + authors: string[]; + comments: string; + copyright: string; + documenters: string[]; + license: string; + license_type: License; + logo: GdkPixbuf.Pixbuf; + logo_icon_name: string; + program_name: string; + translator_credits: string; + version: string; + website: string; + website_label: string; + wrap_license: boolean; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -1991,6 +2025,39 @@ export class AboutDialog extends Dialog { // Constructors static ["new"](): AboutDialog; static ["new"](...args: never[]): never; + // Members + add_credit_section(section_name: string, people: string[]): void; + get_artists(): string[]; + get_authors(): string[]; + get_comments(): string; + get_copyright(): string; + get_documenters(): string[]; + get_license(): string; + get_license_type(): License; + get_logo(): GdkPixbuf.Pixbuf; + get_logo_icon_name(): string; + get_program_name(): string; + get_translator_credits(): string; + get_version(): string; + get_website(): string; + get_website_label(): string; + get_wrap_license(): boolean; + set_artists(artists: string[]): void; + set_authors(authors: string[]): void; + set_comments(comments: string | null): void; + set_copyright(copyright: string | null): void; + set_documenters(documenters: string[]): void; + set_license(license: string | null): void; + set_license_type(license_type: License): void; + set_logo(logo: GdkPixbuf.Pixbuf | null): void; + set_logo_icon_name(icon_name: string | null): void; + set_program_name(name: string): void; + set_translator_credits(translator_credits: string | null): void; + set_version(version: string | null): void; + set_website(website: string | null): void; + set_website_label(website_label: string): void; + set_wrap_license(wrap_license: boolean): void; + vfunc_activate_link(uri: string): boolean; } export module AccelGroup { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -2001,7 +2068,7 @@ export module AccelGroup { } export class AccelGroup extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties is_locked: boolean; modifier_mask: Gdk.ModifierType; @@ -2024,11 +2091,11 @@ export class AccelGroup extends GObject.Object { disconnect(closure: GObject.Closure | null): boolean; disconnect(...args: never[]): never; disconnect_key(accel_key: number, accel_mods: Gdk.ModifierType): boolean; - find(find_func: AccelGroupFindFunc, data: any | null): AccelKey; + find(find_func: AccelGroupFindFunc): AccelKey; get_is_locked(): boolean; get_modifier_mask(): Gdk.ModifierType; lock(): void; - query(accel_key: number, accel_mods: Gdk.ModifierType): [AccelGroupEntry[] | null, number | null]; + query(accel_key: number, accel_mods: Gdk.ModifierType): AccelGroupEntry[] | null; unlock(): void; vfunc_accel_changed(keyval: number, modifier: Gdk.ModifierType, accel_closure: GObject.Closure): void; static from_accel_closure(closure: GObject.Closure): AccelGroup | null; @@ -2042,7 +2109,7 @@ export module AccelLabel { } export class AccelLabel extends Label implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_closure: GObject.Closure; accel_widget: Widget; @@ -2068,7 +2135,7 @@ export module AccelMap { } export class AccelMap extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -2100,7 +2167,7 @@ export module Accessible { } export class Accessible extends Atk.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties widget: Widget; // Members @@ -2134,7 +2201,7 @@ export module Action { } export class Action extends GObject.Object implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties action_group: ActionGroup; always_show_image: boolean; @@ -2180,7 +2247,7 @@ export class Action extends GObject.Object implements Buildable { get_is_important(): boolean; get_label(): string; get_name(): string; - get_proxies(): string[]; + get_proxies(): GLib.SList; get_sensitive(): boolean; get_short_label(): string; get_stock_id(): string; @@ -2213,23 +2280,23 @@ export class Action extends GObject.Object implements Buildable { vfunc_disconnect_proxy(proxy: Widget): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module ActionBar { @@ -2239,7 +2306,7 @@ export module ActionBar { } export class ActionBar extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): ActionBar; // Members @@ -2259,7 +2326,7 @@ export module ActionGroup { } export class ActionGroup extends GObject.Object implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_group: AccelGroup; name: string; @@ -2295,30 +2362,30 @@ export class ActionGroup extends GObject.Object implements Buildable { remove_action(action: Action): void; set_accel_group(accel_group: AccelGroup | null): void; set_sensitive(sensitive: boolean): void; - set_translate_func(func: TranslateFunc, data: any | null, notify: GLib.DestroyNotify): void; + set_translate_func(func: TranslateFunc, notify: GLib.DestroyNotify): void; set_translation_domain(domain: string | null): void; set_visible(visible: boolean): void; translate_string(string: string): string; vfunc_get_action(action_name: string): Action; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module Adjustment { @@ -2334,7 +2401,7 @@ export module Adjustment { } export class Adjustment extends GObject.InitiallyUnowned { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties lower: number; page_increment: number; @@ -2392,7 +2459,7 @@ export module Alignment { } export class Alignment extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties bottom_padding: number; left_padding: number; @@ -2422,7 +2489,7 @@ export module AppChooserButton { } export class AppChooserButton extends ComboBox implements Atk.ImplementorIface, AppChooser, Buildable, CellEditable, CellLayout { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties heading: string; show_default_item: boolean; @@ -2464,7 +2531,7 @@ export module AppChooserDialog { } export class AppChooserDialog extends Dialog implements Atk.ImplementorIface, AppChooser, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties gfile: Gio.File; heading: string; @@ -2495,7 +2562,7 @@ export module AppChooserWidget { } export class AppChooserWidget extends Box implements Atk.ImplementorIface, AppChooser, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties default_text: string; show_default: boolean; @@ -2553,7 +2620,7 @@ export module Application { } export class Application extends Gio.Application implements Gio.ActionGroup, Gio.ActionMap { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active_window: Window; app_menu: Gio.MenuModel; @@ -2631,7 +2698,7 @@ export class Application extends Gio.Application implements Gio.ActionGroup, Gio vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; add_action(action: Gio.Action): void; add_action(...args: never[]): never; - add_action_entries(entries: Gio.ActionEntry[]): void; + add_action_entries(entries: Gio.ActionEntry[], user_data: any | null): void; lookup_action(action_name: string): Gio.Action; remove_action(action_name: string): void; remove_action(...args: never[]): never; @@ -2647,7 +2714,7 @@ export module ApplicationWindow { } export class ApplicationWindow extends Window implements Atk.ImplementorIface, Gio.ActionGroup, Gio.ActionMap, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties show_menubar: boolean; // Constructors @@ -2689,7 +2756,7 @@ export class ApplicationWindow extends Window implements Atk.ImplementorIface, G vfunc_list_actions(): string[]; vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null]; add_action(action: Gio.Action): void; - add_action_entries(entries: Gio.ActionEntry[]): void; + add_action_entries(entries: Gio.ActionEntry[], user_data: any | null): void; lookup_action(action_name: string): Gio.Action; remove_action(action_name: string): void; vfunc_add_action(action: Gio.Action): void; @@ -2705,7 +2772,7 @@ export module Arrow { } export class Arrow extends Misc implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties arrow_type: ArrowType; shadow_type: ShadowType; @@ -2724,7 +2791,7 @@ export module ArrowAccessible { } export class ArrowAccessible extends WidgetAccessible implements Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ArrowAccessiblePrivate | any; // Implemented Members @@ -2750,7 +2817,7 @@ export module AspectFrame { } export class AspectFrame extends Frame implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties obey_child: boolean; ratio: number; @@ -2773,7 +2840,7 @@ export module Assistant { } export class Assistant extends Window implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties use_header_bar: number; // Signals @@ -2818,7 +2885,7 @@ export class Assistant extends Window implements Atk.ImplementorIface, Buildable remove_action_widget(child: Widget): void; remove_page(page_num: number): void; set_current_page(page_num: number): void; - set_forward_page_func(page_func: AssistantPageFunc | null, data: any | null, destroy: GLib.DestroyNotify): void; + set_forward_page_func(page_func: AssistantPageFunc | null, destroy: GLib.DestroyNotify): void; set_page_complete(page: Widget, complete: boolean): void; set_page_has_padding(page: Widget, has_padding: boolean): void; set_page_header_image(page: Widget, pixbuf: GdkPixbuf.Pixbuf | null): void; @@ -2838,7 +2905,7 @@ export module Bin { } export abstract class Bin extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields container: Container; // Members @@ -2851,7 +2918,7 @@ export module BooleanCellAccessible { } export class BooleanCellAccessible extends RendererCellAccessible implements Atk.Action, Atk.Component, Atk.TableCell { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: BooleanCellAccessiblePrivate | any; } @@ -2865,7 +2932,7 @@ export module Box { } export class Box extends Container implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties baseline_position: BaselinePosition; homogeneous: boolean; @@ -2902,7 +2969,7 @@ export module Builder { } export class Builder extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties translation_domain: string; // Fields @@ -2920,13 +2987,13 @@ export class Builder extends GObject.Object { add_objects_from_file(filename: string, object_ids: string[]): number; add_objects_from_resource(resource_path: string, object_ids: string[]): number; add_objects_from_string(buffer: string, length: number, object_ids: string[]): number; - connect_signals(): void; + connect_signals(user_data: any | null): void; connect_signals_full(func: BuilderConnectFunc): void; expose_object(name: string, object: GObject.Object): void; extend_with_template(widget: Widget, template_type: GType, buffer: string, length: number): number; get_application(): Application | null; get_object(name: string): T | null; - get_objects(): string[]; + get_objects(): GLib.SList; get_translation_domain(): string; get_type_from_name(type_name: string): GType; set_application(application: Application): void; @@ -2951,7 +3018,7 @@ export module Button { } export class Button extends Bin implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties always_show_image: boolean; image: Widget; @@ -3052,7 +3119,7 @@ export module ButtonAccessible { } export class ButtonAccessible extends ContainerAccessible implements Atk.Action, Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ButtonAccessiblePrivate | any; // Implemented Members @@ -3095,7 +3162,7 @@ export module ButtonBox { } export class ButtonBox extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties layout_style: ButtonBoxStyle; // Fields @@ -3128,7 +3195,7 @@ export module Calendar { } export class Calendar extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties day: number; detail_height_rows: number; @@ -3180,7 +3247,7 @@ export class Calendar extends Widget implements Atk.ImplementorIface, Buildable mark_day(day: number): void; select_day(day: number): void; select_month(month: number, year: number): void; - set_detail_func(func: CalendarDetailFunc, data: any | null, destroy: GLib.DestroyNotify): void; + set_detail_func(func: CalendarDetailFunc, destroy: GLib.DestroyNotify): void; set_detail_height_rows(rows: number): void; set_detail_width_chars(chars: number): void; set_display_options(flags: CalendarDisplayOptions): void; @@ -3200,7 +3267,7 @@ export module CellAccessible { } export class CellAccessible extends Accessible implements Atk.Action, Atk.Component, Atk.TableCell { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: CellAccessiblePrivate; // Members @@ -3285,9 +3352,8 @@ export module CellArea { } } export abstract class CellArea extends GObject.InitiallyUnowned implements Buildable, CellLayout { - orientation: Orientation; constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties edit_widget: CellEditable; edited_cell: CellRenderer; @@ -3317,14 +3383,14 @@ export abstract class CellArea extends GObject.InitiallyUnowned implements Build attribute_connect(renderer: CellRenderer, attribute: string, column: number): void; attribute_disconnect(renderer: CellRenderer, attribute: string): void; attribute_get_column(renderer: CellRenderer, attribute: string): number; - cell_get_property(renderer: CellRenderer, property_name: string, value: GObject.Value): void; - cell_set_property(renderer: CellRenderer, property_name: string, value: GObject.Value): void; + cell_get_property(renderer: CellRenderer, property_name: string, value: (GObject.Value | string | boolean | number)): void; + cell_set_property(renderer: CellRenderer, property_name: string, value: (GObject.Value | string | boolean | number)): void; copy_context(context: CellAreaContext): CellAreaContext; create_context(): CellAreaContext; event(context: CellAreaContext, widget: Widget, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState): number; focus(direction: DirectionType): boolean; - foreach(callback: CellCallback, callback_data: any | null): void; - foreach_alloc(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback, callback_data: any | null): void; + foreach(callback: CellCallback): void; + foreach_alloc(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback): void; get_cell_allocation(context: CellAreaContext, widget: Widget, renderer: CellRenderer, cell_area: Gdk.Rectangle): Gdk.Rectangle; get_cell_at_position(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, x: number, y: number): [CellRenderer, Gdk.Rectangle | null]; get_current_path_string(): string; @@ -3355,9 +3421,9 @@ export abstract class CellArea extends GObject.InitiallyUnowned implements Build vfunc_create_context(): CellAreaContext; vfunc_event(context: CellAreaContext, widget: Widget, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState): number; vfunc_focus(direction: DirectionType): boolean; - vfunc_foreach(callback: CellCallback, callback_data: any | null): void; - vfunc_foreach_alloc(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback, callback_data: any | null): void; - vfunc_get_cell_property(renderer: CellRenderer, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + vfunc_foreach(callback: CellCallback): void; + vfunc_foreach_alloc(context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback): void; + vfunc_get_cell_property(renderer: CellRenderer, property_id: number, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec): void; vfunc_get_preferred_height(context: CellAreaContext, widget: Widget): [number | null, number | null]; vfunc_get_preferred_height_for_width(context: CellAreaContext, widget: Widget, width: number): [number | null, number | null]; vfunc_get_preferred_width(context: CellAreaContext, widget: Widget): [number | null, number | null]; @@ -3366,27 +3432,27 @@ export abstract class CellArea extends GObject.InitiallyUnowned implements Build vfunc_is_activatable(): boolean; vfunc_remove(renderer: CellRenderer): void; vfunc_render(context: CellAreaContext, widget: Widget, cr: cairo.Context, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState, paint_focus: boolean): void; - vfunc_set_cell_property(renderer: CellRenderer, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + vfunc_set_cell_property(renderer: CellRenderer, property_id: number, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; add_attribute(cell: CellRenderer, attribute: string, column: number): void; clear(): void; @@ -3396,7 +3462,7 @@ export abstract class CellArea extends GObject.InitiallyUnowned implements Build pack_end(cell: CellRenderer, expand: boolean): void; pack_start(cell: CellRenderer, expand: boolean): void; reorder(cell: CellRenderer, position: number): void; - set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; vfunc_clear(): void; vfunc_clear_attributes(cell: CellRenderer): void; @@ -3406,7 +3472,7 @@ export abstract class CellArea extends GObject.InitiallyUnowned implements Build vfunc_pack_end(cell: CellRenderer, expand: boolean): void; vfunc_pack_start(cell: CellRenderer, expand: boolean): void; vfunc_reorder(cell: CellRenderer, position: number): void; - vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; } export module CellAreaBox { export interface ConstructorProperties extends CellArea.ConstructorProperties { @@ -3416,7 +3482,7 @@ export module CellAreaBox { } export class CellAreaBox extends CellArea implements Buildable, CellLayout, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties spacing: number; // Implemented Properties @@ -3446,7 +3512,7 @@ export module CellAreaContext { } export class CellAreaContext extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties area: CellArea; minimum_height: number; @@ -3469,7 +3535,6 @@ export class CellAreaContext extends GObject.Object { vfunc_get_preferred_width_for_height(height: number): [number | null, number | null]; vfunc_reset(): void; } - export module CellRenderer { export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { [key: string]: any; @@ -3493,7 +3558,7 @@ export module CellRenderer { } export abstract class CellRenderer extends GObject.InitiallyUnowned { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties cell_background: string; cell_background_gdk: Gdk.Color; @@ -3570,7 +3635,7 @@ export module CellRendererAccel { } export class CellRendererAccel extends CellRendererText { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_key: number; accel_mode: CellRendererAccelMode; @@ -3603,7 +3668,7 @@ export module CellRendererCombo { } export class CellRendererCombo extends CellRendererText { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties has_entry: boolean; model: TreeModel; @@ -3636,7 +3701,7 @@ export module CellRendererPixbuf { } export class CellRendererPixbuf extends CellRenderer { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties follow_state: boolean; gicon: Gio.Icon; @@ -3664,7 +3729,7 @@ export module CellRendererProgress { } export class CellRendererProgress extends CellRenderer implements Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties inverted: boolean; pulse: number; @@ -3690,7 +3755,7 @@ export module CellRendererSpin { } export class CellRendererSpin extends CellRendererText { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties adjustment: Adjustment; climb_rate: number; @@ -3709,7 +3774,7 @@ export module CellRendererSpinner { } export class CellRendererSpinner extends CellRenderer { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; pulse: number; @@ -3772,7 +3837,7 @@ export module CellRendererText { } export class CellRendererText extends CellRenderer { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties align_set: boolean; alignment: Pango.Alignment; @@ -3847,7 +3912,7 @@ export module CellRendererToggle { } export class CellRendererToggle extends CellRenderer { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties activatable: boolean; active: boolean; @@ -3888,7 +3953,7 @@ export module CellView { } export class CellView extends Widget implements Atk.ImplementorIface, Buildable, CellLayout, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties background: string; background_gdk: Gdk.Color; @@ -3928,7 +3993,7 @@ export class CellView extends Widget implements Atk.ImplementorIface, Buildable, pack_end(cell: CellRenderer, expand: boolean): void; pack_start(cell: CellRenderer, expand: boolean): void; reorder(cell: CellRenderer, position: number): void; - set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; vfunc_clear(): void; vfunc_clear_attributes(cell: CellRenderer): void; @@ -3937,7 +4002,7 @@ export class CellView extends Widget implements Atk.ImplementorIface, Buildable, vfunc_pack_end(cell: CellRenderer, expand: boolean): void; vfunc_pack_start(cell: CellRenderer, expand: boolean): void; vfunc_reorder(cell: CellRenderer, position: number): void; - vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; get_orientation(): Orientation; set_orientation(orientation: Orientation): void; } @@ -3948,7 +4013,7 @@ export module CheckButton { } export class CheckButton extends ToggleButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields toggle_button: ToggleButton; // Constructors @@ -3971,7 +4036,7 @@ export module CheckMenuItem { } export class CheckMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; draw_as_radio: boolean; @@ -4010,7 +4075,7 @@ export module CheckMenuItemAccessible { } export class CheckMenuItemAccessible extends MenuItemAccessible implements Atk.Action, Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: CheckMenuItemAccessiblePrivate | any; } @@ -4021,7 +4086,7 @@ export module Clipboard { } export class Clipboard extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -4032,7 +4097,7 @@ export class Clipboard extends GObject.Object { // Members clear(): void; get_display(): Gdk.Display; - get_owner(): GObject.Object | null; + get_owner(): T | null; request_contents(target: Gdk.Atom, callback: ClipboardReceivedFunc): void; request_image(callback: ClipboardImageReceivedFunc): void; request_rich_text(buffer: TextBuffer, callback: ClipboardRichTextReceivedFunc): void; @@ -4045,7 +4110,7 @@ export class Clipboard extends GObject.Object { store(): void; wait_for_contents(target: Gdk.Atom): SelectionData | null; wait_for_image(): GdkPixbuf.Pixbuf | null; - wait_for_rich_text(buffer: TextBuffer): [number[] | null, Gdk.Atom, number]; + wait_for_rich_text(buffer: TextBuffer): [Uint8Array | null, Gdk.Atom]; wait_for_targets(): [boolean, Gdk.Atom[]]; wait_for_text(): string | null; wait_for_uris(): string[] | null; @@ -4071,7 +4136,7 @@ export module ColorButton { } export class ColorButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable, ColorChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties alpha: number; color: Gdk.Color; @@ -4120,7 +4185,7 @@ export module ColorChooserDialog { } export class ColorChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, ColorChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial): void; + _init(properties?: Partial, ...args: any[]): void; // Properties show_editor: boolean; // Implemented Properties @@ -4148,7 +4213,7 @@ export module ColorChooserWidget { } export class ColorChooserWidget extends Box implements Atk.ImplementorIface, Buildable, ColorChooser, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties show_editor: boolean; // Implemented Properties @@ -4180,7 +4245,7 @@ export module ColorSelection { } export class ColorSelection extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties current_alpha: number; current_color: Gdk.Color; @@ -4230,7 +4295,7 @@ export module ColorSelectionDialog { } export class ColorSelectionDialog extends Dialog implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties cancel_button: Widget; color_selection: Widget; @@ -4265,7 +4330,7 @@ export module ComboBox { } export class ComboBox extends Bin implements Atk.ImplementorIface, Buildable, CellEditable, CellLayout { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: number; active_id: string; @@ -4342,7 +4407,7 @@ export class ComboBox extends Bin implements Atk.ImplementorIface, Buildable, Ce set_id_column(id_column: number): void; set_model(model: TreeModel | null): void; set_popup_fixed_width(fixed: boolean): void; - set_row_separator_func(func: TreeViewRowSeparatorFunc, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_row_separator_func(func: TreeViewRowSeparatorFunc, destroy: GLib.DestroyNotify | null): void; set_row_span_column(row_span: number): void; set_title(title: string): void; set_wrap_width(width: number): void; @@ -4363,7 +4428,7 @@ export class ComboBox extends Bin implements Atk.ImplementorIface, Buildable, Ce pack_end(cell: CellRenderer, expand: boolean): void; pack_start(cell: CellRenderer, expand: boolean): void; reorder(cell: CellRenderer, position: number): void; - set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; vfunc_clear(): void; vfunc_clear_attributes(cell: CellRenderer): void; @@ -4372,7 +4437,7 @@ export class ComboBox extends Bin implements Atk.ImplementorIface, Buildable, Ce vfunc_pack_end(cell: CellRenderer, expand: boolean): void; vfunc_pack_start(cell: CellRenderer, expand: boolean): void; vfunc_reorder(cell: CellRenderer, position: number): void; - vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; } export module ComboBoxAccessible { export interface ConstructorProperties extends ContainerAccessible.ConstructorProperties { @@ -4381,7 +4446,7 @@ export module ComboBoxAccessible { } export class ComboBoxAccessible extends ContainerAccessible implements Atk.Action, Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ComboBoxAccessiblePrivate | any; // Implemented Members @@ -4428,7 +4493,7 @@ export module ComboBoxText { } export class ComboBoxText extends ComboBox implements Atk.ImplementorIface, Buildable, CellEditable, CellLayout { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): ComboBoxText; static ["new"](...args: never[]): never; @@ -4456,7 +4521,7 @@ export module Container { } export abstract class Container extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties border_width: number; child: Widget; @@ -4482,14 +4547,14 @@ export abstract class Container extends Widget implements Atk.ImplementorIface, // Members add(widget: Widget): void; check_resize(): void; - child_get_property(child: Widget, property_name: string, value: GObject.Value): void; + child_get_property(child: Widget, property_name: string, value: (GObject.Value | string | boolean | number)): void; child_notify(child: Widget, child_property: string): void; child_notify(...args: never[]): never; child_notify_by_pspec(child: Widget, pspec: GObject.ParamSpec): void; - child_set_property(child: Widget, property_name: string, value: GObject.Value | number | string | boolean): void; + child_set_property(child: Widget, property_name: string, value: (GObject.Value | string | boolean | number)): void; child_type(): GType; - forall(callback: Callback): void; // , callback_data: any | null - foreach(callback: Callback): void; // , callback_data: any | null + forall(callback: Callback): void; + foreach(callback: Callback): void; get_border_width(): number; get_children(): GLib.List; get_focus_chain(): [boolean, GLib.List]; @@ -4513,11 +4578,11 @@ export abstract class Container extends Widget implements Atk.ImplementorIface, vfunc_check_resize(): void; vfunc_child_type(): GType; vfunc_composite_name(child: Widget): string; - vfunc_forall(include_internals: boolean, callback: Callback, callback_data: any | null): void; - vfunc_get_child_property(child: Widget, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + vfunc_forall(include_internals: boolean, callback: Callback): void; + vfunc_get_child_property(child: Widget, property_id: number, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec): void; vfunc_get_path_for_child(child: Widget): WidgetPath; vfunc_remove(widget: Widget): void; - vfunc_set_child_property(child: Widget, property_id: number, value: GObject.Value, pspec: GObject.ParamSpec): void; + vfunc_set_child_property(child: Widget, property_id: number, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec): void; vfunc_set_focus_child(child: Widget | null): void; } export module ContainerAccessible { @@ -4527,7 +4592,7 @@ export module ContainerAccessible { } export class ContainerAccessible extends WidgetAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ContainerAccessiblePrivate | any; } @@ -4538,7 +4603,7 @@ export module ContainerCellAccessible { } export class ContainerCellAccessible extends CellAccessible implements Atk.Action, Atk.Component, Atk.TableCell { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ContainerCellAccessiblePrivate | any; // Constructors @@ -4555,7 +4620,7 @@ export module CssProvider { } export class CssProvider extends GObject.Object implements StyleProvider { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: CssProviderPrivate; // Signals @@ -4568,7 +4633,7 @@ export class CssProvider extends GObject.Object implements StyleProvider { // Constructors static ["new"](): CssProvider; // Members - load_from_data(data: string | number[]): boolean; + load_from_data(data: (Uint8Array | string)): boolean; load_from_file(file: Gio.File): boolean; load_from_path(path: string): boolean; load_from_resource(resource_path: string): void; @@ -4587,12 +4652,12 @@ export class CssProvider extends GObject.Object implements StyleProvider { export module Dialog { export interface ConstructorProperties extends Window.ConstructorProperties { [key: string]: any; - use_header_bar: boolean; + use_header_bar: number; } } export class Dialog extends Window implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties use_header_bar: number; // Fields @@ -4633,7 +4698,7 @@ export module DrawingArea { } export class DrawingArea extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields widget: Widget; // Constructors @@ -4697,7 +4762,7 @@ export module Entry { } export class Entry extends Widget implements Atk.ImplementorIface, Buildable, CellEditable, Editable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties activates_default: boolean; attributes: Pango.AttrList; @@ -4927,7 +4992,7 @@ export module EntryAccessible { } export class EntryAccessible extends WidgetAccessible implements Atk.Action, Atk.Component, Atk.EditableText, Atk.Text { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: EntryAccessiblePrivate | any; // Implemented Members @@ -5024,7 +5089,7 @@ export module EntryBuffer { } export class EntryBuffer extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties length: number; max_length: number; @@ -5075,7 +5140,7 @@ export module EntryCompletion { } export class EntryCompletion extends GObject.Object implements Buildable, CellLayout { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties cell_area: CellArea; inline_completion: boolean; @@ -5127,7 +5192,7 @@ export class EntryCompletion extends GObject.Object implements Buildable, CellLa insert_prefix(): void; set_inline_completion(inline_completion: boolean): void; set_inline_selection(inline_selection: boolean): void; - set_match_func(func: EntryCompletionMatchFunc, func_data: any | null, func_notify: GLib.DestroyNotify): void; + set_match_func(func: EntryCompletionMatchFunc, func_notify: GLib.DestroyNotify): void; set_minimum_key_length(length: number): void; set_model(model: TreeModel | null): void; set_popup_completion(popup_completion: boolean): void; @@ -5141,24 +5206,24 @@ export class EntryCompletion extends GObject.Object implements Buildable, CellLa vfunc_no_matches(): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; add_attribute(cell: CellRenderer, attribute: string, column: number): void; clear(): void; @@ -5168,7 +5233,7 @@ export class EntryCompletion extends GObject.Object implements Buildable, CellLa pack_end(cell: CellRenderer, expand: boolean): void; pack_start(cell: CellRenderer, expand: boolean): void; reorder(cell: CellRenderer, position: number): void; - set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; vfunc_clear(): void; vfunc_clear_attributes(cell: CellRenderer): void; @@ -5177,7 +5242,7 @@ export class EntryCompletion extends GObject.Object implements Buildable, CellLa vfunc_pack_end(cell: CellRenderer, expand: boolean): void; vfunc_pack_start(cell: CellRenderer, expand: boolean): void; vfunc_reorder(cell: CellRenderer, position: number): void; - vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; } export module EntryIconAccessible { export interface ConstructorProperties extends Atk.Object.ConstructorProperties { @@ -5186,7 +5251,7 @@ export module EntryIconAccessible { } export class EntryIconAccessible extends Atk.Object implements Atk.Action, Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Implemented Members do_action(i: number): boolean; get_description(i: number): string | null; @@ -5249,7 +5314,7 @@ export module EventBox { } export class EventBox extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties above_child: boolean; visible_window: boolean; @@ -5272,7 +5337,7 @@ export module EventController { } export abstract class EventController extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties propagation_phase: PropagationPhase; widget: Widget; @@ -5290,7 +5355,7 @@ export module EventControllerKey { } export class EventControllerKey extends EventController { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -5328,7 +5393,7 @@ export module EventControllerMotion { } export class EventControllerMotion extends EventController { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -5353,7 +5418,7 @@ export module EventControllerScroll { } export class EventControllerScroll extends EventController { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties flags: EventControllerScrollFlags; // Signals @@ -5393,7 +5458,7 @@ export module Expander { } export class Expander extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties expanded: boolean; label: string; @@ -5442,7 +5507,7 @@ export module ExpanderAccessible { } export class ExpanderAccessible extends ContainerAccessible implements Atk.Action, Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ExpanderAccessiblePrivate | any; // Implemented Members @@ -5477,7 +5542,7 @@ export module FileChooserButton { } export class FileChooserButton extends Box implements Atk.ImplementorIface, Buildable, FileChooser, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties dialog: FileChooser; title: string; @@ -5529,8 +5594,8 @@ export class FileChooserButton extends Box implements Atk.ImplementorIface, Buil get_extra_widget(): Widget | null; get_file(): Gio.File; get_filename(): string | null; - get_filenames(): string[]; - get_files(): string[]; + get_filenames(): GLib.SList; + get_files(): GLib.SList; get_filter(): FileFilter | null; get_local_only(): boolean; get_preview_file(): Gio.File | null; @@ -5541,11 +5606,11 @@ export class FileChooserButton extends Box implements Atk.ImplementorIface, Buil get_select_multiple(): boolean; get_show_hidden(): boolean; get_uri(): string | null; - get_uris(): string[]; + get_uris(): GLib.SList; get_use_preview_label(): boolean; - list_filters(): string[]; - list_shortcut_folder_uris(): string[] | null; - list_shortcut_folders(): string[] | null; + list_filters(): GLib.SList; + list_shortcut_folder_uris(): GLib.SList | null; + list_shortcut_folders(): GLib.SList | null; remove_choice(id: string): void; remove_filter(filter: FileFilter): void; remove_shortcut_folder(folder: string): boolean; @@ -5585,7 +5650,7 @@ export module FileChooserDialog { } export class FileChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, FileChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: FileChooserDialogPrivate | any; // Implemented Properties @@ -5616,8 +5681,8 @@ export class FileChooserDialog extends Dialog implements Atk.ImplementorIface, B get_extra_widget(): Widget | null; get_file(): Gio.File; get_filename(): string | null; - get_filenames(): string[]; - get_files(): string[]; + get_filenames(): GLib.SList; + get_files(): GLib.SList; get_filter(): FileFilter | null; get_local_only(): boolean; get_preview_file(): Gio.File | null; @@ -5628,11 +5693,11 @@ export class FileChooserDialog extends Dialog implements Atk.ImplementorIface, B get_select_multiple(): boolean; get_show_hidden(): boolean; get_uri(): string | null; - get_uris(): string[]; + get_uris(): GLib.SList; get_use_preview_label(): boolean; - list_filters(): string[]; - list_shortcut_folder_uris(): string[] | null; - list_shortcut_folders(): string[] | null; + list_filters(): GLib.SList; + list_shortcut_folder_uris(): GLib.SList | null; + list_shortcut_folders(): GLib.SList | null; remove_choice(id: string): void; remove_filter(filter: FileFilter): void; remove_shortcut_folder(folder: string): boolean; @@ -5674,7 +5739,7 @@ export module FileChooserNative { } export class FileChooserNative extends NativeDialog implements FileChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accept_label: string; cancel_label: string; @@ -5713,8 +5778,8 @@ export class FileChooserNative extends NativeDialog implements FileChooser { get_extra_widget(): Widget | null; get_file(): Gio.File; get_filename(): string | null; - get_filenames(): string[]; - get_files(): string[]; + get_filenames(): GLib.SList; + get_files(): GLib.SList; get_filter(): FileFilter | null; get_local_only(): boolean; get_preview_file(): Gio.File | null; @@ -5725,11 +5790,11 @@ export class FileChooserNative extends NativeDialog implements FileChooser { get_select_multiple(): boolean; get_show_hidden(): boolean; get_uri(): string | null; - get_uris(): string[]; + get_uris(): GLib.SList; get_use_preview_label(): boolean; - list_filters(): string[]; - list_shortcut_folder_uris(): string[] | null; - list_shortcut_folders(): string[] | null; + list_filters(): GLib.SList; + list_shortcut_folder_uris(): GLib.SList | null; + list_shortcut_folders(): GLib.SList | null; remove_choice(id: string): void; remove_filter(filter: FileFilter): void; remove_shortcut_folder(folder: string): boolean; @@ -5771,7 +5836,7 @@ export module FileChooserWidget { } export class FileChooserWidget extends Box implements Atk.ImplementorIface, Buildable, FileChooser, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties search_mode: boolean; subtitle: string; @@ -5848,8 +5913,8 @@ export class FileChooserWidget extends Box implements Atk.ImplementorIface, Buil get_extra_widget(): Widget | null; get_file(): Gio.File; get_filename(): string | null; - get_filenames(): string[]; - get_files(): string[]; + get_filenames(): GLib.SList; + get_files(): GLib.SList; get_filter(): FileFilter | null; get_local_only(): boolean; get_preview_file(): Gio.File | null; @@ -5860,11 +5925,11 @@ export class FileChooserWidget extends Box implements Atk.ImplementorIface, Buil get_select_multiple(): boolean; get_show_hidden(): boolean; get_uri(): string | null; - get_uris(): string[]; + get_uris(): GLib.SList; get_use_preview_label(): boolean; - list_filters(): string[]; - list_shortcut_folder_uris(): string[] | null; - list_shortcut_folders(): string[] | null; + list_filters(): GLib.SList; + list_shortcut_folder_uris(): GLib.SList | null; + list_shortcut_folders(): GLib.SList | null; remove_choice(id: string): void; remove_filter(filter: FileFilter): void; remove_shortcut_folder(folder: string): boolean; @@ -5904,38 +5969,40 @@ export module FileFilter { } export class FileFilter extends GObject.InitiallyUnowned implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): FileFilter; static new_from_gvariant(variant: GLib.Variant): FileFilter; // Members - add_custom(needed: FileFilterFlags, func: FileFilterFunc, data: any | null, notify: GLib.DestroyNotify): void; + add_custom(needed: FileFilterFlags, func: FileFilterFunc, notify: GLib.DestroyNotify): void; add_mime_type(mime_type: string): void; add_pattern(pattern: string): void; add_pixbuf_formats(): void; filter(filter_info: FileFilterInfo): boolean; get_name(): string | null; + get_name(...args: never[]): never; get_needed(): FileFilterFlags; set_name(name: string | null): void; + set_name(...args: never[]): never; to_gvariant(): GLib.Variant; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module Fixed { @@ -5945,7 +6012,7 @@ export module Fixed { } export class Fixed extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields container: Container; // Constructors @@ -5968,7 +6035,7 @@ export module FlowBox { } export class FlowBox extends Container implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties activate_on_single_click: boolean; column_spacing: number; @@ -6009,7 +6076,7 @@ export class FlowBox extends Container implements Atk.ImplementorIface, Buildabl // Constructors static ["new"](): FlowBox; // Members - bind_model(model: Gio.ListModel | null, create_widget_func: FlowBoxCreateWidgetFunc, user_data_free_func: GLib.DestroyNotify): void; + bind_model(model: Gio.ListModel | null, create_widget_func: FlowBoxCreateWidgetFunc, user_data_free_func: GLib.DestroyNotify): void; get_activate_on_single_click(): boolean; get_child_at_index(idx: number): FlowBoxChild | null; get_child_at_pos(x: number, y: number): FlowBoxChild | null; @@ -6025,7 +6092,7 @@ export class FlowBox extends Container implements Atk.ImplementorIface, Buildabl invalidate_sort(): void; select_all(): void; select_child(child: FlowBoxChild): void; - selected_foreach(func: FlowBoxForeachFunc, data: any | null): void; + selected_foreach(func: FlowBoxForeachFunc): void; set_activate_on_single_click(single: boolean): void; set_column_spacing(spacing: number): void; set_filter_func(filter_func: FlowBoxFilterFunc | null, destroy: GLib.DestroyNotify): void; @@ -6057,7 +6124,7 @@ export module FlowBoxAccessible { } export class FlowBoxAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: FlowBoxAccessiblePrivate | any; // Implemented Members @@ -6084,7 +6151,7 @@ export module FlowBoxChild { } export class FlowBoxChild extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6107,7 +6174,7 @@ export module FlowBoxChildAccessible { } export class FlowBoxChildAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; } export module FontButton { export interface ConstructorProperties extends Button.ConstructorProperties { @@ -6122,7 +6189,7 @@ export module FontButton { } export class FontButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable, FontChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties font_name: string; show_size: boolean; @@ -6200,7 +6267,7 @@ export module FontChooserDialog { } export class FontChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, FontChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Implemented Properties font: string; font_desc: Pango.FontDescription; @@ -6248,7 +6315,7 @@ export module FontChooserWidget { } export class FontChooserWidget extends Box implements Atk.ImplementorIface, Buildable, FontChooser, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties tweak_action: Gio.Action; // Implemented Properties @@ -6299,7 +6366,7 @@ export module FontSelection { } export class FontSelection extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties font_name: string; preview_text: string; @@ -6327,7 +6394,7 @@ export module FontSelectionDialog { } export class FontSelectionDialog extends Dialog implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](title: string): FontSelectionDialog; static ["new"](...args: never[]): never; @@ -6352,7 +6419,7 @@ export module Frame { } export class Frame extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties label: string; label_widget: Widget; @@ -6381,7 +6448,7 @@ export module FrameAccessible { } export class FrameAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: FrameAccessiblePrivate | any; } @@ -6398,7 +6465,7 @@ export module GLArea { } export class GLArea extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties auto_render: boolean; context: Gdk.GLContext; @@ -6452,7 +6519,7 @@ export module Gesture { } export abstract class Gesture extends EventController { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties n_points: number; window: Gdk.Window; @@ -6503,7 +6570,7 @@ export module GestureDrag { } export class GestureDrag extends GestureSingle { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6531,7 +6598,7 @@ export module GestureLongPress { } export class GestureLongPress extends GestureSingle { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties delay_factor: number; // Signals @@ -6554,7 +6621,7 @@ export module GestureMultiPress { } export class GestureMultiPress extends GestureSingle { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6582,7 +6649,7 @@ export module GesturePan { } export class GesturePan extends GestureDrag { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties orientation: Orientation; // Signals @@ -6606,7 +6673,7 @@ export module GestureRotate { } export class GestureRotate extends Gesture { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6629,7 +6696,7 @@ export module GestureSingle { } export class GestureSingle extends Gesture { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties button: number; exclusive: boolean; @@ -6651,7 +6718,7 @@ export module GestureStylus { } export class GestureStylus extends GestureSingle { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6682,7 +6749,7 @@ export module GestureSwipe { } export class GestureSwipe extends GestureSingle { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6702,7 +6769,7 @@ export module GestureZoom { } export class GestureZoom extends Gesture { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6727,7 +6794,7 @@ export module Grid { } export class Grid extends Container implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties baseline_row: number; column_homogeneous: boolean; @@ -6770,7 +6837,7 @@ export module HBox { } export class HBox extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields box: Box; // Constructors @@ -6784,7 +6851,7 @@ export module HButtonBox { } export class HButtonBox extends ButtonBox implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields button_box: ButtonBox; // Constructors @@ -6798,7 +6865,7 @@ export module HPaned { } export class HPaned extends Paned implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields paned: Paned; // Constructors @@ -6812,7 +6879,7 @@ export module HSV { } export class HSV extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -6842,7 +6909,7 @@ export module HScale { } export class HScale extends Scale implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields scale: Scale; // Constructors @@ -6858,7 +6925,7 @@ export module HScrollbar { } export class HScrollbar extends Scrollbar implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields scrollbar: Scrollbar; // Constructors @@ -6872,7 +6939,7 @@ export module HSeparator { } export class HSeparator extends Separator implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields separator: Separator; // Constructors @@ -6891,7 +6958,7 @@ export module HandleBox { } export class HandleBox extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties child_detached: boolean; handle_position: PositionType; @@ -6938,7 +7005,7 @@ export module HeaderBar { } export class HeaderBar extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties custom_title: Widget; decoration_layout: string; @@ -6975,7 +7042,7 @@ export module HeaderBarAccessible { } export class HeaderBarAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; } export module IMContext { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -6986,7 +7053,7 @@ export module IMContext { } export abstract class IMContext extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties input_hints: InputHints; input_purpose: InputPurpose; @@ -7048,7 +7115,7 @@ export module IMContextSimple { } export class IMContextSimple extends IMContext { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields object: IMContext; // Constructors @@ -7063,7 +7130,7 @@ export module IMMulticontext { } export class IMMulticontext extends IMContext { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields object: IMContext; // Constructors @@ -7080,7 +7147,7 @@ export module IconFactory { } export class IconFactory extends GObject.Object implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): IconFactory; // Members @@ -7091,24 +7158,24 @@ export class IconFactory extends GObject.Object implements Buildable { static lookup_default(stock_id: string): IconSet; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module IconInfo { @@ -7118,7 +7185,7 @@ export module IconInfo { } export class IconInfo extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static new_for_pixbuf(icon_theme: IconTheme, pixbuf: GdkPixbuf.Pixbuf): IconInfo; // Members @@ -7150,7 +7217,7 @@ export module IconTheme { } export class IconTheme extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -7212,7 +7279,7 @@ export module IconView { } export class IconView extends Container implements Atk.ImplementorIface, Buildable, CellLayout, Scrollable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties activate_on_single_click: boolean; cell_area: CellArea; @@ -7305,7 +7372,7 @@ export class IconView extends Container implements Atk.ImplementorIface, Buildab scroll_to_path(path: TreePath, use_align: boolean, row_align: number, col_align: number): void; select_all(): void; select_path(path: TreePath): void; - selected_foreach(func: IconViewForeachFunc, data: any | null): void; + selected_foreach(func: IconViewForeachFunc): void; set_activate_on_single_click(single: boolean): void; set_column_spacing(column_spacing: number): void; set_columns(columns: number): void; @@ -7347,7 +7414,7 @@ export class IconView extends Container implements Atk.ImplementorIface, Buildab pack_end(cell: CellRenderer, expand: boolean): void; pack_start(cell: CellRenderer, expand: boolean): void; reorder(cell: CellRenderer, position: number): void; - set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; vfunc_clear(): void; vfunc_clear_attributes(cell: CellRenderer): void; @@ -7356,7 +7423,7 @@ export class IconView extends Container implements Atk.ImplementorIface, Buildab vfunc_pack_end(cell: CellRenderer, expand: boolean): void; vfunc_pack_start(cell: CellRenderer, expand: boolean): void; vfunc_reorder(cell: CellRenderer, position: number): void; - vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; get_border(): [boolean, Border]; get_hadjustment(): Adjustment; get_hscroll_policy(): ScrollablePolicy; @@ -7375,7 +7442,7 @@ export module IconViewAccessible { } export class IconViewAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: IconViewAccessiblePrivate | any; // Implemented Members @@ -7415,7 +7482,7 @@ export module Image { } export class Image extends Misc implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties file: string; gicon: Gio.Icon; @@ -7471,7 +7538,7 @@ export module ImageAccessible { } export class ImageAccessible extends WidgetAccessible implements Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ImageAccessiblePrivate | any; // Implemented Members @@ -7493,7 +7560,7 @@ export module ImageCellAccessible { } export class ImageCellAccessible extends RendererCellAccessible implements Atk.Action, Atk.Component, Atk.Image, Atk.TableCell { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ImageCellAccessiblePrivate | any; // Implemented Members @@ -7519,7 +7586,7 @@ export module ImageMenuItem { } export class ImageMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_group: AccelGroup; always_show_image: boolean; @@ -7554,7 +7621,7 @@ export module InfoBar { } export class InfoBar extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties message_type: MessageType; revealed: boolean; @@ -7597,7 +7664,7 @@ export module Invisible { } export class Invisible extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties screen: Gdk.Screen; // Fields @@ -7638,7 +7705,7 @@ export module Label { } export class Label extends Misc implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties angle: number; attributes: Pango.AttrList; @@ -7747,7 +7814,7 @@ export module LabelAccessible { } export class LabelAccessible extends WidgetAccessible implements Atk.Component, Atk.Hypertext, Atk.Text { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: LabelAccessiblePrivate | any; // Implemented Members @@ -7816,7 +7883,7 @@ export module Layout { } export class Layout extends Container implements Atk.ImplementorIface, Buildable, Scrollable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties height: number; width: number; @@ -7859,7 +7926,7 @@ export module LevelBar { } export class LevelBar extends Widget implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties inverted: boolean; max_value: number; @@ -7904,7 +7971,7 @@ export module LevelBarAccessible { } export class LevelBarAccessible extends WidgetAccessible implements Atk.Component, Atk.Value { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: LevelBarAccessiblePrivate | any; // Implemented Members @@ -7914,9 +7981,9 @@ export class LevelBarAccessible extends WidgetAccessible implements Atk.Componen get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Atk.Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -7924,9 +7991,9 @@ export class LevelBarAccessible extends WidgetAccessible implements Atk.Componen vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Atk.Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } export module LinkButton { @@ -7938,7 +8005,7 @@ export module LinkButton { } export class LinkButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties uri: string; visited: boolean; @@ -7968,7 +8035,7 @@ export module LinkButtonAccessible { } export class LinkButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.HyperlinkImpl, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: LinkButtonAccessiblePrivate | any; // Implemented Members @@ -7984,7 +8051,7 @@ export module ListBox { } export class ListBox extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties activate_on_single_click: boolean; selection_mode: SelectionMode; @@ -8019,7 +8086,7 @@ export class ListBox extends Container implements Atk.ImplementorIface, Buildabl // Constructors static ["new"](): ListBox; // Members - bind_model(model: Gio.ListModel | null, create_widget_func: ListBoxCreateWidgetFunc | null, user_data_free_func: GLib.DestroyNotify): void; + bind_model(model: Gio.ListModel | null, create_widget_func: ListBoxCreateWidgetFunc | null, user_data_free_func: GLib.DestroyNotify): void; drag_highlight_row(row: ListBoxRow): void; drag_unhighlight_row(): void; get_activate_on_single_click(): boolean; @@ -8036,7 +8103,7 @@ export class ListBox extends Container implements Atk.ImplementorIface, Buildabl prepend(child: Widget): void; select_all(): void; select_row(row: ListBoxRow | null): void; - selected_foreach(func: ListBoxForeachFunc, data: any | null): void; + selected_foreach(func: ListBoxForeachFunc): void; set_activate_on_single_click(single: boolean): void; set_adjustment(adjustment: Adjustment | null): void; set_filter_func(filter_func: ListBoxFilterFunc | null, destroy: GLib.DestroyNotify): void; @@ -8062,7 +8129,7 @@ export module ListBoxAccessible { } export class ListBoxAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ListBoxAccessiblePrivate | any; // Implemented Members @@ -8091,7 +8158,7 @@ export module ListBoxRow { } export class ListBoxRow extends Bin implements Atk.ImplementorIface, Actionable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties activatable: boolean; selectable: boolean; @@ -8136,7 +8203,7 @@ export module ListBoxRowAccessible { } export class ListBoxRowAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; } export module ListStore { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -8145,17 +8212,16 @@ export module ListStore { } export class ListStore extends GObject.Object implements Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors - static newv(types: GType[]): ListStore; - static newv(...args: never[]): never; + static ["new"](types: GType[]): ListStore; // Members append(): TreeIter; clear(): void; insert(position: number): TreeIter; insert_after(sibling: TreeIter | null): TreeIter; insert_before(sibling: TreeIter | null): TreeIter; - insert_with_valuesv(position: number, columns: number[], values: GObject.Value[]): TreeIter | null; + insert_with_valuesv(position: number, columns: number[], values: (GObject.Value | string | boolean | number)[]): TreeIter | null; iter_is_valid(iter: TreeIter): boolean; move_after(iter: TreeIter, position: TreeIter | null): void; move_before(iter: TreeIter, position: TreeIter | null): void; @@ -8163,29 +8229,30 @@ export class ListStore extends GObject.Object implements Buildable, TreeDragDest remove(iter: TreeIter): boolean; reorder(new_order: number[]): void; set_column_types(types: GType[]): void; - set_value(iter: TreeIter, column: number, value: GObject.Value): void; - set_valuesv(iter: TreeIter, columns: number[], values: GObject.Value[]): void; + set_value(iter: TreeIter, column: number, value: (GObject.Value | string | boolean | number)): void; + set(iter: TreeIter, columns: number[], values: (GObject.Value | string | boolean | number)[]): void; + set(...args: never[]): never; swap(a: TreeIter, b: TreeIter): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; @@ -8220,7 +8287,7 @@ export class ListStore extends GObject.Object implements Buildable, TreeDragDest row_deleted(path: TreePath): void; row_has_child_toggled(path: TreePath, iter: TreeIter): void; row_inserted(path: TreePath, iter: TreeIter): void; - rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + rows_reordered(path: TreePath, iter: TreeIter | null, new_order: number[]): void; unref_node(iter: TreeIter): void; vfunc_get_column_type(index_: number): GType; vfunc_get_flags(): TreeModelFlags; @@ -8267,7 +8334,7 @@ export module LockButton { } export class LockButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties permission: Gio.Permission; text_lock: string; @@ -8291,7 +8358,7 @@ export module LockButtonAccessible { } export class LockButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: LockButtonAccessiblePrivate | any; } @@ -8314,7 +8381,7 @@ export module Menu { } export class Menu extends MenuShell implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_group: AccelGroup; accel_path: string; @@ -8357,11 +8424,11 @@ export class Menu extends MenuShell implements Atk.ImplementorIface, Buildable { get_title(): string; place_on_monitor(monitor: Gdk.Monitor): void; popdown(): void; - popup(parent_menu_shell: Widget | null, parent_menu_item: Widget | null, func: MenuPositionFunc | null, data: any | null, button: number, activate_time: number): void; + popup(parent_menu_shell: Widget | null, parent_menu_item: Widget | null, func: MenuPositionFunc | null, button: number, activate_time: number): void; popup_at_pointer(trigger_event: Gdk.Event | null): void; popup_at_rect(rect_window: Gdk.Window, rect: Gdk.Rectangle, rect_anchor: Gdk.Gravity, menu_anchor: Gdk.Gravity, trigger_event: Gdk.Event | null): void; popup_at_widget(widget: Widget, widget_anchor: Gdk.Gravity, menu_anchor: Gdk.Gravity, trigger_event: Gdk.Event | null): void; - popup_for_device(device: Gdk.Device | null, parent_menu_shell: Widget | null, parent_menu_item: Widget | null, func: MenuPositionFunc | null, data: any | null, destroy: GLib.DestroyNotify | null, button: number, activate_time: number): void; + popup_for_device(device: Gdk.Device | null, parent_menu_shell: Widget | null, parent_menu_item: Widget | null, func: MenuPositionFunc | null, destroy: GLib.DestroyNotify | null, button: number, activate_time: number): void; reorder_child(child: Widget, position: number): void; reposition(): void; set_accel_group(accel_group: AccelGroup | null): void; @@ -8382,7 +8449,7 @@ export module MenuAccessible { } export class MenuAccessible extends MenuShellAccessible implements Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: MenuAccessiblePrivate | any; } @@ -8395,7 +8462,7 @@ export module MenuBar { } export class MenuBar extends MenuShell implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties child_pack_direction: PackDirection; pack_direction: PackDirection; @@ -8423,7 +8490,7 @@ export module MenuButton { } export class MenuButton extends ToggleButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties align_widget: Container; direction: ArrowType; @@ -8457,7 +8524,7 @@ export module MenuButtonAccessible { } export class MenuButtonAccessible extends ToggleButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: MenuButtonAccessiblePrivate | any; } @@ -8473,7 +8540,7 @@ export module MenuItem { } export class MenuItem extends Bin implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_path: string; label: string; @@ -8567,7 +8634,7 @@ export module MenuItemAccessible { } export class MenuItemAccessible extends ContainerAccessible implements Atk.Action, Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: MenuItemAccessiblePrivate | any; // Implemented Members @@ -8615,7 +8682,7 @@ export module MenuShell { } export abstract class MenuShell extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties take_focus: boolean; // Fields @@ -8680,7 +8747,7 @@ export module MenuShellAccessible { } export class MenuShellAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: MenuShellAccessiblePrivate | any; // Implemented Members @@ -8708,7 +8775,7 @@ export module MenuToolButton { } export class MenuToolButton extends ToolButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties menu: Menu; // Signals @@ -8733,7 +8800,7 @@ export class MenuToolButton extends ToolButton implements Atk.ImplementorIface, export module MessageDialog { export interface ConstructorProperties extends Dialog.ConstructorProperties { [key: string]: any; - buttons: ButtonsType | ButtonsType[]; // TODO + buttons: ButtonsType; image: Widget; message_area: Widget; message_type: MessageType; @@ -8745,9 +8812,9 @@ export module MessageDialog { } export class MessageDialog extends Dialog implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties - buttons: ButtonsType | ButtonsType[] // TODO; + buttons: ButtonsType; image: Widget; message_area: Widget; message_type: MessageType; @@ -8772,7 +8839,7 @@ export module Misc { } export abstract class Misc extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties xalign: number; xpad: number; @@ -8802,7 +8869,7 @@ export module ModelButton { } export class ModelButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; centered: boolean; @@ -8826,12 +8893,12 @@ export module MountOperation { } export class MountOperation extends Gio.MountOperation { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties is_showing: boolean; screen: Gdk.Screen; // Fields - priv: MountOperationPrivate; + priv: MountOperationPrivate | any; // Constructors static ["new"](parent: Window | null): MountOperation; static ["new"](...args: never[]): never; @@ -8852,7 +8919,7 @@ export module NativeDialog { } export abstract class NativeDialog extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties modal: boolean; title: string; @@ -8895,7 +8962,7 @@ export module Notebook { } export class Notebook extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties enable_popup: boolean; group_name: string; @@ -9003,7 +9070,7 @@ export module NotebookAccessible { } export class NotebookAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: NotebookAccessiblePrivate | any; // Implemented Members @@ -9030,7 +9097,7 @@ export module NotebookPageAccessible { } export class NotebookPageAccessible extends Atk.Object implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: NotebookPageAccessiblePrivate; // Constructors @@ -9082,7 +9149,7 @@ export module NumerableIcon { } export class NumerableIcon extends Gio.EmblemedIcon implements Gio.Icon { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties background_icon: Gio.Icon; background_icon_name: string; @@ -9118,7 +9185,7 @@ export module OffscreenWindow { } export class OffscreenWindow extends Window implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields parent_object: Window; // Constructors @@ -9135,7 +9202,7 @@ export module Overlay { } export class Overlay extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: OverlayPrivate; // Signals @@ -9163,7 +9230,7 @@ export module PadController { } export class PadController extends EventController { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties action_group: Gio.ActionGroup; pad: Gdk.Device; @@ -9180,7 +9247,7 @@ export module PageSetup { } export class PageSetup extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): PageSetup; static new_from_file(file_name: string): PageSetup; @@ -9223,7 +9290,7 @@ export module Paned { } export class Paned extends Container implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties max_position: number; min_position: number; @@ -9287,7 +9354,7 @@ export module PanedAccessible { } export class PanedAccessible extends ContainerAccessible implements Atk.Component, Atk.Value { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: PanedAccessiblePrivate | any; // Implemented Members @@ -9297,9 +9364,9 @@ export class PanedAccessible extends ContainerAccessible implements Atk.Componen get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Atk.Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -9307,9 +9374,9 @@ export class PanedAccessible extends ContainerAccessible implements Atk.Componen vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Atk.Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } export module PlacesSidebar { @@ -9330,7 +9397,7 @@ export module PlacesSidebar { } export class PlacesSidebar extends ScrolledWindow implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties local_only: boolean; location: Gio.File; @@ -9402,7 +9469,7 @@ export class PlacesSidebar extends ScrolledWindow implements Atk.ImplementorIfac get_show_recent(): boolean; get_show_starred_location(): boolean; get_show_trash(): boolean; - list_shortcuts(): string[]; + list_shortcuts(): GLib.SList; remove_shortcut(location: Gio.File): void; set_drop_targets_visible(visible: boolean, context: Gdk.DragContext): void; set_local_only(local_only: boolean): void; @@ -9425,7 +9492,7 @@ export module Plug { } export class Plug extends Window implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties embedded: boolean; socket_window: Gdk.Window; @@ -9464,7 +9531,7 @@ export module Popover { } export class Popover extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties constrain_to: PopoverConstraint; modal: boolean; @@ -9509,7 +9576,7 @@ export module PopoverAccessible { } export class PopoverAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; } export module PopoverMenu { export interface ConstructorProperties extends Popover.ConstructorProperties { @@ -9519,7 +9586,7 @@ export module PopoverMenu { } export class PopoverMenu extends Popover implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties visible_submenu: string; // Constructors @@ -9535,7 +9602,7 @@ export module PrintContext { } export class PrintContext extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Members create_pango_context(): Pango.Context; create_pango_layout(): Pango.Layout; @@ -9574,7 +9641,7 @@ export module PrintOperation { } export class PrintOperation extends GObject.Object implements PrintOperationPreview { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties allow_async: boolean; current_page: number; @@ -9690,7 +9757,7 @@ export module PrintSettings { } export class PrintSettings extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): PrintSettings; static new_from_file(file_name: string): PrintSettings; @@ -9717,7 +9784,7 @@ export class PrintSettings extends GObject.Object { get_number_up_layout(): NumberUpLayout; get_orientation(): PageOrientation; get_output_bin(): string; - get_page_ranges(): [PageRange[], number]; + get_page_ranges(): PageRange[]; get_page_set(): PageSet; get_paper_height(unit: Unit): number; get_paper_size(): PaperSize; @@ -9784,7 +9851,7 @@ export module ProgressBar { } export class ProgressBar extends Widget implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties ellipsize: Pango.EllipsizeMode; fraction: number; @@ -9821,7 +9888,7 @@ export module ProgressBarAccessible { } export class ProgressBarAccessible extends WidgetAccessible implements Atk.Component, Atk.Value { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ProgressBarAccessiblePrivate | any; // Implemented Members @@ -9831,9 +9898,9 @@ export class ProgressBarAccessible extends WidgetAccessible implements Atk.Compo get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Atk.Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -9841,9 +9908,9 @@ export class ProgressBarAccessible extends WidgetAccessible implements Atk.Compo vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Atk.Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } export module RadioAction { @@ -9856,7 +9923,7 @@ export module RadioAction { } export class RadioAction extends ToggleAction implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties current_value: number; group: RadioAction; @@ -9873,10 +9940,10 @@ export class RadioAction extends ToggleAction implements Buildable { static ["new"](...args: never[]): never; // Members get_current_value(): number; - get_group(): string[]; + get_group(): GLib.SList; join_group(group_source: RadioAction | null): void; set_current_value(current_value: number): void; - set_group(group: string[] | null): void; + set_group(group: GLib.SList | null): void; vfunc_changed(current: RadioAction): void; } export module RadioButton { @@ -9887,7 +9954,7 @@ export module RadioButton { } export class RadioButton extends CheckButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties group: RadioButton; // Fields @@ -9900,19 +9967,19 @@ export class RadioButton extends CheckButton implements Atk.ImplementorIface, Ac connect_after(signal: 'group-changed', callback: (_source: this) => void): number; emit(signal: 'group-changed'): void; // Constructors - static ["new"](group: string[] | null): RadioButton; + static ["new"](group: GLib.SList | null): RadioButton; static ["new"](...args: never[]): never; static new_from_widget(radio_group_member: RadioButton | null): RadioButton; - static new_with_label(group: string[] | null, label: string): RadioButton; + static new_with_label(group: GLib.SList | null, label: string): RadioButton; static new_with_label(...args: never[]): never; static new_with_label_from_widget(radio_group_member: RadioButton | null, label: string): RadioButton; - static new_with_mnemonic(group: string[] | null, label: string): RadioButton; + static new_with_mnemonic(group: GLib.SList | null, label: string): RadioButton; static new_with_mnemonic(...args: never[]): never; static new_with_mnemonic_from_widget(radio_group_member: RadioButton | null, label: string): RadioButton; // Members - get_group(): string[]; + get_group(): GLib.SList; join_group(group_source: RadioButton | null): void; - set_group(group: string[] | null): void; + set_group(group: GLib.SList | null): void; vfunc_group_changed(): void; } export module RadioButtonAccessible { @@ -9922,7 +9989,7 @@ export module RadioButtonAccessible { } export class RadioButtonAccessible extends ToggleButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: RadioButtonAccessiblePrivate | any; } @@ -9934,7 +10001,7 @@ export module RadioMenuItem { } export class RadioMenuItem extends CheckMenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties group: RadioMenuItem; // Fields @@ -9947,19 +10014,19 @@ export class RadioMenuItem extends CheckMenuItem implements Atk.ImplementorIface connect_after(signal: 'group-changed', callback: (_source: this) => void): number; emit(signal: 'group-changed'): void; // Constructors - static ["new"](group: string[] | null): RadioMenuItem; + static ["new"](group: GLib.SList | null): RadioMenuItem; static ["new"](...args: never[]): never; static new_from_widget(group: RadioMenuItem | null): RadioMenuItem; - static new_with_label(group: string[] | null, label: string): RadioMenuItem; + static new_with_label(group: GLib.SList | null, label: string): RadioMenuItem; static new_with_label(...args: never[]): never; static new_with_label_from_widget(group: RadioMenuItem | null, label: string | null): RadioMenuItem; - static new_with_mnemonic(group: string[] | null, label: string): RadioMenuItem; + static new_with_mnemonic(group: GLib.SList | null, label: string): RadioMenuItem; static new_with_mnemonic(...args: never[]): never; static new_with_mnemonic_from_widget(group: RadioMenuItem | null, label: string | null): RadioMenuItem; // Members - get_group(): string[]; + get_group(): GLib.SList; join_group(group_source: RadioMenuItem | null): void; - set_group(group: string[] | null): void; + set_group(group: GLib.SList | null): void; vfunc_group_changed(): void; } export module RadioMenuItemAccessible { @@ -9969,7 +10036,7 @@ export module RadioMenuItemAccessible { } export class RadioMenuItemAccessible extends CheckMenuItemAccessible implements Atk.Action, Atk.Component, Atk.Selection { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: RadioMenuItemAccessiblePrivate | any; } @@ -9981,19 +10048,19 @@ export module RadioToolButton { } export class RadioToolButton extends ToggleToolButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties group: RadioToolButton; // Constructors - static ["new"](group: string[] | null): RadioToolButton; + static ["new"](group: GLib.SList | null): RadioToolButton; static ["new"](...args: never[]): never; - static new_from_stock(group: string[] | null, stock_id: string): RadioToolButton; + static new_from_stock(group: GLib.SList | null, stock_id: string): RadioToolButton; static new_from_stock(...args: never[]): never; static new_from_widget(group: RadioToolButton | null): RadioToolButton; static new_with_stock_from_widget(group: RadioToolButton | null, stock_id: string): RadioToolButton; // Members - get_group(): string[]; - set_group(group: string[] | null): void; + get_group(): GLib.SList; + set_group(group: GLib.SList | null): void; } export module Range { export interface ConstructorProperties extends Widget.ConstructorProperties { @@ -10010,7 +10077,7 @@ export module Range { } export abstract class Range extends Widget implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties adjustment: Adjustment; fill_level: number; @@ -10087,7 +10154,7 @@ export module RangeAccessible { } export class RangeAccessible extends WidgetAccessible implements Atk.Component, Atk.Value { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: RangeAccessiblePrivate | any; // Implemented Members @@ -10097,9 +10164,9 @@ export class RangeAccessible extends WidgetAccessible implements Atk.Component, get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Atk.Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -10107,9 +10174,9 @@ export class RangeAccessible extends WidgetAccessible implements Atk.Component, vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Atk.Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } export module RcStyle { @@ -10119,7 +10186,7 @@ export module RcStyle { } export class RcStyle extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields name: string; bg_pixmap_name: string[]; @@ -10146,7 +10213,7 @@ export module RecentAction { } export class RecentAction extends Action implements Buildable, RecentChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties show_numbers: boolean; // Implemented Properties @@ -10181,8 +10248,8 @@ export class RecentAction extends Action implements Buildable, RecentChooser { get_show_private(): boolean; get_show_tips(): boolean; get_sort_type(): RecentSortType; - get_uris(): [string[], number | null]; - list_filters(): string[]; + get_uris(): string[]; + list_filters(): GLib.SList; remove_filter(filter: RecentFilter): void; select_all(): void; select_uri(uri: string): boolean; @@ -10195,7 +10262,7 @@ export class RecentAction extends Action implements Buildable, RecentChooser { set_show_not_found(show_not_found: boolean): void; set_show_private(show_private: boolean): void; set_show_tips(show_tips: boolean): void; - set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; set_sort_type(sort_type: RecentSortType): void; unselect_all(): void; unselect_uri(uri: string): void; @@ -10203,13 +10270,13 @@ export class RecentAction extends Action implements Buildable, RecentChooser { vfunc_get_current_uri(): string; vfunc_get_items(): GLib.List; vfunc_item_activated(): void; - vfunc_list_filters(): string[]; + vfunc_list_filters(): GLib.SList; vfunc_remove_filter(filter: RecentFilter): void; vfunc_select_all(): void; vfunc_select_uri(uri: string): boolean; vfunc_selection_changed(): void; vfunc_set_current_uri(uri: string): boolean; - vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; vfunc_unselect_all(): void; vfunc_unselect_uri(uri: string): void; } @@ -10220,7 +10287,7 @@ export module RecentChooserDialog { } export class RecentChooserDialog extends Dialog implements Atk.ImplementorIface, Buildable, RecentChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Implemented Properties filter: RecentFilter; limit: number; @@ -10246,8 +10313,8 @@ export class RecentChooserDialog extends Dialog implements Atk.ImplementorIface, get_show_private(): boolean; get_show_tips(): boolean; get_sort_type(): RecentSortType; - get_uris(): [string[], number | null]; - list_filters(): string[]; + get_uris(): string[]; + list_filters(): GLib.SList; remove_filter(filter: RecentFilter): void; select_all(): void; select_uri(uri: string): boolean; @@ -10260,7 +10327,7 @@ export class RecentChooserDialog extends Dialog implements Atk.ImplementorIface, set_show_not_found(show_not_found: boolean): void; set_show_private(show_private: boolean): void; set_show_tips(show_tips: boolean): void; - set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; set_sort_type(sort_type: RecentSortType): void; unselect_all(): void; unselect_uri(uri: string): void; @@ -10268,13 +10335,13 @@ export class RecentChooserDialog extends Dialog implements Atk.ImplementorIface, vfunc_get_current_uri(): string; vfunc_get_items(): GLib.List; vfunc_item_activated(): void; - vfunc_list_filters(): string[]; + vfunc_list_filters(): GLib.SList; vfunc_remove_filter(filter: RecentFilter): void; vfunc_select_all(): void; vfunc_select_uri(uri: string): boolean; vfunc_selection_changed(): void; vfunc_set_current_uri(uri: string): boolean; - vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; vfunc_unselect_all(): void; vfunc_unselect_uri(uri: string): void; } @@ -10286,7 +10353,7 @@ export module RecentChooserMenu { } export class RecentChooserMenu extends Menu implements Atk.ImplementorIface, Activatable, Buildable, RecentChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties show_numbers: boolean; // Implemented Properties @@ -10331,8 +10398,8 @@ export class RecentChooserMenu extends Menu implements Atk.ImplementorIface, Act get_show_private(): boolean; get_show_tips(): boolean; get_sort_type(): RecentSortType; - get_uris(): [string[], number | null]; - list_filters(): string[]; + get_uris(): string[]; + list_filters(): GLib.SList; remove_filter(filter: RecentFilter): void; select_all(): void; select_uri(uri: string): boolean; @@ -10345,7 +10412,7 @@ export class RecentChooserMenu extends Menu implements Atk.ImplementorIface, Act set_show_not_found(show_not_found: boolean): void; set_show_private(show_private: boolean): void; set_show_tips(show_tips: boolean): void; - set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; set_sort_type(sort_type: RecentSortType): void; unselect_all(): void; unselect_uri(uri: string): void; @@ -10353,13 +10420,13 @@ export class RecentChooserMenu extends Menu implements Atk.ImplementorIface, Act vfunc_get_current_uri(): string; vfunc_get_items(): GLib.List; vfunc_item_activated(): void; - vfunc_list_filters(): string[]; + vfunc_list_filters(): GLib.SList; vfunc_remove_filter(filter: RecentFilter): void; vfunc_select_all(): void; vfunc_select_uri(uri: string): boolean; vfunc_selection_changed(): void; vfunc_set_current_uri(uri: string): boolean; - vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; vfunc_unselect_all(): void; vfunc_unselect_uri(uri: string): void; } @@ -10370,7 +10437,7 @@ export module RecentChooserWidget { } export class RecentChooserWidget extends Box implements Atk.ImplementorIface, Buildable, Orientable, RecentChooser { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Implemented Properties filter: RecentFilter; limit: number; @@ -10400,8 +10467,8 @@ export class RecentChooserWidget extends Box implements Atk.ImplementorIface, Bu get_show_private(): boolean; get_show_tips(): boolean; get_sort_type(): RecentSortType; - get_uris(): [string[], number | null]; - list_filters(): string[]; + get_uris(): string[]; + list_filters(): GLib.SList; remove_filter(filter: RecentFilter): void; select_all(): void; select_uri(uri: string): boolean; @@ -10414,7 +10481,7 @@ export class RecentChooserWidget extends Box implements Atk.ImplementorIface, Bu set_show_not_found(show_not_found: boolean): void; set_show_private(show_private: boolean): void; set_show_tips(show_tips: boolean): void; - set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; set_sort_type(sort_type: RecentSortType): void; unselect_all(): void; unselect_uri(uri: string): void; @@ -10422,13 +10489,13 @@ export class RecentChooserWidget extends Box implements Atk.ImplementorIface, Bu vfunc_get_current_uri(): string; vfunc_get_items(): GLib.List; vfunc_item_activated(): void; - vfunc_list_filters(): string[]; + vfunc_list_filters(): GLib.SList; vfunc_remove_filter(filter: RecentFilter): void; vfunc_select_all(): void; vfunc_select_uri(uri: string): boolean; vfunc_selection_changed(): void; vfunc_set_current_uri(uri: string): boolean; - vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; vfunc_unselect_all(): void; vfunc_unselect_uri(uri: string): void; } @@ -10439,39 +10506,40 @@ export module RecentFilter { } export class RecentFilter extends GObject.InitiallyUnowned implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): RecentFilter; // Members add_age(days: number): void; add_application(application: string): void; - add_custom(needed: RecentFilterFlags, func: RecentFilterFunc, data: any | null, data_destroy: GLib.DestroyNotify): void; + add_custom(needed: RecentFilterFlags, func: RecentFilterFunc, data_destroy: GLib.DestroyNotify): void; add_group(group: string): void; add_mime_type(mime_type: string): void; add_pattern(pattern: string): void; add_pixbuf_formats(): void; filter(filter_info: RecentFilterInfo): boolean; get_name(): string | null; + get_name(...args: never[]): never; get_needed(): RecentFilterFlags; set_name(name: string): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module RecentManager { @@ -10483,7 +10551,7 @@ export module RecentManager { } export class RecentManager extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties filename: string; size: number; @@ -10516,7 +10584,7 @@ export module RendererCellAccessible { } export class RendererCellAccessible extends CellAccessible implements Atk.Action, Atk.Component, Atk.TableCell { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties renderer: CellRenderer; // Fields @@ -10535,7 +10603,7 @@ export module Revealer { } export class Revealer extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties child_revealed: boolean; reveal_child: boolean; @@ -10563,7 +10631,7 @@ export module Scale { } export class Scale extends Range implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties digits: number; draw_value: boolean; @@ -10605,7 +10673,7 @@ export module ScaleAccessible { } export class ScaleAccessible extends RangeAccessible implements Atk.Component, Atk.Value { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ScaleAccessiblePrivate | any; } @@ -10613,13 +10681,19 @@ export module ScaleButton { export interface ConstructorProperties extends Button.ConstructorProperties { [key: string]: any; adjustment: Adjustment; + icons: string[]; + size: IconSize; + value: number; } } -export class ScaleButton extends Button { +export class ScaleButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties adjustment: Adjustment; + icons: string[]; + size: IconSize; + value: number; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -10633,9 +10707,24 @@ export class ScaleButton extends Button { connect(signal: 'value-changed', callback: (_source: this, value: number) => void): number; connect_after(signal: 'value-changed', callback: (_source: this, value: number) => void): number; emit(signal: 'value-changed', value: number): void; + // Implemented Properties + orientation: Orientation; // Constructors static ["new"](size: number, min: number, max: number, step: number, icons: string[] | null): ScaleButton; static ["new"](...args: never[]): never; + // Members + get_adjustment(): Adjustment; + get_minus_button(): Button; + get_plus_button(): Button; + get_popup(): Widget; + get_value(): number; + set_adjustment(adjustment: Adjustment): void; + set_icons(icons: string[]): void; + set_value(value: number): void; + vfunc_value_changed(value: number): void; + // Implemented Members + get_orientation(): Orientation; + set_orientation(orientation: Orientation): void; } export module ScaleButtonAccessible { export interface ConstructorProperties extends ButtonAccessible.ConstructorProperties { @@ -10644,7 +10733,7 @@ export module ScaleButtonAccessible { } export class ScaleButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.Image, Atk.Value { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ScaleButtonAccessiblePrivate | any; // Implemented Members @@ -10654,9 +10743,9 @@ export class ScaleButtonAccessible extends ButtonAccessible implements Atk.Actio get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Atk.Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -10664,9 +10753,9 @@ export class ScaleButtonAccessible extends ButtonAccessible implements Atk.Actio vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Atk.Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } export module Scrollbar { @@ -10676,7 +10765,7 @@ export module Scrollbar { } export class Scrollbar extends Range implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields range: Range; // Constructors @@ -10704,7 +10793,7 @@ export module ScrolledWindow { } export class ScrolledWindow extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties hadjustment: Adjustment; hscrollbar_policy: PolicyType; @@ -10785,7 +10874,7 @@ export module ScrolledWindowAccessible { } export class ScrolledWindowAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ScrolledWindowAccessiblePrivate | any; } @@ -10798,7 +10887,7 @@ export module SearchBar { } export class SearchBar extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties search_mode_enabled: boolean; show_close_button: boolean; @@ -10819,7 +10908,7 @@ export module SearchEntry { } export class SearchEntry extends Entry implements Atk.ImplementorIface, Buildable, CellEditable, Editable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Signals connect(id: string, callback: (...args: any[]) => any): number; connect_after(id: string, callback: (...args: any[]) => any): number; @@ -10853,7 +10942,7 @@ export module Separator { } export class Separator extends Widget implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields widget: Widget; priv: SeparatorPrivate; @@ -10872,7 +10961,7 @@ export module SeparatorMenuItem { } export class SeparatorMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields menu_item: MenuItem; // Constructors @@ -10886,7 +10975,7 @@ export module SeparatorToolItem { } export class SeparatorToolItem extends ToolItem implements Atk.ImplementorIface, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): SeparatorToolItem; static ["new"](...args: never[]): never; @@ -10985,7 +11074,7 @@ export module Settings { } export class Settings extends GObject.Object implements StyleProvider { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties color_hash: GLib.HashTable; gtk_alternative_button_order: boolean; @@ -11098,7 +11187,7 @@ export module ShortcutLabel { } export class ShortcutLabel extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accelerator: string; disabled_text: string; @@ -11123,7 +11212,7 @@ export module ShortcutsGroup { } export class ShortcutsGroup extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_size_group: SizeGroup; height: number; @@ -11142,7 +11231,7 @@ export module ShortcutsSection { } export class ShortcutsSection extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties max_height: number; section_name: string; @@ -11174,7 +11263,7 @@ export module ShortcutsShortcut { } export class ShortcutsShortcut extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accel_size_group: SizeGroup; accelerator: string; @@ -11197,7 +11286,7 @@ export module ShortcutsWindow { } export class ShortcutsWindow extends Window implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties section_name: string; view_name: string; @@ -11226,7 +11315,7 @@ export module SizeGroup { } export class SizeGroup extends GObject.Object implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties ignore_hidden: boolean; mode: SizeGroupMode; @@ -11236,30 +11325,30 @@ export class SizeGroup extends GObject.Object implements Buildable { add_widget(widget: Widget): void; get_ignore_hidden(): boolean; get_mode(): SizeGroupMode; - get_widgets(): string[]; + get_widgets(): GLib.SList; remove_widget(widget: Widget): void; set_ignore_hidden(ignore_hidden: boolean): void; set_mode(mode: SizeGroupMode): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module Socket { @@ -11269,7 +11358,7 @@ export module Socket { } export class Socket extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields container: Container; priv: SocketPrivate; @@ -11307,7 +11396,7 @@ export module SpinButton { } export class SpinButton extends Entry implements Atk.ImplementorIface, Buildable, CellEditable, Editable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties adjustment: Adjustment; climb_rate: number; @@ -11383,7 +11472,7 @@ export module SpinButtonAccessible { } export class SpinButtonAccessible extends EntryAccessible implements Atk.Action, Atk.Component, Atk.EditableText, Atk.Text, Atk.Value { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: SpinButtonAccessiblePrivate | any; // Implemented Members @@ -11393,9 +11482,9 @@ export class SpinButtonAccessible extends EntryAccessible implements Atk.Action, get_minimum_increment(): GObject.Value; get_minimum_value(): GObject.Value; get_range(): Atk.Range | null; - get_sub_ranges(): string[]; + get_sub_ranges(): GLib.SList; get_value_and_text(): [number, string | null]; - set_current_value(value: GObject.Value): boolean; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; set_value(new_value: number): void; vfunc_get_current_value(): GObject.Value; vfunc_get_increment(): number; @@ -11403,9 +11492,9 @@ export class SpinButtonAccessible extends EntryAccessible implements Atk.Action, vfunc_get_minimum_increment(): GObject.Value; vfunc_get_minimum_value(): GObject.Value; vfunc_get_range(): Atk.Range | null; - vfunc_get_sub_ranges(): string[]; + vfunc_get_sub_ranges(): GLib.SList; vfunc_get_value_and_text(): [number, string | null]; - vfunc_set_current_value(value: GObject.Value): boolean; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; vfunc_set_value(new_value: number): void; } export module Spinner { @@ -11416,7 +11505,7 @@ export module Spinner { } export class Spinner extends Widget implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; // Constructors @@ -11432,7 +11521,7 @@ export module SpinnerAccessible { } export class SpinnerAccessible extends WidgetAccessible implements Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: SpinnerAccessiblePrivate | any; // Implemented Members @@ -11463,7 +11552,7 @@ export module Stack { } export class Stack extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties hhomogeneous: boolean; homogeneous: boolean; @@ -11506,7 +11595,7 @@ export module StackAccessible { } export class StackAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; } export module StackSidebar { export interface ConstructorProperties extends Bin.ConstructorProperties { @@ -11516,7 +11605,7 @@ export module StackSidebar { } export class StackSidebar extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties stack: Stack; // Constructors @@ -11534,7 +11623,7 @@ export module StackSwitcher { } export class StackSwitcher extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties icon_size: number; stack: Stack; @@ -11569,7 +11658,7 @@ export module StatusIcon { } export class StatusIcon extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties embedded: boolean; file: string; @@ -11655,7 +11744,7 @@ export class StatusIcon extends GObject.Object { vfunc_query_tooltip(x: number, y: number, keyboard_mode: boolean, tooltip: Tooltip): boolean; vfunc_scroll_event(event: Gdk.EventScroll): boolean; vfunc_size_changed(size: number): boolean; - static position_menu(menu: Menu, x: number, y: number): [number, number, boolean]; + static position_menu(menu: Menu, x: number, y: number, user_data: StatusIcon): [number, number, boolean]; } export module Statusbar { export interface ConstructorProperties extends Box.ConstructorProperties { @@ -11664,7 +11753,7 @@ export module Statusbar { } export class Statusbar extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields parent_widget: Box; // Signals @@ -11698,7 +11787,7 @@ export module StatusbarAccessible { } export class StatusbarAccessible extends ContainerAccessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: StatusbarAccessiblePrivate | any; } @@ -11710,7 +11799,7 @@ export module Style { } export class Style extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties context: StyleContext; // Fields @@ -11787,7 +11876,7 @@ export module StyleContext { } export class StyleContext extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties direction: TextDirection; paint_clock: Gdk.FrameClock; @@ -11827,7 +11916,7 @@ export class StyleContext extends GObject.Object { get_screen(): Gdk.Screen; get_section(property: string): CssSection | null; get_state(): StateFlags; - get_style_property(property_name: string, value: GObject.Value): void; + get_style_property(property_name: string, value: (GObject.Value | string | boolean | number)): void; has_class(class_name: string): boolean; has_region(region_name: string): [boolean, RegionFlags | null]; invalidate(): void; @@ -11867,7 +11956,7 @@ export module StyleProperties { } export class StyleProperties extends GObject.Object implements StyleProvider { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): StyleProperties; // Members @@ -11877,7 +11966,7 @@ export class StyleProperties extends GObject.Object implements StyleProvider { lookup_color(name: string): SymbolicColor; map_color(name: string, color: SymbolicColor): void; merge(props_to_merge: StyleProperties, replace: boolean): void; - set_property(property: string, state: StateFlags, value: GObject.Value): void; + set_property(property: string, state: StateFlags, value: (GObject.Value | string | boolean | number)): void; set_property(...args: never[]): never; unset_property(property: string, state: StateFlags): void; // Implemented Members @@ -11898,7 +11987,7 @@ export module Switch { } export class Switch extends Widget implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; state: boolean; @@ -11954,7 +12043,7 @@ export module SwitchAccessible { } export class SwitchAccessible extends WidgetAccessible implements Atk.Action, Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: SwitchAccessiblePrivate | any; // Implemented Members @@ -11991,7 +12080,7 @@ export module Table { } export class Table extends Container implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties column_spacing: number; homogeneous: boolean; @@ -12025,7 +12114,7 @@ export module TearoffMenuItem { } export class TearoffMenuItem extends MenuItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields menu_item: MenuItem; // Constructors @@ -12045,7 +12134,7 @@ export module TextBuffer { } export class TextBuffer extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties copy_target_list: TargetList; cursor_position: number; @@ -12116,14 +12205,14 @@ export class TextBuffer extends GObject.Object { delete_mark(mark: TextMark): void; delete_mark_by_name(name: string): void; delete_selection(interactive: boolean, default_editable: boolean): boolean; - deserialize(content_buffer: TextBuffer, format: Gdk.Atom, iter: TextIter, data: number[]): boolean; + deserialize(content_buffer: TextBuffer, format: Gdk.Atom, iter: TextIter, data: (Uint8Array | string)): boolean; deserialize_get_can_create_tags(format: Gdk.Atom): boolean; deserialize_set_can_create_tags(format: Gdk.Atom, can_create_tags: boolean): void; end_user_action(): void; get_bounds(): [TextIter, TextIter]; get_char_count(): number; get_copy_target_list(): TargetList; - get_deserialize_formats(): [Gdk.Atom[], number]; + get_deserialize_formats(): Gdk.Atom[]; get_end_iter(): TextIter; get_has_selection(): boolean; get_insert(): TextMark; @@ -12139,7 +12228,7 @@ export class TextBuffer extends GObject.Object { get_paste_target_list(): TargetList; get_selection_bound(): TextMark; get_selection_bounds(): [boolean, TextIter, TextIter]; - get_serialize_formats(): [Gdk.Atom[], number]; + get_serialize_formats(): Gdk.Atom[]; get_slice(start: TextIter, end: TextIter, include_hidden_chars: boolean): string; get_start_iter(): TextIter; get_tag_table(): TextTagTable; @@ -12166,7 +12255,7 @@ export class TextBuffer extends GObject.Object { remove_tag(tag: TextTag, start: TextIter, end: TextIter): void; remove_tag_by_name(name: string, start: TextIter, end: TextIter): void; select_range(ins: TextIter, bound: TextIter): void; - serialize(content_buffer: TextBuffer, format: Gdk.Atom, start: TextIter, end: TextIter): [number[], number]; + serialize(content_buffer: TextBuffer, format: Gdk.Atom, start: TextIter, end: TextIter): Uint8Array; set_modified(setting: boolean): void; set_text(text: string, len: number): void; unregister_deserialize_format(format: Gdk.Atom): void; @@ -12192,7 +12281,7 @@ export module TextCellAccessible { } export class TextCellAccessible extends RendererCellAccessible implements Atk.Action, Atk.Component, Atk.TableCell, Atk.Text { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: TextCellAccessiblePrivate | any; // Implemented Members @@ -12252,7 +12341,7 @@ export module TextChildAnchor { } export class TextChildAnchor extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): TextChildAnchor; // Members @@ -12268,7 +12357,7 @@ export module TextMark { } export class TextMark extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties left_gravity: boolean; name: string; @@ -12363,7 +12452,7 @@ export module TextTag { } export class TextTag extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accumulative_margin: boolean; background: string; @@ -12464,7 +12553,7 @@ export module TextTagTable { } export class TextTagTable extends GObject.Object implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: TextTagTablePrivate; // Signals @@ -12484,7 +12573,7 @@ export class TextTagTable extends GObject.Object implements Buildable { static ["new"](): TextTagTable; // Members add(tag: TextTag): boolean; - foreach(func: TextTagTableForeach, data: any | null): void; + foreach(func: TextTagTableForeach): void; get_size(): number; lookup(name: string): TextTag | null; remove(tag: TextTag): void; @@ -12493,24 +12582,24 @@ export class TextTagTable extends GObject.Object implements Buildable { vfunc_tag_removed(tag: TextTag): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module TextView { @@ -12541,7 +12630,7 @@ export module TextView { } export class TextView extends Container implements Atk.ImplementorIface, Buildable, Scrollable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accepts_tab: boolean; bottom_margin: number; @@ -12727,7 +12816,7 @@ export module TextViewAccessible { } export class TextViewAccessible extends ContainerAccessible implements Atk.Component, Atk.EditableText, Atk.StreamableContent, Atk.Text { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: TextViewAccessiblePrivate | any; // Implemented Members @@ -12810,7 +12899,7 @@ export module ThemingEngine { } export class ThemingEngine extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties name: string; // Fields @@ -12863,7 +12952,7 @@ export module ToggleAction { } export class ToggleAction extends Action implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; draw_as_radio: boolean; @@ -12895,7 +12984,7 @@ export module ToggleButton { } export class ToggleButton extends Button implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; draw_indicator: boolean; @@ -12931,7 +13020,7 @@ export module ToggleButtonAccessible { } export class ToggleButtonAccessible extends ButtonAccessible implements Atk.Action, Atk.Component, Atk.Image { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ToggleButtonAccessiblePrivate | any; } @@ -12943,7 +13032,7 @@ export module ToggleToolButton { } export class ToggleToolButton extends ToolButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties active: boolean; // Signals @@ -12976,7 +13065,7 @@ export module ToolButton { } export class ToolButton extends ToolItem implements Atk.ImplementorIface, Actionable, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties icon_name: string; icon_widget: Widget; @@ -13033,7 +13122,7 @@ export module ToolItem { } export class ToolItem extends Bin implements Atk.ImplementorIface, Activatable, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties is_important: boolean; visible_horizontal: boolean; @@ -13076,7 +13165,9 @@ export class ToolItem extends Bin implements Atk.ImplementorIface, Activatable, set_is_important(is_important: boolean): void; set_proxy_menu_item(menu_item_id: string, menu_item: Widget | null): void; set_tooltip_markup(markup: string): void; + set_tooltip_markup(...args: never[]): never; set_tooltip_text(text: string): void; + set_tooltip_text(...args: never[]): never; set_use_drag_window(use_drag_window: boolean): void; set_visible_horizontal(visible_horizontal: boolean): void; set_visible_vertical(visible_vertical: boolean): void; @@ -13105,7 +13196,7 @@ export module ToolItemGroup { } export class ToolItemGroup extends Container implements Atk.ImplementorIface, Buildable, ToolShell { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties collapsed: boolean; ellipsize: Pango.EllipsizeMode; @@ -13164,7 +13255,7 @@ export module ToolPalette { } export class ToolPalette extends Container implements Atk.ImplementorIface, Buildable, Orientable, Scrollable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties icon_size: IconSize; icon_size_set: boolean; @@ -13226,7 +13317,7 @@ export module Toolbar { } export class Toolbar extends Container implements Atk.ImplementorIface, Buildable, Orientable, ToolShell { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties icon_size: IconSize; icon_size_set: boolean; @@ -13303,7 +13394,7 @@ export module Tooltip { } export class Tooltip extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Members set_custom(custom_widget: Widget | null): void; set_icon(pixbuf: GdkPixbuf.Pixbuf | null): void; @@ -13322,7 +13413,7 @@ export module ToplevelAccessible { } export class ToplevelAccessible extends Atk.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: ToplevelAccessiblePrivate; // Members @@ -13337,7 +13428,7 @@ export module TreeModelFilter { } export class TreeModelFilter extends GObject.Object implements TreeDragSource, TreeModel { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties child_model: TreeModel; virtual_root: TreePath; @@ -13349,10 +13440,10 @@ export class TreeModelFilter extends GObject.Object implements TreeDragSource, T convert_path_to_child_path(filter_path: TreePath): TreePath | null; get_model(): TreeModel; refilter(): void; - set_modify_func(types: GType[], func: TreeModelFilterModifyFunc, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_modify_func(types: GType[], func: TreeModelFilterModifyFunc, destroy: GLib.DestroyNotify | null): void; set_visible_column(column: number): void; - set_visible_func(func: TreeModelFilterVisibleFunc, data: any | null, destroy: GLib.DestroyNotify | null): void; - vfunc_modify(child_model: TreeModel, iter: TreeIter, value: GObject.Value, column: number): void; + set_visible_func(func: TreeModelFilterVisibleFunc, destroy: GLib.DestroyNotify | null): void; + vfunc_modify(child_model: TreeModel, iter: TreeIter, value: (GObject.Value | string | boolean | number), column: number): void; vfunc_visible(child_model: TreeModel, iter: TreeIter): boolean; // Implemented Members drag_data_delete(path: TreePath): boolean; @@ -13384,7 +13475,7 @@ export class TreeModelFilter extends GObject.Object implements TreeDragSource, T row_deleted(path: TreePath): void; row_has_child_toggled(path: TreePath, iter: TreeIter): void; row_inserted(path: TreePath, iter: TreeIter): void; - rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + rows_reordered(path: TreePath, iter: TreeIter | null, new_order: number[]): void; unref_node(iter: TreeIter): void; vfunc_get_column_type(index_: number): GType; vfunc_get_flags(): TreeModelFlags; @@ -13414,7 +13505,7 @@ export module TreeModelSort { } export class TreeModelSort extends GObject.Object implements TreeDragSource, TreeModel, TreeSortable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties model: TreeModel; // Constructors @@ -13458,7 +13549,7 @@ export class TreeModelSort extends GObject.Object implements TreeDragSource, Tre row_deleted(path: TreePath): void; row_has_child_toggled(path: TreePath, iter: TreeIter): void; row_inserted(path: TreePath, iter: TreeIter): void; - rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + rows_reordered(path: TreePath, iter: TreeIter | null, new_order: number[]): void; unref_node(iter: TreeIter): void; vfunc_get_column_type(index_: number): GType; vfunc_get_flags(): TreeModelFlags; @@ -13500,7 +13591,7 @@ export module TreeSelection { } export class TreeSelection extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties mode: SelectionMode; // Signals @@ -13522,9 +13613,9 @@ export class TreeSelection extends GObject.Object { select_iter(iter: TreeIter): void; select_path(path: TreePath): void; select_range(start_path: TreePath, end_path: TreePath): void; - selected_foreach(func: TreeSelectionForeachFunc, data: any | null): void; + selected_foreach(func: TreeSelectionForeachFunc): void; set_mode(type: SelectionMode): void; - set_select_function(func: TreeSelectionFunc | null, data: any | null, destroy: GLib.DestroyNotify): void; + set_select_function(func: TreeSelectionFunc | null, destroy: GLib.DestroyNotify): void; unselect_all(): void; unselect_iter(iter: TreeIter): void; unselect_path(path: TreePath): void; @@ -13538,19 +13629,18 @@ export module TreeStore { } export class TreeStore extends GObject.Object implements Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: TreeStorePrivate; // Constructors - static newv(types: GType[]): TreeStore; - static newv(...args: never[]): never; + static ["new"](types: GType[]): TreeStore; // Members append(parent: TreeIter | null): TreeIter; clear(): void; insert(parent: TreeIter | null, position: number): TreeIter; insert_after(parent: TreeIter | null, sibling: TreeIter | null): TreeIter; insert_before(parent: TreeIter | null, sibling: TreeIter | null): TreeIter; - insert_with_valuesv(parent: TreeIter | null, position: number, columns: number[], values: GObject.Value[]): TreeIter | null; + insert_with_values(parent: TreeIter | null, position: number, columns: number[], values: (GObject.Value | string | boolean | number)[]): TreeIter | null; is_ancestor(iter: TreeIter, descendant: TreeIter): boolean; iter_depth(iter: TreeIter): number; iter_is_valid(iter: TreeIter): boolean; @@ -13559,29 +13649,30 @@ export class TreeStore extends GObject.Object implements Buildable, TreeDragDest prepend(parent: TreeIter | null): TreeIter; remove(iter: TreeIter): boolean; set_column_types(types: GType[]): void; - set_value(iter: TreeIter, column: number, value: GObject.Value): void; - set_valuesv(iter: TreeIter, columns: number[], values: GObject.Value[]): void; + set_value(iter: TreeIter, column: number, value: (GObject.Value | string | boolean | number)): void; + set(iter: TreeIter, columns: number[], values: (GObject.Value | string | boolean | number)[]): void; + set(...args: never[]): never; swap(a: TreeIter, b: TreeIter): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; @@ -13616,7 +13707,7 @@ export class TreeStore extends GObject.Object implements Buildable, TreeDragDest row_deleted(path: TreePath): void; row_has_child_toggled(path: TreePath, iter: TreeIter): void; row_inserted(path: TreePath, iter: TreeIter): void; - rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + rows_reordered(path: TreePath, iter: TreeIter | null, new_order: number[]): void; unref_node(iter: TreeIter): void; vfunc_get_column_type(index_: number): GType; vfunc_get_flags(): TreeModelFlags; @@ -13675,7 +13766,7 @@ export module TreeView { } export class TreeView extends Container implements Atk.ImplementorIface, Buildable, Scrollable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties activate_on_single_click: boolean; enable_grid_lines: TreeViewGridLines; @@ -13805,10 +13896,10 @@ export class TreeView extends Container implements Atk.ImplementorIface, Buildab get_visible_range(): [boolean, TreePath | null, TreePath | null]; get_visible_rect(): Gdk.Rectangle; insert_column(column: TreeViewColumn, position: number): number; - insert_column_with_data_func(position: number, title: string, cell: CellRenderer, func: TreeCellDataFunc, data: any | null, dnotify: GLib.DestroyNotify): number; + insert_column_with_data_func(position: number, title: string, cell: CellRenderer, func: TreeCellDataFunc, dnotify: GLib.DestroyNotify): number; is_blank_at_pos(x: number, y: number): [boolean, TreePath | null, TreeViewColumn | null, number | null, number | null]; is_rubber_banding_active(): boolean; - map_expanded_rows(func: TreeViewMappingFunc, data: any | null): void; + map_expanded_rows(func: TreeViewMappingFunc): void; move_column_after(column: TreeViewColumn, base_column: TreeViewColumn | null): void; remove_column(column: TreeViewColumn): number; row_activated(path: TreePath, column: TreeViewColumn): void; @@ -13819,7 +13910,7 @@ export class TreeView extends Container implements Atk.ImplementorIface, Buildab set_column_drag_function(func: TreeViewColumnDropFunc | null, destroy: GLib.DestroyNotify | null): void; set_cursor(path: TreePath, focus_column: TreeViewColumn | null, start_editing: boolean): void; set_cursor_on_cell(path: TreePath, focus_column: TreeViewColumn | null, focus_cell: CellRenderer | null, start_editing: boolean): void; - set_destroy_count_func(func: TreeDestroyCountFunc | null, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_destroy_count_func(func: TreeDestroyCountFunc | null, destroy: GLib.DestroyNotify | null): void; set_drag_dest_row(path: TreePath | null, pos: TreeViewDropPosition): void; set_enable_search(enable_search: boolean): void; set_enable_tree_lines(enabled: boolean): void; @@ -13834,13 +13925,13 @@ export class TreeView extends Container implements Atk.ImplementorIface, Buildab set_level_indentation(indentation: number): void; set_model(model: TreeModel | null): void; set_reorderable(reorderable: boolean): void; - set_row_separator_func(func: TreeViewRowSeparatorFunc | null, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_row_separator_func(func: TreeViewRowSeparatorFunc | null, destroy: GLib.DestroyNotify | null): void; set_rubber_banding(enable: boolean): void; set_rules_hint(setting: boolean): void; set_search_column(column: number): void; set_search_entry(entry: Entry | null): void; - set_search_equal_func(search_equal_func: TreeViewSearchEqualFunc, search_user_data: any | null, search_destroy: GLib.DestroyNotify | null): void; - set_search_position_func(func: TreeViewSearchPositionFunc | null, data: any | null, destroy: GLib.DestroyNotify | null): void; + set_search_equal_func(search_equal_func: TreeViewSearchEqualFunc, search_destroy: GLib.DestroyNotify | null): void; + set_search_position_func(func: TreeViewSearchPositionFunc | null, destroy: GLib.DestroyNotify | null): void; set_show_expanders(enabled: boolean): void; set_tooltip_cell(tooltip: Tooltip, path: TreePath | null, column: TreeViewColumn | null, cell: CellRenderer | null): void; set_tooltip_column(column: number): void; @@ -13878,7 +13969,7 @@ export module TreeViewAccessible { } export class TreeViewAccessible extends ContainerAccessible implements Atk.Component, Atk.Selection, Atk.Table, CellAccessibleParent { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: TreeViewAccessiblePrivate | any; // Implemented Members @@ -14015,7 +14106,7 @@ export module TreeViewColumn { } export class TreeViewColumn extends GObject.InitiallyUnowned implements Buildable, CellLayout { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties alignment: number; cell_area: CellArea; @@ -14082,7 +14173,7 @@ export class TreeViewColumn extends GObject.InitiallyUnowned implements Buildabl pack_start(cell: CellRenderer, expand: boolean): void; queue_resize(): void; set_alignment(xalign: number): void; - set_cell_data_func(cell_renderer: CellRenderer, func: TreeCellDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(cell_renderer: CellRenderer, func: TreeCellDataFunc | null, destroy: GLib.DestroyNotify): void; set_cell_data_func(...args: never[]): never; set_clickable(clickable: boolean): void; set_expand(expand: boolean): void; @@ -14102,24 +14193,24 @@ export class TreeViewColumn extends GObject.InitiallyUnowned implements Buildabl vfunc_clicked(): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; get_area(): CellArea | null; get_cells(): GLib.List; @@ -14132,7 +14223,7 @@ export class TreeViewColumn extends GObject.InitiallyUnowned implements Buildabl vfunc_pack_end(cell: CellRenderer, expand: boolean): void; vfunc_pack_start(cell: CellRenderer, expand: boolean): void; vfunc_reorder(cell: CellRenderer, position: number): void; - vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; } export module UIManager { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -14143,7 +14234,7 @@ export module UIManager { } export class UIManager extends GObject.Object implements Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties add_tearoffs: boolean; ui: string; @@ -14181,7 +14272,7 @@ export class UIManager extends GObject.Object implements Buildable { get_action(path: string): Action; get_action_groups(): GLib.List; get_add_tearoffs(): boolean; - get_toplevels(types: UIManagerItemType): string[]; + get_toplevels(types: UIManagerItemType): GLib.SList; get_ui(): string; get_widget(path: string): Widget; insert_action_group(action_group: ActionGroup, pos: number): void; @@ -14199,24 +14290,24 @@ export class UIManager extends GObject.Object implements Buildable { vfunc_pre_activate(action: Action): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module VBox { @@ -14226,7 +14317,7 @@ export module VBox { } export class VBox extends Box implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields box: Box; // Constructors @@ -14240,7 +14331,7 @@ export module VButtonBox { } export class VButtonBox extends ButtonBox implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields button_box: ButtonBox; // Constructors @@ -14254,7 +14345,7 @@ export module VPaned { } export class VPaned extends Paned implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields paned: Paned; // Constructors @@ -14268,7 +14359,7 @@ export module VScale { } export class VScale extends Scale implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields scale: Scale; // Constructors @@ -14284,7 +14375,7 @@ export module VScrollbar { } export class VScrollbar extends Scrollbar implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields scrollbar: Scrollbar; // Constructors @@ -14298,7 +14389,7 @@ export module VSeparator { } export class VSeparator extends Separator implements Atk.ImplementorIface, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields separator: Separator; // Constructors @@ -14313,7 +14404,7 @@ export module Viewport { } export class Viewport extends Bin implements Atk.ImplementorIface, Buildable, Scrollable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties shadow_type: ShadowType; // Fields @@ -14350,20 +14441,15 @@ export module VolumeButton { } export class VolumeButton extends ScaleButton implements Atk.ImplementorIface, Actionable, Activatable, Buildable, Orientable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties use_symbolic: boolean; - // Implemented Properties - orientation: Orientation; // Constructors static ["new"](): VolumeButton; static ["new"](...args: never[]): never; - // Implemented Members - get_orientation(): Orientation; - set_orientation(orientation: Orientation): void; } export module Widget { - export interface ConstructorProperties { + export interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { [key: string]: any; app_paintable: boolean; can_default: boolean; @@ -14407,7 +14493,7 @@ export module Widget { } export abstract class Widget extends GObject.InitiallyUnowned implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Properties app_paintable: boolean; can_default: boolean; @@ -14777,7 +14863,7 @@ export abstract class Widget extends GObject.InitiallyUnowned implements Atk.Imp get_style(): Style; get_style_context(): StyleContext; get_support_multidevice(): boolean; - get_template_child(widget_type: GType, name: string): GObject.Object; + get_template_child(widget_type: GType, name: string): T; get_tooltip_markup(): string | null; get_tooltip_text(): string | null; get_tooltip_window(): Window; @@ -14908,7 +14994,7 @@ export abstract class Widget extends GObject.InitiallyUnowned implements Atk.Imp size_allocate_with_baseline(allocation: Allocation, baseline: number): void; size_request(): Requisition; style_attach(): void; - style_get_property(property_name: string, value: GObject.Value): void; + style_get_property(property_name: string, value: (GObject.Value | string | boolean | number)): void; thaw_child_notify(): void; translate_coordinates(dest_widget: Widget, src_x: number, src_y: number): [boolean, number | null, number | null]; trigger_tooltip_query(): void; @@ -15006,22 +15092,22 @@ export abstract class Widget extends GObject.InitiallyUnowned implements Atk.Imp static set_default_direction(dir: TextDirection): void; // Implemented Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } export module WidgetAccessible { @@ -15031,7 +15117,7 @@ export module WidgetAccessible { } export class WidgetAccessible extends Accessible implements Atk.Component { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: WidgetAccessiblePrivate; // Implemented Members @@ -15107,7 +15193,7 @@ export module Window { } export class Window extends Bin implements Atk.ImplementorIface, Buildable { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Properties accept_focus: boolean; application: Application; @@ -15161,9 +15247,9 @@ export class Window extends Bin implements Atk.ImplementorIface, Buildable { connect(signal: 'keys-changed', callback: (_source: this) => void): number; connect_after(signal: 'keys-changed', callback: (_source: this) => void): number; emit(signal: 'keys-changed'): void; - connect(signal: 'set-focus', callback: (_source: this, object: Widget) => void): number; - connect_after(signal: 'set-focus', callback: (_source: this, object: Widget) => void): number; - emit(signal: 'set-focus', object: Widget): void; + connect(signal: 'set-focus', callback: (_source: this, widget: Widget | null) => void): number; + connect_after(signal: 'set-focus', callback: (_source: this, widget: Widget | null) => void): number; + emit(signal: 'set-focus', widget: Widget | null): void; // Constructors static ["new"](type: WindowType): Window; // Members @@ -15296,7 +15382,7 @@ export module WindowAccessible { } export class WindowAccessible extends ContainerAccessible implements Atk.Component, Atk.Window { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: WindowAccessiblePrivate | any; } @@ -15307,7 +15393,7 @@ export module WindowGroup { } export class WindowGroup extends GObject.Object { constructor(properties?: Partial, ...args: any[]); - _init(properties?: Partial); + _init(properties?: Partial, ...args: any[]): void; // Fields priv: WindowGroupPrivate; // Constructors @@ -15401,6 +15487,9 @@ export class BinPrivate { constructor(copy: BinPrivate); } export class BindingArg { + constructor(properties?: { + arg_type?: GType; + }); constructor(copy: BindingArg); // Fields arg_type: GType; @@ -15419,7 +15508,7 @@ export class BindingEntry { signals: BindingSignal; // Members static add_signal_from_string(binding_set: BindingSet, signal_desc: string): GLib.TokenType; - static add_signall(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType, signal_name: string, binding_args: string[]): void; + static add_signall(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType, signal_name: string, binding_args: GLib.SList): void; static remove(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType): void; static skip(binding_set: BindingSet, keyval: number, modifiers: Gdk.ModifierType): void; } @@ -15428,9 +15517,9 @@ export class BindingSet { // Fields set_name: string; priority: number; - widget_path_pspecs: string[]; - widget_class_pspecs: string[]; - class_branch_pspecs: string[]; + widget_path_pspecs: GLib.SList; + widget_class_pspecs: GLib.SList; + class_branch_pspecs: GLib.SList; entries: BindingEntry; current: BindingEntry; parsed: number; @@ -15688,6 +15777,13 @@ export class HeaderBarPrivate { constructor(copy: HeaderBarPrivate); } export class IMContextInfo { + constructor(properties?: { + context_id?: string; + context_name?: string; + domain?: string; + domain_dirname?: string; + default_locales?: string; + }); constructor(copy: IMContextInfo); // Fields context_id: string; @@ -15875,6 +15971,10 @@ export class PadActionEntry { action_name: string; } export class PageRange { + constructor(properties?: { + start?: number; + end?: number; + }); constructor(copy: PageRange); // Fields start: number; @@ -15933,6 +16033,14 @@ export class ProgressBarPrivate { constructor(copy: ProgressBarPrivate); } export class RadioActionEntry { + constructor(properties?: { + name?: string; + stock_id?: string; + label?: string; + accelerator?: string; + tooltip?: string; + value?: number; + }); constructor(copy: RadioActionEntry); // Fields name: string; @@ -15974,11 +16082,11 @@ export class RcProperty { origin: string; value: GObject.Value; // Members - static parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; - static parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; - static parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; - static parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; - static parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value): boolean; + static parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; + static parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; + static parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; + static parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; + static parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: (GObject.Value | string | boolean | number)): boolean; } export class RecentActionPrivate { constructor(copy: RecentActionPrivate); @@ -15993,6 +16101,15 @@ export class RecentChooserWidgetPrivate { constructor(copy: RecentChooserWidgetPrivate); } export class RecentData { + constructor(properties?: { + display_name?: string; + description?: string; + mime_type?: string; + app_name?: string; + app_exec?: string; + groups?: string[]; + is_private?: boolean; + }); constructor(copy: RecentData); // Fields display_name: string; @@ -16022,11 +16139,11 @@ export class RecentInfo { get_added(): number; get_age(): number; get_application_info(app_name: string): [boolean, string, number, number]; - get_applications(): [string[], number | null]; + get_applications(): string[]; get_description(): string; get_display_name(): string; get_gicon(): Gio.Icon | null; - get_groups(): [string[], number | null]; + get_groups(): string[]; get_icon(size: number): GdkPixbuf.Pixbuf | null; get_mime_type(): string; get_modified(): number; @@ -16050,6 +16167,11 @@ export class RendererCellAccessiblePrivate { constructor(copy: RendererCellAccessiblePrivate); } export class RequestedSize { + constructor(properties?: { + data?: any; + minimum_size?: number; + natural_size?: number; + }); constructor(copy: RequestedSize); // Fields data: any; @@ -16092,7 +16214,7 @@ export class SelectionData { copy(): SelectionData; free(): void; get_data_type(): Gdk.Atom; - get_data_with_length(): [number[], number]; + get_data(): Uint8Array; get_display(): Gdk.Display; get_format(): number; get_length(): number; @@ -16102,7 +16224,7 @@ export class SelectionData { get_targets(): [boolean, Gdk.Atom[]]; get_text(): string | null; get_uris(): string[]; - set(type: Gdk.Atom, format: number, data: number[]): void; + set(type: Gdk.Atom, format: number, data: (Uint8Array | string)): void; set_pixbuf(pixbuf: GdkPixbuf.Pixbuf): boolean; set_text(str: string, len: number): boolean; set_uris(uris: string[]): boolean; @@ -16121,6 +16243,10 @@ export class SettingsPrivate { constructor(copy: SettingsPrivate); } export class SettingsValue { + constructor(properties?: { + origin?: string; + value?: GObject.Value; + }); constructor(copy: SettingsValue); // Fields origin: string; @@ -16216,6 +16342,16 @@ export class TablePrivate { constructor(copy: TablePrivate); } export class TableRowCol { + constructor(properties?: { + requisition?: number; + allocation?: number; + spacing?: number; + need_expand?: number; + need_shrink?: number; + expand?: number; + shrink?: number; + empty?: number; + }); constructor(copy: TableRowCol); // Fields requisition: number; @@ -16268,6 +16404,16 @@ export class TearoffMenuItemPrivate { constructor(copy: TearoffMenuItemPrivate); } export class TextAppearance { + constructor(properties?: { + bg_color?: Gdk.Color; + fg_color?: Gdk.Color; + rise?: number; + underline?: number; + strikethrough?: number; + draw_bg?: number; + inside_selection?: number; + is_text?: number; + }); constructor(copy: TextAppearance); // Fields bg_color: Gdk.Color; @@ -16323,6 +16469,22 @@ export class TextCellAccessiblePrivate { constructor(copy: TextCellAccessiblePrivate); } export class TextIter { + constructor(properties?: { + dummy1?: any; + dummy2?: any; + dummy3?: number; + dummy4?: number; + dummy5?: number; + dummy6?: number; + dummy7?: number; + dummy8?: number; + dummy9?: any; + dummy10?: any; + dummy11?: number; + dummy12?: number; + dummy13?: number; + dummy14?: any; + }); constructor(copy: TextIter); // Fields dummy1: any; @@ -16402,13 +16564,13 @@ export class TextIter { get_line(): number; get_line_index(): number; get_line_offset(): number; - get_marks(): string[]; + get_marks(): GLib.SList; get_offset(): number; get_pixbuf(): GdkPixbuf.Pixbuf; get_slice(end: TextIter): string; - get_tags(): string[]; + get_tags(): GLib.SList; get_text(end: TextIter): string; - get_toggled_tags(toggled_on: boolean): string[]; + get_toggled_tags(toggled_on: boolean): GLib.SList; get_visible_line_index(): number; get_visible_line_offset(): number; get_visible_slice(end: TextIter): string; @@ -16493,6 +16655,12 @@ export class ToplevelAccessiblePrivate { constructor(copy: ToplevelAccessiblePrivate); } export class TreeIter { + constructor(properties?: { + stamp?: number; + user_data?: any; + user_data2?: any; + user_data3?: any; + }); constructor(copy: TreeIter); // Fields stamp: number; @@ -16515,7 +16683,7 @@ export class TreePath { // Constructors static ["new"](): TreePath; static new_first(): TreePath; - static new_from_indicesv(indices: number[]): TreePath; + static new_from_indices(indices: number[]): TreePath; static new_from_string(path: string): TreePath; // Members append_index(index_: number): void; @@ -16524,7 +16692,7 @@ export class TreePath { down(): void; free(): void; get_depth(): number; - get_indices_with_depth(): [number[], number | null]; + get_indices(): number[]; is_ancestor(descendant: TreePath): boolean; is_descendant(ancestor: TreePath): boolean; next(): void; @@ -16605,8 +16773,8 @@ export class WidgetPath { iter_has_qname(pos: number, qname: GLib.Quark): boolean; iter_has_qregion(pos: number, qname: GLib.Quark): [boolean, RegionFlags]; iter_has_region(pos: number, name: string): [boolean, RegionFlags]; - iter_list_classes(pos: number): string[]; - iter_list_regions(pos: number): string[]; + iter_list_classes(pos: number): GLib.SList; + iter_list_regions(pos: number): GLib.SList; iter_remove_class(pos: number, name: string): void; iter_remove_region(pos: number, name: string): void; iter_set_name(pos: number, name: string): void; @@ -16634,7 +16802,10 @@ export class WindowGroupPrivate { export class WindowPrivate { constructor(copy: WindowPrivate); } -export interface Actionable { +export interface ActionableNamespace { + $gtype: GType; +} +export interface Actionable extends Widget { // Properties action_name: string; action_target: GLib.Variant; @@ -16649,7 +16820,12 @@ export interface Actionable { vfunc_set_action_name(action_name: string | null): void; vfunc_set_action_target_value(target_value: GLib.Variant | null): void; } -export interface Activatable { + +export const Actionable: ActionableNamespace; +export interface ActivatableNamespace { + $gtype: GType; +} +export interface Activatable extends GObject.Object { // Properties related_action: Action; use_action_appearance: boolean; @@ -16663,7 +16839,12 @@ export interface Activatable { vfunc_sync_action_properties(action: Action | null): void; vfunc_update(action: Action, property_name: string): void; } -export interface AppChooser { + +export const Activatable: ActivatableNamespace; +export interface AppChooserNamespace { + $gtype: GType; +} +export interface AppChooser extends Widget { // Properties content_type: string; // Members @@ -16671,30 +16852,40 @@ export interface AppChooser { get_content_type(): string; refresh(): void; } -export interface Buildable { + +export const AppChooser: AppChooserNamespace; +export interface BuildableNamespace { + $gtype: GType; +} +export interface Buildable extends GObject.Object { // Members add_child(builder: Builder, child: GObject.Object, type: string | null): void; - construct_child(builder: Builder, name: string): GObject.Object; + construct_child(builder: Builder, name: string): T; custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - get_internal_child(builder: Builder, childname: string): GObject.Object; + get_internal_child(builder: Builder, childname: string): T; get_name(): string; parser_finished(builder: Builder): void; - set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; set_name(name: string): void; vfunc_add_child(builder: Builder, child: GObject.Object, type: string | null): void; - vfunc_construct_child(builder: Builder, name: string): GObject.Object; + vfunc_construct_child(builder: Builder, name: string): T; vfunc_custom_finished(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_end(builder: Builder, child: GObject.Object | null, tagname: string, data: any | null): void; vfunc_custom_tag_start(builder: Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; - vfunc_get_internal_child(builder: Builder, childname: string): GObject.Object; + vfunc_get_internal_child(builder: Builder, childname: string): T; vfunc_get_name(): string; vfunc_parser_finished(builder: Builder): void; - vfunc_set_buildable_property(builder: Builder, name: string, value: GObject.Value): void; + vfunc_set_buildable_property(builder: Builder, name: string, value: (GObject.Value | string | boolean | number)): void; vfunc_set_name(name: string): void; } -export interface CellAccessibleParent { + +export const Buildable: BuildableNamespace; +export interface CellAccessibleParentNamespace { + $gtype: GType; +} +export interface CellAccessibleParent extends GObject.Object { // Members activate(cell: CellAccessible): void; edit(cell: CellAccessible): void; @@ -16721,7 +16912,12 @@ export interface CellAccessibleParent { vfunc_grab_focus(cell: CellAccessible): boolean; vfunc_update_relationset(cell: CellAccessible, relationset: Atk.RelationSet): void; } -export interface CellEditable { + +export const CellAccessibleParent: CellAccessibleParentNamespace; +export interface CellEditableNamespace { + $gtype: GType; +} +export interface CellEditable extends Widget { // Properties editing_canceled: boolean; // Members @@ -16732,7 +16928,12 @@ export interface CellEditable { vfunc_remove_widget(): void; vfunc_start_editing(event: Gdk.Event | null): void; } -export interface CellLayout { + +export const CellEditable: CellEditableNamespace; +export interface CellLayoutNamespace { + $gtype: GType; +} +export interface CellLayout extends GObject.Object { // Members add_attribute(cell: CellRenderer, attribute: string, column: number): void; clear(): void; @@ -16742,7 +16943,7 @@ export interface CellLayout { pack_end(cell: CellRenderer, expand: boolean): void; pack_start(cell: CellRenderer, expand: boolean): void; reorder(cell: CellRenderer, position: number): void; - set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; vfunc_add_attribute(cell: CellRenderer, attribute: string, column: number): void; vfunc_clear(): void; vfunc_clear_attributes(cell: CellRenderer): void; @@ -16751,9 +16952,14 @@ export interface CellLayout { vfunc_pack_end(cell: CellRenderer, expand: boolean): void; vfunc_pack_start(cell: CellRenderer, expand: boolean): void; vfunc_reorder(cell: CellRenderer, position: number): void; - vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, func_data: any | null, destroy: GLib.DestroyNotify): void; + vfunc_set_cell_data_func(cell: CellRenderer, func: CellLayoutDataFunc | null, destroy: GLib.DestroyNotify): void; } -export interface ColorChooser { + +export const CellLayout: CellLayoutNamespace; +export interface ColorChooserNamespace { + $gtype: GType; +} +export interface ColorChooser extends GObject.Object { // Properties rgba: Gdk.RGBA; use_alpha: boolean; @@ -16768,7 +16974,12 @@ export interface ColorChooser { vfunc_get_rgba(): Gdk.RGBA; vfunc_set_rgba(color: Gdk.RGBA): void; } -export interface Editable { + +export const ColorChooser: ColorChooserNamespace; +export interface EditableNamespace { + $gtype: GType; +} +export interface Editable extends GObject.Object { // Members copy_clipboard(): void; cut_clipboard(): void; @@ -16794,7 +17005,12 @@ export interface Editable { vfunc_set_position(position: number): void; vfunc_set_selection_bounds(start_pos: number, end_pos: number): void; } -export interface FileChooser { + +export const Editable: EditableNamespace; +export interface FileChooserNamespace { + $gtype: GType; +} +export interface FileChooser extends GObject.Object { // Properties action: FileChooserAction; create_folders: boolean; @@ -16823,8 +17039,8 @@ export interface FileChooser { get_extra_widget(): Widget | null; get_file(): Gio.File; get_filename(): string | null; - get_filenames(): string[]; - get_files(): string[]; + get_filenames(): GLib.SList; + get_files(): GLib.SList; get_filter(): FileFilter | null; get_local_only(): boolean; get_preview_file(): Gio.File | null; @@ -16835,11 +17051,11 @@ export interface FileChooser { get_select_multiple(): boolean; get_show_hidden(): boolean; get_uri(): string | null; - get_uris(): string[]; + get_uris(): GLib.SList; get_use_preview_label(): boolean; - list_filters(): string[]; - list_shortcut_folder_uris(): string[] | null; - list_shortcut_folders(): string[] | null; + list_filters(): GLib.SList; + list_shortcut_folder_uris(): GLib.SList | null; + list_shortcut_folders(): GLib.SList | null; remove_choice(id: string): void; remove_filter(filter: FileFilter): void; remove_shortcut_folder(folder: string): boolean; @@ -16872,7 +17088,12 @@ export interface FileChooser { unselect_filename(filename: string): void; unselect_uri(uri: string): void; } -export interface FontChooser { + +export const FileChooser: FileChooserNamespace; +export interface FontChooserNamespace { + $gtype: GType; +} +export interface FontChooser extends GObject.Object { // Properties font: string; font_desc: Pango.FontDescription; @@ -16909,14 +17130,24 @@ export interface FontChooser { vfunc_set_filter_func(filter: FontFilterFunc | null, destroy: GLib.DestroyNotify): void; vfunc_set_font_map(fontmap: Pango.FontMap | null): void; } -export interface Orientable { + +export const FontChooser: FontChooserNamespace; +export interface OrientableNamespace { + $gtype: GType; +} +export interface Orientable extends GObject.Object { // Properties orientation: Orientation; // Members get_orientation(): Orientation; set_orientation(orientation: Orientation): void; } -export interface PrintOperationPreview { + +export const Orientable: OrientableNamespace; +export interface PrintOperationPreviewNamespace { + $gtype: GType; +} +export interface PrintOperationPreview extends GObject.Object { // Members end_preview(): void; is_selected(page_nr: number): boolean; @@ -16927,7 +17158,12 @@ export interface PrintOperationPreview { vfunc_ready(context: PrintContext): void; vfunc_render_page(page_nr: number): void; } -export interface RecentChooser { + +export const PrintOperationPreview: PrintOperationPreviewNamespace; +export interface RecentChooserNamespace { + $gtype: GType; +} +export interface RecentChooser extends GObject.Object { // Properties filter: RecentFilter; limit: number; @@ -16953,8 +17189,8 @@ export interface RecentChooser { get_show_private(): boolean; get_show_tips(): boolean; get_sort_type(): RecentSortType; - get_uris(): [string[], number | null]; - list_filters(): string[]; + get_uris(): string[]; + list_filters(): GLib.SList; remove_filter(filter: RecentFilter): void; select_all(): void; select_uri(uri: string): boolean; @@ -16967,7 +17203,7 @@ export interface RecentChooser { set_show_not_found(show_not_found: boolean): void; set_show_private(show_private: boolean): void; set_show_tips(show_tips: boolean): void; - set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; set_sort_type(sort_type: RecentSortType): void; unselect_all(): void; unselect_uri(uri: string): void; @@ -16975,17 +17211,22 @@ export interface RecentChooser { vfunc_get_current_uri(): string; vfunc_get_items(): GLib.List; vfunc_item_activated(): void; - vfunc_list_filters(): string[]; + vfunc_list_filters(): GLib.SList; vfunc_remove_filter(filter: RecentFilter): void; vfunc_select_all(): void; vfunc_select_uri(uri: string): boolean; vfunc_selection_changed(): void; vfunc_set_current_uri(uri: string): boolean; - vfunc_set_sort_func(sort_func: RecentSortFunc, sort_data: any | null, data_destroy: GLib.DestroyNotify | null): void; + vfunc_set_sort_func(sort_func: RecentSortFunc, data_destroy: GLib.DestroyNotify | null): void; vfunc_unselect_all(): void; vfunc_unselect_uri(uri: string): void; } -export interface Scrollable { + +export const RecentChooser: RecentChooserNamespace; +export interface ScrollableNamespace { + $gtype: GType; +} +export interface Scrollable extends GObject.Object { // Properties hadjustment: Adjustment; hscroll_policy: ScrollablePolicy; @@ -17003,7 +17244,12 @@ export interface Scrollable { set_vscroll_policy(policy: ScrollablePolicy): void; vfunc_get_border(): [boolean, Border]; } -export interface StyleProvider { + +export const Scrollable: ScrollableNamespace; +export interface StyleProviderNamespace { + $gtype: GType; +} +export interface StyleProvider extends GObject.Object { // Members get_icon_factory(path: WidgetPath): IconFactory | null; get_style(path: WidgetPath): StyleProperties | null; @@ -17012,13 +17258,19 @@ export interface StyleProvider { vfunc_get_style(path: WidgetPath): StyleProperties | null; vfunc_get_style_property(path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec): [boolean, GObject.Value]; } -export interface ToolShell { + +export const StyleProvider: StyleProviderNamespace; +export interface ToolShellNamespace { + $gtype: GType; +} +export interface ToolShell extends Widget { // Members get_ellipsize_mode(): Pango.EllipsizeMode; get_icon_size(): number; get_orientation(): Orientation; get_relief_style(): ReliefStyle; get_style(): ToolbarStyle; + get_style(...args: never[]): never; get_text_alignment(): number; get_text_orientation(): Orientation; get_text_size_group(): SizeGroup; @@ -17033,14 +17285,24 @@ export interface ToolShell { vfunc_get_text_size_group(): SizeGroup; vfunc_rebuild_menu(): void; } -export interface TreeDragDest { + +export const ToolShell: ToolShellNamespace; +export interface TreeDragDestNamespace { + $gtype: GType; +} +export interface TreeDragDest extends GObject.Object { // Members drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; vfunc_drag_data_received(dest: TreePath, selection_data: SelectionData): boolean; vfunc_row_drop_possible(dest_path: TreePath, selection_data: SelectionData): boolean; } -export interface TreeDragSource { + +export const TreeDragDest: TreeDragDestNamespace; +export interface TreeDragSourceNamespace { + $gtype: GType; +} +export interface TreeDragSource extends GObject.Object { // Members drag_data_delete(path: TreePath): boolean; drag_data_get(path: TreePath, selection_data: SelectionData): boolean; @@ -17049,7 +17311,12 @@ export interface TreeDragSource { vfunc_drag_data_get(path: TreePath, selection_data: SelectionData): boolean; vfunc_row_draggable(path: TreePath): boolean; } -export interface TreeModel { + +export const TreeDragSource: TreeDragSourceNamespace; +export interface TreeModelNamespace { + $gtype: GType; +} +export interface TreeModel extends GObject.Object { // Members filter_new(root: TreePath | null): TreeModel; foreach(func: TreeModelForeachFunc): void; @@ -17074,7 +17341,7 @@ export interface TreeModel { row_deleted(path: TreePath): void; row_has_child_toggled(path: TreePath, iter: TreeIter): void; row_inserted(path: TreePath, iter: TreeIter): void; - rows_reordered_with_length(path: TreePath, iter: TreeIter | null, new_order: number[]): void; + rows_reordered(path: TreePath, iter: TreeIter | null, new_order: number[]): void; unref_node(iter: TreeIter): void; vfunc_get_column_type(index_: number): GType; vfunc_get_flags(): TreeModelFlags; @@ -17096,7 +17363,12 @@ export interface TreeModel { vfunc_row_inserted(path: TreePath, iter: TreeIter): void; vfunc_unref_node(iter: TreeIter): void; } -export interface TreeSortable { + +export const TreeModel: TreeModelNamespace; +export interface TreeSortableNamespace { + $gtype: GType; +} +export interface TreeSortable extends TreeModel { // Members get_sort_column_id(): [boolean, number, SortType]; has_default_sort_func(): boolean; @@ -17112,6 +17384,8 @@ export interface TreeSortable { vfunc_sort_column_changed(): void; } +export const TreeSortable: TreeSortableNamespace; + export type Allocation = Gdk.Rectangle; export type Stock = string; \ No newline at end of file diff --git a/gi/json.d.ts b/gi/json.d.ts new file mode 100644 index 0000000..3f1beb2 --- /dev/null +++ b/gi/json.d.ts @@ -0,0 +1,459 @@ + + +/** + * Json + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +type GType = object; + +export const MAJOR_VERSION: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const VERSION_S: string; + +export function boxed_can_deserialize(gboxed_type: GType, node_type: NodeType): boolean; + +export function boxed_can_serialize(gboxed_type: GType): [boolean, NodeType]; + +export function boxed_deserialize(gboxed_type: GType, node: Node): any | null; + +export function boxed_serialize(gboxed_type: GType, boxed: any | null): Node | null; + +export function construct_gobject(gtype: GType, data: string, length: number): GObject.Object; + +export function from_string(str: string): Node; + +export function gobject_deserialize(gtype: GType, node: Node): GObject.Object; + +export function gobject_from_data(gtype: GType, data: string, length: number): GObject.Object; + +export function gobject_serialize(gobject: GObject.Object): Node; + +export function gobject_to_data(gobject: GObject.Object): [string, number]; + +export function gvariant_deserialize(json_node: Node, signature: string | null): GLib.Variant; + +export function gvariant_deserialize_data(json: string, length: number, signature: string | null): GLib.Variant; + +export function gvariant_serialize(variant: GLib.Variant): Node; + +export function gvariant_serialize_data(variant: GLib.Variant): [string, number | null]; + +export function parser_error_quark(): GLib.Quark; + +export function path_error_quark(): GLib.Quark; + +export function reader_error_quark(): GLib.Quark; + +export function serialize_gobject(gobject: GObject.Object): [string, number]; + +export function string_compare(a: string, b: string): number; + +export function string_equal(a: string, b: string): boolean; + +export function string_hash(key: string): number; + +export function to_string(node: Node, pretty: boolean): string; + +export type ArrayForeach = (array: Array, index_: number, element_node: Node) => void; + +export type BoxedDeserializeFunc = (node: Node) => any | null; + +export type BoxedSerializeFunc = (boxed: any | null) => Node; + +export type ObjectForeach = (object: Object, member_name: string, member_node: Node) => void; +export enum NodeType { + OBJECT = 0, + ARRAY = 1, + VALUE = 2, + NULL = 3, +} +export class ParserError extends GLib.Error { + constructor(copy: ParserError); + // Properties + static PARSE: number; + static TRAILING_COMMA: number; + static MISSING_COMMA: number; + static MISSING_COLON: number; + static INVALID_BAREWORD: number; + static EMPTY_MEMBER_NAME: number; + static INVALID_DATA: number; + static UNKNOWN: number; + // Members + quark(): GLib.Quark; +} +export class PathError extends GLib.Error { + constructor(copy: PathError); + // Properties + static QUERY: number; + // Members + quark(): GLib.Quark; +} +export class ReaderError extends GLib.Error { + constructor(copy: ReaderError); + // Properties + static NO_ARRAY: number; + static INVALID_INDEX: number; + static NO_OBJECT: number; + static INVALID_MEMBER: number; + static INVALID_NODE: number; + static NO_VALUE: number; + static INVALID_TYPE: number; + // Members + quark(): GLib.Quark; +} +export module Builder { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + immutable: boolean; + } +} +export class Builder extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + immutable: boolean; + // Constructors + static ["new"](): Builder; + static new_immutable(): Builder; + // Members + add_boolean_value(value: boolean): Builder | null; + add_double_value(value: number): Builder | null; + add_int_value(value: number): Builder | null; + add_null_value(): Builder | null; + add_string_value(value: string): Builder | null; + add_value(node: Node): Builder | null; + begin_array(): Builder | null; + begin_object(): Builder | null; + end_array(): Builder | null; + end_object(): Builder | null; + get_root(): Node | null; + reset(): void; + set_member_name(member_name: string): Builder | null; +} +export module Generator { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + indent: number; + indent_char: number; + pretty: boolean; + root: Node; + } +} +export class Generator extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + indent: number; + indent_char: number; + pretty: boolean; + root: Node; + // Constructors + static ["new"](): Generator; + // Members + get_indent(): number; + get_indent_char(): number; + get_pretty(): boolean; + get_root(): Node | null; + set_indent(indent_level: number): void; + set_indent_char(indent_char: number): void; + set_pretty(is_pretty: boolean): void; + set_root(node: Node): void; + to_data(): [string, number]; + to_file(filename: string): boolean; + to_gstring(string: GLib.String): GLib.String; + to_stream(stream: Gio.OutputStream, cancellable: Gio.Cancellable | null): boolean; +} +export module Parser { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + immutable: boolean; + } +} +export class Parser extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + immutable: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'array-element', callback: (_source: this, array: Array, index_: number) => void): number; + connect_after(signal: 'array-element', callback: (_source: this, array: Array, index_: number) => void): number; + emit(signal: 'array-element', array: Array, index_: number): void; + connect(signal: 'array-end', callback: (_source: this, array: Array) => void): number; + connect_after(signal: 'array-end', callback: (_source: this, array: Array) => void): number; + emit(signal: 'array-end', array: Array): void; + connect(signal: 'array-start', callback: (_source: this) => void): number; + connect_after(signal: 'array-start', callback: (_source: this) => void): number; + emit(signal: 'array-start'): void; + connect(signal: 'error', callback: (_source: this, error: any | null) => void): number; + connect_after(signal: 'error', callback: (_source: this, error: any | null) => void): number; + emit(signal: 'error', error: any | null): void; + connect(signal: 'object-end', callback: (_source: this, object: Object) => void): number; + connect_after(signal: 'object-end', callback: (_source: this, object: Object) => void): number; + emit(signal: 'object-end', object: Object): void; + connect(signal: 'object-member', callback: (_source: this, object: Object, member_name: string) => void): number; + connect_after(signal: 'object-member', callback: (_source: this, object: Object, member_name: string) => void): number; + emit(signal: 'object-member', object: Object, member_name: string): void; + connect(signal: 'object-start', callback: (_source: this) => void): number; + connect_after(signal: 'object-start', callback: (_source: this) => void): number; + emit(signal: 'object-start'): void; + connect(signal: 'parse-end', callback: (_source: this) => void): number; + connect_after(signal: 'parse-end', callback: (_source: this) => void): number; + emit(signal: 'parse-end'): void; + connect(signal: 'parse-start', callback: (_source: this) => void): number; + connect_after(signal: 'parse-start', callback: (_source: this) => void): number; + emit(signal: 'parse-start'): void; + // Constructors + static ["new"](): Parser; + static new_immutable(): Parser; + // Members + get_current_line(): number; + get_current_pos(): number; + get_root(): Node | null; + has_assignment(): [boolean, string | null]; + load_from_data(data: string, length: number): boolean; + load_from_file(filename: string): boolean; + load_from_stream(stream: Gio.InputStream, cancellable: Gio.Cancellable | null): boolean; + load_from_stream_async(stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + load_from_stream_finish(result: Gio.AsyncResult): boolean; + steal_root(): Node | null; + vfunc_array_element(array: Array, index_: number): void; + vfunc_array_end(array: Array): void; + vfunc_array_start(): void; + vfunc_error(error: GLib.Error): void; + vfunc_object_end(object: Object): void; + vfunc_object_member(object: Object, member_name: string): void; + vfunc_object_start(): void; + vfunc_parse_end(): void; + vfunc_parse_start(): void; +} +export module Path { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Path extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): Path; + // Members + compile(expression: string): boolean; + match(root: Node): Node; + static query(expression: string, root: Node): Node; +} +export module Reader { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + root: Node; + } +} +export class Reader extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + root: Node; + // Constructors + static ["new"](node: Node | null): Reader; + // Members + count_elements(): number; + count_members(): number; + end_element(): void; + end_member(): void; + get_boolean_value(): boolean; + get_double_value(): number; + get_error(): GLib.Error | null; + get_int_value(): number; + get_member_name(): string | null; + get_null_value(): boolean; + get_string_value(): string; + get_value(): Node | null; + is_array(): boolean; + is_object(): boolean; + is_value(): boolean; + list_members(): string[]; + read_element(index_: number): boolean; + read_member(member_name: string): boolean; + set_root(root: Node | null): void; +} +export class Array { + constructor(); + constructor(copy: Array); + // Constructors + static ["new"](): Array; + static sized_new(n_elements: number): Array; + // Members + add_array_element(value: Array | null): void; + add_boolean_element(value: boolean): void; + add_double_element(value: number): void; + add_element(node: Node): void; + add_int_element(value: number): void; + add_null_element(): void; + add_object_element(value: Object): void; + add_string_element(value: string): void; + dup_element(index_: number): Node; + equal(b: Array): boolean; + foreach_element(func: ArrayForeach): void; + get_array_element(index_: number): Array; + get_boolean_element(index_: number): boolean; + get_double_element(index_: number): number; + get_element(index_: number): Node; + get_elements(): GLib.List; + get_int_element(index_: number): number; + get_length(): number; + get_null_element(index_: number): boolean; + get_object_element(index_: number): Object; + get_string_element(index_: number): string; + hash(): number; + is_immutable(): boolean; + ref(): Array; + remove_element(index_: number): void; + seal(): void; + unref(): void; +} +export class BuilderPrivate { + constructor(copy: BuilderPrivate); +} +export class GeneratorPrivate { + constructor(copy: GeneratorPrivate); +} +export class Node { + constructor(type: NodeType); + constructor(copy: Node); + // Constructors + static alloc(): Node; + static ["new"](type: NodeType): Node; + // Members + copy(): Node; + dup_array(): Array | null; + dup_object(): Object | null; + dup_string(): string | null; + equal(b: Node): boolean; + free(): void; + get_array(): Array | null; + get_boolean(): boolean; + get_double(): number; + get_int(): number; + get_node_type(): NodeType; + get_object(): Object | null; + get_parent(): Node | null; + get_string(): string | null; + get_value(): GObject.Value; + get_value_type(): GType; + hash(): number; + init(type: NodeType): Node; + init_array(array: Array | null): Node; + init_boolean(value: boolean): Node; + init_double(value: number): Node; + init_int(value: number): Node; + init_null(): Node; + init_object(object: Object | null): Node; + init_string(value: string | null): Node; + is_immutable(): boolean; + is_null(): boolean; + ref(): Node; + seal(): void; + set_array(array: Array): void; + set_boolean(value: boolean): void; + set_double(value: number): void; + set_int(value: number): void; + set_object(object: Object | null): void; + set_parent(parent: Node): void; + set_string(value: string): void; + set_value(value: (GObject.Value | string | boolean | number)): void; + take_array(array: Array): void; + take_object(object: Object): void; + type_name(): string; + unref(): void; +} +export class Object { + constructor(); + constructor(copy: Object); + // Constructors + static ["new"](): Object; + // Members + add_member(member_name: string, node: Node): void; + dup_member(member_name: string): Node | null; + equal(b: Object): boolean; + foreach_member(func: ObjectForeach): void; + get_array_member(member_name: string): Array; + get_boolean_member(member_name: string): boolean; + get_double_member(member_name: string): number; + get_int_member(member_name: string): number; + get_member(member_name: string): Node | null; + get_members(): GLib.List | null; + get_null_member(member_name: string): boolean; + get_object_member(member_name: string): Object | null; + get_size(): number; + get_string_member(member_name: string): string; + get_values(): GLib.List | null; + has_member(member_name: string): boolean; + hash(): number; + is_immutable(): boolean; + ref(): Object; + remove_member(member_name: string): void; + seal(): void; + set_array_member(member_name: string, value: Array): void; + set_boolean_member(member_name: string, value: boolean): void; + set_double_member(member_name: string, value: number): void; + set_int_member(member_name: string, value: number): void; + set_member(member_name: string, node: Node): void; + set_null_member(member_name: string): void; + set_object_member(member_name: string, value: Object): void; + set_string_member(member_name: string, value: string): void; + unref(): void; +} +export class ObjectIter { + constructor(properties?: { + priv_pointer?: any[]; + priv_int?: number[]; + priv_boolean?: boolean[]; + }); + constructor(copy: ObjectIter); + // Fields + priv_pointer: any[]; + priv_int: number[]; + priv_boolean: boolean[]; + // Members + init(object: Object): void; + next(): [boolean, string | null, Node | null]; +} +export class ParserPrivate { + constructor(copy: ParserPrivate); +} +export class ReaderPrivate { + constructor(copy: ReaderPrivate); +} +export interface SerializableNamespace { + $gtype: GType; +} +export interface Serializable extends GObject.Object { + // Members + default_deserialize_property(property_name: string, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec, property_node: Node): boolean; + default_serialize_property(property_name: string, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec): Node; + deserialize_property(property_name: string, pspec: GObject.ParamSpec, property_node: Node): [boolean, GObject.Value]; + find_property(name: string): GObject.ParamSpec | null; + get_property(pspec: GObject.ParamSpec): GObject.Value; + get_property(...args: never[]): never; + list_properties(): GObject.ParamSpec[]; + serialize_property(property_name: string, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec): Node; + set_property(pspec: GObject.ParamSpec, value: (GObject.Value | string | boolean | number)): void; + set_property(...args: never[]): never; + vfunc_deserialize_property(property_name: string, pspec: GObject.ParamSpec, property_node: Node): [boolean, GObject.Value]; + vfunc_find_property(name: string): GObject.ParamSpec | null; + vfunc_get_property(pspec: GObject.ParamSpec): GObject.Value; + vfunc_get_property(...args: never[]): never; + vfunc_serialize_property(property_name: string, value: (GObject.Value | string | boolean | number), pspec: GObject.ParamSpec): Node; + vfunc_set_property(pspec: GObject.ParamSpec, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_property(...args: never[]): never; +} + +export const Serializable: SerializableNamespace; \ No newline at end of file diff --git a/gi/nm.d.ts b/gi/nm.d.ts new file mode 100644 index 0000000..40f6745 --- /dev/null +++ b/gi/nm.d.ts @@ -0,0 +1,7061 @@ + + +/** + * NM + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +type GType = object; + +export const ACCESS_POINT_BSSID: string; + +export const ACCESS_POINT_FLAGS: string; + +export const ACCESS_POINT_FREQUENCY: string; + +export const ACCESS_POINT_HW_ADDRESS: string; + +export const ACCESS_POINT_LAST_SEEN: string; + +export const ACCESS_POINT_MAX_BITRATE: string; + +export const ACCESS_POINT_MODE: string; + +export const ACCESS_POINT_RSN_FLAGS: string; + +export const ACCESS_POINT_SSID: string; + +export const ACCESS_POINT_STRENGTH: string; + +export const ACCESS_POINT_WPA_FLAGS: string; + +export const ACTIVE_CONNECTION_CONNECTION: string; + +export const ACTIVE_CONNECTION_DEFAULT: string; + +export const ACTIVE_CONNECTION_DEFAULT6: string; + +export const ACTIVE_CONNECTION_DEVICES: string; + +export const ACTIVE_CONNECTION_DHCP4_CONFIG: string; + +export const ACTIVE_CONNECTION_DHCP6_CONFIG: string; + +export const ACTIVE_CONNECTION_ID: string; + +export const ACTIVE_CONNECTION_IP4_CONFIG: string; + +export const ACTIVE_CONNECTION_IP6_CONFIG: string; + +export const ACTIVE_CONNECTION_MASTER: string; + +export const ACTIVE_CONNECTION_SPECIFIC_OBJECT_PATH: string; + +export const ACTIVE_CONNECTION_STATE: string; + +export const ACTIVE_CONNECTION_STATE_FLAGS: string; + +export const ACTIVE_CONNECTION_TYPE: string; + +export const ACTIVE_CONNECTION_UUID: string; + +export const ACTIVE_CONNECTION_VPN: string; + +export const BRIDGE_VLAN_VID_MAX: number; + +export const BRIDGE_VLAN_VID_MIN: number; + +export const CHECKPOINT_CREATED: string; + +export const CHECKPOINT_DEVICES: string; + +export const CHECKPOINT_ROLLBACK_TIMEOUT: string; + +export const CLIENT_ACTIVATING_CONNECTION: string; + +export const CLIENT_ACTIVE_CONNECTIONS: string; + +export const CLIENT_ACTIVE_CONNECTION_ADDED: string; + +export const CLIENT_ACTIVE_CONNECTION_REMOVED: string; + +export const CLIENT_ALL_DEVICES: string; + +export const CLIENT_ANY_DEVICE_ADDED: string; + +export const CLIENT_ANY_DEVICE_REMOVED: string; + +export const CLIENT_CAN_MODIFY: string; + +export const CLIENT_CAPABILITIES: string; + +export const CLIENT_CHECKPOINTS: string; + +export const CLIENT_CONNECTIONS: string; + +export const CLIENT_CONNECTION_ADDED: string; + +export const CLIENT_CONNECTION_REMOVED: string; + +export const CLIENT_CONNECTIVITY: string; + +export const CLIENT_CONNECTIVITY_CHECK_AVAILABLE: string; + +export const CLIENT_CONNECTIVITY_CHECK_ENABLED: string; + +export const CLIENT_CONNECTIVITY_CHECK_URI: string; + +export const CLIENT_DBUS_CONNECTION: string; + +export const CLIENT_DBUS_NAME_OWNER: string; + +export const CLIENT_DEVICES: string; + +export const CLIENT_DEVICE_ADDED: string; + +export const CLIENT_DEVICE_REMOVED: string; + +export const CLIENT_DNS_CONFIGURATION: string; + +export const CLIENT_DNS_MODE: string; + +export const CLIENT_DNS_RC_MANAGER: string; + +export const CLIENT_HOSTNAME: string; + +export const CLIENT_INSTANCE_FLAGS: string; + +export const CLIENT_METERED: string; + +export const CLIENT_NETWORKING_ENABLED: string; + +export const CLIENT_NM_RUNNING: string; + +export const CLIENT_PERMISSIONS_STATE: string; + +export const CLIENT_PERMISSION_CHANGED: string; + +export const CLIENT_PRIMARY_CONNECTION: string; + +export const CLIENT_STARTUP: string; + +export const CLIENT_STATE: string; + +export const CLIENT_VERSION: string; + +export const CLIENT_WIMAX_ENABLED: string; + +export const CLIENT_WIMAX_HARDWARE_ENABLED: string; + +export const CLIENT_WIRELESS_ENABLED: string; + +export const CLIENT_WIRELESS_HARDWARE_ENABLED: string; + +export const CLIENT_WWAN_ENABLED: string; + +export const CLIENT_WWAN_HARDWARE_ENABLED: string; + +export const CONNECTION_CHANGED: string; + +export const CONNECTION_NORMALIZE_PARAM_IP6_CONFIG_METHOD: string; + +export const CONNECTION_SECRETS_CLEARED: string; + +export const CONNECTION_SECRETS_UPDATED: string; + +export const DBUS_INTERFACE: string; + +export const DBUS_INTERFACE_DNS_MANAGER: string; + +export const DBUS_INTERFACE_SETTINGS: string; + +export const DBUS_INTERFACE_SETTINGS_CONNECTION: string; + +export const DBUS_INTERFACE_SETTINGS_CONNECTION_SECRETS: string; + +export const DBUS_INTERFACE_VPN: string; + +export const DBUS_INTERFACE_VPN_CONNECTION: string; + +export const DBUS_INVALID_VPN_CONNECTION: string; + +export const DBUS_NO_ACTIVE_VPN_CONNECTION: string; + +export const DBUS_NO_VPN_CONNECTIONS: string; + +export const DBUS_PATH: string; + +export const DBUS_PATH_AGENT_MANAGER: string; + +export const DBUS_PATH_DNS_MANAGER: string; + +export const DBUS_PATH_SECRET_AGENT: string; + +export const DBUS_PATH_SETTINGS: string; + +export const DBUS_PATH_SETTINGS_CONNECTION: string; + +export const DBUS_PATH_VPN: string; + +export const DBUS_PATH_VPN_CONNECTION: string; + +export const DBUS_SERVICE: string; + +export const DBUS_VPN_ALREADY_STARTED: string; + +export const DBUS_VPN_ALREADY_STOPPED: string; + +export const DBUS_VPN_BAD_ARGUMENTS: string; + +export const DBUS_VPN_ERROR_PREFIX: string; + +export const DBUS_VPN_INTERACTIVE_NOT_SUPPORTED: string; + +export const DBUS_VPN_SIGNAL_CONNECT_FAILED: string; + +export const DBUS_VPN_SIGNAL_IP4_CONFIG: string; + +export const DBUS_VPN_SIGNAL_IP_CONFIG_BAD: string; + +export const DBUS_VPN_SIGNAL_LAUNCH_FAILED: string; + +export const DBUS_VPN_SIGNAL_LOGIN_BANNER: string; + +export const DBUS_VPN_SIGNAL_LOGIN_FAILED: string; + +export const DBUS_VPN_SIGNAL_STATE_CHANGE: string; + +export const DBUS_VPN_SIGNAL_VPN_CONFIG_BAD: string; + +export const DBUS_VPN_STARTING_IN_PROGRESS: string; + +export const DBUS_VPN_STOPPING_IN_PROGRESS: string; + +export const DBUS_VPN_WRONG_STATE: string; + +export const DEVICE_6LOWPAN_HW_ADDRESS: string; + +export const DEVICE_6LOWPAN_PARENT: string; + +export const DEVICE_ACTIVE_CONNECTION: string; + +export const DEVICE_ADSL_CARRIER: string; + +export const DEVICE_AUTOCONNECT: string; + +export const DEVICE_AVAILABLE_CONNECTIONS: string; + +export const DEVICE_BOND_CARRIER: string; + +export const DEVICE_BOND_HW_ADDRESS: string; + +export const DEVICE_BOND_SLAVES: string; + +export const DEVICE_BRIDGE_CARRIER: string; + +export const DEVICE_BRIDGE_HW_ADDRESS: string; + +export const DEVICE_BRIDGE_SLAVES: string; + +export const DEVICE_BT_CAPABILITIES: string; + +export const DEVICE_BT_HW_ADDRESS: string; + +export const DEVICE_BT_NAME: string; + +export const DEVICE_CAPABILITIES: string; + +export const DEVICE_DEVICE_TYPE: string; + +export const DEVICE_DHCP4_CONFIG: string; + +export const DEVICE_DHCP6_CONFIG: string; + +export const DEVICE_DRIVER: string; + +export const DEVICE_DRIVER_VERSION: string; + +export const DEVICE_DUMMY_HW_ADDRESS: string; + +export const DEVICE_ETHERNET_CARRIER: string; + +export const DEVICE_ETHERNET_HW_ADDRESS: string; + +export const DEVICE_ETHERNET_PERMANENT_HW_ADDRESS: string; + +export const DEVICE_ETHERNET_S390_SUBCHANNELS: string; + +export const DEVICE_ETHERNET_SPEED: string; + +export const DEVICE_FIRMWARE_MISSING: string; + +export const DEVICE_FIRMWARE_VERSION: string; + +export const DEVICE_GENERIC_HW_ADDRESS: string; + +export const DEVICE_GENERIC_TYPE_DESCRIPTION: string; + +export const DEVICE_HW_ADDRESS: string; + +export const DEVICE_INFINIBAND_CARRIER: string; + +export const DEVICE_INFINIBAND_HW_ADDRESS: string; + +export const DEVICE_INTERFACE: string; + +export const DEVICE_INTERFACE_FLAGS: string; + +export const DEVICE_IP4_CONFIG: string; + +export const DEVICE_IP4_CONNECTIVITY: string; + +export const DEVICE_IP6_CONFIG: string; + +export const DEVICE_IP6_CONNECTIVITY: string; + +export const DEVICE_IP_INTERFACE: string; + +export const DEVICE_IP_TUNNEL_ENCAPSULATION_LIMIT: string; + +export const DEVICE_IP_TUNNEL_FLAGS: string; + +export const DEVICE_IP_TUNNEL_FLOW_LABEL: string; + +export const DEVICE_IP_TUNNEL_INPUT_KEY: string; + +export const DEVICE_IP_TUNNEL_LOCAL: string; + +export const DEVICE_IP_TUNNEL_MODE: string; + +export const DEVICE_IP_TUNNEL_OUTPUT_KEY: string; + +export const DEVICE_IP_TUNNEL_PARENT: string; + +export const DEVICE_IP_TUNNEL_PATH_MTU_DISCOVERY: string; + +export const DEVICE_IP_TUNNEL_REMOTE: string; + +export const DEVICE_IP_TUNNEL_TOS: string; + +export const DEVICE_IP_TUNNEL_TTL: string; + +export const DEVICE_LLDP_NEIGHBORS: string; + +export const DEVICE_MACSEC_CIPHER_SUITE: string; + +export const DEVICE_MACSEC_ENCODING_SA: string; + +export const DEVICE_MACSEC_ENCRYPT: string; + +export const DEVICE_MACSEC_ES: string; + +export const DEVICE_MACSEC_HW_ADDRESS: string; + +export const DEVICE_MACSEC_ICV_LENGTH: string; + +export const DEVICE_MACSEC_INCLUDE_SCI: string; + +export const DEVICE_MACSEC_PARENT: string; + +export const DEVICE_MACSEC_PROTECT: string; + +export const DEVICE_MACSEC_REPLAY_PROTECT: string; + +export const DEVICE_MACSEC_SCB: string; + +export const DEVICE_MACSEC_SCI: string; + +export const DEVICE_MACSEC_VALIDATION: string; + +export const DEVICE_MACSEC_WINDOW: string; + +export const DEVICE_MACVLAN_HW_ADDRESS: string; + +export const DEVICE_MACVLAN_MODE: string; + +export const DEVICE_MACVLAN_NO_PROMISC: string; + +export const DEVICE_MACVLAN_PARENT: string; + +export const DEVICE_MACVLAN_TAP: string; + +export const DEVICE_MANAGED: string; + +export const DEVICE_METERED: string; + +export const DEVICE_MODEM_APN: string; + +export const DEVICE_MODEM_CURRENT_CAPABILITIES: string; + +export const DEVICE_MODEM_DEVICE_ID: string; + +export const DEVICE_MODEM_MODEM_CAPABILITIES: string; + +export const DEVICE_MODEM_OPERATOR_CODE: string; + +export const DEVICE_MTU: string; + +export const DEVICE_NM_PLUGIN_MISSING: string; + +export const DEVICE_OLPC_MESH_ACTIVE_CHANNEL: string; + +export const DEVICE_OLPC_MESH_COMPANION: string; + +export const DEVICE_OLPC_MESH_HW_ADDRESS: string; + +export const DEVICE_OVS_BRIDGE_SLAVES: string; + +export const DEVICE_OVS_PORT_SLAVES: string; + +export const DEVICE_PHYSICAL_PORT_ID: string; + +export const DEVICE_PRODUCT: string; + +export const DEVICE_REAL: string; + +export const DEVICE_STATE: string; + +export const DEVICE_STATE_REASON: string; + +export const DEVICE_TEAM_CARRIER: string; + +export const DEVICE_TEAM_CONFIG: string; + +export const DEVICE_TEAM_HW_ADDRESS: string; + +export const DEVICE_TEAM_SLAVES: string; + +export const DEVICE_TUN_GROUP: string; + +export const DEVICE_TUN_HW_ADDRESS: string; + +export const DEVICE_TUN_MODE: string; + +export const DEVICE_TUN_MULTI_QUEUE: string; + +export const DEVICE_TUN_NO_PI: string; + +export const DEVICE_TUN_OWNER: string; + +export const DEVICE_TUN_VNET_HDR: string; + +export const DEVICE_UDI: string; + +export const DEVICE_VENDOR: string; + +export const DEVICE_VLAN_CARRIER: string; + +export const DEVICE_VLAN_HW_ADDRESS: string; + +export const DEVICE_VLAN_PARENT: string; + +export const DEVICE_VLAN_VLAN_ID: string; + +export const DEVICE_VRF_TABLE: string; + +export const DEVICE_VXLAN_AGEING: string; + +export const DEVICE_VXLAN_CARRIER: string; + +export const DEVICE_VXLAN_DST_PORT: string; + +export const DEVICE_VXLAN_GROUP: string; + +export const DEVICE_VXLAN_HW_ADDRESS: string; + +export const DEVICE_VXLAN_ID: string; + +export const DEVICE_VXLAN_L2MISS: string; + +export const DEVICE_VXLAN_L3MISS: string; + +export const DEVICE_VXLAN_LEARNING: string; + +export const DEVICE_VXLAN_LIMIT: string; + +export const DEVICE_VXLAN_LOCAL: string; + +export const DEVICE_VXLAN_PARENT: string; + +export const DEVICE_VXLAN_PROXY: string; + +export const DEVICE_VXLAN_RSC: string; + +export const DEVICE_VXLAN_SRC_PORT_MAX: string; + +export const DEVICE_VXLAN_SRC_PORT_MIN: string; + +export const DEVICE_VXLAN_TOS: string; + +export const DEVICE_VXLAN_TTL: string; + +export const DEVICE_WIFI_ACCESS_POINTS: string; + +export const DEVICE_WIFI_ACTIVE_ACCESS_POINT: string; + +export const DEVICE_WIFI_BITRATE: string; + +export const DEVICE_WIFI_CAPABILITIES: string; + +export const DEVICE_WIFI_HW_ADDRESS: string; + +export const DEVICE_WIFI_LAST_SCAN: string; + +export const DEVICE_WIFI_MODE: string; + +export const DEVICE_WIFI_P2P_HW_ADDRESS: string; + +export const DEVICE_WIFI_P2P_PEERS: string; + +export const DEVICE_WIFI_P2P_WFDIES: string; + +export const DEVICE_WIFI_PERMANENT_HW_ADDRESS: string; + +export const DEVICE_WIMAX_ACTIVE_NSP: string; + +export const DEVICE_WIMAX_BSID: string; + +export const DEVICE_WIMAX_CENTER_FREQUENCY: string; + +export const DEVICE_WIMAX_CINR: string; + +export const DEVICE_WIMAX_HW_ADDRESS: string; + +export const DEVICE_WIMAX_NSPS: string; + +export const DEVICE_WIMAX_RSSI: string; + +export const DEVICE_WIMAX_TX_POWER: string; + +export const DEVICE_WIREGUARD_FWMARK: string; + +export const DEVICE_WIREGUARD_LISTEN_PORT: string; + +export const DEVICE_WIREGUARD_PUBLIC_KEY: string; + +export const DEVICE_WPAN_HW_ADDRESS: string; + +export const DHCP_CONFIG_FAMILY: string; + +export const DHCP_CONFIG_OPTIONS: string; + +export const ETHTOOL_OPTNAME_FEATURE_ESP_HW_OFFLOAD: string; + +export const ETHTOOL_OPTNAME_FEATURE_ESP_TX_CSUM_HW_OFFLOAD: string; + +export const ETHTOOL_OPTNAME_FEATURE_FCOE_MTU: string; + +export const ETHTOOL_OPTNAME_FEATURE_GRO: string; + +export const ETHTOOL_OPTNAME_FEATURE_GSO: string; + +export const ETHTOOL_OPTNAME_FEATURE_HIGHDMA: string; + +export const ETHTOOL_OPTNAME_FEATURE_HW_TC_OFFLOAD: string; + +export const ETHTOOL_OPTNAME_FEATURE_L2_FWD_OFFLOAD: string; + +export const ETHTOOL_OPTNAME_FEATURE_LOOPBACK: string; + +export const ETHTOOL_OPTNAME_FEATURE_LRO: string; + +export const ETHTOOL_OPTNAME_FEATURE_NTUPLE: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX: string; + +export const ETHTOOL_OPTNAME_FEATURE_RXHASH: string; + +export const ETHTOOL_OPTNAME_FEATURE_RXVLAN: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX_ALL: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX_FCS: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX_GRO_HW: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX_UDP_TUNNEL_PORT_OFFLOAD: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX_VLAN_FILTER: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX_VLAN_STAG_FILTER: string; + +export const ETHTOOL_OPTNAME_FEATURE_RX_VLAN_STAG_HW_PARSE: string; + +export const ETHTOOL_OPTNAME_FEATURE_SG: string; + +export const ETHTOOL_OPTNAME_FEATURE_TLS_HW_RECORD: string; + +export const ETHTOOL_OPTNAME_FEATURE_TLS_HW_TX_OFFLOAD: string; + +export const ETHTOOL_OPTNAME_FEATURE_TSO: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX: string; + +export const ETHTOOL_OPTNAME_FEATURE_TXVLAN: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_FCOE_CRC: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IPV4: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IPV6: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IP_GENERIC: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_SCTP: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_ESP_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_FCOE_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_GRE_CSUM_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_GRE_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_GSO_PARTIAL: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_GSO_ROBUST: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_IPXIP4_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_IPXIP6_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_NOCACHE_COPY: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_SCATTER_GATHER: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_SCATTER_GATHER_FRAGLIST: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_SCTP_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_TCP6_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_TCP_ECN_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_TCP_MANGLEID_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_TCP_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_UDP_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_UDP_TNL_CSUM_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_UDP_TNL_SEGMENTATION: string; + +export const ETHTOOL_OPTNAME_FEATURE_TX_VLAN_STAG_HW_INSERT: string; + +export const IP_ADDRESS_ATTRIBUTE_LABEL: string; + +export const IP_CONFIG_ADDRESSES: string; + +export const IP_CONFIG_DOMAINS: string; + +export const IP_CONFIG_FAMILY: string; + +export const IP_CONFIG_GATEWAY: string; + +export const IP_CONFIG_NAMESERVERS: string; + +export const IP_CONFIG_ROUTES: string; + +export const IP_CONFIG_SEARCHES: string; + +export const IP_CONFIG_WINS_SERVERS: string; + +export const IP_ROUTE_ATTRIBUTE_CWND: string; + +export const IP_ROUTE_ATTRIBUTE_FROM: string; + +export const IP_ROUTE_ATTRIBUTE_INITCWND: string; + +export const IP_ROUTE_ATTRIBUTE_INITRWND: string; + +export const IP_ROUTE_ATTRIBUTE_LOCK_CWND: string; + +export const IP_ROUTE_ATTRIBUTE_LOCK_INITCWND: string; + +export const IP_ROUTE_ATTRIBUTE_LOCK_INITRWND: string; + +export const IP_ROUTE_ATTRIBUTE_LOCK_MTU: string; + +export const IP_ROUTE_ATTRIBUTE_LOCK_WINDOW: string; + +export const IP_ROUTE_ATTRIBUTE_MTU: string; + +export const IP_ROUTE_ATTRIBUTE_ONLINK: string; + +export const IP_ROUTE_ATTRIBUTE_SCOPE: string; + +export const IP_ROUTE_ATTRIBUTE_SRC: string; + +export const IP_ROUTE_ATTRIBUTE_TABLE: string; + +export const IP_ROUTE_ATTRIBUTE_TOS: string; + +export const IP_ROUTE_ATTRIBUTE_WINDOW: string; + +export const LLDP_ATTR_CHASSIS_ID: string; + +export const LLDP_ATTR_CHASSIS_ID_TYPE: string; + +export const LLDP_ATTR_DESTINATION: string; + +export const LLDP_ATTR_IEEE_802_1_PPVID: string; + +export const LLDP_ATTR_IEEE_802_1_PPVIDS: string; + +export const LLDP_ATTR_IEEE_802_1_PPVID_FLAGS: string; + +export const LLDP_ATTR_IEEE_802_1_PVID: string; + +export const LLDP_ATTR_IEEE_802_1_VID: string; + +export const LLDP_ATTR_IEEE_802_1_VLANS: string; + +export const LLDP_ATTR_IEEE_802_1_VLAN_NAME: string; + +export const LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF: string; + +export const LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE: string; + +export const LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI: string; + +export const LLDP_ATTR_MANAGEMENT_ADDRESSES: string; + +export const LLDP_ATTR_PORT_DESCRIPTION: string; + +export const LLDP_ATTR_PORT_ID: string; + +export const LLDP_ATTR_PORT_ID_TYPE: string; + +export const LLDP_ATTR_SYSTEM_CAPABILITIES: string; + +export const LLDP_ATTR_SYSTEM_DESCRIPTION: string; + +export const LLDP_ATTR_SYSTEM_NAME: string; + +export const LLDP_DEST_NEAREST_BRIDGE: string; + +export const LLDP_DEST_NEAREST_CUSTOMER_BRIDGE: string; + +export const LLDP_DEST_NEAREST_NON_TPMR_BRIDGE: string; + +export const MAJOR_VERSION: number; + +export const MICRO_VERSION: number; + +export const MINOR_VERSION: number; + +export const OBJECT_PATH: string; + +export const REMOTE_CONNECTION_DBUS_CONNECTION: string; + +export const REMOTE_CONNECTION_FILENAME: string; + +export const REMOTE_CONNECTION_FLAGS: string; + +export const REMOTE_CONNECTION_PATH: string; + +export const REMOTE_CONNECTION_UNSAVED: string; + +export const REMOTE_CONNECTION_VISIBLE: string; + +export const SECRET_AGENT_OLD_AUTO_REGISTER: string; + +export const SECRET_AGENT_OLD_CAPABILITIES: string; + +export const SECRET_AGENT_OLD_DBUS_CONNECTION: string; + +export const SECRET_AGENT_OLD_IDENTIFIER: string; + +export const SECRET_AGENT_OLD_REGISTERED: string; + +export const SETTING_6LOWPAN_PARENT: string; + +export const SETTING_6LOWPAN_SETTING_NAME: string; + +export const SETTING_802_1X_ALTSUBJECT_MATCHES: string; + +export const SETTING_802_1X_ANONYMOUS_IDENTITY: string; + +export const SETTING_802_1X_AUTH_TIMEOUT: string; + +export const SETTING_802_1X_CA_CERT: string; + +export const SETTING_802_1X_CA_CERT_PASSWORD: string; + +export const SETTING_802_1X_CA_CERT_PASSWORD_FLAGS: string; + +export const SETTING_802_1X_CA_PATH: string; + +export const SETTING_802_1X_CERT_SCHEME_PREFIX_PATH: string; + +export const SETTING_802_1X_CERT_SCHEME_PREFIX_PKCS11: string; + +export const SETTING_802_1X_CLIENT_CERT: string; + +export const SETTING_802_1X_CLIENT_CERT_PASSWORD: string; + +export const SETTING_802_1X_CLIENT_CERT_PASSWORD_FLAGS: string; + +export const SETTING_802_1X_DOMAIN_MATCH: string; + +export const SETTING_802_1X_DOMAIN_SUFFIX_MATCH: string; + +export const SETTING_802_1X_EAP: string; + +export const SETTING_802_1X_IDENTITY: string; + +export const SETTING_802_1X_OPTIONAL: string; + +export const SETTING_802_1X_PAC_FILE: string; + +export const SETTING_802_1X_PASSWORD: string; + +export const SETTING_802_1X_PASSWORD_FLAGS: string; + +export const SETTING_802_1X_PASSWORD_RAW: string; + +export const SETTING_802_1X_PASSWORD_RAW_FLAGS: string; + +export const SETTING_802_1X_PHASE1_AUTH_FLAGS: string; + +export const SETTING_802_1X_PHASE1_FAST_PROVISIONING: string; + +export const SETTING_802_1X_PHASE1_PEAPLABEL: string; + +export const SETTING_802_1X_PHASE1_PEAPVER: string; + +export const SETTING_802_1X_PHASE2_ALTSUBJECT_MATCHES: string; + +export const SETTING_802_1X_PHASE2_AUTH: string; + +export const SETTING_802_1X_PHASE2_AUTHEAP: string; + +export const SETTING_802_1X_PHASE2_CA_CERT: string; + +export const SETTING_802_1X_PHASE2_CA_CERT_PASSWORD: string; + +export const SETTING_802_1X_PHASE2_CA_CERT_PASSWORD_FLAGS: string; + +export const SETTING_802_1X_PHASE2_CA_PATH: string; + +export const SETTING_802_1X_PHASE2_CLIENT_CERT: string; + +export const SETTING_802_1X_PHASE2_CLIENT_CERT_PASSWORD: string; + +export const SETTING_802_1X_PHASE2_CLIENT_CERT_PASSWORD_FLAGS: string; + +export const SETTING_802_1X_PHASE2_DOMAIN_MATCH: string; + +export const SETTING_802_1X_PHASE2_DOMAIN_SUFFIX_MATCH: string; + +export const SETTING_802_1X_PHASE2_PRIVATE_KEY: string; + +export const SETTING_802_1X_PHASE2_PRIVATE_KEY_PASSWORD: string; + +export const SETTING_802_1X_PHASE2_PRIVATE_KEY_PASSWORD_FLAGS: string; + +export const SETTING_802_1X_PHASE2_SUBJECT_MATCH: string; + +export const SETTING_802_1X_PIN: string; + +export const SETTING_802_1X_PIN_FLAGS: string; + +export const SETTING_802_1X_PRIVATE_KEY: string; + +export const SETTING_802_1X_PRIVATE_KEY_PASSWORD: string; + +export const SETTING_802_1X_PRIVATE_KEY_PASSWORD_FLAGS: string; + +export const SETTING_802_1X_SETTING_NAME: string; + +export const SETTING_802_1X_SUBJECT_MATCH: string; + +export const SETTING_802_1X_SYSTEM_CA_CERTS: string; + +export const SETTING_ADSL_ENCAPSULATION: string; + +export const SETTING_ADSL_ENCAPSULATION_LLC: string; + +export const SETTING_ADSL_ENCAPSULATION_VCMUX: string; + +export const SETTING_ADSL_PASSWORD: string; + +export const SETTING_ADSL_PASSWORD_FLAGS: string; + +export const SETTING_ADSL_PROTOCOL: string; + +export const SETTING_ADSL_PROTOCOL_IPOATM: string; + +export const SETTING_ADSL_PROTOCOL_PPPOA: string; + +export const SETTING_ADSL_PROTOCOL_PPPOE: string; + +export const SETTING_ADSL_SETTING_NAME: string; + +export const SETTING_ADSL_USERNAME: string; + +export const SETTING_ADSL_VCI: string; + +export const SETTING_ADSL_VPI: string; + +export const SETTING_BLUETOOTH_BDADDR: string; + +export const SETTING_BLUETOOTH_SETTING_NAME: string; + +export const SETTING_BLUETOOTH_TYPE: string; + +export const SETTING_BLUETOOTH_TYPE_DUN: string; + +export const SETTING_BLUETOOTH_TYPE_NAP: string; + +export const SETTING_BLUETOOTH_TYPE_PANU: string; + +export const SETTING_BOND_OPTIONS: string; + +export const SETTING_BOND_OPTION_ACTIVE_SLAVE: string; + +export const SETTING_BOND_OPTION_AD_ACTOR_SYSTEM: string; + +export const SETTING_BOND_OPTION_AD_ACTOR_SYS_PRIO: string; + +export const SETTING_BOND_OPTION_AD_SELECT: string; + +export const SETTING_BOND_OPTION_AD_USER_PORT_KEY: string; + +export const SETTING_BOND_OPTION_ALL_SLAVES_ACTIVE: string; + +export const SETTING_BOND_OPTION_ARP_ALL_TARGETS: string; + +export const SETTING_BOND_OPTION_ARP_INTERVAL: string; + +export const SETTING_BOND_OPTION_ARP_IP_TARGET: string; + +export const SETTING_BOND_OPTION_ARP_VALIDATE: string; + +export const SETTING_BOND_OPTION_DOWNDELAY: string; + +export const SETTING_BOND_OPTION_FAIL_OVER_MAC: string; + +export const SETTING_BOND_OPTION_LACP_RATE: string; + +export const SETTING_BOND_OPTION_LP_INTERVAL: string; + +export const SETTING_BOND_OPTION_MIIMON: string; + +export const SETTING_BOND_OPTION_MIN_LINKS: string; + +export const SETTING_BOND_OPTION_MODE: string; + +export const SETTING_BOND_OPTION_NUM_GRAT_ARP: string; + +export const SETTING_BOND_OPTION_NUM_UNSOL_NA: string; + +export const SETTING_BOND_OPTION_PACKETS_PER_SLAVE: string; + +export const SETTING_BOND_OPTION_PRIMARY: string; + +export const SETTING_BOND_OPTION_PRIMARY_RESELECT: string; + +export const SETTING_BOND_OPTION_RESEND_IGMP: string; + +export const SETTING_BOND_OPTION_TLB_DYNAMIC_LB: string; + +export const SETTING_BOND_OPTION_UPDELAY: string; + +export const SETTING_BOND_OPTION_USE_CARRIER: string; + +export const SETTING_BOND_OPTION_XMIT_HASH_POLICY: string; + +export const SETTING_BOND_SETTING_NAME: string; + +export const SETTING_BRIDGE_AGEING_TIME: string; + +export const SETTING_BRIDGE_FORWARD_DELAY: string; + +export const SETTING_BRIDGE_GROUP_ADDRESS: string; + +export const SETTING_BRIDGE_GROUP_FORWARD_MASK: string; + +export const SETTING_BRIDGE_HELLO_TIME: string; + +export const SETTING_BRIDGE_MAC_ADDRESS: string; + +export const SETTING_BRIDGE_MAX_AGE: string; + +export const SETTING_BRIDGE_MULTICAST_QUERIER: string; + +export const SETTING_BRIDGE_MULTICAST_QUERY_USE_IFADDR: string; + +export const SETTING_BRIDGE_MULTICAST_ROUTER: string; + +export const SETTING_BRIDGE_MULTICAST_SNOOPING: string; + +export const SETTING_BRIDGE_PORT_HAIRPIN_MODE: string; + +export const SETTING_BRIDGE_PORT_PATH_COST: string; + +export const SETTING_BRIDGE_PORT_PRIORITY: string; + +export const SETTING_BRIDGE_PORT_SETTING_NAME: string; + +export const SETTING_BRIDGE_PORT_VLANS: string; + +export const SETTING_BRIDGE_PRIORITY: string; + +export const SETTING_BRIDGE_SETTING_NAME: string; + +export const SETTING_BRIDGE_STP: string; + +export const SETTING_BRIDGE_VLANS: string; + +export const SETTING_BRIDGE_VLAN_DEFAULT_PVID: string; + +export const SETTING_BRIDGE_VLAN_FILTERING: string; + +export const SETTING_BRIDGE_VLAN_PROTOCOL: string; + +export const SETTING_BRIDGE_VLAN_STATS_ENABLED: string; + +export const SETTING_CDMA_MTU: string; + +export const SETTING_CDMA_NUMBER: string; + +export const SETTING_CDMA_PASSWORD: string; + +export const SETTING_CDMA_PASSWORD_FLAGS: string; + +export const SETTING_CDMA_SETTING_NAME: string; + +export const SETTING_CDMA_USERNAME: string; + +export const SETTING_CONNECTION_AUTH_RETRIES: string; + +export const SETTING_CONNECTION_AUTOCONNECT: string; + +export const SETTING_CONNECTION_AUTOCONNECT_PRIORITY: string; + +export const SETTING_CONNECTION_AUTOCONNECT_PRIORITY_DEFAULT: number; + +export const SETTING_CONNECTION_AUTOCONNECT_PRIORITY_MAX: number; + +export const SETTING_CONNECTION_AUTOCONNECT_PRIORITY_MIN: number; + +export const SETTING_CONNECTION_AUTOCONNECT_RETRIES: string; + +export const SETTING_CONNECTION_AUTOCONNECT_SLAVES: string; + +export const SETTING_CONNECTION_GATEWAY_PING_TIMEOUT: string; + +export const SETTING_CONNECTION_ID: string; + +export const SETTING_CONNECTION_INTERFACE_NAME: string; + +export const SETTING_CONNECTION_LLDP: string; + +export const SETTING_CONNECTION_LLMNR: string; + +export const SETTING_CONNECTION_MASTER: string; + +export const SETTING_CONNECTION_MDNS: string; + +export const SETTING_CONNECTION_METERED: string; + +export const SETTING_CONNECTION_MULTI_CONNECT: string; + +export const SETTING_CONNECTION_PERMISSIONS: string; + +export const SETTING_CONNECTION_READ_ONLY: string; + +export const SETTING_CONNECTION_SECONDARIES: string; + +export const SETTING_CONNECTION_SETTING_NAME: string; + +export const SETTING_CONNECTION_SLAVE_TYPE: string; + +export const SETTING_CONNECTION_STABLE_ID: string; + +export const SETTING_CONNECTION_TIMESTAMP: string; + +export const SETTING_CONNECTION_TYPE: string; + +export const SETTING_CONNECTION_UUID: string; + +export const SETTING_CONNECTION_WAIT_DEVICE_TIMEOUT: string; + +export const SETTING_CONNECTION_ZONE: string; + +export const SETTING_DCB_APP_FCOE_FLAGS: string; + +export const SETTING_DCB_APP_FCOE_MODE: string; + +export const SETTING_DCB_APP_FCOE_PRIORITY: string; + +export const SETTING_DCB_APP_FIP_FLAGS: string; + +export const SETTING_DCB_APP_FIP_PRIORITY: string; + +export const SETTING_DCB_APP_ISCSI_FLAGS: string; + +export const SETTING_DCB_APP_ISCSI_PRIORITY: string; + +export const SETTING_DCB_FCOE_MODE_FABRIC: string; + +export const SETTING_DCB_FCOE_MODE_VN2VN: string; + +export const SETTING_DCB_PRIORITY_BANDWIDTH: string; + +export const SETTING_DCB_PRIORITY_FLOW_CONTROL: string; + +export const SETTING_DCB_PRIORITY_FLOW_CONTROL_FLAGS: string; + +export const SETTING_DCB_PRIORITY_GROUP_BANDWIDTH: string; + +export const SETTING_DCB_PRIORITY_GROUP_FLAGS: string; + +export const SETTING_DCB_PRIORITY_GROUP_ID: string; + +export const SETTING_DCB_PRIORITY_STRICT_BANDWIDTH: string; + +export const SETTING_DCB_PRIORITY_TRAFFIC_CLASS: string; + +export const SETTING_DCB_SETTING_NAME: string; + +export const SETTING_DNS_OPTION_ATTEMPTS: string; + +export const SETTING_DNS_OPTION_DEBUG: string; + +export const SETTING_DNS_OPTION_EDNS0: string; + +export const SETTING_DNS_OPTION_INET6: string; + +export const SETTING_DNS_OPTION_IP6_BYTESTRING: string; + +export const SETTING_DNS_OPTION_IP6_DOTINT: string; + +export const SETTING_DNS_OPTION_NDOTS: string; + +export const SETTING_DNS_OPTION_NO_CHECK_NAMES: string; + +export const SETTING_DNS_OPTION_NO_IP6_DOTINT: string; + +export const SETTING_DNS_OPTION_NO_RELOAD: string; + +export const SETTING_DNS_OPTION_NO_TLD_QUERY: string; + +export const SETTING_DNS_OPTION_ROTATE: string; + +export const SETTING_DNS_OPTION_SINGLE_REQUEST: string; + +export const SETTING_DNS_OPTION_SINGLE_REQUEST_REOPEN: string; + +export const SETTING_DNS_OPTION_TIMEOUT: string; + +export const SETTING_DNS_OPTION_TRUST_AD: string; + +export const SETTING_DNS_OPTION_USE_VC: string; + +export const SETTING_DUMMY_SETTING_NAME: string; + +export const SETTING_ETHTOOL_SETTING_NAME: string; + +export const SETTING_GENERIC_SETTING_NAME: string; + +export const SETTING_GSM_APN: string; + +export const SETTING_GSM_AUTO_CONFIG: string; + +export const SETTING_GSM_DEVICE_ID: string; + +export const SETTING_GSM_HOME_ONLY: string; + +export const SETTING_GSM_MTU: string; + +export const SETTING_GSM_NETWORK_ID: string; + +export const SETTING_GSM_NUMBER: string; + +export const SETTING_GSM_PASSWORD: string; + +export const SETTING_GSM_PASSWORD_FLAGS: string; + +export const SETTING_GSM_PIN: string; + +export const SETTING_GSM_PIN_FLAGS: string; + +export const SETTING_GSM_SETTING_NAME: string; + +export const SETTING_GSM_SIM_ID: string; + +export const SETTING_GSM_SIM_OPERATOR_ID: string; + +export const SETTING_GSM_USERNAME: string; + +export const SETTING_INFINIBAND_MAC_ADDRESS: string; + +export const SETTING_INFINIBAND_MTU: string; + +export const SETTING_INFINIBAND_PARENT: string; + +export const SETTING_INFINIBAND_P_KEY: string; + +export const SETTING_INFINIBAND_SETTING_NAME: string; + +export const SETTING_INFINIBAND_TRANSPORT_MODE: string; + +export const SETTING_IP4_CONFIG_DHCP_CLIENT_ID: string; + +export const SETTING_IP4_CONFIG_DHCP_FQDN: string; + +export const SETTING_IP4_CONFIG_METHOD_AUTO: string; + +export const SETTING_IP4_CONFIG_METHOD_DISABLED: string; + +export const SETTING_IP4_CONFIG_METHOD_LINK_LOCAL: string; + +export const SETTING_IP4_CONFIG_METHOD_MANUAL: string; + +export const SETTING_IP4_CONFIG_METHOD_SHARED: string; + +export const SETTING_IP4_CONFIG_SETTING_NAME: string; + +export const SETTING_IP6_CONFIG_ADDR_GEN_MODE: string; + +export const SETTING_IP6_CONFIG_DHCP_DUID: string; + +export const SETTING_IP6_CONFIG_IP6_PRIVACY: string; + +export const SETTING_IP6_CONFIG_METHOD_AUTO: string; + +export const SETTING_IP6_CONFIG_METHOD_DHCP: string; + +export const SETTING_IP6_CONFIG_METHOD_DISABLED: string; + +export const SETTING_IP6_CONFIG_METHOD_IGNORE: string; + +export const SETTING_IP6_CONFIG_METHOD_LINK_LOCAL: string; + +export const SETTING_IP6_CONFIG_METHOD_MANUAL: string; + +export const SETTING_IP6_CONFIG_METHOD_SHARED: string; + +export const SETTING_IP6_CONFIG_RA_TIMEOUT: string; + +export const SETTING_IP6_CONFIG_SETTING_NAME: string; + +export const SETTING_IP6_CONFIG_TOKEN: string; + +export const SETTING_IP_CONFIG_ADDRESSES: string; + +export const SETTING_IP_CONFIG_DAD_TIMEOUT: string; + +export const SETTING_IP_CONFIG_DAD_TIMEOUT_MAX: number; + +export const SETTING_IP_CONFIG_DHCP_HOSTNAME: string; + +export const SETTING_IP_CONFIG_DHCP_HOSTNAME_FLAGS: string; + +export const SETTING_IP_CONFIG_DHCP_IAID: string; + +export const SETTING_IP_CONFIG_DHCP_SEND_HOSTNAME: string; + +export const SETTING_IP_CONFIG_DHCP_TIMEOUT: string; + +export const SETTING_IP_CONFIG_DNS: string; + +export const SETTING_IP_CONFIG_DNS_OPTIONS: string; + +export const SETTING_IP_CONFIG_DNS_PRIORITY: string; + +export const SETTING_IP_CONFIG_DNS_SEARCH: string; + +export const SETTING_IP_CONFIG_GATEWAY: string; + +export const SETTING_IP_CONFIG_IGNORE_AUTO_DNS: string; + +export const SETTING_IP_CONFIG_IGNORE_AUTO_ROUTES: string; + +export const SETTING_IP_CONFIG_MAY_FAIL: string; + +export const SETTING_IP_CONFIG_METHOD: string; + +export const SETTING_IP_CONFIG_NEVER_DEFAULT: string; + +export const SETTING_IP_CONFIG_ROUTES: string; + +export const SETTING_IP_CONFIG_ROUTE_METRIC: string; + +export const SETTING_IP_CONFIG_ROUTE_TABLE: string; + +export const SETTING_IP_CONFIG_ROUTING_RULES: string; + +export const SETTING_IP_TUNNEL_ENCAPSULATION_LIMIT: string; + +export const SETTING_IP_TUNNEL_FLAGS: string; + +export const SETTING_IP_TUNNEL_FLOW_LABEL: string; + +export const SETTING_IP_TUNNEL_INPUT_KEY: string; + +export const SETTING_IP_TUNNEL_LOCAL: string; + +export const SETTING_IP_TUNNEL_MODE: string; + +export const SETTING_IP_TUNNEL_MTU: string; + +export const SETTING_IP_TUNNEL_OUTPUT_KEY: string; + +export const SETTING_IP_TUNNEL_PARENT: string; + +export const SETTING_IP_TUNNEL_PATH_MTU_DISCOVERY: string; + +export const SETTING_IP_TUNNEL_REMOTE: string; + +export const SETTING_IP_TUNNEL_SETTING_NAME: string; + +export const SETTING_IP_TUNNEL_TOS: string; + +export const SETTING_IP_TUNNEL_TTL: string; + +export const SETTING_MACSEC_ENCRYPT: string; + +export const SETTING_MACSEC_MKA_CAK: string; + +export const SETTING_MACSEC_MKA_CAK_FLAGS: string; + +export const SETTING_MACSEC_MKA_CAK_LENGTH: number; + +export const SETTING_MACSEC_MKA_CKN: string; + +export const SETTING_MACSEC_MKA_CKN_LENGTH: number; + +export const SETTING_MACSEC_MODE: string; + +export const SETTING_MACSEC_PARENT: string; + +export const SETTING_MACSEC_PORT: string; + +export const SETTING_MACSEC_SEND_SCI: string; + +export const SETTING_MACSEC_SETTING_NAME: string; + +export const SETTING_MACSEC_VALIDATION: string; + +export const SETTING_MACVLAN_MODE: string; + +export const SETTING_MACVLAN_PARENT: string; + +export const SETTING_MACVLAN_PROMISCUOUS: string; + +export const SETTING_MACVLAN_SETTING_NAME: string; + +export const SETTING_MACVLAN_TAP: string; + +export const SETTING_MATCH_INTERFACE_NAME: string; + +export const SETTING_MATCH_SETTING_NAME: string; + +export const SETTING_NAME: string; + +export const SETTING_OLPC_MESH_CHANNEL: string; + +export const SETTING_OLPC_MESH_DHCP_ANYCAST_ADDRESS: string; + +export const SETTING_OLPC_MESH_SETTING_NAME: string; + +export const SETTING_OLPC_MESH_SSID: string; + +export const SETTING_OVS_BRIDGE_DATAPATH_TYPE: string; + +export const SETTING_OVS_BRIDGE_FAIL_MODE: string; + +export const SETTING_OVS_BRIDGE_MCAST_SNOOPING_ENABLE: string; + +export const SETTING_OVS_BRIDGE_RSTP_ENABLE: string; + +export const SETTING_OVS_BRIDGE_SETTING_NAME: string; + +export const SETTING_OVS_BRIDGE_STP_ENABLE: string; + +export const SETTING_OVS_DPDK_DEVARGS: string; + +export const SETTING_OVS_DPDK_SETTING_NAME: string; + +export const SETTING_OVS_INTERFACE_SETTING_NAME: string; + +export const SETTING_OVS_INTERFACE_TYPE: string; + +export const SETTING_OVS_PATCH_PEER: string; + +export const SETTING_OVS_PATCH_SETTING_NAME: string; + +export const SETTING_OVS_PORT_BOND_DOWNDELAY: string; + +export const SETTING_OVS_PORT_BOND_MODE: string; + +export const SETTING_OVS_PORT_BOND_UPDELAY: string; + +export const SETTING_OVS_PORT_LACP: string; + +export const SETTING_OVS_PORT_SETTING_NAME: string; + +export const SETTING_OVS_PORT_TAG: string; + +export const SETTING_OVS_PORT_VLAN_MODE: string; + +export const SETTING_PARAM_FUZZY_IGNORE: number; + +export const SETTING_PARAM_REQUIRED: number; + +export const SETTING_PARAM_SECRET: number; + +export const SETTING_PPPOE_PARENT: string; + +export const SETTING_PPPOE_PASSWORD: string; + +export const SETTING_PPPOE_PASSWORD_FLAGS: string; + +export const SETTING_PPPOE_SERVICE: string; + +export const SETTING_PPPOE_SETTING_NAME: string; + +export const SETTING_PPPOE_USERNAME: string; + +export const SETTING_PPP_BAUD: string; + +export const SETTING_PPP_CRTSCTS: string; + +export const SETTING_PPP_LCP_ECHO_FAILURE: string; + +export const SETTING_PPP_LCP_ECHO_INTERVAL: string; + +export const SETTING_PPP_MPPE_STATEFUL: string; + +export const SETTING_PPP_MRU: string; + +export const SETTING_PPP_MTU: string; + +export const SETTING_PPP_NOAUTH: string; + +export const SETTING_PPP_NOBSDCOMP: string; + +export const SETTING_PPP_NODEFLATE: string; + +export const SETTING_PPP_NO_VJ_COMP: string; + +export const SETTING_PPP_REFUSE_CHAP: string; + +export const SETTING_PPP_REFUSE_EAP: string; + +export const SETTING_PPP_REFUSE_MSCHAP: string; + +export const SETTING_PPP_REFUSE_MSCHAPV2: string; + +export const SETTING_PPP_REFUSE_PAP: string; + +export const SETTING_PPP_REQUIRE_MPPE: string; + +export const SETTING_PPP_REQUIRE_MPPE_128: string; + +export const SETTING_PPP_SETTING_NAME: string; + +export const SETTING_PROXY_BROWSER_ONLY: string; + +export const SETTING_PROXY_METHOD: string; + +export const SETTING_PROXY_PAC_SCRIPT: string; + +export const SETTING_PROXY_PAC_URL: string; + +export const SETTING_PROXY_SETTING_NAME: string; + +export const SETTING_SERIAL_BAUD: string; + +export const SETTING_SERIAL_BITS: string; + +export const SETTING_SERIAL_PARITY: string; + +export const SETTING_SERIAL_SEND_DELAY: string; + +export const SETTING_SERIAL_SETTING_NAME: string; + +export const SETTING_SERIAL_STOPBITS: string; + +export const SETTING_SRIOV_AUTOPROBE_DRIVERS: string; + +export const SETTING_SRIOV_SETTING_NAME: string; + +export const SETTING_SRIOV_TOTAL_VFS: string; + +export const SETTING_SRIOV_VFS: string; + +export const SETTING_TC_CONFIG_QDISCS: string; + +export const SETTING_TC_CONFIG_SETTING_NAME: string; + +export const SETTING_TC_CONFIG_TFILTERS: string; + +export const SETTING_TEAM_CONFIG: string; + +export const SETTING_TEAM_LINK_WATCHERS: string; + +export const SETTING_TEAM_MCAST_REJOIN_COUNT: string; + +export const SETTING_TEAM_MCAST_REJOIN_INTERVAL: string; + +export const SETTING_TEAM_NOTIFY_MCAST_COUNT_ACTIVEBACKUP_DEFAULT: number; + +export const SETTING_TEAM_NOTIFY_PEERS_COUNT: string; + +export const SETTING_TEAM_NOTIFY_PEERS_COUNT_ACTIVEBACKUP_DEFAULT: number; + +export const SETTING_TEAM_NOTIFY_PEERS_INTERVAL: string; + +export const SETTING_TEAM_PORT_CONFIG: string; + +export const SETTING_TEAM_PORT_LACP_KEY: string; + +export const SETTING_TEAM_PORT_LACP_PRIO: string; + +export const SETTING_TEAM_PORT_LACP_PRIO_DEFAULT: number; + +export const SETTING_TEAM_PORT_LINK_WATCHERS: string; + +export const SETTING_TEAM_PORT_PRIO: string; + +export const SETTING_TEAM_PORT_QUEUE_ID: string; + +export const SETTING_TEAM_PORT_QUEUE_ID_DEFAULT: number; + +export const SETTING_TEAM_PORT_SETTING_NAME: string; + +export const SETTING_TEAM_PORT_STICKY: string; + +export const SETTING_TEAM_RUNNER: string; + +export const SETTING_TEAM_RUNNER_ACTIVE: string; + +export const SETTING_TEAM_RUNNER_ACTIVEBACKUP: string; + +export const SETTING_TEAM_RUNNER_AGG_SELECT_POLICY: string; + +export const SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_BANDWIDTH: string; + +export const SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_COUNT: string; + +export const SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_LACP_PRIO: string; + +export const SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_LACP_PRIO_STABLE: string; + +export const SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_PORT_CONFIG: string; + +export const SETTING_TEAM_RUNNER_BROADCAST: string; + +export const SETTING_TEAM_RUNNER_FAST_RATE: string; + +export const SETTING_TEAM_RUNNER_HWADDR_POLICY: string; + +export const SETTING_TEAM_RUNNER_HWADDR_POLICY_BY_ACTIVE: string; + +export const SETTING_TEAM_RUNNER_HWADDR_POLICY_ONLY_ACTIVE: string; + +export const SETTING_TEAM_RUNNER_HWADDR_POLICY_SAME_ALL: string; + +export const SETTING_TEAM_RUNNER_LACP: string; + +export const SETTING_TEAM_RUNNER_LOADBALANCE: string; + +export const SETTING_TEAM_RUNNER_MIN_PORTS: string; + +export const SETTING_TEAM_RUNNER_RANDOM: string; + +export const SETTING_TEAM_RUNNER_ROUNDROBIN: string; + +export const SETTING_TEAM_RUNNER_SYS_PRIO: string; + +export const SETTING_TEAM_RUNNER_SYS_PRIO_DEFAULT: number; + +export const SETTING_TEAM_RUNNER_TX_BALANCER: string; + +export const SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL: string; + +export const SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL_DEFAULT: number; + +export const SETTING_TEAM_RUNNER_TX_HASH: string; + +export const SETTING_TEAM_SETTING_NAME: string; + +export const SETTING_TUN_GROUP: string; + +export const SETTING_TUN_MODE: string; + +export const SETTING_TUN_MULTI_QUEUE: string; + +export const SETTING_TUN_OWNER: string; + +export const SETTING_TUN_PI: string; + +export const SETTING_TUN_SETTING_NAME: string; + +export const SETTING_TUN_VNET_HDR: string; + +export const SETTING_USER_DATA: string; + +export const SETTING_USER_SETTING_NAME: string; + +export const SETTING_VLAN_EGRESS_PRIORITY_MAP: string; + +export const SETTING_VLAN_FLAGS: string; + +export const SETTING_VLAN_ID: string; + +export const SETTING_VLAN_INGRESS_PRIORITY_MAP: string; + +export const SETTING_VLAN_PARENT: string; + +export const SETTING_VLAN_SETTING_NAME: string; + +export const SETTING_VPN_DATA: string; + +export const SETTING_VPN_PERSISTENT: string; + +export const SETTING_VPN_SECRETS: string; + +export const SETTING_VPN_SERVICE_TYPE: string; + +export const SETTING_VPN_SETTING_NAME: string; + +export const SETTING_VPN_TIMEOUT: string; + +export const SETTING_VPN_USER_NAME: string; + +export const SETTING_VRF_SETTING_NAME: string; + +export const SETTING_VRF_TABLE: string; + +export const SETTING_VXLAN_AGEING: string; + +export const SETTING_VXLAN_DESTINATION_PORT: string; + +export const SETTING_VXLAN_ID: string; + +export const SETTING_VXLAN_L2_MISS: string; + +export const SETTING_VXLAN_L3_MISS: string; + +export const SETTING_VXLAN_LEARNING: string; + +export const SETTING_VXLAN_LIMIT: string; + +export const SETTING_VXLAN_LOCAL: string; + +export const SETTING_VXLAN_PARENT: string; + +export const SETTING_VXLAN_PROXY: string; + +export const SETTING_VXLAN_REMOTE: string; + +export const SETTING_VXLAN_RSC: string; + +export const SETTING_VXLAN_SETTING_NAME: string; + +export const SETTING_VXLAN_SOURCE_PORT_MAX: string; + +export const SETTING_VXLAN_SOURCE_PORT_MIN: string; + +export const SETTING_VXLAN_TOS: string; + +export const SETTING_VXLAN_TTL: string; + +export const SETTING_WIFI_P2P_PEER: string; + +export const SETTING_WIFI_P2P_SETTING_NAME: string; + +export const SETTING_WIFI_P2P_WFD_IES: string; + +export const SETTING_WIFI_P2P_WPS_METHOD: string; + +export const SETTING_WIMAX_MAC_ADDRESS: string; + +export const SETTING_WIMAX_NETWORK_NAME: string; + +export const SETTING_WIMAX_SETTING_NAME: string; + +export const SETTING_WIRED_AUTO_NEGOTIATE: string; + +export const SETTING_WIRED_CLONED_MAC_ADDRESS: string; + +export const SETTING_WIRED_DUPLEX: string; + +export const SETTING_WIRED_GENERATE_MAC_ADDRESS_MASK: string; + +export const SETTING_WIRED_MAC_ADDRESS: string; + +export const SETTING_WIRED_MAC_ADDRESS_BLACKLIST: string; + +export const SETTING_WIRED_MTU: string; + +export const SETTING_WIRED_PORT: string; + +export const SETTING_WIRED_S390_NETTYPE: string; + +export const SETTING_WIRED_S390_OPTIONS: string; + +export const SETTING_WIRED_S390_SUBCHANNELS: string; + +export const SETTING_WIRED_SETTING_NAME: string; + +export const SETTING_WIRED_SPEED: string; + +export const SETTING_WIRED_WAKE_ON_LAN: string; + +export const SETTING_WIRED_WAKE_ON_LAN_PASSWORD: string; + +export const SETTING_WIREGUARD_FWMARK: string; + +export const SETTING_WIREGUARD_IP4_AUTO_DEFAULT_ROUTE: string; + +export const SETTING_WIREGUARD_IP6_AUTO_DEFAULT_ROUTE: string; + +export const SETTING_WIREGUARD_LISTEN_PORT: string; + +export const SETTING_WIREGUARD_MTU: string; + +export const SETTING_WIREGUARD_PEERS: string; + +export const SETTING_WIREGUARD_PEER_ROUTES: string; + +export const SETTING_WIREGUARD_PRIVATE_KEY: string; + +export const SETTING_WIREGUARD_PRIVATE_KEY_FLAGS: string; + +export const SETTING_WIREGUARD_SETTING_NAME: string; + +export const SETTING_WIRELESS_BAND: string; + +export const SETTING_WIRELESS_BSSID: string; + +export const SETTING_WIRELESS_CHANNEL: string; + +export const SETTING_WIRELESS_CLONED_MAC_ADDRESS: string; + +export const SETTING_WIRELESS_GENERATE_MAC_ADDRESS_MASK: string; + +export const SETTING_WIRELESS_HIDDEN: string; + +export const SETTING_WIRELESS_MAC_ADDRESS: string; + +export const SETTING_WIRELESS_MAC_ADDRESS_BLACKLIST: string; + +export const SETTING_WIRELESS_MAC_ADDRESS_RANDOMIZATION: string; + +export const SETTING_WIRELESS_MODE: string; + +export const SETTING_WIRELESS_MODE_ADHOC: string; + +export const SETTING_WIRELESS_MODE_AP: string; + +export const SETTING_WIRELESS_MODE_INFRA: string; + +export const SETTING_WIRELESS_MODE_MESH: string; + +export const SETTING_WIRELESS_MTU: string; + +export const SETTING_WIRELESS_POWERSAVE: string; + +export const SETTING_WIRELESS_RATE: string; + +export const SETTING_WIRELESS_SECURITY_AUTH_ALG: string; + +export const SETTING_WIRELESS_SECURITY_FILS: string; + +export const SETTING_WIRELESS_SECURITY_GROUP: string; + +export const SETTING_WIRELESS_SECURITY_KEY_MGMT: string; + +export const SETTING_WIRELESS_SECURITY_LEAP_PASSWORD: string; + +export const SETTING_WIRELESS_SECURITY_LEAP_PASSWORD_FLAGS: string; + +export const SETTING_WIRELESS_SECURITY_LEAP_USERNAME: string; + +export const SETTING_WIRELESS_SECURITY_PAIRWISE: string; + +export const SETTING_WIRELESS_SECURITY_PMF: string; + +export const SETTING_WIRELESS_SECURITY_PROTO: string; + +export const SETTING_WIRELESS_SECURITY_PSK: string; + +export const SETTING_WIRELESS_SECURITY_PSK_FLAGS: string; + +export const SETTING_WIRELESS_SECURITY_SETTING_NAME: string; + +export const SETTING_WIRELESS_SECURITY_WEP_KEY0: string; + +export const SETTING_WIRELESS_SECURITY_WEP_KEY1: string; + +export const SETTING_WIRELESS_SECURITY_WEP_KEY2: string; + +export const SETTING_WIRELESS_SECURITY_WEP_KEY3: string; + +export const SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS: string; + +export const SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE: string; + +export const SETTING_WIRELESS_SECURITY_WEP_TX_KEYIDX: string; + +export const SETTING_WIRELESS_SECURITY_WPS_METHOD: string; + +export const SETTING_WIRELESS_SEEN_BSSIDS: string; + +export const SETTING_WIRELESS_SETTING_NAME: string; + +export const SETTING_WIRELESS_SSID: string; + +export const SETTING_WIRELESS_TX_POWER: string; + +export const SETTING_WIRELESS_WAKE_ON_WLAN: string; + +export const SETTING_WPAN_CHANNEL: string; + +export const SETTING_WPAN_CHANNEL_DEFAULT: number; + +export const SETTING_WPAN_MAC_ADDRESS: string; + +export const SETTING_WPAN_PAGE: string; + +export const SETTING_WPAN_PAGE_DEFAULT: number; + +export const SETTING_WPAN_PAN_ID: string; + +export const SETTING_WPAN_SETTING_NAME: string; + +export const SETTING_WPAN_SHORT_ADDRESS: string; + +export const SRIOV_VF_ATTRIBUTE_MAC: string; + +export const SRIOV_VF_ATTRIBUTE_MAX_TX_RATE: string; + +export const SRIOV_VF_ATTRIBUTE_MIN_TX_RATE: string; + +export const SRIOV_VF_ATTRIBUTE_SPOOF_CHECK: string; + +export const SRIOV_VF_ATTRIBUTE_TRUST: string; + +export const TEAM_LINK_WATCHER_ARP_PING: string; + +export const TEAM_LINK_WATCHER_ETHTOOL: string; + +export const TEAM_LINK_WATCHER_NSNA_PING: string; + +export const UTILS_HWADDR_LEN_MAX: number; + +export const VLAN_FLAGS_ALL: number; + +export const VPN_CONNECTION_BANNER: string; + +export const VPN_CONNECTION_VPN_STATE: string; + +export const VPN_DBUS_PLUGIN_INTERFACE: string; + +export const VPN_DBUS_PLUGIN_PATH: string; + +export const VPN_EDITOR_PLUGIN_DESCRIPTION: string; + +export const VPN_EDITOR_PLUGIN_NAME: string; + +export const VPN_EDITOR_PLUGIN_SERVICE: string; + +export const VPN_PLUGIN_CAN_PERSIST: string; + +export const VPN_PLUGIN_CONFIG_BANNER: string; + +export const VPN_PLUGIN_CONFIG_EXT_GATEWAY: string; + +export const VPN_PLUGIN_CONFIG_HAS_IP4: string; + +export const VPN_PLUGIN_CONFIG_HAS_IP6: string; + +export const VPN_PLUGIN_CONFIG_MTU: string; + +export const VPN_PLUGIN_CONFIG_PROXY_PAC: string; + +export const VPN_PLUGIN_CONFIG_TUNDEV: string; + +export const VPN_PLUGIN_INFO_FILENAME: string; + +export const VPN_PLUGIN_INFO_KEYFILE: string; + +export const VPN_PLUGIN_INFO_KF_GROUP_CONNECTION: string; + +export const VPN_PLUGIN_INFO_KF_GROUP_GNOME: string; + +export const VPN_PLUGIN_INFO_KF_GROUP_LIBNM: string; + +export const VPN_PLUGIN_INFO_NAME: string; + +export const VPN_PLUGIN_IP4_CONFIG_ADDRESS: string; + +export const VPN_PLUGIN_IP4_CONFIG_DNS: string; + +export const VPN_PLUGIN_IP4_CONFIG_DOMAIN: string; + +export const VPN_PLUGIN_IP4_CONFIG_DOMAINS: string; + +export const VPN_PLUGIN_IP4_CONFIG_INT_GATEWAY: string; + +export const VPN_PLUGIN_IP4_CONFIG_MSS: string; + +export const VPN_PLUGIN_IP4_CONFIG_NBNS: string; + +export const VPN_PLUGIN_IP4_CONFIG_NEVER_DEFAULT: string; + +export const VPN_PLUGIN_IP4_CONFIG_PREFIX: string; + +export const VPN_PLUGIN_IP4_CONFIG_PRESERVE_ROUTES: string; + +export const VPN_PLUGIN_IP4_CONFIG_PTP: string; + +export const VPN_PLUGIN_IP4_CONFIG_ROUTES: string; + +export const VPN_PLUGIN_IP6_CONFIG_ADDRESS: string; + +export const VPN_PLUGIN_IP6_CONFIG_DNS: string; + +export const VPN_PLUGIN_IP6_CONFIG_DOMAIN: string; + +export const VPN_PLUGIN_IP6_CONFIG_DOMAINS: string; + +export const VPN_PLUGIN_IP6_CONFIG_INT_GATEWAY: string; + +export const VPN_PLUGIN_IP6_CONFIG_MSS: string; + +export const VPN_PLUGIN_IP6_CONFIG_NEVER_DEFAULT: string; + +export const VPN_PLUGIN_IP6_CONFIG_PREFIX: string; + +export const VPN_PLUGIN_IP6_CONFIG_PRESERVE_ROUTES: string; + +export const VPN_PLUGIN_IP6_CONFIG_PTP: string; + +export const VPN_PLUGIN_IP6_CONFIG_ROUTES: string; + +export const VPN_PLUGIN_OLD_DBUS_SERVICE_NAME: string; + +export const VPN_PLUGIN_OLD_STATE: string; + +export const VPN_SERVICE_PLUGIN_DBUS_SERVICE_NAME: string; + +export const VPN_SERVICE_PLUGIN_DBUS_WATCH_PEER: string; + +export const VPN_SERVICE_PLUGIN_STATE: string; + +export const WIFI_P2P_PEER_FLAGS: string; + +export const WIFI_P2P_PEER_HW_ADDRESS: string; + +export const WIFI_P2P_PEER_LAST_SEEN: string; + +export const WIFI_P2P_PEER_MANUFACTURER: string; + +export const WIFI_P2P_PEER_MODEL: string; + +export const WIFI_P2P_PEER_MODEL_NUMBER: string; + +export const WIFI_P2P_PEER_NAME: string; + +export const WIFI_P2P_PEER_SERIAL: string; + +export const WIFI_P2P_PEER_STRENGTH: string; + +export const WIFI_P2P_PEER_WFD_IES: string; + +export const WIMAX_NSP_NAME: string; + +export const WIMAX_NSP_NETWORK_TYPE: string; + +export const WIMAX_NSP_SIGNAL_QUALITY: string; + +export const WIREGUARD_PEER_ATTR_ALLOWED_IPS: string; + +export const WIREGUARD_PEER_ATTR_ENDPOINT: string; + +export const WIREGUARD_PEER_ATTR_PERSISTENT_KEEPALIVE: string; + +export const WIREGUARD_PEER_ATTR_PRESHARED_KEY: string; + +export const WIREGUARD_PEER_ATTR_PRESHARED_KEY_FLAGS: string; + +export const WIREGUARD_PEER_ATTR_PUBLIC_KEY: string; + +export const WIREGUARD_PUBLIC_KEY_LEN: number; + +export const WIREGUARD_SYMMETRIC_KEY_LEN: number; + +export function agent_manager_error_quark(): GLib.Quark; + +export function bridge_vlan_from_str(str: string): BridgeVlan; + +export function client_error_quark(): GLib.Quark; + +export function connection_error_quark(): GLib.Quark; + +export function crypto_error_quark(): GLib.Quark; + +export function device_error_quark(): GLib.Quark; + +export function ethtool_optname_is_feature(optname: string | null): boolean; + +export function ip_route_attribute_validate(name: string, value: GLib.Variant, family: number): [boolean, boolean]; + +export function ip_route_get_variant_attribute_spec(): VariantAttributeSpec; + +export function ip_routing_rule_from_string(str: string, to_string_flags: IPRoutingRuleAsStringFlags, extra_args: GLib.HashTable | null): IPRoutingRule; + +export function manager_error_quark(): GLib.Quark; + +export function secret_agent_error_quark(): GLib.Quark; + +export function settings_error_quark(): GLib.Quark; + +export function sriov_vf_attribute_validate(name: string, value: GLib.Variant): [boolean, boolean]; + +export function utils_ap_mode_security_valid(type: UtilsSecurityType, wifi_caps: DeviceWifiCapabilities): boolean; + +export function utils_base64secret_decode(base64_key: string, required_key_len: number, out_key: number | null): boolean; + +export function utils_bin2hexstr(src: (Uint8Array | string), final_len: number): string; + +export function utils_bond_mode_int_to_string(mode: number): string; + +export function utils_bond_mode_string_to_int(mode: string): number; + +export function utils_check_virtual_device_compatibility(virtual_type: GType, other_type: GType): boolean; + +export function utils_enum_from_str(type: GType, str: string): [boolean, number | null, string | null]; + +export function utils_enum_get_values(type: GType, from: number, to: number): string[]; + +export function utils_enum_to_str(type: GType, value: number): string; + +export function utils_escape_ssid(ssid: (Uint8Array | string)): string; + +export function utils_file_is_certificate(filename: string): boolean; + +export function utils_file_is_pkcs12(filename: string): boolean; + +export function utils_file_is_private_key(filename: string): [boolean, boolean]; + +export function utils_file_search_in_paths(progname: string, try_first: string | null, paths: string | null, file_test_flags: GLib.FileTest, predicate: UtilsFileSearchInPathsPredicate): string; + +export function utils_format_variant_attributes(attributes: GLib.HashTable, attr_separator: number, key_value_separator: number): string; + +export function utils_get_timestamp_msec(): number; + +export function utils_hexstr2bin(hex: string): GLib.Bytes; + +export function utils_hwaddr_atoba(asc: string, length: number): Uint8Array; + +export function utils_hwaddr_aton(asc: string, buffer: (Uint8Array | string)): number; + +export function utils_hwaddr_canonical(asc: string, length: number): string; + +export function utils_hwaddr_len(type: number): number; + +export function utils_hwaddr_matches(hwaddr1: any | null, hwaddr1_len: number, hwaddr2: any | null, hwaddr2_len: number): boolean; + +export function utils_hwaddr_ntoa(addr: (Uint8Array | string)): string; + +export function utils_hwaddr_valid(asc: string, length: number): boolean; + +export function utils_iface_valid_name(name: string | null): boolean; + +export function utils_ip4_addresses_from_variant(value: GLib.Variant): [IPAddress[], string | null]; + +export function utils_ip4_addresses_to_variant(addresses: IPAddress[], gateway: string | null): GLib.Variant; + +export function utils_ip4_dns_from_variant(value: GLib.Variant): string; + +export function utils_ip4_dns_to_variant(dns: string): GLib.Variant; + +export function utils_ip4_get_default_prefix(ip: number): number; + +export function utils_ip4_netmask_to_prefix(netmask: number): number; + +export function utils_ip4_prefix_to_netmask(prefix: number): number; + +export function utils_ip4_routes_from_variant(value: GLib.Variant): IPRoute[]; + +export function utils_ip4_routes_to_variant(routes: IPRoute[]): GLib.Variant; + +export function utils_ip6_addresses_from_variant(value: GLib.Variant): [IPAddress[], string | null]; + +export function utils_ip6_addresses_to_variant(addresses: IPAddress[], gateway: string | null): GLib.Variant; + +export function utils_ip6_dns_from_variant(value: GLib.Variant): string; + +export function utils_ip6_dns_to_variant(dns: string): GLib.Variant; + +export function utils_ip6_routes_from_variant(value: GLib.Variant): IPRoute[]; + +export function utils_ip6_routes_to_variant(routes: IPRoute[]): GLib.Variant; + +export function utils_ip_addresses_from_variant(value: GLib.Variant, family: number): IPAddress[]; + +export function utils_ip_addresses_to_variant(addresses: IPAddress[]): GLib.Variant; + +export function utils_ip_routes_from_variant(value: GLib.Variant, family: number): IPRoute[]; + +export function utils_ip_routes_to_variant(routes: IPRoute[]): GLib.Variant; + +export function utils_ipaddr_valid(family: number, ip: string): boolean; + +export function utils_is_empty_ssid(ssid: (Uint8Array | string)): boolean; + +export function utils_is_json_object(str: string): boolean; + +export function utils_is_uuid(str: string | null): boolean; + +export function utils_is_valid_iface_name(name: string | null): boolean; + +export function utils_parse_variant_attributes(string: string, attr_separator: number, key_value_separator: number, ignore_unknown: boolean, spec: VariantAttributeSpec): GLib.HashTable; + +export function utils_same_ssid(ssid1: (Uint8Array | string), ssid2: (Uint8Array | string), ignore_trailing_null: boolean): boolean; + +export function utils_security_valid(type: UtilsSecurityType, wifi_caps: DeviceWifiCapabilities, have_ap: boolean, adhoc: boolean, ap_flags: __80211ApFlags, ap_wpa: __80211ApSecurityFlags, ap_rsn: __80211ApSecurityFlags): boolean; + +export function utils_sriov_vf_from_str(str: string): SriovVF; + +export function utils_sriov_vf_to_str(vf: SriovVF, omit_index: boolean): string; + +export function utils_ssid_to_utf8(ssid: (Uint8Array | string)): string; + +export function utils_tc_action_from_str(str: string): TCAction; + +export function utils_tc_action_to_str(action: TCAction): string; + +export function utils_tc_qdisc_from_str(str: string): TCQdisc; + +export function utils_tc_qdisc_to_str(qdisc: TCQdisc): string; + +export function utils_tc_tfilter_from_str(str: string): TCTfilter; + +export function utils_tc_tfilter_to_str(tfilter: TCTfilter): string; + +export function utils_uuid_generate(): string; + +export function utils_version(): number; + +export function utils_wep_key_valid(key: string, wep_type: WepKeyType): boolean; + +export function utils_wifi_2ghz_freqs(): number; + +export function utils_wifi_5ghz_freqs(): number; + +export function utils_wifi_channel_to_freq(channel: number, band: string): number; + +export function utils_wifi_find_next_channel(channel: number, direction: number, band: string): number; + +export function utils_wifi_freq_to_channel(freq: number): number; + +export function utils_wifi_is_channel_valid(channel: number, band: string): boolean; + +export function utils_wifi_strength_bars(strength: number): string; + +export function utils_wpa_psk_valid(psk: string): boolean; + +export function vpn_editor_plugin_load(plugin_name: string, check_service: string): VpnEditorPlugin; + +export function vpn_editor_plugin_load_from_file(plugin_name: string, check_service: string, check_owner: number, check_file: UtilsCheckFilePredicate): VpnEditorPlugin; + +export function vpn_plugin_error_quark(): GLib.Quark; + +export type SecretAgentOldDeleteSecretsFunc = (agent: SecretAgentOld, connection: Connection, error: GLib.Error) => void; + +export type SecretAgentOldGetSecretsFunc = (agent: SecretAgentOld, connection: Connection, secrets: GLib.Variant, error: GLib.Error) => void; + +export type SecretAgentOldSaveSecretsFunc = (agent: SecretAgentOld, connection: Connection, error: GLib.Error) => void; + +export type SettingClearSecretsWithFlagsFn = (setting: Setting, secret: string, flags: SettingSecretFlags) => boolean; + +export type SettingValueIterFn = (setting: Setting, key: string, value: (GObject.Value | string | boolean | number), flags: GObject.ParamFlags) => void; + +export type UtilsCheckFilePredicate = (filename: string, stat: any | null) => boolean; + +export type UtilsFileSearchInPathsPredicate = (filename: string) => boolean; + +export type VpnIterFunc = (key: string, value: string) => void; + +export type _ConnectionForEachSecretFunc = (flags: SettingSecretFlags) => boolean; +export enum __80211Mode { + UNKNOWN = 0, + ADHOC = 1, + INFRA = 2, + AP = 3, + MESH = 4, +} +export enum ActiveConnectionState { + UNKNOWN = 0, + ACTIVATING = 1, + ACTIVATED = 2, + DEACTIVATING = 3, + DEACTIVATED = 4, +} +export enum ActiveConnectionStateReason { + UNKNOWN = 0, + NONE = 1, + USER_DISCONNECTED = 2, + DEVICE_DISCONNECTED = 3, + SERVICE_STOPPED = 4, + IP_CONFIG_INVALID = 5, + CONNECT_TIMEOUT = 6, + SERVICE_START_TIMEOUT = 7, + SERVICE_START_FAILED = 8, + NO_SECRETS = 9, + LOGIN_FAILED = 10, + CONNECTION_REMOVED = 11, + DEPENDENCY_FAILED = 12, + DEVICE_REALIZE_FAILED = 13, + DEVICE_REMOVED = 14, +} +export class AgentManagerError extends GLib.Error { + constructor(copy: AgentManagerError); + // Properties + static FAILED: number; + static PERMISSIONDENIED: number; + static INVALIDIDENTIFIER: number; + static NOTREGISTERED: number; + static NOSECRETS: number; + static USERCANCELED: number; + // Members + quark(): GLib.Quark; +} +export enum Capability { + TEAM = 1, + OVS = 2, +} +export class ClientError extends GLib.Error { + constructor(copy: ClientError); + // Properties + static FAILED: number; + static MANAGER_NOT_RUNNING: number; + static OBJECT_CREATION_FAILED: number; + // Members + quark(): GLib.Quark; +} +export enum ClientPermission { + NONE = 0, + ENABLE_DISABLE_NETWORK = 1, + ENABLE_DISABLE_WIFI = 2, + ENABLE_DISABLE_WWAN = 3, + ENABLE_DISABLE_WIMAX = 4, + SLEEP_WAKE = 5, + NETWORK_CONTROL = 6, + WIFI_SHARE_PROTECTED = 7, + WIFI_SHARE_OPEN = 8, + SETTINGS_MODIFY_SYSTEM = 9, + SETTINGS_MODIFY_OWN = 10, + SETTINGS_MODIFY_HOSTNAME = 11, + SETTINGS_MODIFY_GLOBAL_DNS = 12, + RELOAD = 13, + CHECKPOINT_ROLLBACK = 14, + ENABLE_DISABLE_STATISTICS = 15, + ENABLE_DISABLE_CONNECTIVITY_CHECK = 16, + WIFI_SCAN = 17, + LAST = 17, +} +export enum ClientPermissionResult { + UNKNOWN = 0, + YES = 1, + AUTH = 2, + NO = 3, +} +export class ConnectionError extends GLib.Error { + constructor(copy: ConnectionError); + // Properties + static FAILED: number; + static SETTINGNOTFOUND: number; + static PROPERTYNOTFOUND: number; + static PROPERTYNOTSECRET: number; + static MISSINGSETTING: number; + static INVALIDSETTING: number; + static MISSINGPROPERTY: number; + static INVALIDPROPERTY: number; + // Members + quark(): GLib.Quark; +} +export enum ConnectionMultiConnect { + DEFAULT = 0, + SINGLE = 1, + MANUAL_MULTIPLE = 2, + MULTIPLE = 3, +} +export enum ConnectivityState { + UNKNOWN = 0, + NONE = 1, + PORTAL = 2, + LIMITED = 3, + FULL = 4, +} +export class CryptoError extends GLib.Error { + constructor(copy: CryptoError); + // Properties + static FAILED: number; + static INVALID_DATA: number; + static INVALID_PASSWORD: number; + static UNKNOWN_CIPHER: number; + static DECRYPTION_FAILED: number; + static ENCRYPTION_FAILED: number; + // Members + quark(): GLib.Quark; +} +export class DeviceError extends GLib.Error { + constructor(copy: DeviceError); + // Properties + static FAILED: number; + static CREATIONFAILED: number; + static INVALIDCONNECTION: number; + static INCOMPATIBLECONNECTION: number; + static NOTACTIVE: number; + static NOTSOFTWARE: number; + static NOTALLOWED: number; + static SPECIFICOBJECTNOTFOUND: number; + static VERSIONIDMISMATCH: number; + static MISSINGDEPENDENCIES: number; + static INVALIDARGUMENT: number; + // Members + quark(): GLib.Quark; +} +export enum DeviceState { + UNKNOWN = 0, + UNMANAGED = 10, + UNAVAILABLE = 20, + DISCONNECTED = 30, + PREPARE = 40, + CONFIG = 50, + NEED_AUTH = 60, + IP_CONFIG = 70, + IP_CHECK = 80, + SECONDARIES = 90, + ACTIVATED = 100, + DEACTIVATING = 110, + FAILED = 120, +} +export enum DeviceStateReason { + NONE = 0, + UNKNOWN = 1, + NOW_MANAGED = 2, + NOW_UNMANAGED = 3, + CONFIG_FAILED = 4, + IP_CONFIG_UNAVAILABLE = 5, + IP_CONFIG_EXPIRED = 6, + NO_SECRETS = 7, + SUPPLICANT_DISCONNECT = 8, + SUPPLICANT_CONFIG_FAILED = 9, + SUPPLICANT_FAILED = 10, + SUPPLICANT_TIMEOUT = 11, + PPP_START_FAILED = 12, + PPP_DISCONNECT = 13, + PPP_FAILED = 14, + DHCP_START_FAILED = 15, + DHCP_ERROR = 16, + DHCP_FAILED = 17, + SHARED_START_FAILED = 18, + SHARED_FAILED = 19, + AUTOIP_START_FAILED = 20, + AUTOIP_ERROR = 21, + AUTOIP_FAILED = 22, + MODEM_BUSY = 23, + MODEM_NO_DIAL_TONE = 24, + MODEM_NO_CARRIER = 25, + MODEM_DIAL_TIMEOUT = 26, + MODEM_DIAL_FAILED = 27, + MODEM_INIT_FAILED = 28, + GSM_APN_FAILED = 29, + GSM_REGISTRATION_NOT_SEARCHING = 30, + GSM_REGISTRATION_DENIED = 31, + GSM_REGISTRATION_TIMEOUT = 32, + GSM_REGISTRATION_FAILED = 33, + GSM_PIN_CHECK_FAILED = 34, + FIRMWARE_MISSING = 35, + REMOVED = 36, + SLEEPING = 37, + CONNECTION_REMOVED = 38, + USER_REQUESTED = 39, + CARRIER = 40, + CONNECTION_ASSUMED = 41, + SUPPLICANT_AVAILABLE = 42, + MODEM_NOT_FOUND = 43, + BT_FAILED = 44, + GSM_SIM_NOT_INSERTED = 45, + GSM_SIM_PIN_REQUIRED = 46, + GSM_SIM_PUK_REQUIRED = 47, + GSM_SIM_WRONG = 48, + INFINIBAND_MODE = 49, + DEPENDENCY_FAILED = 50, + BR2684_FAILED = 51, + MODEM_MANAGER_UNAVAILABLE = 52, + SSID_NOT_FOUND = 53, + SECONDARY_CONNECTION_FAILED = 54, + DCB_FCOE_FAILED = 55, + TEAMD_CONTROL_FAILED = 56, + MODEM_FAILED = 57, + MODEM_AVAILABLE = 58, + SIM_PIN_INCORRECT = 59, + NEW_ACTIVATION = 60, + PARENT_CHANGED = 61, + PARENT_MANAGED_CHANGED = 62, + OVSDB_FAILED = 63, + IP_ADDRESS_DUPLICATE = 64, + IP_METHOD_UNSUPPORTED = 65, + SRIOV_CONFIGURATION_FAILED = 66, + PEER_NOT_FOUND = 67, +} +export class DeviceType { + constructor(copy: DeviceType); + // Properties + static UNKNOWN: number; + static ETHERNET: number; + static WIFI: number; + static UNUSED1: number; + static UNUSED2: number; + static BT: number; + static OLPC_MESH: number; + static WIMAX: number; + static MODEM: number; + static INFINIBAND: number; + static BOND: number; + static VLAN: number; + static ADSL: number; + static BRIDGE: number; + static GENERIC: number; + static TEAM: number; + static TUN: number; + static IP_TUNNEL: number; + static MACVLAN: number; + static VXLAN: number; + static VETH: number; + static MACSEC: number; + static DUMMY: number; + static PPP: number; + static OVS_INTERFACE: number; + static OVS_PORT: number; + static OVS_BRIDGE: number; + static WPAN: number; + static "6LOWPAN": number; + static WIREGUARD: number; + static WIFI_P2P: number; + static VRF: number; +} +export enum IPTunnelMode { + UNKNOWN = 0, + IPIP = 1, + GRE = 2, + SIT = 3, + ISATAP = 4, + VTI = 5, + IP6IP6 = 6, + IPIP6 = 7, + IP6GRE = 8, + VTI6 = 9, + GRETAP = 10, + IP6GRETAP = 11, +} +export class ManagerError extends GLib.Error { + constructor(copy: ManagerError); + // Properties + static FAILED: number; + static PERMISSIONDENIED: number; + static UNKNOWNCONNECTION: number; + static UNKNOWNDEVICE: number; + static CONNECTIONNOTAVAILABLE: number; + static CONNECTIONNOTACTIVE: number; + static CONNECTIONALREADYACTIVE: number; + static DEPENDENCYFAILED: number; + static ALREADYASLEEPORAWAKE: number; + static ALREADYENABLEDORDISABLED: number; + static UNKNOWNLOGLEVEL: number; + static UNKNOWNLOGDOMAIN: number; + static INVALIDARGUMENTS: number; + static MISSINGPLUGIN: number; + // Members + quark(): GLib.Quark; +} +export enum Metered { + UNKNOWN = 0, + YES = 1, + NO = 2, + GUESS_YES = 3, + GUESS_NO = 4, +} +export enum RollbackResult { + OK = 0, + ERR_NO_DEVICE = 1, + ERR_DEVICE_UNMANAGED = 2, + ERR_FAILED = 3, +} +export class SecretAgentError extends GLib.Error { + constructor(copy: SecretAgentError); + // Properties + static FAILED: number; + static PERMISSIONDENIED: number; + static INVALIDCONNECTION: number; + static USERCANCELED: number; + static AGENTCANCELED: number; + static NOSECRETS: number; + // Members + quark(): GLib.Quark; +} +export enum Setting8021xCKFormat { + UNKNOWN = 0, + X509 = 1, + RAW_KEY = 2, + PKCS12 = 3, +} +export enum Setting8021xCKScheme { + UNKNOWN = 0, + BLOB = 1, + PATH = 2, + PKCS11 = 3, +} +export enum SettingCompareFlags { + EXACT = 0, + FUZZY = 1, + IGNORE_ID = 2, + IGNORE_SECRETS = 4, + IGNORE_AGENT_OWNED_SECRETS = 8, + IGNORE_NOT_SAVED_SECRETS = 16, + DIFF_RESULT_WITH_DEFAULT = 32, + DIFF_RESULT_NO_DEFAULT = 64, + IGNORE_TIMESTAMP = 128, +} +export enum SettingConnectionAutoconnectSlaves { + DEFAULT = -1, + NO = 0, + YES = 1, +} +export enum SettingConnectionLldp { + DEFAULT = -1, + DISABLE = 0, + ENABLE_RX = 1, +} +export enum SettingConnectionLlmnr { + DEFAULT = -1, + NO = 0, + RESOLVE = 1, + YES = 2, +} +export enum SettingConnectionMdns { + DEFAULT = -1, + NO = 0, + RESOLVE = 1, + YES = 2, +} +export enum SettingDiffResult { + UNKNOWN = 0, + IN_A = 1, + IN_B = 2, + IN_A_DEFAULT = 4, + IN_B_DEFAULT = 8, +} +export enum SettingIP6ConfigAddrGenMode { + EUI64 = 0, + STABLE_PRIVACY = 1, +} +export enum SettingIP6ConfigPrivacy { + UNKNOWN = -1, + DISABLED = 0, + PREFER_PUBLIC_ADDR = 1, + PREFER_TEMP_ADDR = 2, +} +export enum SettingMacRandomization { + DEFAULT = 0, + NEVER = 1, + ALWAYS = 2, +} +export enum SettingMacsecMode { + PSK = 0, + EAP = 1, +} +export enum SettingMacsecValidation { + DISABLE = 0, + CHECK = 1, + STRICT = 2, +} +export enum SettingMacvlanMode { + UNKNOWN = 0, + VEPA = 1, + BRIDGE = 2, + PRIVATE = 3, + PASSTHRU = 4, + SOURCE = 5, +} +export enum SettingProxyMethod { + NONE = 0, + AUTO = 1, +} +export enum SettingSerialParity { + NONE = 0, + EVEN = 1, + ODD = 2, +} +export enum SettingTunMode { + UNKNOWN = 0, + TUN = 1, + TAP = 2, +} +export enum SettingWirelessPowersave { + DEFAULT = 0, + IGNORE = 1, + DISABLE = 2, + ENABLE = 3, +} +export enum SettingWirelessSecurityFils { + DEFAULT = 0, + DISABLE = 1, + OPTIONAL = 2, + REQUIRED = 3, +} +export enum SettingWirelessSecurityPmf { + DEFAULT = 0, + DISABLE = 1, + OPTIONAL = 2, + REQUIRED = 3, +} +export class SettingsError extends GLib.Error { + constructor(copy: SettingsError); + // Properties + static FAILED: number; + static PERMISSIONDENIED: number; + static NOTSUPPORTED: number; + static INVALIDCONNECTION: number; + static READONLYCONNECTION: number; + static UUIDEXISTS: number; + static INVALIDHOSTNAME: number; + static INVALIDARGUMENTS: number; + // Members + quark(): GLib.Quark; +} +export class SriovVFVlanProtocol { + constructor(copy: SriovVFVlanProtocol); + // Properties + static "1Q": number; + static "1AD": number; +} +export enum State { + UNKNOWN = 0, + ASLEEP = 10, + DISCONNECTED = 20, + DISCONNECTING = 30, + CONNECTING = 40, + CONNECTED_LOCAL = 50, + CONNECTED_SITE = 60, + CONNECTED_GLOBAL = 70, +} +export enum Ternary { + DEFAULT = -1, + FALSE = 0, + TRUE = 1, +} +export enum UtilsSecurityType { + INVALID = 0, + NONE = 1, + STATIC_WEP = 2, + LEAP = 3, + DYNAMIC_WEP = 4, + WPA_PSK = 5, + WPA_ENTERPRISE = 6, + WPA2_PSK = 7, + WPA2_ENTERPRISE = 8, + SAE = 9, + OWE = 10, +} +export enum VlanPriorityMap { + INGRESS_MAP = 0, + EGRESS_MAP = 1, +} +export enum VpnConnectionState { + UNKNOWN = 0, + PREPARE = 1, + NEED_AUTH = 2, + CONNECT = 3, + IP_CONFIG_GET = 4, + ACTIVATED = 5, + FAILED = 6, + DISCONNECTED = 7, +} +export enum VpnConnectionStateReason { + UNKNOWN = 0, + NONE = 1, + USER_DISCONNECTED = 2, + DEVICE_DISCONNECTED = 3, + SERVICE_STOPPED = 4, + IP_CONFIG_INVALID = 5, + CONNECT_TIMEOUT = 6, + SERVICE_START_TIMEOUT = 7, + SERVICE_START_FAILED = 8, + NO_SECRETS = 9, + LOGIN_FAILED = 10, + CONNECTION_REMOVED = 11, +} +export class VpnPluginError extends GLib.Error { + constructor(copy: VpnPluginError); + // Properties + static FAILED: number; + static STARTINGINPROGRESS: number; + static ALREADYSTARTED: number; + static STOPPINGINPROGRESS: number; + static ALREADYSTOPPED: number; + static WRONGSTATE: number; + static BADARGUMENTS: number; + static LAUNCHFAILED: number; + static INVALIDCONNECTION: number; + static INTERACTIVENOTSUPPORTED: number; + // Members + quark(): GLib.Quark; +} +export enum VpnPluginFailure { + LOGIN_FAILED = 0, + CONNECT_FAILED = 1, + BAD_IP_CONFIG = 2, +} +export enum VpnServiceState { + UNKNOWN = 0, + INIT = 1, + SHUTDOWN = 2, + STARTING = 3, + STARTED = 4, + STOPPING = 5, + STOPPED = 6, +} +export enum WepKeyType { + UNKNOWN = 0, + KEY = 1, + PASSPHRASE = 2, +} +export enum WimaxNspNetworkType { + UNKNOWN = 0, + HOME = 1, + PARTNER = 2, + ROAMING_PARTNER = 3, +} +export enum __80211ApFlags { + NONE = 0, + PRIVACY = 1, + WPS = 2, + WPS_PBC = 4, + WPS_PIN = 8, +} +export enum __80211ApSecurityFlags { + NONE = 0, + PAIR_WEP40 = 1, + PAIR_WEP104 = 2, + PAIR_TKIP = 4, + PAIR_CCMP = 8, + GROUP_WEP40 = 16, + GROUP_WEP104 = 32, + GROUP_TKIP = 64, + GROUP_CCMP = 128, + KEY_MGMT_PSK = 256, + KEY_MGMT_802_1X = 512, + KEY_MGMT_SAE = 1024, + KEY_MGMT_OWE = 2048, +} +export enum ActivationStateFlags { + NONE = 0, + IS_MASTER = 1, + IS_SLAVE = 2, + LAYER2_READY = 4, + IP4_READY = 8, + IP6_READY = 16, + MASTER_HAS_SLAVES = 32, + LIFETIME_BOUND_TO_PROFILE_VISIBILITY = 64, +} +export enum BluetoothCapabilities { + NONE = 0, + DUN = 1, + NAP = 2, +} +export enum CheckpointCreateFlags { + NONE = 0, + DESTROY_ALL = 1, + DELETE_NEW_CONNECTIONS = 2, + DISCONNECT_NEW_DEVICES = 4, + ALLOW_OVERLAPPING = 8, +} +export enum ClientInstanceFlags { + NONE = 0, + NO_AUTO_FETCH_PERMISSIONS = 1, +} +export enum ConnectionSerializationFlags { + ALL = 0, + NO_SECRETS = 1, + ONLY_SECRETS = 2, + WITH_SECRETS_AGENT_OWNED = 4, +} +export enum DeviceCapabilities { + NONE = 0, + NM_SUPPORTED = 1, + CARRIER_DETECT = 2, + IS_SOFTWARE = 4, + SRIOV = 8, +} +export enum DeviceInterfaceFlags { + UP = 1, + LOWER_UP = 2, + CARRIER = 65536, +} +export enum DeviceModemCapabilities { + NONE = 0, + POTS = 1, + CDMA_EVDO = 2, + GSM_UMTS = 4, + LTE = 8, +} +export enum DeviceWifiCapabilities { + NONE = 0, + CIPHER_WEP40 = 1, + CIPHER_WEP104 = 2, + CIPHER_TKIP = 4, + CIPHER_CCMP = 8, + WPA = 16, + RSN = 32, + AP = 64, + ADHOC = 128, + FREQ_VALID = 256, + FREQ_2GHZ = 512, + FREQ_5GHZ = 1024, + MESH = 4096, + IBSS_RSN = 8192, +} +export enum DhcpHostnameFlags { + NONE = 0, + FQDN_SERV_UPDATE = 1, + FQDN_ENCODED = 2, + FQDN_NO_UPDATE = 4, + FQDN_CLEAR_FLAGS = 8, +} +export enum IPAddressCmpFlags { + NONE = 0, + WITH_ATTRS = 1, +} +export enum IPRoutingRuleAsStringFlags { + NONE = 0, + AF_INET = 1, + AF_INET6 = 2, + VALIDATE = 4, +} +export enum IPTunnelFlags { + NONE = 0, + IP6_IGN_ENCAP_LIMIT = 1, + IP6_USE_ORIG_TCLASS = 2, + IP6_USE_ORIG_FLOWLABEL = 4, + IP6_MIP6_DEV = 8, + IP6_RCV_DSCP_COPY = 16, + IP6_USE_ORIG_FWMARK = 32, +} +export enum ManagerReloadFlags { + CONF = 1, + DNS_RC = 2, + DNS_FULL = 4, +} +export enum SecretAgentCapabilities { + NONE = 0, + VPN_HINTS = 1, + LAST = 1, +} +export enum SecretAgentGetSecretsFlags { + NONE = 0, + ALLOW_INTERACTION = 1, + REQUEST_NEW = 2, + USER_REQUESTED = 4, + WPS_PBC_ACTIVE = 8, + ONLY_SYSTEM = 2147483648, + NO_ERRORS = 1073741824, +} +export enum Setting8021xAuthFlags { + NONE = 0, + TLS_1_0_DISABLE = 1, + TLS_1_1_DISABLE = 2, + TLS_1_2_DISABLE = 4, + ALL = 7, +} +export enum SettingDcbFlags { + NONE = 0, + ENABLE = 1, + ADVERTISE = 2, + WILLING = 4, +} +export enum SettingSecretFlags { + NONE = 0, + AGENT_OWNED = 1, + NOT_SAVED = 2, + NOT_REQUIRED = 4, +} +export enum SettingWiredWakeOnLan { + PHY = 2, + UNICAST = 4, + MULTICAST = 8, + BROADCAST = 16, + ARP = 32, + MAGIC = 64, + DEFAULT = 1, + IGNORE = 32768, +} +export enum SettingWirelessSecurityWpsMethod { + DEFAULT = 0, + DISABLED = 1, + AUTO = 2, + PBC = 4, + PIN = 8, +} +export class SettingWirelessWakeOnWLan { + constructor(copy: SettingWirelessWakeOnWLan); + // Properties + static ANY: number; + static DISCONNECT: number; + static MAGIC: number; + static GTK_REKEY_FAILURE: number; + static EAP_IDENTITY_REQUEST: number; + static "4WAY_HANDSHAKE": number; + static RFKILL_RELEASE: number; + static TCP: number; + static ALL: number; + static DEFAULT: number; + static IGNORE: number; +} +export enum SettingsAddConnection2Flags { + NONE = 0, + TO_DISK = 1, + IN_MEMORY = 2, + BLOCK_AUTOCONNECT = 32, +} +export enum SettingsConnectionFlags { + NONE = 0, + UNSAVED = 1, + NM_GENERATED = 2, + VOLATILE = 4, +} +export enum SettingsUpdate2Flags { + NONE = 0, + TO_DISK = 1, + IN_MEMORY = 2, + IN_MEMORY_DETACHED = 4, + IN_MEMORY_ONLY = 8, + VOLATILE = 16, + BLOCK_AUTOCONNECT = 32, + NO_REAPPLY = 64, +} +export enum TeamLinkWatcherArpPingFlags { + VALIDATE_ACTIVE = 2, + VALIDATE_INACTIVE = 4, + SEND_ALWAYS = 8, +} +export enum VlanFlags { + REORDER_HEADERS = 1, + GVRP = 2, + LOOSE_BINDING = 4, + MVRP = 8, +} +export enum VpnEditorPluginCapability { + NONE = 0, + IMPORT = 1, + EXPORT = 2, + IPV6 = 4, +} +export module AccessPoint { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + bssid: string; + flags: __80211ApFlags; + frequency: number; + hw_address: string; + last_seen: number; + max_bitrate: number; + mode: __80211Mode; + rsn_flags: __80211ApSecurityFlags; + ssid: GLib.Bytes; + strength: number; + wpa_flags: __80211ApSecurityFlags; + } +} +export class AccessPoint extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + bssid: string; + flags: __80211ApFlags; + frequency: number; + hw_address: string; + last_seen: number; + max_bitrate: number; + mode: __80211Mode; + rsn_flags: __80211ApSecurityFlags; + ssid: GLib.Bytes; + strength: number; + wpa_flags: __80211ApSecurityFlags; + // Members + connection_valid(connection: Connection): boolean; + filter_connections(connections: Connection[]): Connection[]; + get_bssid(): string; + get_flags(): __80211ApFlags; + get_frequency(): number; + get_last_seen(): number; + get_max_bitrate(): number; + get_mode(): __80211Mode; + get_rsn_flags(): __80211ApSecurityFlags; + get_ssid(): GLib.Bytes; + get_strength(): number; + get_wpa_flags(): __80211ApSecurityFlags; +} +export module ActiveConnection { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + connection: RemoteConnection; + "default": boolean; + default6: boolean; + devices: Device[]; + dhcp4_config: DhcpConfig; + dhcp6_config: DhcpConfig; + id: string; + ip4_config: IPConfig; + ip6_config: IPConfig; + master: Device; + specific_object_path: string; + state: ActiveConnectionState; + state_flags: number; + type: string; + uuid: string; + vpn: boolean; + } +} +export class ActiveConnection extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + connection: RemoteConnection; + "default": boolean; + default6: boolean; + devices: Device[]; + dhcp4_config: DhcpConfig; + dhcp6_config: DhcpConfig; + id: string; + ip4_config: IPConfig; + ip6_config: IPConfig; + master: Device; + specific_object_path: string; + state: ActiveConnectionState; + state_flags: number; + type: string; + uuid: string; + vpn: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'state-changed', callback: (_source: this, state: number, reason: number) => void): number; + connect_after(signal: 'state-changed', callback: (_source: this, state: number, reason: number) => void): number; + emit(signal: 'state-changed', state: number, reason: number): void; + // Members + get_connection(): RemoteConnection; + get_connection_type(): string; + get_default(): boolean; + get_default6(): boolean; + get_devices(): Device[]; + get_dhcp4_config(): DhcpConfig; + get_dhcp6_config(): DhcpConfig; + get_id(): string; + get_ip4_config(): IPConfig; + get_ip6_config(): IPConfig; + get_master(): Device; + get_specific_object_path(): string; + get_state(): ActiveConnectionState; + get_state_flags(): ActivationStateFlags; + get_state_reason(): ActiveConnectionStateReason; + get_uuid(): string; + get_vpn(): boolean; +} +export module Checkpoint { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + created: number; + devices: Device[]; + rollback_timeout: number; + } +} +export class Checkpoint extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + created: number; + devices: Device[]; + rollback_timeout: number; + // Members + get_created(): number; + get_devices(): Device[]; + get_rollback_timeout(): number; +} +export module Client { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + activating_connection: ActiveConnection; + active_connections: ActiveConnection[]; + all_devices: Device[]; + can_modify: boolean; + capabilities: number[]; + checkpoints: Checkpoint[]; + connections: RemoteConnection[]; + connectivity: ConnectivityState; + connectivity_check_available: boolean; + connectivity_check_enabled: boolean; + connectivity_check_uri: string; + dbus_connection: Gio.DBusConnection; + dbus_name_owner: string; + devices: Device[]; + dns_configuration: DnsEntry[]; + dns_mode: string; + dns_rc_manager: string; + hostname: string; + instance_flags: number; + metered: number; + networking_enabled: boolean; + nm_running: boolean; + permissions_state: Ternary; + primary_connection: ActiveConnection; + startup: boolean; + state: State; + version: string; + wimax_enabled: boolean; + wimax_hardware_enabled: boolean; + wireless_enabled: boolean; + wireless_hardware_enabled: boolean; + wwan_enabled: boolean; + wwan_hardware_enabled: boolean; + } +} +export class Client extends GObject.Object implements Gio.AsyncInitable, Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + activating_connection: ActiveConnection; + active_connections: ActiveConnection[]; + all_devices: Device[]; + can_modify: boolean; + capabilities: number[]; + checkpoints: Checkpoint[]; + connections: RemoteConnection[]; + connectivity: ConnectivityState; + connectivity_check_available: boolean; + connectivity_check_enabled: boolean; + connectivity_check_uri: string; + dbus_connection: Gio.DBusConnection; + dbus_name_owner: string; + devices: Device[]; + dns_configuration: DnsEntry[]; + dns_mode: string; + dns_rc_manager: string; + hostname: string; + instance_flags: number; + metered: number; + networking_enabled: boolean; + nm_running: boolean; + permissions_state: Ternary; + primary_connection: ActiveConnection; + startup: boolean; + state: State; + version: string; + wimax_enabled: boolean; + wimax_hardware_enabled: boolean; + wireless_enabled: boolean; + wireless_hardware_enabled: boolean; + wwan_enabled: boolean; + wwan_hardware_enabled: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'active-connection-added', callback: (_source: this, active_connection: ActiveConnection) => void): number; + connect_after(signal: 'active-connection-added', callback: (_source: this, active_connection: ActiveConnection) => void): number; + emit(signal: 'active-connection-added', active_connection: ActiveConnection): void; + connect(signal: 'active-connection-removed', callback: (_source: this, active_connection: ActiveConnection) => void): number; + connect_after(signal: 'active-connection-removed', callback: (_source: this, active_connection: ActiveConnection) => void): number; + emit(signal: 'active-connection-removed', active_connection: ActiveConnection): void; + connect(signal: 'any-device-added', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'any-device-added', callback: (_source: this, device: Device) => void): number; + emit(signal: 'any-device-added', device: Device): void; + connect(signal: 'any-device-removed', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'any-device-removed', callback: (_source: this, device: Device) => void): number; + emit(signal: 'any-device-removed', device: Device): void; + connect(signal: 'connection-added', callback: (_source: this, connection: RemoteConnection) => void): number; + connect_after(signal: 'connection-added', callback: (_source: this, connection: RemoteConnection) => void): number; + emit(signal: 'connection-added', connection: RemoteConnection): void; + connect(signal: 'connection-removed', callback: (_source: this, connection: RemoteConnection) => void): number; + connect_after(signal: 'connection-removed', callback: (_source: this, connection: RemoteConnection) => void): number; + emit(signal: 'connection-removed', connection: RemoteConnection): void; + connect(signal: 'device-added', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'device-added', callback: (_source: this, device: Device) => void): number; + emit(signal: 'device-added', device: Device): void; + connect(signal: 'device-removed', callback: (_source: this, device: Device) => void): number; + connect_after(signal: 'device-removed', callback: (_source: this, device: Device) => void): number; + emit(signal: 'device-removed', device: Device): void; + connect(signal: 'permission-changed', callback: (_source: this, permission: number, result: number) => void): number; + connect_after(signal: 'permission-changed', callback: (_source: this, permission: number, result: number) => void): number; + emit(signal: 'permission-changed', permission: number, result: number): void; + // Constructors + static ["new"](cancellable: Gio.Cancellable | null): Client; + static new_finish(result: Gio.AsyncResult): Client; + static new_finish(...args: never[]): never; + // Members + activate_connection_async(connection: Connection | null, device: Device | null, specific_object: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + activate_connection_finish(result: Gio.AsyncResult): ActiveConnection; + add_and_activate_connection2(partial: Connection | null, device: Device, specific_object: string | null, options: GLib.Variant, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + add_and_activate_connection2_finish(result: Gio.AsyncResult, out_result: GLib.Variant | null): ActiveConnection; + add_and_activate_connection_async(partial: Connection | null, device: Device, specific_object: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + add_and_activate_connection_finish(result: Gio.AsyncResult): ActiveConnection; + add_connection2(settings: GLib.Variant, flags: SettingsAddConnection2Flags, args: GLib.Variant | null, ignore_out_result: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + add_connection2_finish(result: Gio.AsyncResult): [RemoteConnection, GLib.Variant | null]; + add_connection_async(connection: Connection, save_to_disk: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + add_connection_finish(result: Gio.AsyncResult): RemoteConnection; + check_connectivity(cancellable: Gio.Cancellable | null): ConnectivityState; + check_connectivity_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + check_connectivity_finish(result: Gio.AsyncResult): ConnectivityState; + checkpoint_adjust_rollback_timeout(checkpoint_path: string, add_timeout: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + checkpoint_adjust_rollback_timeout_finish(result: Gio.AsyncResult): boolean; + checkpoint_create(devices: Device[], rollback_timeout: number, flags: CheckpointCreateFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + checkpoint_create_finish(result: Gio.AsyncResult): Checkpoint; + checkpoint_destroy(checkpoint_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + checkpoint_destroy_finish(result: Gio.AsyncResult): boolean; + checkpoint_rollback(checkpoint_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + checkpoint_rollback_finish(result: Gio.AsyncResult): GLib.HashTable; + connectivity_check_get_available(): boolean; + connectivity_check_get_enabled(): boolean; + connectivity_check_get_uri(): string; + connectivity_check_set_enabled(enabled: boolean): void; + dbus_call(object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant | null, reply_type: GLib.VariantType | null, timeout_msec: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + dbus_call_finish(result: Gio.AsyncResult): GLib.Variant; + dbus_set_property(object_path: string, interface_name: string, property_name: string, value: GLib.Variant, timeout_msec: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + dbus_set_property_finish(result: Gio.AsyncResult): boolean; + deactivate_connection(active: ActiveConnection, cancellable: Gio.Cancellable | null): boolean; + deactivate_connection_async(active: ActiveConnection, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + deactivate_connection_finish(result: Gio.AsyncResult): boolean; + get_activating_connection(): ActiveConnection; + get_active_connections(): ActiveConnection[]; + get_all_devices(): Device[]; + get_capabilities(): number[]; + get_checkpoints(): Checkpoint[]; + get_connection_by_id(id: string): RemoteConnection; + get_connection_by_path(path: string): RemoteConnection; + get_connection_by_uuid(uuid: string): RemoteConnection; + get_connections(): RemoteConnection[]; + get_connectivity(): ConnectivityState; + get_context_busy_watcher(): T; + get_dbus_connection(): Gio.DBusConnection; + get_dbus_name_owner(): string; + get_device_by_iface(iface: string): Device; + get_device_by_path(object_path: string): Device; + get_devices(): Device[]; + get_dns_configuration(): DnsEntry[]; + get_dns_mode(): string; + get_dns_rc_manager(): string; + get_instance_flags(): ClientInstanceFlags; + get_logging(level: string | null, domains: string | null): boolean; + get_main_context(): GLib.MainContext; + get_metered(): Metered; + get_nm_running(): boolean; + get_object_by_path(dbus_path: string): Object; + get_permission_result(permission: ClientPermission): ClientPermissionResult; + get_permissions_state(): Ternary; + get_primary_connection(): ActiveConnection; + get_startup(): boolean; + get_state(): State; + get_version(): string; + load_connections(filenames: string[], cancellable: Gio.Cancellable | null): [boolean, string]; + load_connections_async(filenames: string[], cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + load_connections_finish(result: Gio.AsyncResult): [boolean, string[]]; + networking_get_enabled(): boolean; + networking_set_enabled(enabled: boolean): boolean; + reload(flags: ManagerReloadFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + reload_connections(cancellable: Gio.Cancellable | null): boolean; + reload_connections_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + reload_connections_finish(result: Gio.AsyncResult): boolean; + reload_finish(result: Gio.AsyncResult): boolean; + save_hostname(hostname: string | null, cancellable: Gio.Cancellable | null): boolean; + save_hostname_async(hostname: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + save_hostname_finish(result: Gio.AsyncResult): boolean; + set_logging(level: string | null, domains: string | null): boolean; + wimax_get_enabled(): boolean; + wimax_hardware_get_enabled(): boolean; + wimax_set_enabled(enabled: boolean): void; + wireless_get_enabled(): boolean; + wireless_hardware_get_enabled(): boolean; + wireless_set_enabled(enabled: boolean): void; + wwan_get_enabled(): boolean; + wwan_hardware_get_enabled(): boolean; + wwan_set_enabled(enabled: boolean): void; + static new_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + // Implemented Members + init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + init_finish(res: Gio.AsyncResult): boolean; + new_finish(res: Gio.AsyncResult): T; + vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_init_finish(res: Gio.AsyncResult): boolean; + init(cancellable: Gio.Cancellable | null): boolean; + vfunc_init(cancellable: Gio.Cancellable | null): boolean; +} +export module Device { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + active_connection: ActiveConnection; + autoconnect: boolean; + available_connections: RemoteConnection[]; + capabilities: DeviceCapabilities; + device_type: DeviceType; + dhcp4_config: DhcpConfig; + dhcp6_config: DhcpConfig; + driver: string; + driver_version: string; + firmware_missing: boolean; + firmware_version: string; + hw_address: string; + "interface": string; + interface_flags: number; + ip_interface: string; + ip4_config: IPConfig; + ip4_connectivity: ConnectivityState; + ip6_config: IPConfig; + ip6_connectivity: ConnectivityState; + lldp_neighbors: any[]; + managed: boolean; + metered: number; + mtu: number; + nm_plugin_missing: boolean; + physical_port_id: string; + product: string; + real: boolean; + state: DeviceState; + state_reason: number; + udi: string; + vendor: string; + } +} +export abstract class Device extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + active_connection: ActiveConnection; + autoconnect: boolean; + available_connections: RemoteConnection[]; + capabilities: DeviceCapabilities; + device_type: DeviceType; + dhcp4_config: DhcpConfig; + dhcp6_config: DhcpConfig; + driver: string; + driver_version: string; + firmware_missing: boolean; + firmware_version: string; + hw_address: string; + "interface": string; + interface_flags: number; + ip_interface: string; + ip4_config: IPConfig; + ip4_connectivity: ConnectivityState; + ip6_config: IPConfig; + ip6_connectivity: ConnectivityState; + lldp_neighbors: any[]; + managed: boolean; + metered: number; + mtu: number; + nm_plugin_missing: boolean; + physical_port_id: string; + product: string; + real: boolean; + state: DeviceState; + state_reason: number; + udi: string; + vendor: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'state-changed', callback: (_source: this, new_state: number, old_state: number, reason: number) => void): number; + connect_after(signal: 'state-changed', callback: (_source: this, new_state: number, old_state: number, reason: number) => void): number; + emit(signal: 'state-changed', new_state: number, old_state: number, reason: number): void; + // Members + connection_compatible(connection: Connection): boolean; + connection_valid(connection: Connection): boolean; + ["delete"](cancellable: Gio.Cancellable | null): boolean; + delete_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + delete_finish(result: Gio.AsyncResult): boolean; + disconnect(cancellable: Gio.Cancellable | null): boolean; + disconnect(...args: never[]): never; + disconnect_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + disconnect_finish(result: Gio.AsyncResult): boolean; + filter_connections(connections: Connection[]): Connection[]; + get_active_connection(): ActiveConnection; + get_applied_connection(flags: number, cancellable: Gio.Cancellable | null): [Connection, number | null]; + get_applied_connection_async(flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + get_applied_connection_finish(result: Gio.AsyncResult): [Connection, number | null]; + get_autoconnect(): boolean; + get_available_connections(): RemoteConnection[]; + get_capabilities(): DeviceCapabilities; + get_connectivity(addr_family: number): ConnectivityState; + get_description(): string; + get_device_type(): DeviceType; + get_dhcp4_config(): DhcpConfig; + get_dhcp6_config(): DhcpConfig; + get_driver(): string; + get_driver_version(): string; + get_firmware_missing(): boolean; + get_firmware_version(): string; + get_hw_address(): string; + get_iface(): string; + get_interface_flags(): DeviceInterfaceFlags; + get_ip4_config(): IPConfig; + get_ip6_config(): IPConfig; + get_ip_iface(): string; + get_lldp_neighbors(): LldpNeighbor[]; + get_managed(): boolean; + get_metered(): Metered; + get_mtu(): number; + get_nm_plugin_missing(): boolean; + get_physical_port_id(): string; + get_product(): string; + get_setting_type(): GType; + get_state(): DeviceState; + get_state_reason(): DeviceStateReason; + get_type_description(): string; + get_udi(): string; + get_vendor(): string; + is_real(): boolean; + is_software(): boolean; + reapply(connection: Connection | null, version_id: number, flags: number, cancellable: Gio.Cancellable | null): boolean; + reapply_async(connection: Connection | null, version_id: number, flags: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + reapply_finish(result: Gio.AsyncResult): boolean; + set_autoconnect(autoconnect: boolean): void; + set_managed(managed: boolean): void; + static disambiguate_names(devices: Device[]): string[]; +} +export module Device6Lowpan { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + } +} +export class Device6Lowpan extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + get_hw_address(): string; + get_parent(): Device; +} +export module DeviceAdsl { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + carrier: boolean; + } +} +export class DeviceAdsl extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + carrier: boolean; + // Members + get_carrier(): boolean; +} +export module DeviceBond { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + carrier: boolean; + slaves: Device[]; + } +} +export class DeviceBond extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + carrier: boolean; + slaves: Device[]; + // Members + get_carrier(): boolean; + get_hw_address(): string; + get_slaves(): Device[]; +} +export module DeviceBridge { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + carrier: boolean; + slaves: Device[]; + } +} +export class DeviceBridge extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + carrier: boolean; + slaves: Device[]; + // Members + get_carrier(): boolean; + get_hw_address(): string; + get_slaves(): Device[]; +} +export module DeviceBt { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + bt_capabilities: BluetoothCapabilities; + name: string; + } +} +export class DeviceBt extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + bt_capabilities: BluetoothCapabilities; + name: string; + // Members + get_capabilities(): BluetoothCapabilities; + get_capabilities(...args: never[]): never; + get_hw_address(): string; + get_name(): string; +} +export module DeviceDummy { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + } +} +export class DeviceDummy extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + get_hw_address(): string; +} +export module DeviceEthernet { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + carrier: boolean; + perm_hw_address: string; + s390_subchannels: string[]; + speed: number; + } +} +export class DeviceEthernet extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + carrier: boolean; + perm_hw_address: string; + s390_subchannels: string[]; + speed: number; + // Members + get_carrier(): boolean; + get_hw_address(): string; + get_permanent_hw_address(): string; + get_s390_subchannels(): string[]; + get_speed(): number; +} +export module DeviceGeneric { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + type_description: string; + } +} +export class DeviceGeneric extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + type_description: string; + // Members + get_hw_address(): string; +} +export module DeviceIPTunnel { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + encapsulation_limit: number; + flags: number; + flow_label: number; + input_key: string; + local: string; + mode: number; + output_key: string; + path_mtu_discovery: boolean; + remote: string; + tos: number; + ttl: number; + } +} +export class DeviceIPTunnel extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + encapsulation_limit: number; + flags: number; + flow_label: number; + input_key: string; + local: string; + mode: number; + output_key: string; + path_mtu_discovery: boolean; + remote: string; + tos: number; + ttl: number; + // Members + get_encapsulation_limit(): number; + get_flags(): IPTunnelFlags; + get_flow_label(): number; + get_input_key(): string; + get_local(): string; + get_mode(): IPTunnelMode; + get_output_key(): string; + get_parent(): Device; + get_path_mtu_discovery(): boolean; + get_remote(): string; + get_tos(): number; + get_ttl(): number; +} +export module DeviceInfiniband { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + carrier: boolean; + } +} +export class DeviceInfiniband extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + carrier: boolean; + // Members + get_carrier(): boolean; + get_hw_address(): string; +} +export module DeviceMacsec { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + cipher_suite: number; + encoding_sa: number; + encrypt: boolean; + es: boolean; + icv_length: number; + include_sci: boolean; + protect: boolean; + replay_protect: boolean; + scb: boolean; + sci: number; + validation: string; + window: number; + } +} +export class DeviceMacsec extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + cipher_suite: number; + encoding_sa: number; + encrypt: boolean; + es: boolean; + icv_length: number; + include_sci: boolean; + protect: boolean; + replay_protect: boolean; + scb: boolean; + sci: number; + validation: string; + window: number; + // Members + get_cipher_suite(): number; + get_encoding_sa(): number; + get_encrypt(): boolean; + get_es(): boolean; + get_hw_address(): string; + get_icv_length(): number; + get_include_sci(): boolean; + get_parent(): Device; + get_protect(): boolean; + get_replay_protect(): boolean; + get_scb(): boolean; + get_sci(): number; + get_validation(): string; + get_window(): number; +} +export module DeviceMacvlan { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + mode: string; + no_promisc: boolean; + tap: boolean; + } +} +export class DeviceMacvlan extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + mode: string; + no_promisc: boolean; + tap: boolean; + // Members + get_hw_address(): string; + get_mode(): string; + get_no_promisc(): boolean; + get_parent(): Device; + get_tap(): boolean; +} +export module DeviceModem { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + apn: string; + current_capabilities: DeviceModemCapabilities; + device_id: string; + modem_capabilities: DeviceModemCapabilities; + operator_code: string; + } +} +export class DeviceModem extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + apn: string; + current_capabilities: DeviceModemCapabilities; + device_id: string; + modem_capabilities: DeviceModemCapabilities; + operator_code: string; + // Members + get_apn(): string; + get_current_capabilities(): DeviceModemCapabilities; + get_device_id(): string; + get_modem_capabilities(): DeviceModemCapabilities; + get_operator_code(): string; +} +export module DeviceOlpcMesh { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + active_channel: number; + companion: DeviceWifi; + } +} +export class DeviceOlpcMesh extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + active_channel: number; + companion: DeviceWifi; + // Members + get_active_channel(): number; + get_companion(): DeviceWifi; + get_hw_address(): string; +} +export module DeviceOvsBridge { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + slaves: Device[]; + } +} +export class DeviceOvsBridge extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + slaves: Device[]; + // Members + get_slaves(): Device[]; +} +export module DeviceOvsInterface { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + } +} +export class DeviceOvsInterface extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module DeviceOvsPort { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + slaves: Device[]; + } +} +export class DeviceOvsPort extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + slaves: Device[]; + // Members + get_slaves(): Device[]; +} +export module DevicePpp { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + } +} +export class DevicePpp extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module DeviceTeam { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + carrier: boolean; + config: string; + slaves: Device[]; + } +} +export class DeviceTeam extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + carrier: boolean; + config: string; + slaves: Device[]; + // Members + get_carrier(): boolean; + get_config(): string; + get_hw_address(): string; + get_slaves(): Device[]; +} +export module DeviceTun { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + group: number; + mode: string; + multi_queue: boolean; + no_pi: boolean; + owner: number; + vnet_hdr: boolean; + } +} +export class DeviceTun extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + group: number; + mode: string; + multi_queue: boolean; + no_pi: boolean; + owner: number; + vnet_hdr: boolean; + // Members + get_group(): number; + get_hw_address(): string; + get_mode(): string; + get_multi_queue(): boolean; + get_no_pi(): boolean; + get_owner(): number; + get_vnet_hdr(): boolean; +} +export module DeviceVlan { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + carrier: boolean; + vlan_id: number; + } +} +export class DeviceVlan extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + carrier: boolean; + vlan_id: number; + // Members + get_carrier(): boolean; + get_hw_address(): string; + get_parent(): Device; + get_vlan_id(): number; +} +export module DeviceVrf { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + table: number; + } +} +export class DeviceVrf extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + table: number; + // Members + get_table(): number; +} +export module DeviceVxlan { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + ageing: number; + carrier: boolean; + dst_port: number; + group: string; + id: number; + l2miss: boolean; + l3miss: boolean; + learning: boolean; + limit: number; + local: string; + proxy: boolean; + rsc: boolean; + src_port_max: number; + src_port_min: number; + tos: number; + ttl: number; + } +} +export class DeviceVxlan extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + ageing: number; + carrier: boolean; + dst_port: number; + group: string; + id: number; + l2miss: boolean; + l3miss: boolean; + learning: boolean; + limit: number; + local: string; + proxy: boolean; + rsc: boolean; + src_port_max: number; + src_port_min: number; + tos: number; + ttl: number; + // Members + get_ageing(): number; + get_carrier(): boolean; + get_dst_port(): number; + get_group(): string; + get_hw_address(): string; + get_id(): number; + get_l2miss(): boolean; + get_l3miss(): boolean; + get_learning(): boolean; + get_limit(): number; + get_local(): string; + get_parent(): Device; + get_proxy(): boolean; + get_rsc(): boolean; + get_src_port_max(): number; + get_src_port_min(): number; + get_tos(): number; + get_ttl(): number; +} +export module DeviceWifi { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + access_points: AccessPoint[]; + active_access_point: AccessPoint; + bitrate: number; + last_scan: number; + mode: __80211Mode; + perm_hw_address: string; + wireless_capabilities: DeviceWifiCapabilities; + } +} +export class DeviceWifi extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + access_points: AccessPoint[]; + active_access_point: AccessPoint; + bitrate: number; + last_scan: number; + mode: __80211Mode; + perm_hw_address: string; + wireless_capabilities: DeviceWifiCapabilities; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'access-point-added', callback: (_source: this, ap: GObject.Object) => void): number; + connect_after(signal: 'access-point-added', callback: (_source: this, ap: GObject.Object) => void): number; + emit(signal: 'access-point-added', ap: GObject.Object): void; + connect(signal: 'access-point-removed', callback: (_source: this, ap: GObject.Object) => void): number; + connect_after(signal: 'access-point-removed', callback: (_source: this, ap: GObject.Object) => void): number; + emit(signal: 'access-point-removed', ap: GObject.Object): void; + // Members + get_access_point_by_path(path: string): AccessPoint; + get_access_points(): AccessPoint[]; + get_active_access_point(): AccessPoint; + get_bitrate(): number; + get_capabilities(): DeviceWifiCapabilities; + get_capabilities(...args: never[]): never; + get_hw_address(): string; + get_last_scan(): number; + get_mode(): __80211Mode; + get_permanent_hw_address(): string; + request_scan(cancellable: Gio.Cancellable | null): boolean; + request_scan_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + request_scan_finish(result: Gio.AsyncResult): boolean; + request_scan_options(options: GLib.Variant, cancellable: Gio.Cancellable | null): boolean; + request_scan_options_async(options: GLib.Variant, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; +} +export module DeviceWifiP2P { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + peers: WifiP2PPeer[]; + } +} +export class DeviceWifiP2P extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + peers: WifiP2PPeer[]; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'peer-added', callback: (_source: this, peer: GObject.Object) => void): number; + connect_after(signal: 'peer-added', callback: (_source: this, peer: GObject.Object) => void): number; + emit(signal: 'peer-added', peer: GObject.Object): void; + connect(signal: 'peer-removed', callback: (_source: this, peer: GObject.Object) => void): number; + connect_after(signal: 'peer-removed', callback: (_source: this, peer: GObject.Object) => void): number; + emit(signal: 'peer-removed', peer: GObject.Object): void; + // Members + get_hw_address(): string; + get_peer_by_path(path: string): WifiP2PPeer; + get_peers(): WifiP2PPeer[]; + start_find(options: GLib.Variant | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + start_find_finish(result: Gio.AsyncResult): boolean; + stop_find(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + stop_find_finish(result: Gio.AsyncResult): boolean; +} +export module DeviceWimax { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + active_nsp: WimaxNsp; + bsid: string; + center_frequency: number; + cinr: number; + hw_address: string; + nsps: WimaxNsp[]; + rssi: number; + tx_power: number; + } +} +export class DeviceWimax extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + active_nsp: WimaxNsp; + bsid: string; + center_frequency: number; + cinr: number; + hw_address: string; + nsps: WimaxNsp[]; + rssi: number; + tx_power: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'nsp-added', callback: (_source: this, nsp: GObject.Object) => void): number; + connect_after(signal: 'nsp-added', callback: (_source: this, nsp: GObject.Object) => void): number; + emit(signal: 'nsp-added', nsp: GObject.Object): void; + connect(signal: 'nsp-removed', callback: (_source: this, nsp: GObject.Object) => void): number; + connect_after(signal: 'nsp-removed', callback: (_source: this, nsp: GObject.Object) => void): number; + emit(signal: 'nsp-removed', nsp: GObject.Object): void; + // Members + get_active_nsp(): WimaxNsp; + get_bsid(): string; + get_center_frequency(): number; + get_cinr(): number; + get_hw_address(): string; + get_nsp_by_path(path: string): WimaxNsp; + get_nsps(): WimaxNsp[]; + get_rssi(): number; + get_tx_power(): number; +} +export module DeviceWireGuard { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + fwmark: number; + listen_port: number; + public_key: GLib.Bytes; + } +} +export class DeviceWireGuard extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + fwmark: number; + listen_port: number; + public_key: GLib.Bytes; + // Members + get_fwmark(): number; + get_listen_port(): number; + get_public_key(): GLib.Bytes; +} +export module DeviceWpan { + export interface ConstructorProperties extends Device.ConstructorProperties { + [key: string]: any; + } +} +export class DeviceWpan extends Device { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + get_hw_address(): string; +} +export module DhcpConfig { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + family: number; + options: GLib.HashTable; + } +} +export abstract class DhcpConfig extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + family: number; + options: GLib.HashTable; + // Members + get_family(): number; + get_one_option(option: string): string; + get_options(): GLib.HashTable; +} +export module IPConfig { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + addresses: any[]; + domains: string[]; + family: number; + gateway: string; + nameservers: string[]; + routes: IPRoute[]; + searches: string[]; + wins_servers: string[]; + } +} +export abstract class IPConfig extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + addresses: any[]; + domains: string[]; + family: number; + gateway: string; + nameservers: string[]; + routes: IPRoute[]; + searches: string[]; + wins_servers: string[]; + // Members + get_addresses(): IPAddress[]; + get_domains(): string[]; + get_family(): number; + get_gateway(): string; + get_nameservers(): string[]; + get_routes(): IPRoute[]; + get_searches(): string[]; + get_wins_servers(): string[]; +} +export module Object { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + path: string; + } +} +export abstract class Object extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + path: string; + // Members + get_client(): Client; + get_path(): string; +} +export module RemoteConnection { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + filename: string; + flags: number; + unsaved: boolean; + visible: boolean; + } +} +export class RemoteConnection extends Object implements Connection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + filename: string; + flags: number; + unsaved: boolean; + visible: boolean; + // Members + commit_changes(save_to_disk: boolean, cancellable: Gio.Cancellable | null): boolean; + commit_changes_async(save_to_disk: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + commit_changes_finish(result: Gio.AsyncResult): boolean; + ["delete"](cancellable: Gio.Cancellable | null): boolean; + delete_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + delete_finish(result: Gio.AsyncResult): boolean; + get_filename(): string; + get_flags(): SettingsConnectionFlags; + get_secrets(setting_name: string, cancellable: Gio.Cancellable | null): GLib.Variant; + get_secrets_async(setting_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + get_secrets_finish(result: Gio.AsyncResult): GLib.Variant; + get_unsaved(): boolean; + get_visible(): boolean; + save(cancellable: Gio.Cancellable | null): boolean; + save_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + save_finish(result: Gio.AsyncResult): boolean; + update2(settings: GLib.Variant | null, flags: SettingsUpdate2Flags, args: GLib.Variant | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + update2_finish(result: Gio.AsyncResult): GLib.Variant; + // Implemented Members + add_setting(setting: Setting): void; + clear_secrets(): void; + clear_secrets_with_flags(func: SettingClearSecretsWithFlagsFn | null): void; + clear_settings(): void; + compare(b: Connection, flags: SettingCompareFlags): boolean; + diff(b: Connection, flags: SettingCompareFlags, out_settings: GLib.HashTable): boolean; + dump(): void; + for_each_setting_value(func: SettingValueIterFn): void; + get_connection_type(): string; + get_id(): string; + get_interface_name(): string; + get_path(): string; + get_setting(setting_type: GType): Setting; + get_setting_802_1x(): Setting8021x; + get_setting_adsl(): SettingAdsl; + get_setting_bluetooth(): SettingBluetooth; + get_setting_bond(): SettingBond; + get_setting_bridge(): SettingBridge; + get_setting_bridge_port(): SettingBridgePort; + get_setting_by_name(name: string): Setting; + get_setting_cdma(): SettingCdma; + get_setting_connection(): SettingConnection; + get_setting_dcb(): SettingDcb; + get_setting_dummy(): SettingDummy; + get_setting_generic(): SettingGeneric; + get_setting_gsm(): SettingGsm; + get_setting_infiniband(): SettingInfiniband; + get_setting_ip4_config(): SettingIP4Config; + get_setting_ip6_config(): SettingIP6Config; + get_setting_ip_tunnel(): SettingIPTunnel; + get_setting_macsec(): SettingMacsec; + get_setting_macvlan(): SettingMacvlan; + get_setting_olpc_mesh(): SettingOlpcMesh; + get_setting_ovs_bridge(): SettingOvsBridge; + get_setting_ovs_interface(): SettingOvsInterface; + get_setting_ovs_patch(): SettingOvsPatch; + get_setting_ovs_port(): SettingOvsPort; + get_setting_ppp(): SettingPpp; + get_setting_pppoe(): SettingPppoe; + get_setting_proxy(): SettingProxy; + get_setting_serial(): SettingSerial; + get_setting_tc_config(): SettingTCConfig; + get_setting_team(): SettingTeam; + get_setting_team_port(): SettingTeamPort; + get_setting_tun(): SettingTun; + get_setting_vlan(): SettingVlan; + get_setting_vpn(): SettingVpn; + get_setting_vxlan(): SettingVxlan; + get_setting_wimax(): SettingWimax; + get_setting_wired(): SettingWired; + get_setting_wireless(): SettingWireless; + get_setting_wireless_security(): SettingWirelessSecurity; + get_settings(): Setting[]; + get_uuid(): string; + get_virtual_device_description(): string; + is_type(type: string): boolean; + is_virtual(): boolean; + need_secrets(): [string, string[] | null]; + normalize(parameters: GLib.HashTable | null): [boolean, boolean | null]; + remove_setting(setting_type: GType): void; + replace_settings(new_settings: GLib.Variant): boolean; + replace_settings_from_connection(new_connection: Connection): void; + set_path(path: string): void; + to_dbus(flags: ConnectionSerializationFlags): GLib.Variant; + update_secrets(setting_name: string, secrets: GLib.Variant): boolean; + verify(): boolean; + verify_secrets(): boolean; + vfunc_changed(): void; + vfunc_secrets_cleared(): void; + vfunc_secrets_updated(setting: string): void; +} +export module SecretAgentOld { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + auto_register: boolean; + capabilities: SecretAgentCapabilities; + dbus_connection: Gio.DBusConnection; + identifier: string; + registered: boolean; + } +} +export abstract class SecretAgentOld extends GObject.Object implements Gio.AsyncInitable, Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + auto_register: boolean; + capabilities: SecretAgentCapabilities; + dbus_connection: Gio.DBusConnection; + identifier: string; + registered: boolean; + // Members + delete_secrets(connection: Connection, callback: SecretAgentOldDeleteSecretsFunc): void; + destroy(): void; + enable(enable: boolean): void; + get_context_busy_watcher(): T; + get_dbus_connection(): Gio.DBusConnection; + get_dbus_name_owner(): string; + get_main_context(): GLib.MainContext; + get_registered(): boolean; + get_secrets(connection: Connection, setting_name: string, hints: string[], flags: SecretAgentGetSecretsFlags, callback: SecretAgentOldGetSecretsFunc): void; + register(cancellable: Gio.Cancellable | null): boolean; + register_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + register_finish(result: Gio.AsyncResult): boolean; + save_secrets(connection: Connection, callback: SecretAgentOldSaveSecretsFunc): void; + unregister(cancellable: Gio.Cancellable | null): boolean; + unregister_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + unregister_finish(result: Gio.AsyncResult): boolean; + vfunc_cancel_get_secrets(connection_path: string, setting_name: string): void; + vfunc_delete_secrets(connection: Connection, connection_path: string, callback: SecretAgentOldDeleteSecretsFunc): void; + vfunc_get_secrets(connection: Connection, connection_path: string, setting_name: string, hints: string[], flags: SecretAgentGetSecretsFlags, callback: SecretAgentOldGetSecretsFunc): void; + vfunc_save_secrets(connection: Connection, connection_path: string, callback: SecretAgentOldSaveSecretsFunc): void; + // Implemented Members + init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + init_finish(res: Gio.AsyncResult): boolean; + new_finish(res: Gio.AsyncResult): T; + vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_init_finish(res: Gio.AsyncResult): boolean; + init(cancellable: Gio.Cancellable | null): boolean; + vfunc_init(cancellable: Gio.Cancellable | null): boolean; +} +export module Setting { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + name: string; + } +} +export abstract class Setting extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + name: string; + // Members + compare(b: Setting, flags: SettingCompareFlags): boolean; + diff(b: Setting, flags: SettingCompareFlags, invert_results: boolean, results: GLib.HashTable): [boolean, GLib.HashTable]; + duplicate(): Setting; + enumerate_values(func: SettingValueIterFn): void; + get_dbus_property_type(property_name: string): GLib.VariantType; + get_name(): string; + get_secret_flags(secret_name: string, out_flags: SettingSecretFlags): boolean; + set_secret_flags(secret_name: string, flags: SettingSecretFlags): boolean; + to_string(): string; + verify(connection: Connection | null): boolean; + verify_secrets(connection: Connection | null): boolean; + vfunc_aggregate(type_i: number, arg: any | null): boolean; + vfunc_get_secret_flags(secret_name: string, out_flags: SettingSecretFlags): boolean; + vfunc_init_from_dbus(keys: GLib.HashTable, setting_dict: GLib.Variant, connection_dict: GLib.Variant, parse_flags: number): boolean; + vfunc_set_secret_flags(secret_name: string, flags: SettingSecretFlags): boolean; + vfunc_update_one_secret(key: string, value: GLib.Variant): number; + vfunc_verify(connection: Connection): number; + vfunc_verify_secrets(connection: Connection | null): boolean; + static lookup_type(name: string): GType; +} +export module Setting6Lowpan { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + } +} +export class Setting6Lowpan extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): Setting6Lowpan; + // Members + get_parent(): string; +} +export module Setting8021x { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + altsubject_matches: string[]; + anonymous_identity: string; + auth_timeout: number; + ca_cert: GLib.Bytes; + ca_cert_password: string; + ca_cert_password_flags: SettingSecretFlags; + ca_path: string; + client_cert: GLib.Bytes; + client_cert_password: string; + client_cert_password_flags: SettingSecretFlags; + domain_match: string; + domain_suffix_match: string; + eap: string[]; + identity: string; + optional: boolean; + pac_file: string; + password: string; + password_flags: SettingSecretFlags; + password_raw: GLib.Bytes; + password_raw_flags: SettingSecretFlags; + phase1_auth_flags: number; + phase1_fast_provisioning: string; + phase1_peaplabel: string; + phase1_peapver: string; + phase2_altsubject_matches: string[]; + phase2_auth: string; + phase2_autheap: string; + phase2_ca_cert: GLib.Bytes; + phase2_ca_cert_password: string; + phase2_ca_cert_password_flags: SettingSecretFlags; + phase2_ca_path: string; + phase2_client_cert: GLib.Bytes; + phase2_client_cert_password: string; + phase2_client_cert_password_flags: SettingSecretFlags; + phase2_domain_match: string; + phase2_domain_suffix_match: string; + phase2_private_key: GLib.Bytes; + phase2_private_key_password: string; + phase2_private_key_password_flags: SettingSecretFlags; + phase2_subject_match: string; + pin: string; + pin_flags: SettingSecretFlags; + private_key: GLib.Bytes; + private_key_password: string; + private_key_password_flags: SettingSecretFlags; + subject_match: string; + system_ca_certs: boolean; + } +} +export class Setting8021x extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + altsubject_matches: string[]; + anonymous_identity: string; + auth_timeout: number; + ca_cert: GLib.Bytes; + ca_cert_password: string; + ca_cert_password_flags: SettingSecretFlags; + ca_path: string; + client_cert: GLib.Bytes; + client_cert_password: string; + client_cert_password_flags: SettingSecretFlags; + domain_match: string; + domain_suffix_match: string; + eap: string[]; + identity: string; + optional: boolean; + pac_file: string; + password: string; + password_flags: SettingSecretFlags; + password_raw: GLib.Bytes; + password_raw_flags: SettingSecretFlags; + phase1_auth_flags: number; + phase1_fast_provisioning: string; + phase1_peaplabel: string; + phase1_peapver: string; + phase2_altsubject_matches: string[]; + phase2_auth: string; + phase2_autheap: string; + phase2_ca_cert: GLib.Bytes; + phase2_ca_cert_password: string; + phase2_ca_cert_password_flags: SettingSecretFlags; + phase2_ca_path: string; + phase2_client_cert: GLib.Bytes; + phase2_client_cert_password: string; + phase2_client_cert_password_flags: SettingSecretFlags; + phase2_domain_match: string; + phase2_domain_suffix_match: string; + phase2_private_key: GLib.Bytes; + phase2_private_key_password: string; + phase2_private_key_password_flags: SettingSecretFlags; + phase2_subject_match: string; + pin: string; + pin_flags: SettingSecretFlags; + private_key: GLib.Bytes; + private_key_password: string; + private_key_password_flags: SettingSecretFlags; + subject_match: string; + system_ca_certs: boolean; + // Constructors + static ["new"](): Setting8021x; + // Members + add_altsubject_match(altsubject_match: string): boolean; + add_eap_method(eap: string): boolean; + add_phase2_altsubject_match(phase2_altsubject_match: string): boolean; + clear_altsubject_matches(): void; + clear_eap_methods(): void; + clear_phase2_altsubject_matches(): void; + get_altsubject_match(i: number): string; + get_anonymous_identity(): string; + get_auth_timeout(): number; + get_ca_cert_blob(): GLib.Bytes; + get_ca_cert_password(): string; + get_ca_cert_password_flags(): SettingSecretFlags; + get_ca_cert_path(): string; + get_ca_cert_scheme(): Setting8021xCKScheme; + get_ca_cert_uri(): string; + get_ca_path(): string; + get_client_cert_blob(): GLib.Bytes; + get_client_cert_password(): string; + get_client_cert_password_flags(): SettingSecretFlags; + get_client_cert_path(): string; + get_client_cert_scheme(): Setting8021xCKScheme; + get_client_cert_uri(): string; + get_domain_match(): string; + get_domain_suffix_match(): string; + get_eap_method(i: number): string; + get_identity(): string; + get_num_altsubject_matches(): number; + get_num_eap_methods(): number; + get_num_phase2_altsubject_matches(): number; + get_optional(): boolean; + get_pac_file(): string; + get_password(): string; + get_password_flags(): SettingSecretFlags; + get_password_raw(): GLib.Bytes; + get_password_raw_flags(): SettingSecretFlags; + get_phase1_auth_flags(): Setting8021xAuthFlags; + get_phase1_fast_provisioning(): string; + get_phase1_peaplabel(): string; + get_phase1_peapver(): string; + get_phase2_altsubject_match(i: number): string; + get_phase2_auth(): string; + get_phase2_autheap(): string; + get_phase2_ca_cert_blob(): GLib.Bytes; + get_phase2_ca_cert_password(): string; + get_phase2_ca_cert_password_flags(): SettingSecretFlags; + get_phase2_ca_cert_path(): string; + get_phase2_ca_cert_scheme(): Setting8021xCKScheme; + get_phase2_ca_cert_uri(): string; + get_phase2_ca_path(): string; + get_phase2_client_cert_blob(): GLib.Bytes; + get_phase2_client_cert_password(): string; + get_phase2_client_cert_password_flags(): SettingSecretFlags; + get_phase2_client_cert_path(): string; + get_phase2_client_cert_scheme(): Setting8021xCKScheme; + get_phase2_client_cert_uri(): string; + get_phase2_domain_match(): string; + get_phase2_domain_suffix_match(): string; + get_phase2_private_key_blob(): GLib.Bytes; + get_phase2_private_key_format(): Setting8021xCKFormat; + get_phase2_private_key_password(): string; + get_phase2_private_key_password_flags(): SettingSecretFlags; + get_phase2_private_key_path(): string; + get_phase2_private_key_scheme(): Setting8021xCKScheme; + get_phase2_private_key_uri(): string; + get_phase2_subject_match(): string; + get_pin(): string; + get_pin_flags(): SettingSecretFlags; + get_private_key_blob(): GLib.Bytes; + get_private_key_format(): Setting8021xCKFormat; + get_private_key_password(): string; + get_private_key_password_flags(): SettingSecretFlags; + get_private_key_path(): string; + get_private_key_scheme(): Setting8021xCKScheme; + get_private_key_uri(): string; + get_subject_match(): string; + get_system_ca_certs(): boolean; + remove_altsubject_match(i: number): void; + remove_altsubject_match_by_value(altsubject_match: string): boolean; + remove_eap_method(i: number): void; + remove_eap_method_by_value(eap: string): boolean; + remove_phase2_altsubject_match(i: number): void; + remove_phase2_altsubject_match_by_value(phase2_altsubject_match: string): boolean; + set_ca_cert(value: string, scheme: Setting8021xCKScheme, out_format: Setting8021xCKFormat): boolean; + set_client_cert(value: string, scheme: Setting8021xCKScheme, out_format: Setting8021xCKFormat): boolean; + set_phase2_ca_cert(value: string, scheme: Setting8021xCKScheme, out_format: Setting8021xCKFormat): boolean; + set_phase2_client_cert(value: string, scheme: Setting8021xCKScheme, out_format: Setting8021xCKFormat): boolean; + set_phase2_private_key(value: string, password: string, scheme: Setting8021xCKScheme, out_format: Setting8021xCKFormat): boolean; + set_private_key(value: string, password: string, scheme: Setting8021xCKScheme, out_format: Setting8021xCKFormat): boolean; + static check_cert_scheme(pdata: any | null, length: number): Setting8021xCKScheme; +} +export module SettingAdsl { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + encapsulation: string; + password: string; + password_flags: SettingSecretFlags; + protocol: string; + username: string; + vci: number; + vpi: number; + } +} +export class SettingAdsl extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + encapsulation: string; + password: string; + password_flags: SettingSecretFlags; + protocol: string; + username: string; + vci: number; + vpi: number; + // Constructors + static ["new"](): SettingAdsl; + // Members + get_encapsulation(): string; + get_password(): string; + get_password_flags(): SettingSecretFlags; + get_protocol(): string; + get_username(): string; + get_vci(): number; + get_vpi(): number; +} +export module SettingBluetooth { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + bdaddr: string; + type: string; + } +} +export class SettingBluetooth extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + bdaddr: string; + type: string; + // Constructors + static ["new"](): SettingBluetooth; + // Members + get_bdaddr(): string; + get_connection_type(): string; +} +export module SettingBond { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + options: GLib.HashTable; + } +} +export class SettingBond extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + options: GLib.HashTable; + // Constructors + static ["new"](): SettingBond; + // Members + add_option(name: string, value: string): boolean; + get_num_options(): number; + get_option(idx: number): [boolean, string, string]; + get_option_by_name(name: string): string; + get_option_default(name: string): string; + get_option_normalized(name: string): string; + get_valid_options(): string[]; + remove_option(name: string): boolean; + static validate_option(name: string, value: string): boolean; +} +export module SettingBridge { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + ageing_time: number; + forward_delay: number; + group_address: string; + group_forward_mask: number; + hello_time: number; + mac_address: string; + max_age: number; + multicast_querier: boolean; + multicast_query_use_ifaddr: boolean; + multicast_router: string; + multicast_snooping: boolean; + priority: number; + stp: boolean; + vlan_default_pvid: number; + vlan_filtering: boolean; + vlan_protocol: string; + vlan_stats_enabled: boolean; + vlans: BridgeVlan[]; + } +} +export class SettingBridge extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + ageing_time: number; + forward_delay: number; + group_address: string; + group_forward_mask: number; + hello_time: number; + mac_address: string; + max_age: number; + multicast_querier: boolean; + multicast_query_use_ifaddr: boolean; + multicast_router: string; + multicast_snooping: boolean; + priority: number; + stp: boolean; + vlan_default_pvid: number; + vlan_filtering: boolean; + vlan_protocol: string; + vlan_stats_enabled: boolean; + vlans: BridgeVlan[]; + // Constructors + static ["new"](): SettingBridge; + // Members + add_vlan(vlan: BridgeVlan): void; + clear_vlans(): void; + get_ageing_time(): number; + get_forward_delay(): number; + get_group_address(): string; + get_group_forward_mask(): number; + get_hello_time(): number; + get_mac_address(): string; + get_max_age(): number; + get_multicast_querier(): boolean; + get_multicast_query_use_ifaddr(): boolean; + get_multicast_router(): string; + get_multicast_snooping(): boolean; + get_num_vlans(): number; + get_priority(): number; + get_stp(): boolean; + get_vlan(idx: number): BridgeVlan; + get_vlan_default_pvid(): number; + get_vlan_filtering(): boolean; + get_vlan_protocol(): string; + get_vlan_stats_enabled(): boolean; + remove_vlan(idx: number): void; + remove_vlan_by_vid(vid_start: number, vid_end: number): boolean; +} +export module SettingBridgePort { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + hairpin_mode: boolean; + path_cost: number; + priority: number; + vlans: BridgeVlan[]; + } +} +export class SettingBridgePort extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + hairpin_mode: boolean; + path_cost: number; + priority: number; + vlans: BridgeVlan[]; + // Constructors + static ["new"](): SettingBridgePort; + // Members + add_vlan(vlan: BridgeVlan): void; + clear_vlans(): void; + get_hairpin_mode(): boolean; + get_num_vlans(): number; + get_path_cost(): number; + get_priority(): number; + get_vlan(idx: number): BridgeVlan; + remove_vlan(idx: number): void; + remove_vlan_by_vid(vid_start: number, vid_end: number): boolean; +} +export module SettingCdma { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + mtu: number; + number: string; + password: string; + password_flags: SettingSecretFlags; + username: string; + } +} +export class SettingCdma extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + mtu: number; + number: string; + password: string; + password_flags: SettingSecretFlags; + username: string; + // Constructors + static ["new"](): SettingCdma; + // Members + get_mtu(): number; + get_number(): string; + get_password(): string; + get_password_flags(): SettingSecretFlags; + get_username(): string; +} +export module SettingConnection { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + auth_retries: number; + autoconnect: boolean; + autoconnect_priority: number; + autoconnect_retries: number; + autoconnect_slaves: SettingConnectionAutoconnectSlaves; + gateway_ping_timeout: number; + id: string; + interface_name: string; + lldp: number; + llmnr: number; + master: string; + mdns: number; + metered: Metered; + multi_connect: number; + permissions: string[]; + read_only: boolean; + secondaries: string[]; + slave_type: string; + stable_id: string; + timestamp: number; + type: string; + uuid: string; + wait_device_timeout: number; + zone: string; + } +} +export class SettingConnection extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + auth_retries: number; + autoconnect: boolean; + autoconnect_priority: number; + autoconnect_retries: number; + autoconnect_slaves: SettingConnectionAutoconnectSlaves; + gateway_ping_timeout: number; + id: string; + interface_name: string; + lldp: number; + llmnr: number; + master: string; + mdns: number; + metered: Metered; + multi_connect: number; + permissions: string[]; + read_only: boolean; + secondaries: string[]; + slave_type: string; + stable_id: string; + timestamp: number; + type: string; + uuid: string; + wait_device_timeout: number; + zone: string; + // Constructors + static ["new"](): SettingConnection; + // Members + add_permission(ptype: string, pitem: string, detail: string | null): boolean; + add_secondary(sec_uuid: string): boolean; + get_auth_retries(): number; + get_autoconnect(): boolean; + get_autoconnect_priority(): number; + get_autoconnect_retries(): number; + get_autoconnect_slaves(): SettingConnectionAutoconnectSlaves; + get_connection_type(): string; + get_gateway_ping_timeout(): number; + get_id(): string; + get_interface_name(): string; + get_lldp(): SettingConnectionLldp; + get_llmnr(): SettingConnectionLlmnr; + get_master(): string; + get_mdns(): SettingConnectionMdns; + get_metered(): Metered; + get_multi_connect(): ConnectionMultiConnect; + get_num_permissions(): number; + get_num_secondaries(): number; + get_permission(idx: number, out_ptype: string, out_pitem: string, out_detail: string): boolean; + get_read_only(): boolean; + get_secondary(idx: number): string; + get_slave_type(): string; + get_stable_id(): string; + get_timestamp(): number; + get_uuid(): string; + get_wait_device_timeout(): number; + get_zone(): string; + is_slave_type(type: string): boolean; + permissions_user_allowed(uname: string): boolean; + remove_permission(idx: number): void; + remove_permission_by_value(ptype: string, pitem: string, detail: string | null): boolean; + remove_secondary(idx: number): void; + remove_secondary_by_value(sec_uuid: string): boolean; +} +export module SettingDcb { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + app_fcoe_flags: SettingDcbFlags; + app_fcoe_mode: string; + app_fcoe_priority: number; + app_fip_flags: SettingDcbFlags; + app_fip_priority: number; + app_iscsi_flags: SettingDcbFlags; + app_iscsi_priority: number; + priority_bandwidth: number[]; + priority_flow_control: boolean[]; + priority_flow_control_flags: SettingDcbFlags; + priority_group_bandwidth: number[]; + priority_group_flags: SettingDcbFlags; + priority_group_id: number[]; + priority_strict_bandwidth: boolean[]; + priority_traffic_class: number[]; + } +} +export class SettingDcb extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + app_fcoe_flags: SettingDcbFlags; + app_fcoe_mode: string; + app_fcoe_priority: number; + app_fip_flags: SettingDcbFlags; + app_fip_priority: number; + app_iscsi_flags: SettingDcbFlags; + app_iscsi_priority: number; + priority_bandwidth: number[]; + priority_flow_control: boolean[]; + priority_flow_control_flags: SettingDcbFlags; + priority_group_bandwidth: number[]; + priority_group_flags: SettingDcbFlags; + priority_group_id: number[]; + priority_strict_bandwidth: boolean[]; + priority_traffic_class: number[]; + // Constructors + static ["new"](): SettingDcb; + // Members + get_app_fcoe_flags(): SettingDcbFlags; + get_app_fcoe_mode(): string; + get_app_fcoe_priority(): number; + get_app_fip_flags(): SettingDcbFlags; + get_app_fip_priority(): number; + get_app_iscsi_flags(): SettingDcbFlags; + get_app_iscsi_priority(): number; + get_priority_bandwidth(user_priority: number): number; + get_priority_flow_control(user_priority: number): boolean; + get_priority_flow_control_flags(): SettingDcbFlags; + get_priority_group_bandwidth(group_id: number): number; + get_priority_group_flags(): SettingDcbFlags; + get_priority_group_id(user_priority: number): number; + get_priority_strict_bandwidth(user_priority: number): boolean; + get_priority_traffic_class(user_priority: number): number; + set_priority_bandwidth(user_priority: number, bandwidth_percent: number): void; + set_priority_flow_control(user_priority: number, enabled: boolean): void; + set_priority_group_bandwidth(group_id: number, bandwidth_percent: number): void; + set_priority_group_id(user_priority: number, group_id: number): void; + set_priority_strict_bandwidth(user_priority: number, strict: boolean): void; + set_priority_traffic_class(user_priority: number, traffic_class: number): void; +} +export module SettingDummy { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + } +} +export class SettingDummy extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): SettingDummy; +} +export module SettingEthtool { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + } +} +export class SettingEthtool extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): SettingEthtool; + // Members + clear_features(): void; + get_feature(optname: string): Ternary; + get_optnames(): [string[], number | null]; + set_feature(optname: string, value: Ternary): void; +} +export module SettingGeneric { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + } +} +export class SettingGeneric extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): SettingGeneric; +} +export module SettingGsm { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + apn: string; + auto_config: boolean; + device_id: string; + home_only: boolean; + mtu: number; + network_id: string; + number: string; + password: string; + password_flags: SettingSecretFlags; + pin: string; + pin_flags: SettingSecretFlags; + sim_id: string; + sim_operator_id: string; + username: string; + } +} +export class SettingGsm extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + apn: string; + auto_config: boolean; + device_id: string; + home_only: boolean; + mtu: number; + network_id: string; + number: string; + password: string; + password_flags: SettingSecretFlags; + pin: string; + pin_flags: SettingSecretFlags; + sim_id: string; + sim_operator_id: string; + username: string; + // Constructors + static ["new"](): SettingGsm; + // Members + get_apn(): string; + get_auto_config(): boolean; + get_device_id(): string; + get_home_only(): boolean; + get_mtu(): number; + get_network_id(): string; + get_number(): string; + get_password(): string; + get_password_flags(): SettingSecretFlags; + get_pin(): string; + get_pin_flags(): SettingSecretFlags; + get_sim_id(): string; + get_sim_operator_id(): string; + get_username(): string; +} +export module SettingIP4Config { + export interface ConstructorProperties extends SettingIPConfig.ConstructorProperties { + [key: string]: any; + dhcp_client_id: string; + dhcp_fqdn: string; + } +} +export class SettingIP4Config extends SettingIPConfig { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + dhcp_client_id: string; + dhcp_fqdn: string; + // Constructors + static ["new"](): SettingIP4Config; + // Members + get_dhcp_client_id(): string; + get_dhcp_fqdn(): string; +} +export module SettingIP6Config { + export interface ConstructorProperties extends SettingIPConfig.ConstructorProperties { + [key: string]: any; + addr_gen_mode: number; + dhcp_duid: string; + ip6_privacy: SettingIP6ConfigPrivacy; + ra_timeout: number; + token: string; + } +} +export class SettingIP6Config extends SettingIPConfig { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + addr_gen_mode: number; + dhcp_duid: string; + ip6_privacy: SettingIP6ConfigPrivacy; + ra_timeout: number; + token: string; + // Constructors + static ["new"](): SettingIP6Config; + // Members + get_addr_gen_mode(): SettingIP6ConfigAddrGenMode; + get_dhcp_duid(): string; + get_ip6_privacy(): SettingIP6ConfigPrivacy; + get_ra_timeout(): number; + get_token(): string; +} +export module SettingIPConfig { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + addresses: IPAddress[]; + dad_timeout: number; + dhcp_hostname: string; + dhcp_hostname_flags: number; + dhcp_iaid: string; + dhcp_send_hostname: boolean; + dhcp_timeout: number; + dns: string[]; + dns_options: string[]; + dns_priority: number; + dns_search: string[]; + gateway: string; + ignore_auto_dns: boolean; + ignore_auto_routes: boolean; + may_fail: boolean; + method: string; + never_default: boolean; + route_metric: number; + route_table: number; + routes: IPRoute[]; + } +} +export abstract class SettingIPConfig extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + addresses: IPAddress[]; + dad_timeout: number; + dhcp_hostname: string; + dhcp_hostname_flags: number; + dhcp_iaid: string; + dhcp_send_hostname: boolean; + dhcp_timeout: number; + dns: string[]; + dns_options: string[]; + dns_priority: number; + dns_search: string[]; + gateway: string; + ignore_auto_dns: boolean; + ignore_auto_routes: boolean; + may_fail: boolean; + method: string; + never_default: boolean; + route_metric: number; + route_table: number; + routes: IPRoute[]; + // Members + add_address(address: IPAddress): boolean; + add_dns(dns: string): boolean; + add_dns_option(dns_option: string): boolean; + add_dns_search(dns_search: string): boolean; + add_route(route: IPRoute): boolean; + add_routing_rule(routing_rule: IPRoutingRule): void; + clear_addresses(): void; + clear_dns(): void; + clear_dns_options(is_set: boolean): void; + clear_dns_searches(): void; + clear_routes(): void; + clear_routing_rules(): void; + get_address(idx: number): IPAddress; + get_dad_timeout(): number; + get_dhcp_hostname(): string; + get_dhcp_hostname_flags(): DhcpHostnameFlags; + get_dhcp_iaid(): string; + get_dhcp_send_hostname(): boolean; + get_dhcp_timeout(): number; + get_dns(idx: number): string; + get_dns_option(idx: number): string; + get_dns_priority(): number; + get_dns_search(idx: number): string; + get_gateway(): string; + get_ignore_auto_dns(): boolean; + get_ignore_auto_routes(): boolean; + get_may_fail(): boolean; + get_method(): string; + get_never_default(): boolean; + get_num_addresses(): number; + get_num_dns(): number; + get_num_dns_options(): number; + get_num_dns_searches(): number; + get_num_routes(): number; + get_num_routing_rules(): number; + get_route(idx: number): IPRoute; + get_route_metric(): number; + get_route_table(): number; + get_routing_rule(idx: number): IPRoutingRule; + has_dns_options(): boolean; + next_valid_dns_option(idx: number): number; + remove_address(idx: number): void; + remove_address_by_value(address: IPAddress): boolean; + remove_dns(idx: number): void; + remove_dns_by_value(dns: string): boolean; + remove_dns_option(idx: number): void; + remove_dns_option_by_value(dns_option: string): boolean; + remove_dns_search(idx: number): void; + remove_dns_search_by_value(dns_search: string): boolean; + remove_route(idx: number): void; + remove_route_by_value(route: IPRoute): boolean; + remove_routing_rule(idx: number): void; +} +export module SettingIPTunnel { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + encapsulation_limit: number; + flags: number; + flow_label: number; + input_key: string; + local: string; + mode: number; + mtu: number; + output_key: string; + path_mtu_discovery: boolean; + remote: string; + tos: number; + ttl: number; + } +} +export class SettingIPTunnel extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + encapsulation_limit: number; + flags: number; + flow_label: number; + input_key: string; + local: string; + mode: number; + mtu: number; + output_key: string; + path_mtu_discovery: boolean; + remote: string; + tos: number; + ttl: number; + // Constructors + static ["new"](): SettingIPTunnel; + // Members + get_encapsulation_limit(): number; + get_flags(): IPTunnelFlags; + get_flow_label(): number; + get_input_key(): string; + get_local(): string; + get_mode(): IPTunnelMode; + get_mtu(): number; + get_output_key(): string; + get_parent(): string; + get_path_mtu_discovery(): boolean; + get_remote(): string; + get_tos(): number; + get_ttl(): number; +} +export module SettingInfiniband { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + mac_address: string; + mtu: number; + p_key: number; + transport_mode: string; + } +} +export class SettingInfiniband extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + mac_address: string; + mtu: number; + p_key: number; + transport_mode: string; + // Constructors + static ["new"](): SettingInfiniband; + // Members + get_mac_address(): string; + get_mtu(): number; + get_p_key(): number; + get_parent(): string; + get_transport_mode(): string; + get_virtual_interface_name(): string; +} +export module SettingMacsec { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + encrypt: boolean; + mka_cak: string; + mka_cak_flags: SettingSecretFlags; + mka_ckn: string; + mode: number; + port: number; + send_sci: boolean; + validation: number; + } +} +export class SettingMacsec extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + encrypt: boolean; + mka_cak: string; + mka_cak_flags: SettingSecretFlags; + mka_ckn: string; + mode: number; + port: number; + send_sci: boolean; + validation: number; + // Constructors + static ["new"](): SettingMacsec; + // Members + get_encrypt(): boolean; + get_mka_cak(): string; + get_mka_cak_flags(): SettingSecretFlags; + get_mka_ckn(): string; + get_mode(): SettingMacsecMode; + get_parent(): string; + get_port(): number; + get_send_sci(): boolean; + get_validation(): SettingMacsecValidation; +} +export module SettingMacvlan { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + mode: number; + promiscuous: boolean; + tap: boolean; + } +} +export class SettingMacvlan extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + mode: number; + promiscuous: boolean; + tap: boolean; + // Constructors + static ["new"](): SettingMacvlan; + // Members + get_mode(): SettingMacvlanMode; + get_parent(): string; + get_promiscuous(): boolean; + get_tap(): boolean; +} +export module SettingMatch { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + interface_name: string[]; + } +} +export class SettingMatch extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + interface_name: string[]; + // Constructors + static ["new"](): SettingMatch; + // Members + add_interface_name(interface_name: string): void; + clear_interface_names(): void; + get_interface_name(idx: number): string; + get_interface_names(): string[]; + get_num_interface_names(): number; + remove_interface_name(idx: number): void; + remove_interface_name_by_value(interface_name: string): boolean; +} +export module SettingOlpcMesh { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + channel: number; + dhcp_anycast_address: string; + ssid: GLib.Bytes; + } +} +export class SettingOlpcMesh extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + channel: number; + dhcp_anycast_address: string; + ssid: GLib.Bytes; + // Constructors + static ["new"](): SettingOlpcMesh; + // Members + get_channel(): number; + get_dhcp_anycast_address(): string; + get_ssid(): GLib.Bytes; +} +export module SettingOvsBridge { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + datapath_type: string; + fail_mode: string; + mcast_snooping_enable: boolean; + rstp_enable: boolean; + stp_enable: boolean; + } +} +export class SettingOvsBridge extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + datapath_type: string; + fail_mode: string; + mcast_snooping_enable: boolean; + rstp_enable: boolean; + stp_enable: boolean; + // Constructors + static ["new"](): SettingOvsBridge; + // Members + get_datapath_type(): string; + get_fail_mode(): string; + get_mcast_snooping_enable(): boolean; + get_rstp_enable(): boolean; + get_stp_enable(): boolean; +} +export module SettingOvsDpdk { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + devargs: string; + } +} +export class SettingOvsDpdk extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + devargs: string; + // Constructors + static ["new"](): SettingOvsDpdk; + // Members + get_devargs(): string; +} +export module SettingOvsInterface { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + type: string; + } +} +export class SettingOvsInterface extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + type: string; + // Constructors + static ["new"](): SettingOvsInterface; + // Members + get_interface_type(): string; +} +export module SettingOvsPatch { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + peer: string; + } +} +export class SettingOvsPatch extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + peer: string; + // Constructors + static ["new"](): SettingOvsPatch; + // Members + get_peer(): string; +} +export module SettingOvsPort { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + bond_downdelay: number; + bond_mode: string; + bond_updelay: number; + lacp: string; + tag: number; + vlan_mode: string; + } +} +export class SettingOvsPort extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + bond_downdelay: number; + bond_mode: string; + bond_updelay: number; + lacp: string; + tag: number; + vlan_mode: string; + // Constructors + static ["new"](): SettingOvsPort; + // Members + get_bond_downdelay(): number; + get_bond_mode(): string; + get_bond_updelay(): number; + get_lacp(): string; + get_tag(): number; + get_vlan_mode(): string; +} +export module SettingPpp { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + baud: number; + crtscts: boolean; + lcp_echo_failure: number; + lcp_echo_interval: number; + mppe_stateful: boolean; + mru: number; + mtu: number; + no_vj_comp: boolean; + noauth: boolean; + nobsdcomp: boolean; + nodeflate: boolean; + refuse_chap: boolean; + refuse_eap: boolean; + refuse_mschap: boolean; + refuse_mschapv2: boolean; + refuse_pap: boolean; + require_mppe: boolean; + require_mppe_128: boolean; + } +} +export class SettingPpp extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + baud: number; + crtscts: boolean; + lcp_echo_failure: number; + lcp_echo_interval: number; + mppe_stateful: boolean; + mru: number; + mtu: number; + no_vj_comp: boolean; + noauth: boolean; + nobsdcomp: boolean; + nodeflate: boolean; + refuse_chap: boolean; + refuse_eap: boolean; + refuse_mschap: boolean; + refuse_mschapv2: boolean; + refuse_pap: boolean; + require_mppe: boolean; + require_mppe_128: boolean; + // Constructors + static ["new"](): SettingPpp; + // Members + get_baud(): number; + get_crtscts(): boolean; + get_lcp_echo_failure(): number; + get_lcp_echo_interval(): number; + get_mppe_stateful(): boolean; + get_mru(): number; + get_mtu(): number; + get_no_vj_comp(): boolean; + get_noauth(): boolean; + get_nobsdcomp(): boolean; + get_nodeflate(): boolean; + get_refuse_chap(): boolean; + get_refuse_eap(): boolean; + get_refuse_mschap(): boolean; + get_refuse_mschapv2(): boolean; + get_refuse_pap(): boolean; + get_require_mppe(): boolean; + get_require_mppe_128(): boolean; +} +export module SettingPppoe { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + password: string; + password_flags: SettingSecretFlags; + service: string; + username: string; + } +} +export class SettingPppoe extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + password: string; + password_flags: SettingSecretFlags; + service: string; + username: string; + // Constructors + static ["new"](): SettingPppoe; + // Members + get_parent(): string; + get_password(): string; + get_password_flags(): SettingSecretFlags; + get_service(): string; + get_username(): string; +} +export module SettingProxy { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + browser_only: boolean; + method: number; + pac_script: string; + pac_url: string; + } +} +export class SettingProxy extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + browser_only: boolean; + method: number; + pac_script: string; + pac_url: string; + // Constructors + static ["new"](): SettingProxy; + // Members + get_browser_only(): boolean; + get_method(): SettingProxyMethod; + get_pac_script(): string; + get_pac_url(): string; +} +export module SettingSerial { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + baud: number; + bits: number; + parity: SettingSerialParity; + send_delay: number; + stopbits: number; + } +} +export class SettingSerial extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + baud: number; + bits: number; + parity: SettingSerialParity; + send_delay: number; + stopbits: number; + // Constructors + static ["new"](): SettingSerial; + // Members + get_baud(): number; + get_bits(): number; + get_parity(): SettingSerialParity; + get_send_delay(): number; + get_stopbits(): number; +} +export module SettingSriov { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + autoprobe_drivers: Ternary; + total_vfs: number; + vfs: SriovVF[]; + } +} +export class SettingSriov extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + autoprobe_drivers: Ternary; + total_vfs: number; + vfs: SriovVF[]; + // Constructors + static ["new"](): SettingSriov; + // Members + add_vf(vf: SriovVF): void; + clear_vfs(): void; + get_autoprobe_drivers(): Ternary; + get_num_vfs(): number; + get_total_vfs(): number; + get_vf(idx: number): SriovVF; + remove_vf(idx: number): void; + remove_vf_by_index(index: number): boolean; +} +export module SettingTCConfig { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + qdiscs: TCQdisc[]; + tfilters: TCTfilter[]; + } +} +export class SettingTCConfig extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + qdiscs: TCQdisc[]; + tfilters: TCTfilter[]; + // Constructors + static ["new"](): SettingTCConfig; + // Members + add_qdisc(qdisc: TCQdisc): boolean; + add_tfilter(tfilter: TCTfilter): boolean; + clear_qdiscs(): void; + clear_tfilters(): void; + get_num_qdiscs(): number; + get_num_tfilters(): number; + get_qdisc(idx: number): TCQdisc; + get_tfilter(idx: number): TCTfilter; + remove_qdisc(idx: number): void; + remove_qdisc_by_value(qdisc: TCQdisc): boolean; + remove_tfilter(idx: number): void; + remove_tfilter_by_value(tfilter: TCTfilter): boolean; +} +export module SettingTeam { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + config: string; + link_watchers: TeamLinkWatcher[]; + mcast_rejoin_count: number; + mcast_rejoin_interval: number; + notify_peers_count: number; + notify_peers_interval: number; + runner: string; + runner_active: boolean; + runner_agg_select_policy: string; + runner_fast_rate: boolean; + runner_hwaddr_policy: string; + runner_min_ports: number; + runner_sys_prio: number; + runner_tx_balancer: string; + runner_tx_balancer_interval: number; + runner_tx_hash: string[]; + } +} +export class SettingTeam extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + config: string; + link_watchers: TeamLinkWatcher[]; + mcast_rejoin_count: number; + mcast_rejoin_interval: number; + notify_peers_count: number; + notify_peers_interval: number; + runner: string; + runner_active: boolean; + runner_agg_select_policy: string; + runner_fast_rate: boolean; + runner_hwaddr_policy: string; + runner_min_ports: number; + runner_sys_prio: number; + runner_tx_balancer: string; + runner_tx_balancer_interval: number; + runner_tx_hash: string[]; + // Constructors + static ["new"](): SettingTeam; + // Members + add_link_watcher(link_watcher: TeamLinkWatcher): boolean; + add_runner_tx_hash(txhash: string): boolean; + clear_link_watchers(): void; + get_config(): string; + get_link_watcher(idx: number): TeamLinkWatcher; + get_mcast_rejoin_count(): number; + get_mcast_rejoin_interval(): number; + get_notify_peers_count(): number; + get_notify_peers_interval(): number; + get_num_link_watchers(): number; + get_num_runner_tx_hash(): number; + get_runner(): string; + get_runner_active(): boolean; + get_runner_agg_select_policy(): string; + get_runner_fast_rate(): boolean; + get_runner_hwaddr_policy(): string; + get_runner_min_ports(): number; + get_runner_sys_prio(): number; + get_runner_tx_balancer(): string; + get_runner_tx_balancer_interval(): number; + get_runner_tx_hash(idx: number): string; + remove_link_watcher(idx: number): void; + remove_link_watcher_by_value(link_watcher: TeamLinkWatcher): boolean; + remove_runner_tx_hash(idx: number): void; + remove_runner_tx_hash_by_value(txhash: string): boolean; +} +export module SettingTeamPort { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + config: string; + lacp_key: number; + lacp_prio: number; + link_watchers: TeamLinkWatcher[]; + prio: number; + queue_id: number; + sticky: boolean; + } +} +export class SettingTeamPort extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + config: string; + lacp_key: number; + lacp_prio: number; + link_watchers: TeamLinkWatcher[]; + prio: number; + queue_id: number; + sticky: boolean; + // Constructors + static ["new"](): SettingTeamPort; + // Members + add_link_watcher(link_watcher: TeamLinkWatcher): boolean; + clear_link_watchers(): void; + get_config(): string; + get_lacp_key(): number; + get_lacp_prio(): number; + get_link_watcher(idx: number): TeamLinkWatcher; + get_num_link_watchers(): number; + get_prio(): number; + get_queue_id(): number; + get_sticky(): boolean; + remove_link_watcher(idx: number): void; + remove_link_watcher_by_value(link_watcher: TeamLinkWatcher): boolean; +} +export module SettingTun { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + group: string; + mode: number; + multi_queue: boolean; + owner: string; + pi: boolean; + vnet_hdr: boolean; + } +} +export class SettingTun extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + group: string; + mode: number; + multi_queue: boolean; + owner: string; + pi: boolean; + vnet_hdr: boolean; + // Constructors + static ["new"](): SettingTun; + // Members + get_group(): string; + get_mode(): SettingTunMode; + get_multi_queue(): boolean; + get_owner(): string; + get_pi(): boolean; + get_vnet_hdr(): boolean; +} +export module SettingUser { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + data: GLib.HashTable; + } +} +export class SettingUser extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + data: GLib.HashTable; + // Constructors + static ["new"](): SettingUser; + // Members + get_data(key: string): string; + get_data(...args: never[]): never; + get_keys(): string[]; + set_data(key: string, val: string | null): boolean; + set_data(...args: never[]): never; + static check_key(key: string): boolean; + static check_val(val: string): boolean; +} +export module SettingVlan { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + egress_priority_map: string[]; + flags: VlanFlags; + id: number; + ingress_priority_map: string[]; + } +} +export class SettingVlan extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + egress_priority_map: string[]; + flags: VlanFlags; + id: number; + ingress_priority_map: string[]; + // Constructors + static ["new"](): SettingVlan; + // Members + add_priority(map: VlanPriorityMap, from: number, to: number): boolean; + add_priority_str(map: VlanPriorityMap, str: string): boolean; + clear_priorities(map: VlanPriorityMap): void; + get_flags(): number; + get_id(): number; + get_num_priorities(map: VlanPriorityMap): number; + get_parent(): string; + get_priority(map: VlanPriorityMap, idx: number): [boolean, number | null, number | null]; + remove_priority(map: VlanPriorityMap, idx: number): void; + remove_priority_by_value(map: VlanPriorityMap, from: number, to: number): boolean; + remove_priority_str_by_value(map: VlanPriorityMap, str: string): boolean; +} +export module SettingVpn { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + data: GLib.HashTable; + persistent: boolean; + secrets: GLib.HashTable; + service_type: string; + timeout: number; + user_name: string; + } +} +export class SettingVpn extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + data: GLib.HashTable; + persistent: boolean; + secrets: GLib.HashTable; + service_type: string; + timeout: number; + user_name: string; + // Constructors + static ["new"](): SettingVpn; + // Members + add_data_item(key: string, item: string | null): void; + add_secret(key: string, secret: string | null): void; + foreach_data_item(func: VpnIterFunc): void; + foreach_secret(func: VpnIterFunc): void; + get_data_item(key: string): string; + get_data_keys(): string[]; + get_num_data_items(): number; + get_num_secrets(): number; + get_persistent(): boolean; + get_secret(key: string): string; + get_secret_keys(): string[]; + get_service_type(): string; + get_timeout(): number; + get_user_name(): string; + remove_data_item(key: string): boolean; + remove_secret(key: string): boolean; +} +export module SettingVrf { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + table: number; + } +} +export class SettingVrf extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + table: number; + // Constructors + static ["new"](): SettingVrf; + // Members + get_table(): number; +} +export module SettingVxlan { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + ageing: number; + destination_port: number; + id: number; + l2_miss: boolean; + l3_miss: boolean; + learning: boolean; + limit: number; + local: string; + proxy: boolean; + remote: string; + rsc: boolean; + source_port_max: number; + source_port_min: number; + tos: number; + ttl: number; + } +} +export class SettingVxlan extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + ageing: number; + destination_port: number; + id: number; + l2_miss: boolean; + l3_miss: boolean; + learning: boolean; + limit: number; + local: string; + proxy: boolean; + remote: string; + rsc: boolean; + source_port_max: number; + source_port_min: number; + tos: number; + ttl: number; + // Constructors + static ["new"](): SettingVxlan; + // Members + get_ageing(): number; + get_destination_port(): number; + get_id(): number; + get_l2_miss(): boolean; + get_l3_miss(): boolean; + get_learning(): boolean; + get_limit(): number; + get_local(): string; + get_parent(): string; + get_proxy(): boolean; + get_remote(): string; + get_rsc(): boolean; + get_source_port_max(): number; + get_source_port_min(): number; + get_tos(): number; + get_ttl(): number; +} +export module SettingWifiP2P { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + peer: string; + wfd_ies: GLib.Bytes; + wps_method: number; + } +} +export class SettingWifiP2P extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + peer: string; + wfd_ies: GLib.Bytes; + wps_method: number; + // Constructors + static ["new"](): SettingWifiP2P; + // Members + get_peer(): string; + get_wfd_ies(): GLib.Bytes; + get_wps_method(): SettingWirelessSecurityWpsMethod; +} +export module SettingWimax { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + mac_address: string; + network_name: string; + } +} +export class SettingWimax extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + mac_address: string; + network_name: string; + // Constructors + static ["new"](): SettingWimax; + // Members + get_mac_address(): string; + get_network_name(): string; +} +export module SettingWireGuard { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + fwmark: number; + ip4_auto_default_route: Ternary; + ip6_auto_default_route: Ternary; + listen_port: number; + mtu: number; + peer_routes: boolean; + private_key: string; + private_key_flags: SettingSecretFlags; + } +} +export class SettingWireGuard extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + fwmark: number; + ip4_auto_default_route: Ternary; + ip6_auto_default_route: Ternary; + listen_port: number; + mtu: number; + peer_routes: boolean; + private_key: string; + private_key_flags: SettingSecretFlags; + // Constructors + static ["new"](): SettingWireGuard; + // Members + append_peer(peer: WireGuardPeer): void; + clear_peers(): number; + get_fwmark(): number; + get_ip4_auto_default_route(): Ternary; + get_ip6_auto_default_route(): Ternary; + get_listen_port(): number; + get_mtu(): number; + get_peer(idx: number): WireGuardPeer; + get_peer_by_public_key(public_key: string): [WireGuardPeer, number | null]; + get_peer_routes(): boolean; + get_peers_len(): number; + get_private_key(): string; + get_private_key_flags(): SettingSecretFlags; + remove_peer(idx: number): boolean; + set_peer(peer: WireGuardPeer, idx: number): void; +} +export module SettingWired { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + auto_negotiate: boolean; + cloned_mac_address: string; + duplex: string; + generate_mac_address_mask: string; + mac_address: string; + mac_address_blacklist: string[]; + mtu: number; + port: string; + s390_nettype: string; + s390_options: GLib.HashTable; + s390_subchannels: string[]; + speed: number; + wake_on_lan: number; + wake_on_lan_password: string; + } +} +export class SettingWired extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + auto_negotiate: boolean; + cloned_mac_address: string; + duplex: string; + generate_mac_address_mask: string; + mac_address: string; + mac_address_blacklist: string[]; + mtu: number; + port: string; + s390_nettype: string; + s390_options: GLib.HashTable; + s390_subchannels: string[]; + speed: number; + wake_on_lan: number; + wake_on_lan_password: string; + // Constructors + static ["new"](): SettingWired; + // Members + add_mac_blacklist_item(mac: string): boolean; + add_s390_option(key: string, value: string): boolean; + clear_mac_blacklist_items(): void; + get_auto_negotiate(): boolean; + get_cloned_mac_address(): string; + get_duplex(): string; + get_generate_mac_address_mask(): string; + get_mac_address(): string; + get_mac_address_blacklist(): string[]; + get_mac_blacklist_item(idx: number): string; + get_mtu(): number; + get_num_mac_blacklist_items(): number; + get_num_s390_options(): number; + get_port(): string; + get_s390_nettype(): string; + get_s390_option(idx: number): [boolean, string, string]; + get_s390_option_by_key(key: string): string; + get_s390_subchannels(): string[]; + get_speed(): number; + get_valid_s390_options(): string[]; + get_wake_on_lan(): SettingWiredWakeOnLan; + get_wake_on_lan_password(): string; + remove_mac_blacklist_item(idx: number): void; + remove_mac_blacklist_item_by_value(mac: string): boolean; + remove_s390_option(key: string): boolean; +} +export module SettingWireless { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + band: string; + bssid: string; + channel: number; + cloned_mac_address: string; + generate_mac_address_mask: string; + hidden: boolean; + mac_address: string; + mac_address_blacklist: string[]; + mac_address_randomization: number; + mode: string; + mtu: number; + powersave: number; + rate: number; + seen_bssids: string[]; + ssid: GLib.Bytes; + tx_power: number; + wake_on_wlan: number; + } +} +export class SettingWireless extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + band: string; + bssid: string; + channel: number; + cloned_mac_address: string; + generate_mac_address_mask: string; + hidden: boolean; + mac_address: string; + mac_address_blacklist: string[]; + mac_address_randomization: number; + mode: string; + mtu: number; + powersave: number; + rate: number; + seen_bssids: string[]; + ssid: GLib.Bytes; + tx_power: number; + wake_on_wlan: number; + // Constructors + static ["new"](): SettingWireless; + // Members + add_mac_blacklist_item(mac: string): boolean; + add_seen_bssid(bssid: string): boolean; + ap_security_compatible(s_wireless_sec: SettingWirelessSecurity, ap_flags: __80211ApFlags, ap_wpa: __80211ApSecurityFlags, ap_rsn: __80211ApSecurityFlags, ap_mode: __80211Mode): boolean; + clear_mac_blacklist_items(): void; + get_band(): string; + get_bssid(): string; + get_channel(): number; + get_cloned_mac_address(): string; + get_generate_mac_address_mask(): string; + get_hidden(): boolean; + get_mac_address(): string; + get_mac_address_blacklist(): string[]; + get_mac_address_randomization(): SettingMacRandomization; + get_mac_blacklist_item(idx: number): string; + get_mode(): string; + get_mtu(): number; + get_num_mac_blacklist_items(): number; + get_num_seen_bssids(): number; + get_powersave(): number; + get_rate(): number; + get_seen_bssid(i: number): string; + get_ssid(): GLib.Bytes; + get_tx_power(): number; + get_wake_on_wlan(): SettingWirelessWakeOnWLan; + remove_mac_blacklist_item(idx: number): void; + remove_mac_blacklist_item_by_value(mac: string): boolean; +} +export module SettingWirelessSecurity { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + auth_alg: string; + fils: number; + group: string[]; + key_mgmt: string; + leap_password: string; + leap_password_flags: SettingSecretFlags; + leap_username: string; + pairwise: string[]; + pmf: number; + proto: string[]; + psk: string; + psk_flags: SettingSecretFlags; + wep_key_flags: SettingSecretFlags; + wep_key_type: WepKeyType; + wep_key0: string; + wep_key1: string; + wep_key2: string; + wep_key3: string; + wep_tx_keyidx: number; + wps_method: number; + } +} +export class SettingWirelessSecurity extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + auth_alg: string; + fils: number; + group: string[]; + key_mgmt: string; + leap_password: string; + leap_password_flags: SettingSecretFlags; + leap_username: string; + pairwise: string[]; + pmf: number; + proto: string[]; + psk: string; + psk_flags: SettingSecretFlags; + wep_key_flags: SettingSecretFlags; + wep_key_type: WepKeyType; + wep_key0: string; + wep_key1: string; + wep_key2: string; + wep_key3: string; + wep_tx_keyidx: number; + wps_method: number; + // Constructors + static ["new"](): SettingWirelessSecurity; + // Members + add_group(group: string): boolean; + add_pairwise(pairwise: string): boolean; + add_proto(proto: string): boolean; + clear_groups(): void; + clear_pairwise(): void; + clear_protos(): void; + get_auth_alg(): string; + get_fils(): SettingWirelessSecurityFils; + get_group(i: number): string; + get_key_mgmt(): string; + get_leap_password(): string; + get_leap_password_flags(): SettingSecretFlags; + get_leap_username(): string; + get_num_groups(): number; + get_num_pairwise(): number; + get_num_protos(): number; + get_pairwise(i: number): string; + get_pmf(): SettingWirelessSecurityPmf; + get_proto(i: number): string; + get_psk(): string; + get_psk_flags(): SettingSecretFlags; + get_wep_key(idx: number): string; + get_wep_key_flags(): SettingSecretFlags; + get_wep_key_type(): WepKeyType; + get_wep_tx_keyidx(): number; + get_wps_method(): SettingWirelessSecurityWpsMethod; + remove_group(i: number): void; + remove_group_by_value(group: string): boolean; + remove_pairwise(i: number): void; + remove_pairwise_by_value(pairwise: string): boolean; + remove_proto(i: number): void; + remove_proto_by_value(proto: string): boolean; + set_wep_key(idx: number, key: string): void; +} +export module SettingWpan { + export interface ConstructorProperties extends Setting.ConstructorProperties { + [key: string]: any; + channel: number; + mac_address: string; + page: number; + pan_id: number; + short_address: number; + } +} +export class SettingWpan extends Setting { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + channel: number; + mac_address: string; + page: number; + pan_id: number; + short_address: number; + // Constructors + static ["new"](): SettingWpan; + // Members + get_channel(): number; + get_mac_address(): string; + get_page(): number; + get_pan_id(): number; + get_short_address(): number; +} +export module SimpleConnection { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class SimpleConnection extends GObject.Object implements Connection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + static new(): Connection; + static new_clone(connection: Connection): Connection; + static new_from_dbus(dict: GLib.Variant): Connection; + // Implemented Members + add_setting(setting: Setting): void; + clear_secrets(): void; + clear_secrets_with_flags(func: SettingClearSecretsWithFlagsFn | null): void; + clear_settings(): void; + compare(b: Connection, flags: SettingCompareFlags): boolean; + diff(b: Connection, flags: SettingCompareFlags, out_settings: GLib.HashTable): boolean; + dump(): void; + for_each_setting_value(func: SettingValueIterFn): void; + get_connection_type(): string; + get_id(): string; + get_interface_name(): string; + get_path(): string; + get_setting(setting_type: GType): Setting; + get_setting_802_1x(): Setting8021x; + get_setting_adsl(): SettingAdsl; + get_setting_bluetooth(): SettingBluetooth; + get_setting_bond(): SettingBond; + get_setting_bridge(): SettingBridge; + get_setting_bridge_port(): SettingBridgePort; + get_setting_by_name(name: string): Setting; + get_setting_cdma(): SettingCdma; + get_setting_connection(): SettingConnection; + get_setting_dcb(): SettingDcb; + get_setting_dummy(): SettingDummy; + get_setting_generic(): SettingGeneric; + get_setting_gsm(): SettingGsm; + get_setting_infiniband(): SettingInfiniband; + get_setting_ip4_config(): SettingIP4Config; + get_setting_ip6_config(): SettingIP6Config; + get_setting_ip_tunnel(): SettingIPTunnel; + get_setting_macsec(): SettingMacsec; + get_setting_macvlan(): SettingMacvlan; + get_setting_olpc_mesh(): SettingOlpcMesh; + get_setting_ovs_bridge(): SettingOvsBridge; + get_setting_ovs_interface(): SettingOvsInterface; + get_setting_ovs_patch(): SettingOvsPatch; + get_setting_ovs_port(): SettingOvsPort; + get_setting_ppp(): SettingPpp; + get_setting_pppoe(): SettingPppoe; + get_setting_proxy(): SettingProxy; + get_setting_serial(): SettingSerial; + get_setting_tc_config(): SettingTCConfig; + get_setting_team(): SettingTeam; + get_setting_team_port(): SettingTeamPort; + get_setting_tun(): SettingTun; + get_setting_vlan(): SettingVlan; + get_setting_vpn(): SettingVpn; + get_setting_vxlan(): SettingVxlan; + get_setting_wimax(): SettingWimax; + get_setting_wired(): SettingWired; + get_setting_wireless(): SettingWireless; + get_setting_wireless_security(): SettingWirelessSecurity; + get_settings(): Setting[]; + get_uuid(): string; + get_virtual_device_description(): string; + is_type(type: string): boolean; + is_virtual(): boolean; + need_secrets(): [string, string[] | null]; + normalize(parameters: GLib.HashTable | null): [boolean, boolean | null]; + remove_setting(setting_type: GType): void; + replace_settings(new_settings: GLib.Variant): boolean; + replace_settings_from_connection(new_connection: Connection): void; + set_path(path: string): void; + to_dbus(flags: ConnectionSerializationFlags): GLib.Variant; + update_secrets(setting_name: string, secrets: GLib.Variant): boolean; + verify(): boolean; + verify_secrets(): boolean; + vfunc_changed(): void; + vfunc_secrets_cleared(): void; + vfunc_secrets_updated(setting: string): void; +} +export module VpnConnection { + export interface ConstructorProperties extends ActiveConnection.ConstructorProperties { + [key: string]: any; + banner: string; + vpn_state: VpnConnectionState; + } +} +export class VpnConnection extends ActiveConnection { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + banner: string; + vpn_state: VpnConnectionState; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'vpn-state-changed', callback: (_source: this, object: number, p0: number) => void): number; + connect_after(signal: 'vpn-state-changed', callback: (_source: this, object: number, p0: number) => void): number; + emit(signal: 'vpn-state-changed', object: number, p0: number): void; + // Members + get_banner(): string; + get_vpn_state(): VpnConnectionState; +} +export module VpnPluginInfo { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + filename: string; + keyfile: GLib.KeyFile; + name: string; + } +} +export class VpnPluginInfo extends GObject.Object implements Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + filename: string; + keyfile: GLib.KeyFile; + name: string; + // Constructors + static new_from_file(filename: string): VpnPluginInfo; + static new_search_file(name: string | null, service: string | null): VpnPluginInfo; + static new_with_data(filename: string, keyfile: GLib.KeyFile): VpnPluginInfo; + // Members + get_aliases(): string[]; + get_auth_dialog(): string; + get_editor_plugin(): VpnEditorPlugin; + get_filename(): string; + get_name(): string; + get_plugin(): string; + get_program(): string; + get_service(): string; + load_editor_plugin(): VpnEditorPlugin; + lookup_property(group: string, key: string): string; + set_editor_plugin(plugin: VpnEditorPlugin | null): void; + supports_hints(): boolean; + supports_multiple(): boolean; + static list_add(list: GLib.SList, plugin_info: VpnPluginInfo): boolean; + static list_find_by_filename(list: GLib.SList, filename: string): VpnPluginInfo; + static list_find_by_name(list: GLib.SList, name: string): VpnPluginInfo; + static list_find_by_service(list: GLib.SList, service: string): VpnPluginInfo; + static list_find_service_type(list: GLib.SList, name: string): string; + static list_get_service_types(list: GLib.SList, only_existing: boolean, with_abbreviations: boolean): string[]; + static list_load(): GLib.SList; + static list_remove(list: GLib.SList, plugin_info: VpnPluginInfo): boolean; + static validate_filename(filename: string): boolean; + // Implemented Members + init(cancellable: Gio.Cancellable | null): boolean; + vfunc_init(cancellable: Gio.Cancellable | null): boolean; +} +export module VpnPluginOld { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + service_name: string; + state: VpnServiceState; + } +} +export abstract class VpnPluginOld extends GObject.Object implements Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + service_name: string; + state: VpnServiceState; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'config', callback: (_source: this, object: GLib.Variant) => void): number; + connect_after(signal: 'config', callback: (_source: this, object: GLib.Variant) => void): number; + emit(signal: 'config', object: GLib.Variant): void; + connect(signal: 'failure', callback: (_source: this, object: number) => void): number; + connect_after(signal: 'failure', callback: (_source: this, object: number) => void): number; + emit(signal: 'failure', object: number): void; + connect(signal: 'ip4-config', callback: (_source: this, object: GLib.Variant) => void): number; + connect_after(signal: 'ip4-config', callback: (_source: this, object: GLib.Variant) => void): number; + emit(signal: 'ip4-config', object: GLib.Variant): void; + connect(signal: 'ip6-config', callback: (_source: this, object: GLib.Variant) => void): number; + connect_after(signal: 'ip6-config', callback: (_source: this, object: GLib.Variant) => void): number; + emit(signal: 'ip6-config', object: GLib.Variant): void; + connect(signal: 'login-banner', callback: (_source: this, object: string) => void): number; + connect_after(signal: 'login-banner', callback: (_source: this, object: string) => void): number; + emit(signal: 'login-banner', object: string): void; + connect(signal: 'quit', callback: (_source: this) => void): number; + connect_after(signal: 'quit', callback: (_source: this) => void): number; + emit(signal: 'quit'): void; + connect(signal: 'secrets-required', callback: (_source: this, object: string, p0: string[]) => void): number; + connect_after(signal: 'secrets-required', callback: (_source: this, object: string, p0: string[]) => void): number; + emit(signal: 'secrets-required', object: string, p0: string[]): void; + connect(signal: 'state-changed', callback: (_source: this, object: number) => void): number; + connect_after(signal: 'state-changed', callback: (_source: this, object: number) => void): number; + emit(signal: 'state-changed', object: number): void; + // Members + disconnect(): boolean; + disconnect(...args: never[]): never; + failure(reason: VpnPluginFailure): void; + get_connection(): Gio.DBusConnection; + get_state(): VpnServiceState; + secrets_required(message: string, hints: string): void; + set_config(config: GLib.Variant): void; + set_ip4_config(ip4_config: GLib.Variant): void; + set_ip6_config(ip6_config: GLib.Variant): void; + set_login_banner(banner: string): void; + set_state(state: VpnServiceState): void; + vfunc_config(config: GLib.Variant): void; + vfunc_connect(connection: Connection): boolean; + vfunc_connect_interactive(connection: Connection, details: GLib.Variant): boolean; + vfunc_disconnect(): boolean; + vfunc_failure(reason: VpnPluginFailure): void; + vfunc_ip4_config(ip4_config: GLib.Variant): void; + vfunc_ip6_config(config: GLib.Variant): void; + vfunc_login_banner(banner: string): void; + vfunc_need_secrets(connection: Connection, setting_name: string): boolean; + vfunc_new_secrets(connection: Connection): boolean; + vfunc_quit(): void; + vfunc_state_changed(state: VpnServiceState): void; + static get_secret_flags(data: GLib.HashTable, secret_name: string): [boolean, SettingSecretFlags]; + static read_vpn_details(fd: number): [boolean, GLib.HashTable, GLib.HashTable]; + // Implemented Members + init(cancellable: Gio.Cancellable | null): boolean; + vfunc_init(cancellable: Gio.Cancellable | null): boolean; +} +export module VpnServicePlugin { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + service_name: string; + state: VpnServiceState; + watch_peer: boolean; + } +} +export abstract class VpnServicePlugin extends GObject.Object implements Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + service_name: string; + state: VpnServiceState; + watch_peer: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'config', callback: (_source: this, object: GLib.Variant) => void): number; + connect_after(signal: 'config', callback: (_source: this, object: GLib.Variant) => void): number; + emit(signal: 'config', object: GLib.Variant): void; + connect(signal: 'failure', callback: (_source: this, object: number) => void): number; + connect_after(signal: 'failure', callback: (_source: this, object: number) => void): number; + emit(signal: 'failure', object: number): void; + connect(signal: 'ip4-config', callback: (_source: this, object: GLib.Variant) => void): number; + connect_after(signal: 'ip4-config', callback: (_source: this, object: GLib.Variant) => void): number; + emit(signal: 'ip4-config', object: GLib.Variant): void; + connect(signal: 'ip6-config', callback: (_source: this, object: GLib.Variant) => void): number; + connect_after(signal: 'ip6-config', callback: (_source: this, object: GLib.Variant) => void): number; + emit(signal: 'ip6-config', object: GLib.Variant): void; + connect(signal: 'login-banner', callback: (_source: this, object: string) => void): number; + connect_after(signal: 'login-banner', callback: (_source: this, object: string) => void): number; + emit(signal: 'login-banner', object: string): void; + connect(signal: 'quit', callback: (_source: this) => void): number; + connect_after(signal: 'quit', callback: (_source: this) => void): number; + emit(signal: 'quit'): void; + connect(signal: 'secrets-required', callback: (_source: this, object: string, p0: string[]) => void): number; + connect_after(signal: 'secrets-required', callback: (_source: this, object: string, p0: string[]) => void): number; + emit(signal: 'secrets-required', object: string, p0: string[]): void; + connect(signal: 'state-changed', callback: (_source: this, object: number) => void): number; + connect_after(signal: 'state-changed', callback: (_source: this, object: number) => void): number; + emit(signal: 'state-changed', object: number): void; + // Members + disconnect(): boolean; + disconnect(...args: never[]): never; + failure(reason: VpnPluginFailure): void; + get_connection(): Gio.DBusConnection; + secrets_required(message: string, hints: string): void; + set_config(config: GLib.Variant): void; + set_ip4_config(ip4_config: GLib.Variant): void; + set_ip6_config(ip6_config: GLib.Variant): void; + set_login_banner(banner: string): void; + shutdown(): void; + vfunc_config(config: GLib.Variant): void; + vfunc_connect(connection: Connection): boolean; + vfunc_connect_interactive(connection: Connection, details: GLib.Variant): boolean; + vfunc_disconnect(): boolean; + vfunc_failure(reason: VpnPluginFailure): void; + vfunc_ip4_config(ip4_config: GLib.Variant): void; + vfunc_ip6_config(config: GLib.Variant): void; + vfunc_login_banner(banner: string): void; + vfunc_need_secrets(connection: Connection, setting_name: string): boolean; + vfunc_new_secrets(connection: Connection): boolean; + vfunc_quit(): void; + vfunc_state_changed(state: VpnServiceState): void; + static get_secret_flags(data: GLib.HashTable, secret_name: string): [boolean, SettingSecretFlags]; + static read_vpn_details(fd: number): [boolean, GLib.HashTable, GLib.HashTable]; + // Implemented Members + init(cancellable: Gio.Cancellable | null): boolean; + vfunc_init(cancellable: Gio.Cancellable | null): boolean; +} +export module WifiP2PPeer { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + flags: __80211ApFlags; + hw_address: string; + last_seen: number; + manufacturer: string; + model: string; + model_number: string; + name: string; + serial: string; + strength: number; + wfd_ies: GLib.Bytes; + } +} +export class WifiP2PPeer extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + flags: __80211ApFlags; + hw_address: string; + last_seen: number; + manufacturer: string; + model: string; + model_number: string; + name: string; + serial: string; + strength: number; + wfd_ies: GLib.Bytes; + // Members + connection_valid(connection: Connection): boolean; + filter_connections(connections: Connection[]): Connection[]; + get_flags(): __80211ApFlags; + get_hw_address(): string; + get_last_seen(): number; + get_manufacturer(): string; + get_model(): string; + get_model_number(): string; + get_name(): string; + get_serial(): string; + get_strength(): number; + get_wfd_ies(): GLib.Bytes; +} +export module WimaxNsp { + export interface ConstructorProperties extends Object.ConstructorProperties { + [key: string]: any; + name: string; + network_type: WimaxNspNetworkType; + signal_quality: number; + } +} +export class WimaxNsp extends Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + name: string; + network_type: WimaxNspNetworkType; + signal_quality: number; + // Members + connection_valid(connection: Connection): boolean; + filter_connections(connections: Connection[]): Connection[]; + get_name(): string; + get_network_type(): WimaxNspNetworkType; + get_signal_quality(): number; +} +export class BridgeVlan { + constructor(vid_start: number, vid_end: number); + constructor(copy: BridgeVlan); + // Constructors + static ["new"](vid_start: number, vid_end: number): BridgeVlan; + // Members + cmp(b: BridgeVlan): number; + get_vid_range(): [boolean, number, number]; + is_pvid(): boolean; + is_sealed(): boolean; + is_untagged(): boolean; + new_clone(): BridgeVlan; + ref(): BridgeVlan; + seal(): void; + set_pvid(value: boolean): void; + set_untagged(value: boolean): void; + to_str(): string; + unref(): void; + static from_str(str: string): BridgeVlan; +} +export class DnsEntry { + constructor(copy: DnsEntry); + // Members + get_domains(): string[]; + get_interface(): string; + get_nameservers(): string[]; + get_priority(): number; + get_vpn(): boolean; + unref(): void; +} +export class IPAddress { + constructor(family: number, addr: string, prefix: number); + constructor(copy: IPAddress); + // Constructors + static ["new"](family: number, addr: string, prefix: number): IPAddress; + static new_binary(family: number, addr: any | null, prefix: number): IPAddress; + // Members + cmp_full(b: IPAddress, cmp_flags: IPAddressCmpFlags): number; + dup(): IPAddress; + equal(other: IPAddress): boolean; + get_address(): string; + get_attribute(name: string): GLib.Variant; + get_attribute_names(): string[]; + get_family(): number; + get_prefix(): number; + ref(): void; + set_address(addr: string): void; + set_attribute(name: string, value: GLib.Variant | null): void; + set_prefix(prefix: number): void; + unref(): void; +} +export class IPRoute { + constructor(family: number, dest: string, prefix: number, next_hop: string | null, metric: number); + constructor(copy: IPRoute); + // Constructors + static ["new"](family: number, dest: string, prefix: number, next_hop: string | null, metric: number): IPRoute; + static new_binary(family: number, dest: any | null, prefix: number, next_hop: any | null, metric: number): IPRoute; + // Members + dup(): IPRoute; + equal(other: IPRoute): boolean; + equal_full(other: IPRoute, cmp_flags: number): boolean; + get_attribute(name: string): GLib.Variant; + get_attribute_names(): string[]; + get_dest(): string; + get_family(): number; + get_metric(): number; + get_next_hop(): string; + get_prefix(): number; + ref(): void; + set_attribute(name: string, value: GLib.Variant | null): void; + set_dest(dest: string): void; + set_metric(metric: number): void; + set_next_hop(next_hop: string | null): void; + set_prefix(prefix: number): void; + unref(): void; + static attribute_validate(name: string, value: GLib.Variant, family: number): [boolean, boolean]; + static get_variant_attribute_spec(): VariantAttributeSpec; +} +export class IPRoutingRule { + constructor(addr_family: number); + constructor(copy: IPRoutingRule); + // Constructors + static ["new"](addr_family: number): IPRoutingRule; + // Members + cmp(other: IPRoutingRule | null): number; + get_action(): number; + get_addr_family(): number; + get_destination_port_end(): number; + get_destination_port_start(): number; + get_from(): string; + get_from_len(): number; + get_fwmark(): number; + get_fwmask(): number; + get_iifname(): string; + get_invert(): boolean; + get_ipproto(): number; + get_oifname(): string; + get_priority(): number; + get_source_port_end(): number; + get_source_port_start(): number; + get_suppress_prefixlength(): number; + get_table(): number; + get_to(): string; + get_to_len(): number; + get_tos(): number; + is_sealed(): boolean; + new_clone(): IPRoutingRule; + ref(): IPRoutingRule; + seal(): void; + set_action(action: number): void; + set_destination_port(start: number, end: number): void; + set_from(from: string | null, len: number): void; + set_fwmark(fwmark: number, fwmask: number): void; + set_iifname(iifname: string | null): void; + set_invert(invert: boolean): void; + set_ipproto(ipproto: number): void; + set_oifname(oifname: string | null): void; + set_priority(priority: number): void; + set_source_port(start: number, end: number): void; + set_suppress_prefixlength(suppress_prefixlength: number): void; + set_table(table: number): void; + set_to(to: string | null, len: number): void; + set_tos(tos: number): void; + to_string(to_string_flags: IPRoutingRuleAsStringFlags, extra_args: GLib.HashTable | null): string; + unref(): void; + validate(): boolean; + static from_string(str: string, to_string_flags: IPRoutingRuleAsStringFlags, extra_args: GLib.HashTable | null): IPRoutingRule; +} +export class LldpNeighbor { + constructor(); + constructor(copy: LldpNeighbor); + // Constructors + static ["new"](): LldpNeighbor; + // Members + get_attr_names(): string[]; + get_attr_string_value(name: string): [boolean, string | null]; + get_attr_type(name: string): GLib.VariantType; + get_attr_uint_value(name: string): [boolean, number | null]; + get_attr_value(name: string): GLib.Variant; + ref(): void; + unref(): void; +} +export class SriovVF { + constructor(index: number); + constructor(copy: SriovVF); + // Constructors + static ["new"](index: number): SriovVF; + // Members + add_vlan(vlan_id: number): boolean; + dup(): SriovVF; + equal(other: SriovVF): boolean; + get_attribute(name: string): GLib.Variant; + get_attribute_names(): string[]; + get_index(): number; + get_vlan_ids(): number[]; + get_vlan_protocol(vlan_id: number): SriovVFVlanProtocol; + get_vlan_qos(vlan_id: number): number; + ref(): void; + remove_vlan(vlan_id: number): boolean; + set_attribute(name: string, value: GLib.Variant | null): void; + set_vlan_protocol(vlan_id: number, protocol: SriovVFVlanProtocol): void; + set_vlan_qos(vlan_id: number, qos: number): void; + unref(): void; + static attribute_validate(name: string, value: GLib.Variant): [boolean, boolean]; +} +export class TCAction { + constructor(kind: string); + constructor(copy: TCAction); + // Constructors + static ["new"](kind: string): TCAction; + // Members + dup(): TCAction; + equal(other: TCAction): boolean; + get_attribute(name: string): GLib.Variant; + get_attribute_names(): string[]; + get_kind(): string; + ref(): void; + set_attribute(name: string, value: GLib.Variant | null): void; + unref(): void; +} +export class TCQdisc { + constructor(kind: string, parent: number); + constructor(copy: TCQdisc); + // Constructors + static ["new"](kind: string, parent: number): TCQdisc; + // Members + dup(): TCQdisc; + equal(other: TCQdisc): boolean; + get_attribute(name: string): GLib.Variant; + get_attribute_names(): string[]; + get_handle(): number; + get_kind(): string; + get_parent(): number; + ref(): void; + set_attribute(name: string, value: GLib.Variant | null): void; + set_handle(handle: number): void; + unref(): void; +} +export class TCTfilter { + constructor(kind: string, parent: number); + constructor(copy: TCTfilter); + // Constructors + static ["new"](kind: string, parent: number): TCTfilter; + // Members + dup(): TCTfilter; + equal(other: TCTfilter): boolean; + get_action(): TCAction; + get_handle(): number; + get_kind(): string; + get_parent(): number; + ref(): void; + set_action(action: TCAction): void; + set_handle(handle: number): void; + unref(): void; +} +export class TeamLinkWatcher { + constructor(init_wait: number, interval: number, missed_max: number, target_host: string, source_host: string, flags: TeamLinkWatcherArpPingFlags); + constructor(copy: TeamLinkWatcher); + // Constructors + static new_arp_ping(init_wait: number, interval: number, missed_max: number, target_host: string, source_host: string, flags: TeamLinkWatcherArpPingFlags): TeamLinkWatcher; + static new_arp_ping2(init_wait: number, interval: number, missed_max: number, vlanid: number, target_host: string, source_host: string, flags: TeamLinkWatcherArpPingFlags): TeamLinkWatcher; + static new_ethtool(delay_up: number, delay_down: number): TeamLinkWatcher; + static new_nsna_ping(init_wait: number, interval: number, missed_max: number, target_host: string): TeamLinkWatcher; + // Members + dup(): TeamLinkWatcher; + equal(other: TeamLinkWatcher): boolean; + get_delay_down(): number; + get_delay_up(): number; + get_flags(): TeamLinkWatcherArpPingFlags; + get_init_wait(): number; + get_interval(): number; + get_missed_max(): number; + get_name(): string; + get_source_host(): string; + get_target_host(): string; + get_vlanid(): number; + ref(): void; + unref(): void; +} +export class VariantAttributeSpec { + constructor(copy: VariantAttributeSpec); +} +export class VpnEditorPluginVT { + constructor(copy: VpnEditorPluginVT); +} +export class WireGuardPeer { + constructor(); + constructor(copy: WireGuardPeer); + // Constructors + static ["new"](): WireGuardPeer; + // Members + append_allowed_ip(allowed_ip: string, accept_invalid: boolean): boolean; + clear_allowed_ips(): void; + cmp(b: WireGuardPeer | null, compare_flags: SettingCompareFlags): number; + get_allowed_ip(idx: number, out_is_valid: boolean | null): string; + get_allowed_ips_len(): number; + get_endpoint(): string; + get_persistent_keepalive(): number; + get_preshared_key(): string; + get_preshared_key_flags(): SettingSecretFlags; + get_public_key(): string; + is_sealed(): boolean; + is_valid(check_non_secrets: boolean, check_secrets: boolean): boolean; + new_clone(with_secrets: boolean): WireGuardPeer; + ref(): WireGuardPeer; + remove_allowed_ip(idx: number): boolean; + seal(): void; + set_endpoint(endpoint: string, allow_invalid: boolean): boolean; + set_persistent_keepalive(persistent_keepalive: number): void; + set_preshared_key(preshared_key: string | null, accept_invalid: boolean): boolean; + set_preshared_key_flags(preshared_key_flags: SettingSecretFlags): void; + set_public_key(public_key: string | null, accept_invalid: boolean): boolean; + unref(): void; +} +export interface ConnectionNamespace { + $gtype: GType; +} +export interface Connection extends GObject.Object { + // Members + add_setting(setting: Setting): void; + clear_secrets(): void; + clear_secrets_with_flags(func: SettingClearSecretsWithFlagsFn | null): void; + clear_settings(): void; + compare(b: Connection, flags: SettingCompareFlags): boolean; + diff(b: Connection, flags: SettingCompareFlags, out_settings: GLib.HashTable): boolean; + dump(): void; + for_each_setting_value(func: SettingValueIterFn): void; + get_connection_type(): string; + get_id(): string; + get_interface_name(): string; + get_path(): string; + get_setting(setting_type: GType): Setting; + get_setting_802_1x(): Setting8021x; + get_setting_adsl(): SettingAdsl; + get_setting_bluetooth(): SettingBluetooth; + get_setting_bond(): SettingBond; + get_setting_bridge(): SettingBridge; + get_setting_bridge_port(): SettingBridgePort; + get_setting_by_name(name: string): Setting; + get_setting_cdma(): SettingCdma; + get_setting_connection(): SettingConnection; + get_setting_dcb(): SettingDcb; + get_setting_dummy(): SettingDummy; + get_setting_generic(): SettingGeneric; + get_setting_gsm(): SettingGsm; + get_setting_infiniband(): SettingInfiniband; + get_setting_ip4_config(): SettingIP4Config; + get_setting_ip6_config(): SettingIP6Config; + get_setting_ip_tunnel(): SettingIPTunnel; + get_setting_macsec(): SettingMacsec; + get_setting_macvlan(): SettingMacvlan; + get_setting_olpc_mesh(): SettingOlpcMesh; + get_setting_ovs_bridge(): SettingOvsBridge; + get_setting_ovs_interface(): SettingOvsInterface; + get_setting_ovs_patch(): SettingOvsPatch; + get_setting_ovs_port(): SettingOvsPort; + get_setting_ppp(): SettingPpp; + get_setting_pppoe(): SettingPppoe; + get_setting_proxy(): SettingProxy; + get_setting_serial(): SettingSerial; + get_setting_tc_config(): SettingTCConfig; + get_setting_team(): SettingTeam; + get_setting_team_port(): SettingTeamPort; + get_setting_tun(): SettingTun; + get_setting_vlan(): SettingVlan; + get_setting_vpn(): SettingVpn; + get_setting_vxlan(): SettingVxlan; + get_setting_wimax(): SettingWimax; + get_setting_wired(): SettingWired; + get_setting_wireless(): SettingWireless; + get_setting_wireless_security(): SettingWirelessSecurity; + get_settings(): Setting[]; + get_uuid(): string; + get_virtual_device_description(): string; + is_type(type: string): boolean; + is_virtual(): boolean; + need_secrets(): [string, string[] | null]; + normalize(parameters: GLib.HashTable | null): [boolean, boolean | null]; + remove_setting(setting_type: GType): void; + replace_settings(new_settings: GLib.Variant): boolean; + replace_settings_from_connection(new_connection: Connection): void; + set_path(path: string): void; + to_dbus(flags: ConnectionSerializationFlags): GLib.Variant; + update_secrets(setting_name: string, secrets: GLib.Variant): boolean; + verify(): boolean; + verify_secrets(): boolean; + vfunc_changed(): void; + vfunc_secrets_cleared(): void; + vfunc_secrets_updated(setting: string): void; +} + +export const Connection: ConnectionNamespace; +export interface VpnEditorNamespace { + $gtype: GType; +} +export interface VpnEditor extends GObject.Object { + // Members + get_widget(): T; + update_connection(connection: Connection): boolean; + vfunc_changed(): void; + vfunc_get_widget(): T; + vfunc_update_connection(connection: Connection): boolean; +} + +export const VpnEditor: VpnEditorNamespace; +export interface VpnEditorPluginNamespace { + $gtype: GType; + load(plugin_name: string, check_service: string): VpnEditorPlugin; + load_from_file(plugin_name: string, check_service: string, check_owner: number, check_file: UtilsCheckFilePredicate): VpnEditorPlugin; +} +export interface VpnEditorPlugin extends GObject.Object { + // Properties + description: string; + name: string; + service: string; + // Members + ["export"](path: string, connection: Connection): boolean; + get_capabilities(): VpnEditorPluginCapability; + get_editor(connection: Connection): VpnEditor; + get_plugin_info(): VpnPluginInfo; + get_suggested_filename(connection: Connection): string; + get_vt(vt_size: number): [number, VpnEditorPluginVT]; + ["import"](path: string): Connection; + set_plugin_info(plugin_info: VpnPluginInfo | null): void; + vfunc_export_to_file(path: string, connection: Connection): boolean; + vfunc_get_capabilities(): VpnEditorPluginCapability; + vfunc_get_editor(connection: Connection): VpnEditor; + vfunc_get_suggested_filename(connection: Connection): string; + vfunc_get_vt(out_vt_size: number): VpnEditorPluginVT; + vfunc_notify_plugin_info_set(plugin_info: VpnPluginInfo): void; +} + +export const VpnEditorPlugin: VpnEditorPluginNamespace; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/pango.d.ts b/gi/pango.d.ts similarity index 89% rename from dynamic-panel-transparency@rockon999.github.io/gi/pango.d.ts rename to gi/pango.d.ts index a3390e4..d865254 100644 --- a/dynamic-panel-transparency@rockon999.github.io/gi/pango.d.ts +++ b/gi/pango.d.ts @@ -491,8 +491,8 @@ export module Context { } } export class Context extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): Context; // Members @@ -526,8 +526,8 @@ export module Coverage { } } export class Coverage extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](): Coverage; // Members @@ -538,9 +538,9 @@ export class Coverage extends GObject.Object { ref(...args: never[]): never; set(index_: number, level: CoverageLevel): void; set(...args: never[]): never; - to_bytes(): number[]; + to_bytes(): Uint8Array; unref(): void; - static from_bytes(bytes: number[]): Coverage | null; + static from_bytes(bytes: (Uint8Array | string)): Coverage | null; } export module Engine { export interface ConstructorProperties extends GObject.Object.ConstructorProperties { @@ -548,8 +548,8 @@ export module Engine { } } export abstract class Engine extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; } export module EngineLang { export interface ConstructorProperties extends Engine.ConstructorProperties { @@ -557,8 +557,8 @@ export module EngineLang { } } export abstract class EngineLang extends Engine { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members vfunc_script_break(text: string, len: number, analysis: Analysis, attrs: LogAttr, attrs_len: number): void; } @@ -568,8 +568,8 @@ export module EngineShape { } } export abstract class EngineShape extends Engine { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members vfunc_covers(font: Font, language: Language, wc: number): CoverageLevel; vfunc_script_shape(font: Font, item_text: string, item_length: number, analysis: Analysis, glyphs: GlyphString, paragraph_text: string, paragraph_length: number): void; @@ -580,8 +580,8 @@ export module Font { } } export abstract class Font extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members describe(): FontDescription; describe_with_absolute_size(): FontDescription; @@ -605,8 +605,8 @@ export module FontFace { } } export abstract class FontFace extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members describe(): FontDescription; get_face_name(): string; @@ -623,8 +623,8 @@ export module FontFamily { } } export abstract class FontFamily extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members get_name(): string; is_monospace(): boolean; @@ -641,8 +641,8 @@ export module FontMap { } } export abstract class FontMap extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members changed(): void; create_context(): Context; @@ -662,13 +662,13 @@ export module Fontset { } } export abstract class Fontset extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Members - foreach(func: FontsetForeachFunc, data: any | null): void; + foreach(func: FontsetForeachFunc): void; get_font(wc: number): Font; get_metrics(): FontMetrics; - vfunc_foreach(func: FontsetForeachFunc, data: any | null): void; + vfunc_foreach(func: FontsetForeachFunc): void; vfunc_get_font(wc: number): Font; vfunc_get_language(): Language; vfunc_get_metrics(): FontMetrics; @@ -679,8 +679,8 @@ export module FontsetSimple { } } export class FontsetSimple extends Fontset { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](language: Language): FontsetSimple; // Members @@ -693,8 +693,8 @@ export module Layout { } } export class Layout extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Constructors static ["new"](context: Context): Layout; // Members @@ -718,10 +718,10 @@ export class Layout extends GObject.Object { get_line_count(): number; get_line_readonly(line: number): LayoutLine | null; get_line_spacing(): number; - get_lines(): string[]; - get_lines_readonly(): string[]; + get_lines(): GLib.SList; + get_lines_readonly(): GLib.SList; get_log_attrs(): LogAttr[]; - get_log_attrs_readonly(): [LogAttr[], number]; + get_log_attrs_readonly(): LogAttr[]; get_pixel_extents(): [Rectangle | null, Rectangle | null]; get_pixel_size(): [number | null, number | null]; get_serial(): number; @@ -763,8 +763,8 @@ export module Renderer { } } export abstract class Renderer extends GObject.Object { - constructor(properties: Partial, ...args: any[]); - _init(properties: Partial); + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; // Fields matrix: Matrix; // Members @@ -810,7 +810,7 @@ export class Analysis { flags: number; script: number; language: Language; - extra_attrs: string[]; + extra_attrs: GLib.SList; } export class AttrClass { constructor(copy: AttrClass); @@ -857,8 +857,8 @@ export class AttrIterator { copy(): AttrIterator; destroy(): void; get(type: AttrType): Attribute | null; - get_attrs(): string[]; - get_font(desc: FontDescription, language: Language | null, extra_attrs: string[] | null): void; + get_attrs(): GLib.SList; + get_font(desc: FontDescription, language: Language | null, extra_attrs: GLib.SList | null): void; next(): boolean; range(): [number, number]; } @@ -878,8 +878,8 @@ export class AttrList { // Members change(attr: Attribute): void; copy(): AttrList | null; - filter(func: AttrFilterFunc, data: any | null): AttrList | null; - get_attributes(): string[]; + filter(func: AttrFilterFunc): AttrList | null; + get_attributes(): GLib.SList; get_iterator(): AttrIterator; insert(attr: Attribute): void; insert_before(attr: Attribute): void; @@ -930,6 +930,11 @@ export class Attribute { init(klass: AttrClass): void; } export class Color { + constructor(properties?: { + red?: number; + green?: number; + blue?: number; + }); constructor(copy: Color); // Fields red: number; @@ -997,6 +1002,18 @@ export class FontDescription { static from_string(str: string): FontDescription; } export class FontMetrics { + constructor(properties?: { + ref_count?: number; + ascent?: number; + descent?: number; + height?: number; + approximate_char_width?: number; + approximate_digit_width?: number; + underline_position?: number; + underline_thickness?: number; + strikethrough_position?: number; + strikethrough_thickness?: number; + }); constructor(copy: FontMetrics); // Fields ref_count: number; @@ -1042,7 +1059,7 @@ export class GlyphItem { item: Item; glyphs: GlyphString; // Members - apply_attrs(text: string, list: AttrList): string[]; + apply_attrs(text: string, list: AttrList): GLib.SList; copy(): GlyphItem | null; free(): void; get_logical_widths(text: string, logical_widths: number[]): void; @@ -1090,6 +1107,9 @@ export class GlyphString { x_to_index(text: string, length: number, analysis: Analysis, x_pos: number): [number, number]; } export class GlyphVisAttr { + constructor(properties?: { + is_cluster_start?: number; + }); constructor(copy: GlyphVisAttr); // Fields is_cluster_start: number; @@ -1117,7 +1137,7 @@ export class Language { constructor(copy: Language); // Members get_sample_string(): string; - get_scripts(): [Script[] | null, number | null]; + get_scripts(): Script[] | null; includes_script(script: Script): boolean; matches(range_list: string): boolean; to_string(): string; @@ -1154,7 +1174,7 @@ export class LayoutLine { layout: Layout; start_index: number; length: number; - runs: string[]; + runs: GLib.SList; is_paragraph_start: number; resolved_dir: number; // Members @@ -1168,6 +1188,21 @@ export class LayoutLine { x_to_index(x_pos: number): [boolean, number, number]; } export class LogAttr { + constructor(properties?: { + is_line_break?: number; + is_mandatory_break?: number; + is_char_break?: number; + is_white?: number; + is_cursor_position?: number; + is_word_start?: number; + is_word_end?: number; + is_sentence_boundary?: number; + is_sentence_start?: number; + is_sentence_end?: number; + backspace_deletes_character?: number; + is_expandable_space?: number; + is_word_boundary?: number; + }); constructor(copy: LogAttr); // Fields is_line_break: number; @@ -1191,6 +1226,14 @@ export class MapEntry { constructor(copy: MapEntry); } export class Matrix { + constructor(properties?: { + xx?: number; + xy?: number; + yx?: number; + yy?: number; + x0?: number; + y0?: number; + }); constructor(copy: Matrix); // Fields xx: number; @@ -1214,6 +1257,12 @@ export class Matrix { translate(tx: number, ty: number): void; } export class Rectangle { + constructor(properties?: { + x?: number; + y?: number; + width?: number; + height?: number; + }); constructor(copy: Rectangle); // Fields x: number; diff --git a/gi/shell.d.ts b/gi/shell.d.ts new file mode 100644 index 0000000..b257420 --- /dev/null +++ b/gi/shell.d.ts @@ -0,0 +1,859 @@ + + +/** + * Shell + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as Clutter from "clutter"; +import * as Gcr from "gcr"; +import * as NM from "nm"; +import * as St from "st"; +import * as Atk from "atk"; +import * as Gtk from "gtk"; +import * as cairo from "cairo"; +import * as GdkPixbuf from "gdkpixbuf"; + +// Avoid importing Json for now... + +declare namespace Json { + type Node = any; +} + + +type GType = object; + +export const KEYRING_SK_TAG: string; + +export const KEYRING_SN_TAG: string; + +export const KEYRING_UUID_TAG: string; + +export function get_file_contents_utf8_sync(path: string): string; + +export function util_check_cloexec_fds(): void; + +export function util_composite_capture_images(captures: any, n_captures: number, x: number, y: number, target_width: number, target_height: number, target_scale: number): cairo.Surface; + +export function util_create_pixbuf_from_data(data: (Uint8Array | string), colorspace: GdkPixbuf.Colorspace, has_alpha: boolean, bits_per_sample: number, width: number, height: number, rowstride: number): GdkPixbuf.Pixbuf; + +export function util_get_content_for_window_actor(window_actor: any, window_rect: any): Clutter.Content | null; + +export function util_get_transformed_allocation(actor: Clutter.Actor): Clutter.ActorBox; + +export function util_get_translated_folder_name(name: string): string | null; + +export function util_get_week_start(): number; + +export function util_has_x11_display_extension(display: any, extension: string): boolean; + +export function util_need_background_refresh(): boolean; + +export function util_regex_escape(str: string): string; + +export function util_sd_notify(): void; + +export function util_set_hidden_from_pick(actor: Clutter.Actor, hidden: boolean): void; + +export function util_start_systemd_unit(unit: string, mode: string): boolean; + +export function util_stop_systemd_unit(unit: string, mode: string): boolean; + +export function util_touch_file_async(file: Gio.File, callback: Gio.AsyncReadyCallback | null): void; + +export function util_touch_file_finish(file: Gio.File, res: Gio.AsyncResult): boolean; + +export function util_translate_time_string(str: string): string; + +export function util_wifexited(status: number): [boolean, number]; + +export function write_string_to_stream(stream: Gio.OutputStream, str: string): boolean; + +export type LeisureFunction = (data: any | null) => void; + +export type PerfReplayFunction = (time: number, name: string, signature: string, arg: (GObject.Value | string | boolean | number)) => void; + +export type PerfStatisticsCallback = (perf_log: PerfLog, data: any | null) => void; +export enum AppState { + STOPPED = 0, + STARTING = 1, + RUNNING = 2, +} +export enum BlurMode { + ACTOR = 0, + BACKGROUND = 1, +} +export enum NetworkAgentResponse { + CONFIRMED = 0, + USER_CANCELED = 1, + INTERNAL_ERROR = 2, +} +export enum SnippetHook { + VERTEX = 0, + VERTEX_TRANSFORM = 1, + FRAGMENT = 2048, + TEXTURE_COORD_TRANSFORM = 4096, + LAYER_FRAGMENT = 6144, + TEXTURE_LOOKUP = 6145, +} +export enum ActionMode { + NONE = 0, + NORMAL = 1, + OVERVIEW = 2, + LOCK_SCREEN = 4, + UNLOCK_SCREEN = 8, + LOGIN_SCREEN = 16, + SYSTEM_MODAL = 32, + LOOKING_GLASS = 64, + POPUP = 128, + ALL = -1, +} +export module App { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + action_group: Gio.ActionGroup; + app_info: Gio.DesktopAppInfo; + busy: boolean; + id: string; + state: AppState; + } +} +export class App extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + action_group: Gio.ActionGroup; + app_info: Gio.DesktopAppInfo; + busy: boolean; + id: string; + state: AppState; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'windows-changed', callback: (_source: this) => void): number; + connect_after(signal: 'windows-changed', callback: (_source: this) => void): number; + emit(signal: 'windows-changed'): void; + // Members + activate(): void; + activate_full(workspace: number, timestamp: number): void; + activate_window(window: any | null, timestamp: number): void; + can_open_new_window(): boolean; + compare(other: App): number; + compare_by_name(other: App): number; + create_icon_texture(size: number): Clutter.Actor; + get_app_info(): Gio.DesktopAppInfo; + get_busy(): boolean; + get_description(): string; + get_id(): string; + get_n_windows(): number; + get_name(): string; + get_pids(): GLib.SList; + get_state(): AppState; + get_windows(): GLib.SList; + is_on_workspace(workspace: any): boolean; + is_window_backed(): boolean; + launch(timestamp: number, workspace: number, discrete_gpu: boolean): boolean; + launch_action(action_name: string, timestamp: number, workspace: number): void; + open_new_window(workspace: number): void; + request_quit(): boolean; + update_app_actions(window: any): void; + update_window_actions(window: any): void; +} +export module AppSystem { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class AppSystem extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'app-state-changed', callback: (_source: this, object: App) => void): number; + connect_after(signal: 'app-state-changed', callback: (_source: this, object: App) => void): number; + emit(signal: 'app-state-changed', object: App): void; + connect(signal: 'installed-changed', callback: (_source: this) => void): number; + connect_after(signal: 'installed-changed', callback: (_source: this) => void): number; + emit(signal: 'installed-changed'): void; + // Members + get_installed(): GLib.List; + get_running(): GLib.SList; + lookup_app(id: string): App; + lookup_desktop_wmclass(wmclass: string | null): App; + lookup_heuristic_basename(id: string): App; + lookup_startup_wmclass(wmclass: string | null): App; + static get_default(): AppSystem; + static search(search_string: string): string[][]; +} +export module AppUsage { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class AppUsage extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + compare(id_a: string, id_b: string): number; + get_most_used(): GLib.SList; + static get_default(): AppUsage; +} +export module BlurEffect { + export interface ConstructorProperties extends Clutter.Effect.ConstructorProperties { + [key: string]: any; + brightness: number; + mode: BlurMode; + sigma: number; + } +} +export class BlurEffect extends Clutter.Effect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + brightness: number; + mode: BlurMode; + sigma: number; + // Constructors + static ["new"](): BlurEffect; + // Members + get_brightness(): number; + get_mode(): BlurMode; + get_sigma(): number; + set_brightness(brightness: number): void; + set_mode(mode: BlurMode): void; + set_sigma(sigma: number): void; +} +export module EmbeddedWindow { + export interface ConstructorProperties extends Gtk.Window.ConstructorProperties { + [key: string]: any; + } +} +export class EmbeddedWindow extends Gtk.Window implements Atk.ImplementorIface, Gtk.Buildable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): EmbeddedWindow; + static ["new"](...args: never[]): never; + // Implemented Members + add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void; + construct_child(builder: Gtk.Builder, name: string): T; + custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + get_internal_child(builder: Gtk.Builder, childname: string): T; + get_name(): string; + parser_finished(builder: Gtk.Builder): void; + set_buildable_property(builder: Gtk.Builder, name: string, value: (GObject.Value | string | boolean | number)): void; + set_name(name: string): void; + vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void; + vfunc_construct_child(builder: Gtk.Builder, name: string): T; + vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: any | null): void; + vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, any | null]; + vfunc_get_internal_child(builder: Gtk.Builder, childname: string): T; + vfunc_get_name(): string; + vfunc_parser_finished(builder: Gtk.Builder): void; + vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_name(name: string): void; +} +export module GLSLEffect { + export interface ConstructorProperties extends Clutter.OffscreenEffect.ConstructorProperties { + [key: string]: any; + } +} +export class GLSLEffect extends Clutter.OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + add_glsl_snippet(hook: SnippetHook, declarations: string, code: string, is_replace: boolean): void; + get_uniform_location(name: string): number; + set_uniform_float(uniform: number, n_components: number, value: number[]): void; + vfunc_build_pipeline(): void; +} +export module Global { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + datadir: string; + display: any; + focus_manager: St.FocusManager; + frame_finish_timestamp: boolean; + frame_timestamps: boolean; + imagedir: string; + screen_height: number; + screen_width: number; + session_mode: string; + settings: Gio.Settings; + stage: Clutter.Actor; + switcheroo_control: Gio.DBusProxy; + top_window_group: Clutter.Actor; + userdatadir: string; + window_group: Clutter.Actor; + window_manager: WM; + workspace_manager: any; + } +} +export class Global extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + datadir: string; + display: any; + focus_manager: St.FocusManager; + frame_finish_timestamp: boolean; + frame_timestamps: boolean; + imagedir: string; + screen_height: number; + screen_width: number; + session_mode: string; + settings: Gio.Settings; + stage: Clutter.Actor; + switcheroo_control: Gio.DBusProxy; + top_window_group: Clutter.Actor; + userdatadir: string; + window_group: Clutter.Actor; + window_manager: WM; + workspace_manager: any; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'locate-pointer', callback: (_source: this) => void): number; + connect_after(signal: 'locate-pointer', callback: (_source: this) => void): number; + emit(signal: 'locate-pointer'): void; + connect(signal: 'notify-error', callback: (_source: this, object: string, p0: string) => void): number; + connect_after(signal: 'notify-error', callback: (_source: this, object: string, p0: string) => void): number; + emit(signal: 'notify-error', object: string, p0: string): void; + // Members + begin_modal(timestamp: number, options: any): boolean; + begin_work(): void; + create_app_launch_context(timestamp: number, workspace: number): Gio.AppLaunchContext; + end_modal(timestamp: number): void; + end_work(): void; + get_current_time(): number; + get_display(): any; + get_persistent_state(property_type: string, property_name: string): GLib.Variant; + get_pointer(): [number, number, Clutter.ModifierType]; + get_runtime_state(property_type: string, property_name: string): GLib.Variant; + get_session_mode(): string; + get_settings(): Gio.Settings; + get_stage(): Clutter.Stage; + get_window_actors(): GLib.List; + notify_error(msg: string, details: string): void; + reexec_self(): void; + run_at_leisure(func: LeisureFunction, notify: GLib.DestroyNotify): void; + set_persistent_state(property_name: string, variant: GLib.Variant | null): void; + set_runtime_state(property_name: string, variant: GLib.Variant | null): void; + set_stage_input_region(rectangles: GLib.SList): void; + sync_pointer(): void; + static get(): Global; +} +export module GtkEmbed { + export interface ConstructorProperties extends Clutter.Clone.ConstructorProperties { + [key: string]: any; + window: EmbeddedWindow; + } +} +export class GtkEmbed extends Clutter.Clone implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + window: EmbeddedWindow; + // Constructors + static ["new"](window: EmbeddedWindow): GtkEmbed; + static ["new"](...args: never[]): never; + // Implemented Members + animate_property(animation: Clutter.Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + find_property(property_name: string): GObject.ParamSpec; + get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value]; + set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_animate_property(animation: Clutter.Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + vfunc_find_property(property_name: string): GObject.ParamSpec; + vfunc_get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value]; + vfunc_set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + add_actor(actor: Clutter.Actor): void; + child_get_property(child: Clutter.Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void; + child_set_property(child: Clutter.Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + create_child_meta(actor: Clutter.Actor): void; + destroy_child_meta(actor: Clutter.Actor): void; + find_child_by_name(child_name: string): Clutter.Actor; + foreach(callback: Clutter.Callback): void; + foreach_with_internals(callback: Clutter.Callback): void; + get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta; + get_children(): GLib.List; + lower_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + raise_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + remove_actor(actor: Clutter.Actor): void; + sort_depth_order(): void; + vfunc_actor_added(actor: Clutter.Actor): void; + vfunc_actor_removed(actor: Clutter.Actor): void; + vfunc_add(actor: Clutter.Actor): void; + vfunc_child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void; + vfunc_create_child_meta(actor: Clutter.Actor): void; + vfunc_destroy_child_meta(actor: Clutter.Actor): void; + vfunc_foreach(callback: Clutter.Callback): void; + vfunc_foreach_with_internals(callback: Clutter.Callback): void; + vfunc_get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta; + vfunc_lower(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + vfunc_raise(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + vfunc_remove(actor: Clutter.Actor): void; + vfunc_sort_depth_order(): void; + get_id(): string; + parse_custom_node(script: Clutter.Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Clutter.Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Clutter.Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Clutter.Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module InvertLightnessEffect { + export interface ConstructorProperties extends Clutter.OffscreenEffect.ConstructorProperties { + [key: string]: any; + } +} +export class InvertLightnessEffect extends Clutter.OffscreenEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): InvertLightnessEffect; +} +export module KeyringPrompt { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + choice_visible: boolean; + confirm_actor: Clutter.Text; + confirm_visible: boolean; + password_actor: Clutter.Text; + password_visible: boolean; + warning_visible: boolean; + } +} +export class KeyringPrompt extends GObject.Object implements Gcr.Prompt { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + choice_visible: boolean; + confirm_actor: Clutter.Text; + confirm_visible: boolean; + password_actor: Clutter.Text; + password_visible: boolean; + warning_visible: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'show-confirm', callback: (_source: this) => void): number; + connect_after(signal: 'show-confirm', callback: (_source: this) => void): number; + emit(signal: 'show-confirm'): void; + connect(signal: 'show-password', callback: (_source: this) => void): number; + connect_after(signal: 'show-password', callback: (_source: this) => void): number; + emit(signal: 'show-password'): void; + // Implemented Properties + caller_window: string; + cancel_label: string; + choice_chosen: boolean; + choice_label: string; + continue_label: string; + description: string; + message: string; + password_new: boolean; + password_strength: number; + title: string; + warning: string; + // Constructors + static ["new"](): KeyringPrompt; + // Members + cancel(): void; + complete(): boolean; + get_confirm_actor(): Clutter.Text | null; + get_password_actor(): Clutter.Text | null; + set_confirm_actor(confirm_actor: Clutter.Text | null): void; + set_password_actor(password_actor: Clutter.Text | null): void; + // Implemented Members + close(): void; + confirm(cancellable: Gio.Cancellable | null): Gcr.PromptReply; + confirm_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + confirm_finish(result: Gio.AsyncResult): Gcr.PromptReply; + confirm_run(cancellable: Gio.Cancellable | null): Gcr.PromptReply; + get_caller_window(): string; + get_cancel_label(): string; + get_choice_chosen(): boolean; + get_choice_label(): string; + get_continue_label(): string; + get_description(): string; + get_message(): string; + get_password_new(): boolean; + get_password_strength(): number; + get_title(): string; + get_warning(): string; + password(cancellable: Gio.Cancellable | null): string; + password_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + password_finish(result: Gio.AsyncResult): string; + password_run(cancellable: Gio.Cancellable | null): string; + reset(): void; + set_caller_window(window_id: string): void; + set_cancel_label(cancel_label: string): void; + set_choice_chosen(chosen: boolean): void; + set_choice_label(choice_label: string | null): void; + set_continue_label(continue_label: string): void; + set_description(description: string): void; + set_message(message: string): void; + set_password_new(new_password: boolean): void; + set_title(title: string): void; + set_warning(warning: string | null): void; + vfunc_prompt_close(): void; + vfunc_prompt_confirm_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_prompt_confirm_finish(result: Gio.AsyncResult): Gcr.PromptReply; + vfunc_prompt_password_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void; + vfunc_prompt_password_finish(result: Gio.AsyncResult): string; +} +export module MountOperation { + export interface ConstructorProperties extends Gio.MountOperation.ConstructorProperties { + [key: string]: any; + } +} +export class MountOperation extends Gio.MountOperation { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'show-processes-2', callback: (_source: this) => void): number; + connect_after(signal: 'show-processes-2', callback: (_source: this) => void): number; + emit(signal: 'show-processes-2'): void; + // Constructors + static ["new"](): MountOperation; + static ["new"](...args: never[]): never; + // Members + get_show_processes_choices(): string[]; + get_show_processes_message(): string; + get_show_processes_pids(): GLib.Pid[]; +} +export module NetworkAgent { + export interface ConstructorProperties extends NM.SecretAgentOld.ConstructorProperties { + [key: string]: any; + } +} +export class NetworkAgent extends NM.SecretAgentOld implements Gio.AsyncInitable, Gio.Initable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'cancel-request', callback: (_source: this, object: string) => void): number; + connect_after(signal: 'cancel-request', callback: (_source: this, object: string) => void): number; + emit(signal: 'cancel-request', object: string): void; + connect(signal: 'new-request', callback: (_source: this, object: string, p0: NM.Connection, p1: string, p2: string[], p3: number) => void): number; + connect_after(signal: 'new-request', callback: (_source: this, object: string, p0: NM.Connection, p1: string, p2: string[], p3: number) => void): number; + emit(signal: 'new-request', object: string, p0: NM.Connection, p1: string, p2: string[], p3: number): void; + // Members + respond(request_id: string, response: NetworkAgentResponse): void; + search_vpn_plugin(service: string, callback: Gio.AsyncReadyCallback | null): void; + search_vpn_plugin_finish(result: Gio.AsyncResult): NM.VpnPluginInfo | null; + set_password(request_id: string, setting_key: string, setting_value: string): void; +} +export module PerfLog { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class PerfLog extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + add_statistics_callback(callback: PerfStatisticsCallback, notify: GLib.DestroyNotify): void; + collect_statistics(): void; + define_event(name: string, description: string, signature: string): void; + define_statistic(name: string, description: string, signature: string): void; + dump_events(out: Gio.OutputStream): boolean; + dump_log(out: Gio.OutputStream): boolean; + event(name: string): void; + event_i(name: string, arg: number): void; + event_s(name: string, arg: string): void; + event_x(name: string, arg: number): void; + replay(replay_function: PerfReplayFunction): void; + set_enabled(enabled: boolean): void; + update_statistic_i(name: string, value: number): void; + update_statistic_x(name: string, value: number): void; + static get_default(): PerfLog; +} +export module PolkitAuthenticationAgent { + export interface ConstructorProperties { + [key: string]: any; + } +} +export class PolkitAuthenticationAgent { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'cancel', callback: (_source: this) => void): number; + connect_after(signal: 'cancel', callback: (_source: this) => void): number; + emit(signal: 'cancel'): void; + connect(signal: 'initiate', callback: (_source: this, object: string, p0: string, p1: string, p2: string, p3: string[]) => void): number; + connect_after(signal: 'initiate', callback: (_source: this, object: string, p0: string, p1: string, p2: string, p3: string[]) => void): number; + emit(signal: 'initiate', object: string, p0: string, p1: string, p2: string, p3: string[]): void; + // Constructors + static ["new"](): PolkitAuthenticationAgent; + // Members + complete(dismissed: boolean): void; + register(): void; + register(...args: never[]): never; + unregister(): void; + unregister(...args: never[]): never; +} +export module Recorder { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + display: any; + draw_cursor: boolean; + file_template: string; + framerate: number; + pipeline: string; + stage: Clutter.Stage; + } +} +export class Recorder extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + display: any; + draw_cursor: boolean; + file_template: string; + framerate: number; + pipeline: string; + stage: Clutter.Stage; + // Constructors + static ["new"](stage: Clutter.Stage): Recorder; + // Members + close(): void; + is_recording(): boolean; + pause(): void; + record(): [boolean, string | null]; + set_area(x: number, y: number, width: number, height: number): void; + set_draw_cursor(draw_cursor: boolean): void; + set_file_template(file_template: string): void; + set_framerate(framerate: number): void; + set_pipeline(pipeline: string | null): void; +} +export module Screenshot { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Screenshot extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): Screenshot; + // Members + pick_color(x: number, y: number, callback: Gio.AsyncReadyCallback | null): void; + pick_color_finish(result: Gio.AsyncResult): [boolean, Clutter.Color]; + screenshot(include_cursor: boolean, stream: Gio.OutputStream, callback: Gio.AsyncReadyCallback | null): void; + screenshot_area(x: number, y: number, width: number, height: number, stream: Gio.OutputStream, callback: Gio.AsyncReadyCallback | null): void; + screenshot_area_finish(result: Gio.AsyncResult): [boolean, cairo.RectangleInt]; + screenshot_finish(result: Gio.AsyncResult): [boolean, cairo.RectangleInt]; + screenshot_window(include_frame: boolean, include_cursor: boolean, stream: Gio.OutputStream, callback: Gio.AsyncReadyCallback | null): void; + screenshot_window_finish(result: Gio.AsyncResult): [boolean, cairo.RectangleInt]; +} +export module SecureTextBuffer { + export interface ConstructorProperties extends Clutter.TextBuffer.ConstructorProperties { + [key: string]: any; + } +} +export class SecureTextBuffer extends Clutter.TextBuffer { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](): SecureTextBuffer; + static ["new"](...args: never[]): never; +} +export module Stack { + export interface ConstructorProperties extends St.Widget.ConstructorProperties { + [key: string]: any; + } +} +export class Stack extends St.Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export module TrayIcon { + export interface ConstructorProperties extends GtkEmbed.ConstructorProperties { + [key: string]: any; + pid: number; + title: string; + wm_class: string; + } +} +export class TrayIcon extends GtkEmbed implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + pid: number; + title: string; + wm_class: string; + // Constructors + static ["new"](window: EmbeddedWindow): TrayIcon; + static ["new"](...args: never[]): never; + // Members + click(event: Clutter.Event): void; +} +export module TrayManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + bg_color: Clutter.Color; + } +} +export class TrayManager extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + bg_color: Clutter.Color; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'tray-icon-added', callback: (_source: this, object: Clutter.Actor) => void): number; + connect_after(signal: 'tray-icon-added', callback: (_source: this, object: Clutter.Actor) => void): number; + emit(signal: 'tray-icon-added', object: Clutter.Actor): void; + connect(signal: 'tray-icon-removed', callback: (_source: this, object: Clutter.Actor) => void): number; + connect_after(signal: 'tray-icon-removed', callback: (_source: this, object: Clutter.Actor) => void): number; + emit(signal: 'tray-icon-removed', object: Clutter.Actor): void; + // Constructors + static ["new"](): TrayManager; + // Members + manage_screen(theme_widget: St.Widget): void; + unmanage_screen(): void; +} +export module WM { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class WM extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'confirm-display-change', callback: (_source: this) => void): number; + connect_after(signal: 'confirm-display-change', callback: (_source: this) => void): number; + emit(signal: 'confirm-display-change'): void; + connect(signal: 'create-close-dialog', callback: (_source: this, window: any) => any): number; + connect_after(signal: 'create-close-dialog', callback: (_source: this, window: any) => any): number; + emit(signal: 'create-close-dialog', window: any): void; + connect(signal: 'create-inhibit-shortcuts-dialog', callback: (_source: this, window: any) => any): number; + connect_after(signal: 'create-inhibit-shortcuts-dialog', callback: (_source: this, window: any) => any): number; + emit(signal: 'create-inhibit-shortcuts-dialog', window: any): void; + connect(signal: 'destroy', callback: (_source: this, object: any) => void): number; + connect_after(signal: 'destroy', callback: (_source: this, object: any) => void): number; + emit(signal: 'destroy', object: any): void; + connect(signal: 'filter-keybinding', callback: (_source: this, object: any) => boolean): number; + connect_after(signal: 'filter-keybinding', callback: (_source: this, object: any) => boolean): number; + emit(signal: 'filter-keybinding', object: any): void; + connect(signal: 'hide-tile-preview', callback: (_source: this) => void): number; + connect_after(signal: 'hide-tile-preview', callback: (_source: this) => void): number; + emit(signal: 'hide-tile-preview'): void; + connect(signal: 'kill-switch-workspace', callback: (_source: this) => void): number; + connect_after(signal: 'kill-switch-workspace', callback: (_source: this) => void): number; + emit(signal: 'kill-switch-workspace'): void; + connect(signal: 'kill-window-effects', callback: (_source: this, object: any) => void): number; + connect_after(signal: 'kill-window-effects', callback: (_source: this, object: any) => void): number; + emit(signal: 'kill-window-effects', object: any): void; + connect(signal: 'map', callback: (_source: this, object: any) => void): number; + connect_after(signal: 'map', callback: (_source: this, object: any) => void): number; + emit(signal: 'map', object: any): void; + connect(signal: 'minimize', callback: (_source: this, object: any) => void): number; + connect_after(signal: 'minimize', callback: (_source: this, object: any) => void): number; + emit(signal: 'minimize', object: any): void; + connect(signal: 'show-tile-preview', callback: (_source: this, object: any, p0: any, p1: number) => void): number; + connect_after(signal: 'show-tile-preview', callback: (_source: this, object: any, p0: any, p1: number) => void): number; + emit(signal: 'show-tile-preview', object: any, p0: any, p1: number): void; + connect(signal: 'show-window-menu', callback: (_source: this, object: any, p0: number, p1: any) => void): number; + connect_after(signal: 'show-window-menu', callback: (_source: this, object: any, p0: number, p1: any) => void): number; + emit(signal: 'show-window-menu', object: any, p0: number, p1: any): void; + connect(signal: 'size-change', callback: (_source: this, object: any, p0: any, p1: any, p2: any) => void): number; + connect_after(signal: 'size-change', callback: (_source: this, object: any, p0: any, p1: any, p2: any) => void): number; + emit(signal: 'size-change', object: any, p0: any, p1: any, p2: any): void; + connect(signal: 'size-changed', callback: (_source: this, object: any) => void): number; + connect_after(signal: 'size-changed', callback: (_source: this, object: any) => void): number; + emit(signal: 'size-changed', object: any): void; + connect(signal: 'switch-workspace', callback: (_source: this, object: number, p0: number, p1: number) => void): number; + connect_after(signal: 'switch-workspace', callback: (_source: this, object: number, p0: number, p1: number) => void): number; + emit(signal: 'switch-workspace', object: number, p0: number, p1: number): void; + connect(signal: 'unminimize', callback: (_source: this, object: any) => void): number; + connect_after(signal: 'unminimize', callback: (_source: this, object: any) => void): number; + emit(signal: 'unminimize', object: any): void; + // Constructors + static ["new"](plugin: any): WM; + // Members + complete_display_change(ok: boolean): void; + completed_destroy(actor: any): void; + completed_map(actor: any): void; + completed_minimize(actor: any): void; + completed_size_change(actor: any): void; + completed_switch_workspace(): void; + completed_unminimize(actor: any): void; +} +export module WindowTracker { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + focus_app: App; + } +} +export class WindowTracker extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + focus_app: App; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'startup-sequence-changed', callback: (_source: this, object: any) => void): number; + connect_after(signal: 'startup-sequence-changed', callback: (_source: this, object: any) => void): number; + emit(signal: 'startup-sequence-changed', object: any): void; + connect(signal: 'tracked-windows-changed', callback: (_source: this) => void): number; + connect_after(signal: 'tracked-windows-changed', callback: (_source: this) => void): number; + emit(signal: 'tracked-windows-changed'): void; + // Members + get_app_from_pid(pid: number): App; + get_startup_sequences(): GLib.SList; + get_window_app(metawin: any): App; + static get_default(): WindowTracker; +} +export class MemoryInfo { + constructor(properties?: { + glibc_uordblks?: number; + js_bytes?: number; + gjs_boxed?: number; + gjs_gobject?: number; + gjs_function?: number; + gjs_closure?: number; + last_gc_seconds_ago?: number; + }); + constructor(copy: MemoryInfo); + // Fields + glibc_uordblks: number; + js_bytes: number; + gjs_boxed: number; + gjs_gobject: number; + gjs_function: number; + gjs_closure: number; + last_gc_seconds_ago: number; +} +export class NetworkAgentPrivate { + constructor(copy: NetworkAgentPrivate); +} \ No newline at end of file diff --git a/gi/st.d.ts b/gi/st.d.ts new file mode 100644 index 0000000..284fa42 --- /dev/null +++ b/gi/st.d.ts @@ -0,0 +1,1086 @@ + + +/** + * St + */ +import * as GObject from "gobject"; +import * as Gio from "gio"; +import * as GLib from "glib"; +import * as Cally from "cally"; +import * as Clutter from "clutter"; +import * as Atk from "atk"; +import * as cairo from "cairo"; +import * as Pango from "pango"; +import * as Json from "json"; +import * as Cogl from "cogl"; +type GType = object; + +export function describe_actor(actor: Clutter.Actor): string; + +export type ClipboardCallbackFunc = (clipboard: Clipboard, text: string) => void; + +export type EntryCursorFunc = (entry: Entry, use_ibeam: boolean, data: any | null) => void; +export enum Align { + START = 0, + MIDDLE = 1, + END = 2, +} +export enum BackgroundSize { + AUTO = 0, + CONTAIN = 1, + COVER = 2, + FIXED = 3, +} +export enum ClipboardType { + PRIMARY = 0, + CLIPBOARD = 1, +} +export enum Corner { + TOPLEFT = 0, + TOPRIGHT = 1, + BOTTOMRIGHT = 2, + BOTTOMLEFT = 3, +} +export enum DirectionType { + TAB_FORWARD = 0, + TAB_BACKWARD = 1, + UP = 2, + DOWN = 3, + LEFT = 4, + RIGHT = 5, +} +export enum GradientType { + NONE = 0, + VERTICAL = 1, + HORIZONTAL = 2, + RADIAL = 3, +} +export enum IconStyle { + REQUESTED = 0, + REGULAR = 1, + SYMBOLIC = 2, +} +export enum PolicyType { + ALWAYS = 0, + AUTOMATIC = 1, + NEVER = 2, + EXTERNAL = 3, +} +export enum Side { + TOP = 0, + RIGHT = 1, + BOTTOM = 2, + LEFT = 3, +} +export enum TextAlign { + LEFT = 0, + CENTER = 1, + RIGHT = 2, + JUSTIFY = 3, +} +export enum TextureCachePolicy { + NONE = 0, + FOREVER = 1, +} +export enum ButtonMask { + ONE = 1, + TWO = 2, + THREE = 4, +} +export enum TextDecoration { + UNDERLINE = 1, + OVERLINE = 2, + LINE_THROUGH = 4, + BLINK = 8, +} +export module Adjustment { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + lower: number; + page_increment: number; + page_size: number; + step_increment: number; + upper: number; + value: number; + } +} +export class Adjustment extends GObject.Object implements Clutter.Animatable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + lower: number; + page_increment: number; + page_size: number; + step_increment: number; + upper: number; + value: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + // Constructors + static ["new"](value: number, lower: number, upper: number, step_increment: number, page_increment: number, page_size: number): Adjustment; + // Members + add_transition(name: string, transition: Clutter.Transition): void; + adjust_for_scroll_event(delta: number): void; + clamp_page(lower: number, upper: number): void; + get_transition(name: string): Clutter.Transition | null; + get_value(): number; + get_values(): [number, number, number, number, number, number]; + remove_transition(name: string): void; + set_value(value: number): void; + set_values(value: number, lower: number, upper: number, step_increment: number, page_increment: number, page_size: number): void; + vfunc_changed(): void; + // Implemented Members + animate_property(animation: Clutter.Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + find_property(property_name: string): GObject.ParamSpec; + get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value]; + set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_animate_property(animation: Clutter.Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + vfunc_find_property(property_name: string): GObject.ParamSpec; + vfunc_get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value]; + vfunc_set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; +} +export module Bin { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + child: Clutter.Actor; + x_fill: boolean; + y_fill: boolean; + } +} +export class Bin extends Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + child: Clutter.Actor; + x_fill: boolean; + y_fill: boolean; + // Constructors + static ["new"](): Bin; + static ["new"](...args: never[]): never; + // Members + get_child(): Clutter.Actor; + get_fill(): [boolean, boolean]; + set_child(child: Clutter.Actor | null): void; + set_fill(x_fill: boolean, y_fill: boolean): void; +} +export module BorderImage { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class BorderImage extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](file: Gio.File, border_top: number, border_right: number, border_bottom: number, border_left: number, scale_factor: number): BorderImage; + // Members + equal(other: BorderImage): boolean; + get_borders(border_top: number, border_right: number, border_bottom: number, border_left: number): void; + get_file(): Gio.File; +} +export module BoxLayout { + export interface ConstructorProperties extends Viewport.ConstructorProperties { + [key: string]: any; + pack_start: boolean; + vertical: boolean; + } +} +export class BoxLayout extends Viewport implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + pack_start: boolean; + vertical: boolean; + // Constructors + static ["new"](): BoxLayout; + static ["new"](...args: never[]): never; + // Members + get_pack_start(): boolean; + get_vertical(): boolean; + set_pack_start(pack_start: boolean): void; + set_vertical(vertical: boolean): void; +} +export module BoxLayoutChild { + export interface ConstructorProperties extends Clutter.ChildMeta.ConstructorProperties { + [key: string]: any; + expand: boolean; + x_align: Align; + x_fill: boolean; + y_align: Align; + y_fill: boolean; + } +} +export class BoxLayoutChild extends Clutter.ChildMeta { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + expand: boolean; + x_align: Align; + x_fill: boolean; + y_align: Align; + y_fill: boolean; +} +export module Button { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + button_mask: ButtonMask; + checked: boolean; + label: string; + pressed: boolean; + toggle_mode: boolean; + } +} +export class Button extends Bin implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + button_mask: ButtonMask; + checked: boolean; + label: string; + pressed: boolean; + toggle_mode: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'clicked', callback: (_source: this, clicked_button: number) => void): number; + connect_after(signal: 'clicked', callback: (_source: this, clicked_button: number) => void): number; + emit(signal: 'clicked', clicked_button: number): void; + // Constructors + static ["new"](): Button; + static ["new"](...args: never[]): never; + static new_with_label(text: string): Button; + // Members + fake_release(): void; + get_button_mask(): ButtonMask; + get_checked(): boolean; + get_label(): string; + get_toggle_mode(): boolean; + set_button_mask(mask: ButtonMask): void; + set_checked(checked: boolean): void; + set_label(text: string): void; + set_toggle_mode(toggle: boolean): void; + vfunc_clicked(clicked_button: number): void; + vfunc_transition(): void; +} +export module Clipboard { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class Clipboard extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + get_text(type: ClipboardType, callback: ClipboardCallbackFunc): void; + set_content(type: ClipboardType, mimetype: string, bytes: (GLib.Bytes | Uint8Array)): void; + set_text(type: ClipboardType, text: string): void; + static get_default(): Clipboard; + static set_selection(selection: any): void; +} +export module DrawingArea { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + } +} +export class DrawingArea extends Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'repaint', callback: (_source: this) => void): number; + connect_after(signal: 'repaint', callback: (_source: this) => void): number; + emit(signal: 'repaint'): void; + // Members + get_context(): cairo.Context; + get_surface_size(): [number, number]; + queue_repaint(): void; + vfunc_repaint(): void; +} +export module Entry { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + clutter_text: Clutter.Text; + hint_actor: Clutter.Actor; + hint_text: string; + input_hints: any; + input_purpose: any; + primary_icon: Clutter.Actor; + secondary_icon: Clutter.Actor; + text: string; + } +} +export class Entry extends Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + clutter_text: Clutter.Text; + hint_actor: Clutter.Actor; + hint_text: string; + input_hints: any; + input_purpose: any; + primary_icon: Clutter.Actor; + secondary_icon: Clutter.Actor; + text: string; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'primary-icon-clicked', callback: (_source: this) => void): number; + connect_after(signal: 'primary-icon-clicked', callback: (_source: this) => void): number; + emit(signal: 'primary-icon-clicked'): void; + connect(signal: 'secondary-icon-clicked', callback: (_source: this) => void): number; + connect_after(signal: 'secondary-icon-clicked', callback: (_source: this) => void): number; + emit(signal: 'secondary-icon-clicked'): void; + // Constructors + static ["new"](text: string): Entry; + static ["new"](...args: never[]): never; + // Members + get_clutter_text(): Clutter.Actor; + get_hint_actor(): Clutter.Actor; + get_hint_text(): string; + get_input_hints(): any; + get_input_purpose(): any; + get_primary_icon(): Clutter.Actor; + get_secondary_icon(): Clutter.Actor; + get_text(): string; + set_hint_actor(hint_actor: Clutter.Actor | null): void; + set_hint_text(text: string | null): void; + set_input_hints(hints: any): void; + set_input_purpose(purpose: any): void; + set_primary_icon(icon: Clutter.Actor | null): void; + set_secondary_icon(icon: Clutter.Actor | null): void; + set_text(text: string | null): void; + vfunc_primary_icon_clicked(): void; + vfunc_secondary_icon_clicked(): void; +} +export module FocusManager { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class FocusManager extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Members + add_group(root: Widget): void; + get_group(widget: Widget): Widget; + navigate_from_event(event: Clutter.Event): boolean; + remove_group(root: Widget): void; + static get_for_stage(stage: Clutter.Stage): FocusManager; +} +export module GenericAccessible { + export interface ConstructorProperties extends WidgetAccessible.ConstructorProperties { + [key: string]: any; + } +} +export class GenericAccessible extends WidgetAccessible implements Atk.Action, Atk.Component, Atk.Value { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Fields + priv: GenericAccessiblePrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'get-current-value', callback: (_source: this) => number): number; + connect_after(signal: 'get-current-value', callback: (_source: this) => number): number; + emit(signal: 'get-current-value'): void; + connect(signal: 'get-maximum-value', callback: (_source: this) => number): number; + connect_after(signal: 'get-maximum-value', callback: (_source: this) => number): number; + emit(signal: 'get-maximum-value'): void; + connect(signal: 'get-minimum-increment', callback: (_source: this) => number): number; + connect_after(signal: 'get-minimum-increment', callback: (_source: this) => number): number; + emit(signal: 'get-minimum-increment'): void; + connect(signal: 'get-minimum-value', callback: (_source: this) => number): number; + connect_after(signal: 'get-minimum-value', callback: (_source: this) => number): number; + emit(signal: 'get-minimum-value'): void; + connect(signal: 'set-current-value', callback: (_source: this, new_value: number) => void): number; + connect_after(signal: 'set-current-value', callback: (_source: this, new_value: number) => void): number; + emit(signal: 'set-current-value', new_value: number): void; + // Constructors + static new_for_actor(actor: Clutter.Actor): GenericAccessible; + // Implemented Members + get_current_value(): GObject.Value; + get_increment(): number; + get_maximum_value(): GObject.Value; + get_minimum_increment(): GObject.Value; + get_minimum_value(): GObject.Value; + get_range(): Atk.Range | null; + get_sub_ranges(): GLib.SList; + get_value_and_text(): [number, string | null]; + set_current_value(value: (GObject.Value | string | boolean | number)): boolean; + set_value(new_value: number): void; + vfunc_get_current_value(): GObject.Value; + vfunc_get_increment(): number; + vfunc_get_maximum_value(): GObject.Value; + vfunc_get_minimum_increment(): GObject.Value; + vfunc_get_minimum_value(): GObject.Value; + vfunc_get_range(): Atk.Range | null; + vfunc_get_sub_ranges(): GLib.SList; + vfunc_get_value_and_text(): [number, string | null]; + vfunc_set_current_value(value: (GObject.Value | string | boolean | number)): boolean; + vfunc_set_value(new_value: number): void; +} +export module Icon { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + fallback_gicon: Gio.Icon; + fallback_icon_name: string; + gicon: Gio.Icon; + icon_name: string; + icon_size: number; + } +} +export class Icon extends Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + fallback_gicon: Gio.Icon; + fallback_icon_name: string; + gicon: Gio.Icon; + icon_name: string; + icon_size: number; + // Constructors + static ["new"](): Icon; + static ["new"](...args: never[]): never; + // Members + get_fallback_gicon(): Gio.Icon; + get_fallback_icon_name(): string; + get_gicon(): Gio.Icon; + get_icon_name(): string; + get_icon_size(): number; + set_fallback_gicon(fallback_gicon: Gio.Icon | null): void; + set_fallback_icon_name(fallback_icon_name: string | null): void; + set_gicon(gicon: Gio.Icon | null): void; + set_icon_name(icon_name: string | null): void; + set_icon_size(size: number): void; +} +export module ImageContent { + export interface ConstructorProperties extends Clutter.Image.ConstructorProperties { + [key: string]: any; + preferred_height: number; + preferred_width: number; + } +} +export class ImageContent extends Clutter.Image implements Clutter.Content { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + preferred_height: number; + preferred_width: number; + // Members + static new_with_preferred_size(width: number, height: number): Clutter.Content; + // Implemented Members + get_preferred_size(): [boolean, number, number]; + invalidate(): void; + vfunc_attached(actor: Clutter.Actor): void; + vfunc_detached(actor: Clutter.Actor): void; + vfunc_get_preferred_size(): [boolean, number, number]; + vfunc_invalidate(): void; + vfunc_paint_content(actor: Clutter.Actor, node: Clutter.PaintNode): void; +} +export module Label { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + clutter_text: Clutter.Text; + text: string; + } +} +export class Label extends Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + clutter_text: Clutter.Text; + text: string; + // Constructors + static ["new"](text: string): Label; + static ["new"](...args: never[]): never; + // Members + get_clutter_text(): Clutter.Actor; + get_text(): string; + set_text(text: string): void; +} +export module PasswordEntry { + export interface ConstructorProperties extends Entry.ConstructorProperties { + [key: string]: any; + password_visible: boolean; + show_peek_icon: boolean; + } +} +export class PasswordEntry extends Entry implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + password_visible: boolean; + show_peek_icon: boolean; + // Constructors + static ["new"](): PasswordEntry; + static ["new"](...args: never[]): never; + // Members + get_password_visible(): boolean; + get_show_peek_icon(): boolean; + set_password_visible(value: boolean): void; + set_show_peek_icon(value: boolean): void; +} +export module ScrollBar { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + adjustment: Adjustment; + vertical: boolean; + } +} +export class ScrollBar extends Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + adjustment: Adjustment; + vertical: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'scroll-start', callback: (_source: this) => void): number; + connect_after(signal: 'scroll-start', callback: (_source: this) => void): number; + emit(signal: 'scroll-start'): void; + connect(signal: 'scroll-stop', callback: (_source: this) => void): number; + connect_after(signal: 'scroll-stop', callback: (_source: this) => void): number; + emit(signal: 'scroll-stop'): void; + // Constructors + static ["new"](adjustment: Adjustment): ScrollBar; + static ["new"](...args: never[]): never; + // Members + get_adjustment(): Adjustment; + set_adjustment(adjustment: Adjustment): void; + vfunc_scroll_start(): void; + vfunc_scroll_stop(): void; +} +export module ScrollView { + export interface ConstructorProperties extends Bin.ConstructorProperties { + [key: string]: any; + enable_mouse_scrolling: boolean; + hscroll: ScrollBar; + hscrollbar_policy: PolicyType; + hscrollbar_visible: boolean; + overlay_scrollbars: boolean; + vscroll: ScrollBar; + vscrollbar_policy: PolicyType; + vscrollbar_visible: boolean; + } +} +export class ScrollView extends Bin implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + enable_mouse_scrolling: boolean; + hscroll: ScrollBar; + hscrollbar_policy: PolicyType; + hscrollbar_visible: boolean; + overlay_scrollbars: boolean; + vscroll: ScrollBar; + vscrollbar_policy: PolicyType; + vscrollbar_visible: boolean; + // Constructors + static ["new"](): ScrollView; + static ["new"](...args: never[]): never; + // Members + get_column_size(): number; + get_hscroll_bar(): Clutter.Actor; + get_mouse_scrolling(): boolean; + get_overlay_scrollbars(): boolean; + get_row_size(): number; + get_vscroll_bar(): Clutter.Actor; + set_column_size(column_size: number): void; + set_mouse_scrolling(enabled: boolean): void; + set_overlay_scrollbars(enabled: boolean): void; + set_policy(hscroll: PolicyType, vscroll: PolicyType): void; + set_row_size(row_size: number): void; + update_fade_effect(vfade_offset: number, hfade_offset: number): void; +} +export module ScrollViewFade { + export interface ConstructorProperties extends Clutter.ShaderEffect.ConstructorProperties { + [key: string]: any; + fade_edges: boolean; + hfade_offset: number; + vfade_offset: number; + } +} +export class ScrollViewFade extends Clutter.ShaderEffect { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + fade_edges: boolean; + hfade_offset: number; + vfade_offset: number; + // Constructors + static ["new"](): ScrollViewFade; + static ["new"](...args: never[]): never; +} +export module Settings { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + drag_threshold: number; + enable_animations: boolean; + font_name: string; + gtk_icon_theme: string; + gtk_theme: string; + magnifier_active: boolean; + primary_paste: boolean; + slow_down_factor: number; + } +} +export class Settings extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + drag_threshold: number; + enable_animations: boolean; + font_name: string; + gtk_icon_theme: string; + gtk_theme: string; + magnifier_active: boolean; + primary_paste: boolean; + slow_down_factor: number; + // Members + inhibit_animations(): void; + uninhibit_animations(): void; + static get(): Settings; +} +export module TextureCache { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class TextureCache extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Fields + priv: TextureCachePrivate; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'icon-theme-changed', callback: (_source: this) => void): number; + connect_after(signal: 'icon-theme-changed', callback: (_source: this) => void): number; + emit(signal: 'icon-theme-changed'): void; + connect(signal: 'texture-file-changed', callback: (_source: this, object: Gio.File) => void): number; + connect_after(signal: 'texture-file-changed', callback: (_source: this, object: Gio.File) => void): number; + emit(signal: 'texture-file-changed', object: Gio.File): void; + // Members + bind_cairo_surface_property(object: GObject.Object, property_name: string, size: number): Widget; + load_file_async(file: Gio.File, available_width: number, available_height: number, paint_scale: number, resource_scale: number): Clutter.Actor; + load_file_to_cairo_surface(file: Gio.File, paint_scale: number, resource_scale: number): cairo.Surface; + load_gicon(theme_node: ThemeNode | null, icon: Gio.Icon, size: number, paint_scale: number, resource_scale: number): Clutter.Actor; + load_sliced_image(file: Gio.File, grid_width: number, grid_height: number, paint_scale: number, resource_scale: number, load_callback: GLib.Func | null): Clutter.Actor; + rescan_icon_theme(): boolean; + static get_default(): TextureCache; +} +export module Theme { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + application_stylesheet: Gio.File; + default_stylesheet: Gio.File; + theme_stylesheet: Gio.File; + } +} +export class Theme extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + application_stylesheet: Gio.File; + default_stylesheet: Gio.File; + theme_stylesheet: Gio.File; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'custom-stylesheets-changed', callback: (_source: this) => void): number; + connect_after(signal: 'custom-stylesheets-changed', callback: (_source: this) => void): number; + emit(signal: 'custom-stylesheets-changed'): void; + // Constructors + static ["new"](application_stylesheet: Gio.File, theme_stylesheet: Gio.File, default_stylesheet: Gio.File): Theme; + // Members + get_custom_stylesheets(): GLib.SList; + load_stylesheet(file: Gio.File): boolean; + unload_stylesheet(file: Gio.File): void; +} +export module ThemeContext { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + scale_factor: number; + } +} +export class ThemeContext extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + scale_factor: number; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'changed', callback: (_source: this) => void): number; + connect_after(signal: 'changed', callback: (_source: this) => void): number; + emit(signal: 'changed'): void; + // Constructors + static ["new"](): ThemeContext; + // Members + get_font(): Pango.FontDescription; + get_root_node(): ThemeNode; + get_scale_factor(): number; + get_theme(): Theme; + intern_node(node: ThemeNode): ThemeNode; + set_font(font: Pango.FontDescription): void; + set_theme(theme: Theme): void; + static get_for_stage(stage: Clutter.Stage): ThemeContext; +} +export module ThemeNode { + export interface ConstructorProperties extends GObject.Object.ConstructorProperties { + [key: string]: any; + } +} +export class ThemeNode extends GObject.Object { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Constructors + static ["new"](context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string): ThemeNode; + // Members + adjust_for_height(for_height: number): number; + adjust_for_width(for_width: number): number; + adjust_preferred_height(min_height_p: number | null, natural_height_p: number): [number | null, number]; + adjust_preferred_width(min_width_p: number | null, natural_width_p: number): [number | null, number]; + equal(node_b: ThemeNode): boolean; + geometry_equal(other: ThemeNode): boolean; + get_background_color(): Clutter.Color; + get_background_gradient(): [GradientType, Clutter.Color, Clutter.Color]; + get_background_image(): Gio.File; + get_background_image_shadow(): Shadow; + get_background_paint_box(allocation: Clutter.ActorBox): Clutter.ActorBox; + get_border_color(side: Side): Clutter.Color; + get_border_image(): BorderImage; + get_border_radius(corner: Corner): number; + get_border_width(side: Side): number; + get_box_shadow(): Shadow; + get_color(property_name: string): Clutter.Color; + get_content_box(allocation: Clutter.ActorBox): Clutter.ActorBox; + get_double(property_name: string): number; + get_element_classes(): string[]; + get_element_id(): string; + get_element_type(): GType; + get_font(): Pango.FontDescription; + get_font_features(): string; + get_foreground_color(): Clutter.Color; + get_height(): number; + get_horizontal_padding(): number; + get_icon_colors(): IconColors; + get_icon_style(): IconStyle; + get_length(property_name: string): number; + get_letter_spacing(): number; + get_margin(side: Side): number; + get_max_height(): number; + get_max_width(): number; + get_min_height(): number; + get_min_width(): number; + get_outline_color(): Clutter.Color; + get_outline_width(): number; + get_padding(side: Side): number; + get_paint_box(allocation: Clutter.ActorBox): Clutter.ActorBox; + get_parent(): ThemeNode; + get_pseudo_classes(): string[]; + get_shadow(property_name: string): Shadow; + get_text_align(): TextAlign; + get_text_decoration(): TextDecoration; + get_text_shadow(): Shadow; + get_theme(): Theme; + get_transition_duration(): number; + get_url(property_name: string): Gio.File; + get_vertical_padding(): number; + get_width(): number; + hash(): number; + invalidate_background_image(): void; + invalidate_border_image(): void; + lookup_color(property_name: string, inherit: boolean): [boolean, Clutter.Color]; + lookup_double(property_name: string, inherit: boolean): [boolean, number]; + lookup_length(property_name: string, inherit: boolean): [boolean, number]; + lookup_shadow(property_name: string, inherit: boolean): [boolean, Shadow]; + lookup_time(property_name: string, inherit: boolean): [boolean, number]; + lookup_url(property_name: string, inherit: boolean): [boolean, Gio.File]; + paint_equal(other: ThemeNode | null): boolean; + to_string(): string; +} +export module Viewport { + export interface ConstructorProperties extends Widget.ConstructorProperties { + [key: string]: any; + } +} +export class Viewport extends Widget implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable, Scrollable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Implemented Properties + hadjustment: Adjustment; + vadjustment: Adjustment; + // Implemented Members + get_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; + set_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; + vfunc_get_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; + vfunc_set_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; +} +export module Widget { + export interface ConstructorProperties extends Clutter.Actor.ConstructorProperties { + [key: string]: any; + accessible_name: string; + accessible_role: Atk.Role; + can_focus: boolean; + hover: boolean; + label_actor: Clutter.Actor; + pseudo_class: string; + style: string; + style_class: string; + track_hover: boolean; + } +} +export class Widget extends Clutter.Actor implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container, Clutter.Scriptable { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; + // Properties + accessible_name: string; + accessible_role: Atk.Role; + can_focus: boolean; + hover: boolean; + label_actor: Clutter.Actor; + pseudo_class: string; + style: string; + style_class: string; + track_hover: boolean; + // Signals + connect(id: string, callback: (...args: any[]) => any): number; + connect_after(id: string, callback: (...args: any[]) => any): number; + emit(id: string, ...args: any[]): void; + connect(signal: 'popup-menu', callback: (_source: this) => void): number; + connect_after(signal: 'popup-menu', callback: (_source: this) => void): number; + emit(signal: 'popup-menu'): void; + connect(signal: 'resource-scale-changed', callback: (_source: this) => void): number; + connect_after(signal: 'resource-scale-changed', callback: (_source: this) => void): number; + emit(signal: 'resource-scale-changed'): void; + connect(signal: 'style-changed', callback: (_source: this) => void): number; + connect_after(signal: 'style-changed', callback: (_source: this) => void): number; + emit(signal: 'style-changed'): void; + // Members + add_accessible_state(state: Atk.StateType): void; + add_style_class_name(style_class: string): void; + add_style_pseudo_class(pseudo_class: string): void; + ensure_style(): void; + get_accessible_name(): string; + get_accessible_role(): Atk.Role; + get_can_focus(): boolean; + get_focus_chain(): GLib.List; + get_hover(): boolean; + get_label_actor(): Clutter.Actor; + get_resource_scale(): [boolean, number]; + get_style(): string; + get_style_class_name(): string; + get_style_pseudo_class(): string; + get_theme_node(): ThemeNode; + get_track_hover(): boolean; + has_style_class_name(style_class: string): boolean; + has_style_pseudo_class(pseudo_class: string): boolean; + navigate_focus(from: Clutter.Actor | null, direction: DirectionType, wrap_around: boolean): boolean; + paint_background(paint_context: any): void; + peek_theme_node(): ThemeNode; + popup_menu(): void; + remove_accessible_state(state: Atk.StateType): void; + remove_style_class_name(style_class: string): void; + remove_style_pseudo_class(pseudo_class: string): void; + set_accessible(accessible: Atk.Object): void; + set_accessible_name(name: string | null): void; + set_accessible_role(role: Atk.Role): void; + set_can_focus(can_focus: boolean): void; + set_hover(hover: boolean): void; + set_label_actor(label: Clutter.Actor): void; + set_style(style: string | null): void; + set_style_class_name(style_class_list: string | null): void; + set_style_pseudo_class(pseudo_class_list: string | null): void; + set_track_hover(track_hover: boolean): void; + style_changed(): void; + sync_hover(): void; + vfunc_get_focus_chain(): GLib.List; + vfunc_navigate_focus(from: Clutter.Actor | null, direction: DirectionType): boolean; + vfunc_popup_menu(): void; + vfunc_resource_scale_changed(): void; + vfunc_style_changed(): void; + // Implemented Members + animate_property(animation: Clutter.Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + find_property(property_name: string): GObject.ParamSpec; + get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value]; + set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_animate_property(animation: Clutter.Animation, property_name: string, initial_value: (GObject.Value | string | boolean | number), final_value: (GObject.Value | string | boolean | number), progress: number, value: (GObject.Value | string | boolean | number)): boolean; + vfunc_find_property(property_name: string): GObject.ParamSpec; + vfunc_get_initial_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value]; + vfunc_set_final_state(property_name: string, value: (GObject.Value | string | boolean | number)): void; + add_actor(actor: Clutter.Actor): void; + child_get_property(child: Clutter.Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void; + child_set_property(child: Clutter.Actor, property: string, value: (GObject.Value | string | boolean | number)): void; + create_child_meta(actor: Clutter.Actor): void; + destroy_child_meta(actor: Clutter.Actor): void; + find_child_by_name(child_name: string): Clutter.Actor; + foreach(callback: Clutter.Callback): void; + foreach_with_internals(callback: Clutter.Callback): void; + get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta; + get_children(): GLib.List; + lower_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + raise_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + remove_actor(actor: Clutter.Actor): void; + sort_depth_order(): void; + vfunc_actor_added(actor: Clutter.Actor): void; + vfunc_actor_removed(actor: Clutter.Actor): void; + vfunc_add(actor: Clutter.Actor): void; + vfunc_child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void; + vfunc_create_child_meta(actor: Clutter.Actor): void; + vfunc_destroy_child_meta(actor: Clutter.Actor): void; + vfunc_foreach(callback: Clutter.Callback): void; + vfunc_foreach_with_internals(callback: Clutter.Callback): void; + vfunc_get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta; + vfunc_lower(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + vfunc_raise(actor: Clutter.Actor, sibling: Clutter.Actor | null): void; + vfunc_remove(actor: Clutter.Actor): void; + vfunc_sort_depth_order(): void; + get_id(): string; + parse_custom_node(script: Clutter.Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + set_custom_property(script: Clutter.Script, name: string, value: (GObject.Value | string | boolean | number)): void; + set_id(id_: string): void; + vfunc_get_id(): string; + vfunc_parse_custom_node(script: Clutter.Script, value: (GObject.Value | string | boolean | number), name: string, node: Json.Node): boolean; + vfunc_set_custom_property(script: Clutter.Script, name: string, value: (GObject.Value | string | boolean | number)): void; + vfunc_set_id(id_: string): void; +} +export module WidgetAccessible { + export interface ConstructorProperties extends Cally.Actor.ConstructorProperties { + [key: string]: any; + } +} +export class WidgetAccessible extends Cally.Actor implements Atk.Action, Atk.Component { + constructor(properties?: Partial, ...args: any[]); + _init(properties?: Partial, ...args: any[]): void; +} +export class BoxLayoutChildPrivate { + constructor(copy: BoxLayoutChildPrivate); +} +export class BoxLayoutPrivate { + constructor(copy: BoxLayoutPrivate); +} +export class FocusManagerPrivate { + constructor(copy: FocusManagerPrivate); +} +export class GenericAccessiblePrivate { + constructor(copy: GenericAccessiblePrivate); +} +export class IconColors { + constructor(); + constructor(copy: IconColors); + // Fields + ref_count: number; + foreground: Clutter.Color; + warning: Clutter.Color; + error: Clutter.Color; + success: Clutter.Color; + // Constructors + static ["new"](): IconColors; + // Members + copy(): IconColors; + equal(other: IconColors): boolean; + ref(): IconColors; + unref(): void; +} +export class IconPrivate { + constructor(copy: IconPrivate); +} +export class LabelPrivate { + constructor(copy: LabelPrivate); +} +export class ScrollViewPrivate { + constructor(copy: ScrollViewPrivate); +} +export class Shadow { + constructor(color: Clutter.Color, xoffset: number, yoffset: number, blur: number, spread: number, inset: boolean); + constructor(copy: Shadow); + // Fields + color: Clutter.Color; + xoffset: number; + yoffset: number; + blur: number; + spread: number; + inset: boolean; + ref_count: number; + // Constructors + static ["new"](color: Clutter.Color, xoffset: number, yoffset: number, blur: number, spread: number, inset: boolean): Shadow; + // Members + equal(other: Shadow): boolean; + get_box(actor_box: Clutter.ActorBox, shadow_box: Clutter.ActorBox): void; + ref(): Shadow; + unref(): void; +} +export class ShadowHelper { + constructor(shadow: Shadow); + constructor(copy: ShadowHelper); + // Constructors + static ["new"](shadow: Shadow): ShadowHelper; + // Members + copy(): ShadowHelper; + free(): void; + paint(framebuffer: Cogl.Framebuffer, actor_box: Clutter.ActorBox, paint_opacity: number): void; + update(source: Clutter.Actor): void; +} +export class TextureCachePrivate { + constructor(copy: TextureCachePrivate); +} +export class ThemeNodePaintState { + constructor(copy: ThemeNodePaintState); + // Fields + node: ThemeNode; + alloc_width: number; + alloc_height: number; + box_shadow_width: number; + box_shadow_height: number; + resource_scale: number; + box_shadow_pipeline: Cogl.Pipeline; + prerendered_texture: Cogl.Pipeline; + prerendered_pipeline: Cogl.Pipeline; + corner_material: Cogl.Pipeline[]; + // Members + copy(other: ThemeNodePaintState): void; + free(): void; + init(): void; + invalidate(): void; + invalidate_for_file(file: Gio.File): boolean; + set_node(node: ThemeNode): void; +} +export class WidgetAccessiblePrivate { + constructor(copy: WidgetAccessiblePrivate); +} +export interface ScrollableNamespace { + $gtype: GType; +} +export interface Scrollable extends GObject.Object { + // Properties + hadjustment: Adjustment; + vadjustment: Adjustment; + // Members + get_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; + set_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; + vfunc_get_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; + vfunc_set_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void; +} + +export const Scrollable: ScrollableNamespace; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/gi/xlib.d.ts b/gi/xlib.d.ts similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/gi/xlib.d.ts rename to gi/xlib.d.ts diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/ar/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/ar/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/ar/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/ar/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/ar/LC_MESSAGES/dynamic-panel-transparency.po b/locale/ar/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/ar/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/ar/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/de/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/de/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/de/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/de/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/de/LC_MESSAGES/dynamic-panel-transparency.po b/locale/de/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/de/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/de/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/es/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/es/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/es/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/es/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/es/LC_MESSAGES/dynamic-panel-transparency.po b/locale/es/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/es/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/es/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/fr/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/fr/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/fr/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/fr/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/fr/LC_MESSAGES/dynamic-panel-transparency.po b/locale/fr/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/fr/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/fr/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.po b/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/ru/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/ru/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/ru/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/ru/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/ru/LC_MESSAGES/dynamic-panel-transparency.po b/locale/ru/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/ru/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/ru/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/sr/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/sr/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/sr/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/sr/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/sr/LC_MESSAGES/dynamic-panel-transparency.po b/locale/sr/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/sr/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/sr/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.po b/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.mo b/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.mo similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.mo rename to locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.mo diff --git a/dynamic-panel-transparency@rockon999.github.io/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.po b/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.po similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.po rename to locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.po diff --git a/dynamic-panel-transparency@rockon999.github.io/media/demo.gif b/media/demo.gif similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/media/demo.gif rename to media/demo.gif diff --git a/dynamic-panel-transparency@rockon999.github.io/metadata.json b/metadata.json similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/metadata.json rename to metadata.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..1aef55c --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "dynamic-panel-transparency", + "main": "./src/extension.ts", + "devDependencies": { + "rollup": "^2.2.0", + "typescript": "^3.8.3" + } +} \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/schemas/gschemas.compiled b/schemas/gschemas.compiled similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/schemas/gschemas.compiled rename to schemas/gschemas.compiled diff --git a/dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides.gschema.xml b/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides.gschema.xml similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides.gschema.xml rename to schemas/org.gnome.shell.extensions.dynamic-panel-transparency.appOverrides.gschema.xml diff --git a/dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml b/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml rename to schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml diff --git a/dynamic-panel-transparency@rockon999.github.io/COPYING b/src/COPYING similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/COPYING rename to src/COPYING diff --git a/dynamic-panel-transparency@rockon999.github.io/LICENSE b/src/LICENSE similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/LICENSE rename to src/LICENSE diff --git a/src/background.ts b/src/background.ts new file mode 100644 index 0000000..443d4c8 --- /dev/null +++ b/src/background.ts @@ -0,0 +1,70 @@ +import * as ColorUtil from './color_util'; + +const LUMINANCE_DARK_THRESHOLD = 60; +const LUMINANCE_BRIGHT_THRESHOLD = 140; +const LUMINANCE_STD_NOISY_THRESHOLD = 28; +const ACUTANCE_NOISY_THRESHOLD = 8; +const ACUTANCE_STD_NOISY_THRESHOLD = 6; + +/** + * @param {number} x + * @param {number} y + * @param {number} width + * @param {number} height + * @param {boolean} returnRawValues + */ +export function getCharacteristicsForArea( + x: number, + y: number, + width: number, + height: number, + returnRawValues: boolean +) { + let background = this._backgroundSource.getBackground(this._monitorIndex); + let metaBackground = background.background; + + let areaIsNoisy, areaIsDark, areaIsBright; + + areaIsNoisy = false; + areaIsDark = false; + areaIsBright = false; + + // Always return false for animated backgrounds, we don't want to + // do those calculations on every animation frame. + if (background.isAnimated()) return [false]; + + let { + mean_luminance, + luminance_variance, + mean_acutance, + acutance_variance, + } = ColorUtil.get_background_color_information(metaBackground, x, y, width, height); + + let luminanceStd = Math.sqrt(luminance_variance); + let acutanceStd = Math.sqrt(acutance_variance); + + if (mean_luminance < LUMINANCE_DARK_THRESHOLD) areaIsDark = true; + else if (mean_luminance > LUMINANCE_BRIGHT_THRESHOLD) areaIsBright = true; + + if ( + mean_acutance > ACUTANCE_NOISY_THRESHOLD || + (mean_acutance * 4 > ACUTANCE_NOISY_THRESHOLD && acutanceStd > ACUTANCE_STD_NOISY_THRESHOLD) || + luminanceStd > LUMINANCE_STD_NOISY_THRESHOLD || + (areaIsDark && mean_luminance + luminanceStd > LUMINANCE_BRIGHT_THRESHOLD) || + (areaIsBright && mean_luminance - luminanceStd < LUMINANCE_DARK_THRESHOLD) + ) + areaIsNoisy = true; + + if (returnRawValues) + return [ + true, + areaIsNoisy, + areaIsDark, + areaIsBright, + mean_luminance, + luminanceStd, + mean_acutance, + acutanceStd, + ]; + else return [true, areaIsNoisy, areaIsDark, areaIsBright]; +} diff --git a/src/color_util.ts b/src/color_util.ts new file mode 100644 index 0000000..0e17299 --- /dev/null +++ b/src/color_util.ts @@ -0,0 +1,242 @@ +import type { Pixbuf } from 'gdkpixbuf'; + +const SATURATION_WEIGHT = 1.5; +const WEIGHT_THRESHOLD = 1.0; + +const { GdkPixbuf } = imports.gi; + +let id = -1; + +/** + * @param {number} [monitorIndex] + * @param {(info: { mean_luminance: number; luminance_variance: number; mean_acutance: number; acutance_variance: number; }) => void} infoCallback + */ +export function getBackgroundColorInfo( + monitorIndex = 0, + infoCallback: (info: { + mean_luminance: number; + luminance_variance: number; + mean_acutance: number; + acutance_variance: number; + }) => void +) { + log('getting info...'); + const cache = imports.ui.background.getBackgroundCache(); + const source = cache.getBackgroundSource( + imports.ui.main.layoutManager, + imports.ui.background.BACKGROUND_SCHEMA + ); + + let background = source.getBackground(monitorIndex); + + if (id > -1) { + background.disconnect(id); + } + + function analyze() { + log('analyzing...'); + const file = background._file; + + if (file) { + log(`file: ${file.get_path()}`); + let background = GdkPixbuf.Pixbuf.new_from_file(file.get_path()); + log('loaded image'); + let monitor = imports.ui.main.layoutManager.monitors[monitorIndex]; + log(`area: ${30} x ${monitor.width}`); + infoCallback(get_background_color_information(background, 0, 0, 30, monitor.width)); + } else { + log(file); + + infoCallback(null); + } + } + + function handler() { + log('changed!'); + if (id > -1) { + background.disconnect(id); + } + + background = source.getBackground(monitorIndex); + + id = background.connect('bg-changed', handler); + + analyze(); + } + + id = background.connect('bg-changed', handler); + + log('backgrounded:'); + log(`${Object.keys(background)}`); + analyze(); +} + +/** + * @param {*} source + * @param {number} reference_x + * @param {number} reference_y + * @param {number} reference_height + * @param {number} reference_width + */ +export function get_background_color_information( + source: Pixbuf, + reference_x: number, + reference_y: number, + reference_height: number, + reference_width: number +) { + let bg_actor_width = Math.floor(source.get_width()); + let bg_actor_height = Math.floor(source.get_height()); + + // A commit in mutter added some padding to offscreen textures, so we + // need to avoid looking at the edges of the texture as it often has a + // black border. The commit specifies that up to 1.75px around each side + // could now be padding, so cut off 2px from left and top if necessary + // (https://gitlab.gnome.org/GNOME/mutter/commit/8655bc5d8de6a969e0ca83eff8e450f62d28fbee) + let x_start = reference_x; + if (x_start < 2) { + x_start = 2; + } + + let y_start = reference_y; + if (y_start < 2) { + y_start = 2; + } + + // For the same reason as above, we need to not use the bottom and right + // 2px of the texture. However, if the caller has specified an area of + // interest that already misses these parts, use that instead, otherwise + // chop 2px + + const width = Math.min(bg_actor_width - 2 - reference_x, reference_width); + const height = Math.min(bg_actor_height - 2 - reference_y, reference_height); + + if (x_start > bg_actor_width || y_start > bg_actor_height || width <= 0 || height <= 0) { + throw new Error(`Invalid rectangle specified: ${x_start}, ${y_start}, ${width}, ${height}`); + } + + let mean_acutance = 0, + mean_luminance = 0, + r_total = 0, + g_total = 0, + b_total = 0; + + let pixel_lums = new Float64Array((x_start + width + 1) * (y_start + height + 1)); + + let pixels = source.get_pixels(); + + log('got pixels!'); + const size = width * height; + + let mean_squares = 0; + let pixel = 0; + + let max, + min, + score, + delta, + score_total = 0, + r_total2 = 0, + g_total2 = 0, + b_total2 = 0; + + /* + * code to calculate weighted average color is copied from + * plank's lib/Drawing/DrawingService.vala average_color() + * http://bazaar.launchpad.net/~docky-core/plank/trunk/view/head:/lib/Drawing/DrawingService.vala + */ + for (let y = y_start; y < y_start + height; y++) { + for (let x = x_start; x < x_start + width; x++) { + const i = y * width * 4 + x * 4; + + let b = pixels[i]; + let g = pixels[i + 1]; + let r = pixels[i + 2]; + + pixel = 0.3 * r + 0.59 * g + 0.11 * b; + + pixel_lums[y * width + x] = pixel; + + min = Math.min(r, Math.min(g, b)); + max = Math.max(r, Math.max(g, b)); + + delta = max - min; + + /* prefer colored pixels over shades of grey */ + score = SATURATION_WEIGHT * (delta == 0 ? 0.0 : delta / max); + + r_total += score * r; + g_total += score * g; + b_total += score * b; + score_total += score; + + r_total += r; + g_total += g; + b_total += b; + + mean_luminance += pixel; + mean_squares += pixel * pixel; + } + } + + for (let y = y_start + 1; y < y_start + height - 1; y++) { + for (let x = x_start + 1; x < x_start + width - 1; x++) { + let acutance = + pixel_lums[y * width + x] * 4 - + (pixel_lums[y * width + x - 1] + + pixel_lums[y * width + x + 1] + + pixel_lums[(y - 1) * width + x] + + pixel_lums[(y + 1) * width + x]); + + mean_acutance += acutance > 0 ? acutance : -acutance; + } + } + + score_total /= size; + b_total /= size; + g_total /= size; + r_total /= size; + + if (score_total > 0.0) { + b_total /= score_total; + g_total /= score_total; + r_total /= score_total; + } + + b_total2 /= size * 255; + g_total2 /= size * 255; + r_total2 /= size * 255; + + /* + * combine weighted and not weighted sum depending on the average "saturation" + * if saturation isn't reasonable enough + * s = 0.0 -> f = 0.0 ; s = WEIGHT_THRESHOLD -> f = 1.0 + */ + if (score_total <= WEIGHT_THRESHOLD) { + let f = (1.0 / WEIGHT_THRESHOLD) * score_total; + let rf = 1.0 - f; + + b_total = b_total * f + b_total2 * rf; + g_total = g_total * f + g_total2 * rf; + r_total = r_total * f + r_total2 * rf; + } + + /* there shouldn't be values larger then 1.0 */ + let max_val = Math.max(r_total, Math.max(g_total, b_total)); + + if (max_val > 1.0) { + b_total /= max_val; + g_total /= max_val; + r_total /= max_val; + } + + mean_luminance /= size; + mean_squares = mean_squares / size; + + let luminance_variance = mean_squares - mean_luminance * mean_luminance; + let acutance_variance = mean_squares - mean_acutance * mean_acutance; + + mean_acutance /= (width - 2) * (height - 2); + log('calculated'); + return { mean_luminance, luminance_variance, mean_acutance, acutance_variance }; +} diff --git a/src/compat.ts b/src/compat.ts new file mode 100644 index 0000000..a9105ef --- /dev/null +++ b/src/compat.ts @@ -0,0 +1,14 @@ +import type * as st from 'st'; + +const { St } = imports.gi; + +/** + * @param obj + */ +export function getActorOf(obj: { actor: T } | T) { + if (obj instanceof St.Widget) { + return obj; + } + + return obj.actor; +} diff --git a/dynamic-panel-transparency@rockon999.github.io/convenience.js b/src/convenience.ts similarity index 94% rename from dynamic-panel-transparency@rockon999.github.io/convenience.js rename to src/convenience.ts index eda79ca..773c229 100644 --- a/dynamic-panel-transparency@rockon999.github.io/convenience.js +++ b/src/convenience.ts @@ -1,6 +1,3 @@ -/** @type {Module} */ -const module = {}; - /* Copyright (c) 2011-2012, Giovanni Campagna @@ -41,7 +38,7 @@ const ExtensionUtils = imports.misc.extensionUtils; * Initialize Gettext to load translations from extensionsdir/locale. * If @domain is not provided, it will be taken from metadata['gettext-domain'] */ -function initTranslations(domain) { +export function initTranslations(domain: string) { let extension = ExtensionUtils.getCurrentExtension(); domain = domain || extension.metadata['gettext-domain']; @@ -67,7 +64,7 @@ function initTranslations(domain) { * in extensionsdir/schemas. If @schema is not provided, it is taken from * metadata['settings-schema']. */ -function getSettings(schema) { +export function getSettings(schema: string) { let schemaObj = getSchemaObj(schema); return new Gio.Settings({ settings_schema: schemaObj }); @@ -80,7 +77,7 @@ function getSettings(schema) { * * @returns {import("gio").SettingsSchema} A GSettingsSchema found based on the given schema path. */ -function getSchemaObj(schema, defaultSource = false) { +export function getSchemaObj(schema: string, defaultSource = false) { let extension = ExtensionUtils.getCurrentExtension(); schema = schema || extension.metadata['settings-schema']; @@ -109,5 +106,3 @@ function getSchemaObj(schema, defaultSource = false) { return schemaObj; } - -module.exports = { initTranslations, getSettings, getSchemaObj }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/dynamic-panel-transparency.pot b/src/dynamic-panel-transparency.pot similarity index 100% rename from dynamic-panel-transparency@rockon999.github.io/dynamic-panel-transparency.pot rename to src/dynamic-panel-transparency.pot diff --git a/src/events.ts b/src/events.ts new file mode 100644 index 0000000..850d5b3 --- /dev/null +++ b/src/events.ts @@ -0,0 +1,309 @@ +import type * as gobject from 'gobject'; + +import * as Convenience from './convenience'; +import * as Settings from './settings'; + +import { DynamicPanel } from './extension'; +import { EmbeddedWindow } from 'shell'; + +// We modify shell windows. +declare module 'shell' { + interface EmbeddedWindow { + _dpt_tracking?: boolean; + _dpt_signals?: number[]; + } +} + +const Gio = imports.gi.Gio; +const Shell = imports.gi.Shell; + +const Main = imports.ui.main; + +const USER_THEME_SCHEMA = 'org.gnome.shell.extensions.user-theme'; + +/** + * @param {DynamicPanel[]} panels + */ +export function forceSyncCheck(panels: DynamicPanel[]) { + panels.forEach((panel) => panel.intellifader.forceSyncCheck()); +} + +/** + * @param {DynamicPanel[]} panels + */ +export function syncCheck(panels: DynamicPanel[]) { + panels.forEach((panel) => panel.intellifader.syncCheck()); +} + +/** + * @param {DynamicPanel[]} panels + */ +export function asyncCheck(panels: DynamicPanel[]) { + panels.forEach((panel) => panel.intellifader.asyncCheck()); +} + +export class EventManager { + panels: DynamicPanel[]; + _wm_tracker: any; + _overviewHidingSig: any; + _overviewShownSig: any; + _workspaceSwitchSig: any; + _windowRestackedSig: any; + _windowActorAddedSig: any; + _windowActorRemovedSig: any; + _appFocusedSig: any; + _theme_settings: any; + _windowUnminimizeSig: any; + + /** + * Initialize. + * @param {DynamicPanel[]} panels + */ + constructor(panels: DynamicPanel[]) { + this.panels = panels; + + const settings = Settings.get(); + + this._wm_tracker = Shell.WindowTracker.get_default(); + + this._overviewHidingSig = Main.overview.connect('hiding', this._overviewHiding.bind(this)); + + if (settings.transitionWithOverview()) { + this._overviewShownSig = Main.overview.connect('showing', this._overviewShown.bind(this)); + } else { + this._overviewShownSig = Main.overview.connect('shown', this._overviewShown.bind(this)); + } + + const windows = global.get_window_actors(); + + for (const window_actor of windows) { + /* Simulate window creation event, null container because _windowActorAdded doesn't utilize containers */ + this._windowActorAdded(null, window_actor, false); + } + + this._workspaceSwitchSig = global.window_manager.connect_after( + 'switch-workspace', + this._workspaceSwitched.bind(this) + ); + + const screen = global.screen || global.display; + + if (screen) { + this._windowRestackedSig = screen.connect_after('restacked', this._windowRestacked.bind(this)); + } else { + log("[Dynamic Panel Transparency] Error could not register 'restacked' event."); + } + + this._windowActorAddedSig = global.window_group.connect('actor-added', this._windowActorAdded.bind(this)); + this._windowActorRemovedSig = global.window_group.connect( + 'actor-removed', + this._windowActorRemoved.bind(this) + ); + + this._appFocusedSig = this._wm_tracker.connect_after( + 'notify::focus-app', + this._windowRestacked.bind(this) + ); + + this._theme_settings = null; + + try { + let schemaObj = Convenience.getSchemaObj(USER_THEME_SCHEMA, true); + + if (schemaObj) { + this._theme_settings = new Gio.Settings({ + settings_schema: schemaObj, + }); + } + } catch (error) { + log( + '[Dynamic Panel Transparency] Failed to find shell theme settings. Ignore this if you are not using a custom theme.' + ); + } + + + this._windowUnminimizeSig = undefined; + } + + /** + * @param {import('gobject').Object} obj + * @param {number} sig + */ + disconnect(obj: gobject.Object, sig: number) { + try { + if (sig != null && obj) { + obj.disconnect(sig); + } + } catch (error) { + log('[Dynamic Panel Transparency] Failed to disconnect signal: ' + error); + } + } + + /** + * Don't want to hold onto anything that isn't ours. + * @returns {void} + */ + cleanup() { + /* Disconnect Signals */ + if (this._windowUnminimizeSig) { + this.disconnect(global.window_manager, this._windowUnminimizeSig); + } + + this.disconnect(Main.overview, this._overviewShownSig); + this.disconnect(Main.overview, this._overviewHidingSig); + + this.disconnect(global.window_manager, this._workspaceSwitchSig); + + this.disconnect(global.window_group, this._windowActorAddedSig); + this.disconnect(global.window_group, this._windowActorRemovedSig); + + const screen = global.screen || global.display; + + if (screen) { + this.disconnect(screen, this._windowRestackedSig); + } else { + log("[Dynamic Panel Transparency] Error could not disconnect 'restacked' event."); + } + + this.disconnect(this._wm_tracker, this._appFocusedSig); + + const windows = global.get_window_actors(); + + for (const window_actor of windows) { + if (typeof window_actor._dpt_signals !== 'undefined') { + for (let signalId of window_actor._dpt_signals) { + this.disconnect(window_actor, signalId); + } + } + + delete window_actor._dpt_signals; + delete window_actor._dpt_tracking; + } + + /* Cleanup Signals */ + this._windowRestackedSig = null; + this._overviewShownSig = null; + this._overviewHidingSig = null; + this._windowActorRemovedSig = null; + this._workspaceSwitchSig = null; + this._windowActorAddedSig = null; + + this._theme_settings = null; + + this._wm_tracker = null; + } + + /* Event Handlers */ + + /** + * Called whenever the overview is shown. + * + */ + _overviewShown() { + this.panels.forEach((panel) => { + if (!panel.transitions.is_blank()) { + panel.transitions.blank_fade_out(); + } + + const settings = Settings.get(); + + if ( + settings.enableTextColor() && + (settings.enableMaximizedTextColor() || settings.enableOverviewTextColor()) + ) { + if (settings.enableOverviewTextColor()) { + panel.themer.remove_text_color(); + panel.themer.set_text_color(); + } else { + panel.themer.remove_text_color(); + panel.themer.set_text_color(); + } + } + }); + } + + _overviewHiding() { + forceSyncCheck(this.panels); + } + + /** + * Called whenever a window actor is removed. + * @param {any} _container + * @param {any} window_actor + */ + _windowActorRemoved(_container: any, window_actor: EmbeddedWindow) { + if (typeof window_actor._dpt_tracking === 'undefined') { + return; + } + + /* Remove our tracking variable. */ + delete window_actor._dpt_tracking; + + if (typeof window_actor._dpt_signals !== 'undefined') { + for (let signalId of window_actor._dpt_signals) { + window_actor.disconnect(signalId); + } + } + + delete window_actor._dpt_signals; + + asyncCheck(this.panels); + } + + /** + * Called whenever a window is created in the shell. + * @param {unknown} _ + * @param {EmbeddedWindow} window_actor + */ + _windowActorAdded(_: unknown, window_actor: EmbeddedWindow, force = true) { + if (window_actor && (force || typeof window_actor._dpt_tracking === 'undefined')) { + window_actor._dpt_tracking = true; + const ac_wId = window_actor.connect( + 'allocation-changed', + function () { + asyncCheck(this.panels); + }.bind(this) + ); + const v_wId = window_actor.connect( + 'notify::visible', + function () { + asyncCheck(this.panels); + }.bind(this) + ); + window_actor._dpt_signals = [ac_wId, v_wId]; + + asyncCheck(this.panels); + } + } + + /** + * SPECIAL_CASE: Only update if we're using per-app settings or is desktop icons are enabled. + * + */ + _windowRestacked() { + const settings = Settings.get(); + /* Don't allow restacks while the overview is transitioning. */ + if (!Main.overview.visible) { + /* Detect if desktop icons are enabled. */ + if (settings.gs_show_desktop()) { + asyncCheck(this.panels); + } + } + } + + /** + * SPECIAL_CASE: Update logic requires the workspace that we'll be switching to. + * @param {any} _wm + * @param {any} _from + * @param {any} _to + * @param {any} _direction + */ + _workspaceSwitched(_wm: any, _from: any, _to: any, _direction: any) { + const settings = Settings.get(); + + /* Detect if desktop icons are enabled. */ + if (!settings.gs_show_desktop()) { + syncCheck(this.panels); + } + } +} diff --git a/dynamic-panel-transparency@rockon999.github.io/extension.js b/src/extension.ts similarity index 80% rename from dynamic-panel-transparency@rockon999.github.io/extension.js rename to src/extension.ts index 50db193..7cb3d5f 100644 --- a/dynamic-panel-transparency@rockon999.github.io/extension.js +++ b/src/extension.ts @@ -1,29 +1,30 @@ -/** @type {Module} */ -const module = {}; - const Mainloop = imports.mainloop; -const { main: Main } = imports.ui; +import * as st from 'st'; -const Me = imports.misc.extensionUtils.getCurrentExtension(); +const Main = imports.ui.main as { + panel: st.Bin +}; -const { - compat: Compat, - events: { EventManager }, - intellifade: { Intellifader }, - settings: Settings, - theming: { Themer, load_panel_theme }, - transitions: { TransitionManager } -} = Me.imports; +import * as Compat from './compat'; +import { EventManager } from './events'; +import { Intellifader } from './intellifade'; +import * as Settings from './settings'; +import {Themer, load_panel_theme} from './theming'; +import { TransitionManager } from './transitions'; -/** @type {DynamicPanel[]} */ -let panels = []; +let panels = [] as DynamicPanel[]; class DynamicPanel { + actor: st.Bin; + themer: Themer; + transitions: TransitionManager; + intellifader: Intellifader; + /** - * @param {any} panelActor + * @param {st.Bin} panelActor */ - constructor(panelActor) { + constructor(panelActor: st.Bin) { this.actor = panelActor; /* Initialize Utilities */ @@ -43,6 +44,8 @@ class DynamicPanel { } } +export type { DynamicPanel }; + /* Initialize */ function init() { } @@ -99,7 +102,7 @@ function disable() { /** * @param {DynamicPanel} panel */ -function modify_panel(panel) { +function modify_panel(panel: DynamicPanel) { const Theming = panel.themer; /* Get Rid of the Panel's CSS Background */ @@ -145,5 +148,3 @@ function unmodify_panel() { Theming.remove_text_color(); }); } - -module.exports = { DynamicPanel, init, enable, disable }; \ No newline at end of file diff --git a/dynamic-panel-transparency@rockon999.github.io/intellifade.js b/src/intellifade.ts similarity index 93% rename from dynamic-panel-transparency@rockon999.github.io/intellifade.js rename to src/intellifade.ts index 7824209..23b10cf 100644 --- a/dynamic-panel-transparency@rockon999.github.io/intellifade.js +++ b/src/intellifade.ts @@ -1,5 +1,5 @@ /** @type {Module} */ -const module = {}; +const module: Module = {}; const { GLib, Meta, Shell, St } = imports.gi; const Mainloop = imports.mainloop; @@ -9,19 +9,28 @@ const Main = imports.ui.main; const Me = imports.misc.extensionUtils.getCurrentExtension(); const Settings = Me.imports.settings; const Util = Me.imports.util; - -const { TransitionManager } = Me.imports.transitions; -const { Themer } = Me.imports.theming; +import {Themer, load_panel_theme} from './theming'; +import { TransitionManager } from './transitions'; /* How often the asynchronous loop should run in milliseconds... */ const ASYNC_UPDATE_FREQUENCY = 200; // ms -var Intellifader = class Intellifader { +export class Intellifader { + transitions: TransitionManager; + themer: Themer; + continueCheck: boolean; + override_optimization: boolean; + timeoutId: number; + maximized_window: any; + _wm_tracker: any; + panel_bounds: { x: any; y: any; height: any; width: any; is_top: boolean; }; + scale_factor: number; + /** * @param {typeof TransitionManager.prototype} transitions * @param {typeof Themer.prototype} themer */ - constructor(transitions, themer) { + constructor(transitions: typeof TransitionManager.prototype, themer: typeof Themer.prototype) { this.transitions = transitions; this.themer = themer; @@ -271,9 +280,7 @@ var Intellifader = class Intellifader { * * @returns {Object} The current visible maximized window. */ - get_current_maximized_window() { + get_current_maximized_window(): object { return this.maximized_window; } } - -module.exports = { Intellifader }; \ No newline at end of file diff --git a/src/prefs.ts b/src/prefs.ts new file mode 100644 index 0000000..8b83f54 --- /dev/null +++ b/src/prefs.ts @@ -0,0 +1,537 @@ +import type { + Revealer, + Button, + Grid, + Notebook, + Scale, + CheckButton, + Switch, + ColorButton, + Container, + Widget, + AboutDialog, + StackSwitcher, + Box, +} from 'gtk'; + +const { GLib, Gdk, Gtk } = imports.gi; + +const Me = imports.misc.extensionUtils.getCurrentExtension(); + +const Convenience = Me.imports.convenience; +const Util = Me.imports.util; + +const Gettext = imports.gettext.domain('dynamic-panel-transparency'); +const _ = Gettext.gettext; + +const gtk30_ = imports.gettext.domain('gtk30').gettext; + +/* Settings Keys */ +const SETTINGS_ENABLE_BACKGROUND_COLOR = 'enable-background-color'; +const SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR = 'enable-maximized-text-color'; +const SETTINGS_ENABLE_OPACITY = 'enable-opacity'; +const SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR = 'enable-overview-text-color'; +const SETTINGS_ENABLE_TEXT_COLOR = 'enable-text-color'; +const SETTINGS_ICON_SHADOW = 'icon-shadow'; +const SETTINGS_MAXIMIZED_OPACITY = 'maximized-opacity'; +const SETTINGS_MAXIMIZED_TEXT_COLOR = 'maximized-text-color'; +const SETTINGS_PANEL_COLOR = 'panel-color'; +const SETTINGS_REMOVE_PANEL_STYLING = 'remove-panel-styling'; +const SETTINGS_TEXT_COLOR = 'text-color'; +const SETTINGS_TEXT_SHADOW = 'text-shadow'; +const SETTINGS_TRANSITION_SPEED = 'transition-speed'; +const SETTINGS_TRANSITION_WITH_OVERVIEW = 'transition-with-overview'; +const SETTINGS_TRANSITION_WINDOWS_TOUCH = 'transition-windows-touch'; +const SETTINGS_UNMAXIMIZED_OPACITY = 'unmaximized-opacity'; + +const Page = { + TRANSITIONS: 0, + FOREGROUND: 1, + BACKGROUND: 2, + APP_TWEAKS: 3, + ABOUT: 4, +}; +Object.freeze(Page); + +/* Color Array Indices */ +const RED = 0; +const GREEN = 1; +const BLUE = 2; +const ALPHA = 3; + +/* UI spacing & similar values. */ +const WEBSITE_LABEL_BOTTOM_MARGIN = 50; +const WEBSITE_LABEL_TOP_MARGIN = 20; + +/* Color Scaling Factor (Byte to Decimal) */ +const SCALE_FACTOR = 255.9999999; + +function init() { + Convenience.initTranslations(); +} + +/* UI Setup */ +function buildPrefsWidget() { + /* Stores settings until the user applies them. */ + + /* Get Settings */ + let settings = Convenience.getSettings(); + /* Create a UI Builder */ + let builder = new Gtk.Builder(); + /* Setup Translation */ + builder.set_translation_domain(Me.metadata['gettext-domain']); + /* Get UI File */ + builder.add_from_file(Me.path + '/prefs.ui'); + + /* Main Widget (Grid) */ + let main_widget = builder.get_object('main_box'); + + /* Tabs */ + let main_notebook = builder.get_object('main_notebook'); + + /* Used for special functions occasionally. */ + let extra_btn = builder.get_object