Files
TheaninovOS/desktops/hyprland/ags/node_modules/@girs/dbusmenugtk3-0.4/dbusmenugtk3-0.4.d.cts
2023-11-15 16:09:26 +01:00

689 lines
36 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Type Definitions for Gjs (https://gjs.guide/)
*
* These type definitions are automatically generated, do not edit them by hand.
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
*/
import './dbusmenugtk3-0.4-ambient.d.ts';
import './dbusmenugtk3-0.4-import.d.ts';
/**
* DbusmenuGtk3-0.4
*/
import type Gtk from '@girs/gtk-3.0';
import type xlib from '@girs/xlib-2.0';
import type Gdk from '@girs/gdk-3.0';
import type cairo from '@girs/cairo-1.0';
import type GObject from '@girs/gobject-2.0';
import type GLib from '@girs/glib-2.0';
import type Pango from '@girs/pango-1.0';
import type HarfBuzz from '@girs/harfbuzz-0.0';
import type freetype2 from '@girs/freetype2-2.0';
import type Gio from '@girs/gio-2.0';
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
import type GModule from '@girs/gmodule-2.0';
import type Atk from '@girs/atk-1.0';
import type Dbusmenu from '@girs/dbusmenu-0.4';
export const GTK_MENUITEM_H__: number
/**
* The Dbusmenu GTK parser adds cached items on the various
* menu items throughout the tree. Sometimes it can be useful
* to get that cached item to use directly. This function
* will retrieve it for you.
* @param widget A #GtkMenuItem that may have a cached #DbusmenuMenuitem from the parser
* @returns A pointer to the cached item or NULL if it isn't there.
*/
export function gtk_parse_get_cached_item(widget: Gtk.Widget): Dbusmenu.Menuitem
/**
* Goes through the GTK structures and turns them into the appropraite
* Dbusmenu structures along with setting up all the relationships
* between the objects. It also stores the dbusmenu items as a cache
* on the GTK items so that they'll be reused if necissary.
* @param widget A #GtkMenuItem or #GtkMenuShell to turn into a #DbusmenuMenuitem
* @returns A dbusmenu item representing the menu structure
*/
export function gtk_parse_menu_structure(widget: Gtk.Widget): Dbusmenu.Menuitem
/**
* This function looks on the menu item for a property by the
* name of `property`. If one exists it tries to turn it into
* a #GdkPixbuf. It assumes that the property is a base64 encoded
* PNG file like the one created by #dbusmenu_menuite_property_set_image.
* @param menuitem The #DbusmenuMenuitem to look for the property on
* @param property The name of the property to look for.
* @returns A pixbuf or #NULL to signal error.
*/
export function menuitem_property_get_image(menuitem: Dbusmenu.Menuitem, property: string | null): GdkPixbuf.Pixbuf
/**
* This function gets a GTK shortcut as a key and a mask
* for use to set the accelerators.
* @param menuitem The #DbusmenuMenuitem to get the shortcut off
*/
export function menuitem_property_get_shortcut(menuitem: Dbusmenu.Menuitem): [ /* key */ number, /* modifier */ Gdk.ModifierType ]
/**
* This function takes the pixbuf that is stored in `data` and
* turns it into a base64 encoded PNG so that it can be placed
* onto a standard #DbusmenuMenuitem property.
* @param menuitem The #DbusmenuMenuitem to set the property on.
* @param property Name of the property to set.
* @param data The image to place on the property.
* @returns Whether the function was able to set the property or not.
*/
export function menuitem_property_set_image(menuitem: Dbusmenu.Menuitem, property: string | null, data: GdkPixbuf.Pixbuf): boolean
/**
* Takes the modifer described by `key` and `modifier` and places that into
* the format sending across Dbus for shortcuts.
* @param menuitem The #DbusmenuMenuitem to set the shortcut on
* @param key The keycode of the key to send
* @param modifier A bitmask of modifiers used to activate the item
* @returns Whether it was successful at setting the property.
*/
export function menuitem_property_set_shortcut(menuitem: Dbusmenu.Menuitem, key: number, modifier: Gdk.ModifierType): boolean
/**
* Takes the shortcut that is installed on a menu item and calls
* #dbusmenu_menuitem_property_set_shortcut with it. It also sets
* up listeners to watch it change.
* @param menuitem The #DbusmenuMenuitem to set the shortcut on
* @param gmi A menu item to steal the shortcut off of
* @returns Whether it was successful at setting the property.
*/
export function menuitem_property_set_shortcut_menuitem(menuitem: Dbusmenu.Menuitem, gmi: Gtk.MenuItem): boolean
/**
* This function takes a GTK shortcut string as defined in
* #gtk_accelerator_parse and turns that into the information
* required to send it over DBusmenu.
* @param menuitem The #DbusmenuMenuitem to set the shortcut on
* @param shortcut String describing the shortcut
* @returns Whether it was successful at setting the property.
*/
export function menuitem_property_set_shortcut_string(menuitem: Dbusmenu.Menuitem, shortcut: string | null): boolean
export module Client {
// Constructor properties interface
export interface ConstructorProperties extends Dbusmenu.Client.ConstructorProperties {
}
}
export interface Client {
// Owm methods of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
/**
* Gets the accel group for this client.
* @returns Either a valid group or #NULL on error or none set.
*/
get_accel_group(): Gtk.AccelGroup
/**
* This grabs the #GtkMenuItem that is associated with the
* #DbusmenuMenuitem.
* @param item #DbusmenuMenuitem to get associated #GtkMenuItem on.
* @returns The #GtkMenuItem that can be played with.
*/
menuitem_get(item: Dbusmenu.Menuitem): Gtk.MenuItem
/**
* This grabs the submenu associated with the menuitem.
* @param item #DbusmenuMenuitem to get associated #GtkMenu on.
* @returns The #GtkMenu if there is one.
*/
menuitem_get_submenu(item: Dbusmenu.Menuitem): Gtk.Menu
/**
* This function provides some of the basic connectivity for being in
* the GTK world. Things like visibility and sensitivity of the item are
* handled here so that the subclasses don't have to. If you're building
* your on GTK menu item you can use this function to apply those basic
* attributes so that you don't have to deal with them either.
*
* This also handles passing the "activate" signal back to the
* #DbusmenuMenuitem side of thing.
* @param item The #DbusmenuMenuitem to attach the GTK-isms to
* @param gmi A #GtkMenuItem representing the GTK world's view of this menuitem
* @param parent The parent #DbusmenuMenuitem
*/
newitem_base(item: Dbusmenu.Menuitem, gmi: Gtk.MenuItem, parent: Dbusmenu.Menuitem): void
/**
* Sets the acceleration group for the menu items with accelerators
* on this client.
* @param agroup The new acceleration group
*/
set_accel_group(agroup: Gtk.AccelGroup): void
// Class property signals of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
connect(sigName: "notify::dbus-name", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::dbus-name", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::dbus-name", ...args: any[]): void
connect(sigName: "notify::dbus-object", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::dbus-object", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::dbus-object", ...args: any[]): void
connect(sigName: "notify::group-events", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::group-events", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::group-events", ...args: any[]): void
connect(sigName: string, callback: (...args: any[]) => void): number
connect_after(sigName: string, callback: (...args: any[]) => void): number
emit(sigName: string, ...args: any[]): void
disconnect(id: number): void
}
/**
* A subclass of #DbusmenuClient to add functionality with regarding
* building GTK items out of the abstract tree.
* @class
*/
export class Client extends Dbusmenu.Client {
// Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
static name: string
static $gtype: GObject.GType<Client>
// Constructors of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
constructor(config?: Client.ConstructorProperties)
/**
* Creates a new #DbusmenuGtkClient object and creates a #DbusmenuClient
* that connects across DBus to a #DbusmenuServer.
* @constructor
* @param dbus_name Name of the #DbusmenuServer on DBus
* @param dbus_object Name of the object on the #DbusmenuServer
* @returns A new #DbusmenuGtkClient sync'd with a server
*/
constructor(dbus_name: string | null, dbus_object: string | null)
/**
* Creates a new #DbusmenuGtkClient object and creates a #DbusmenuClient
* that connects across DBus to a #DbusmenuServer.
* @constructor
* @param dbus_name Name of the #DbusmenuServer on DBus
* @param dbus_object Name of the object on the #DbusmenuServer
* @returns A new #DbusmenuGtkClient sync'd with a server
*/
static new(dbus_name: string | null, dbus_object: string | null): Client
// Overloads of new
/**
* This function creates a new client that connects to a specific
* server on DBus. That server is at a specific location sharing
* a known object. The interface is assumed by the code to be
* the DBus menu interface. The newly created client will start
* sending out events as it syncs up with the server.
* @constructor
* @param name The DBus name for the server to connect to
* @param object The object on the server to monitor
* @returns A brand new #DbusmenuClient
*/
static new(name: string | null, object: string | null): Dbusmenu.Client
_init(config?: Client.ConstructorProperties): void
}
export module Menu {
// Constructor properties interface
export interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Menu.ConstructorProperties {
// Own constructor properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
dbus_name?: string | null
dbus_object?: string | null
}
}
export interface Menu extends Atk.ImplementorIface, Gtk.Buildable {
// Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
readonly dbus_name: string | null
readonly dbus_object: string | null
// Own fields of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
parent: Gtk.Menu & Gtk.Container
priv: MenuPrivate
// Owm methods of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
/**
* An accessor for the client that this menu is using to
* communicate with the server.
* @returns A valid #DbusmenuGtkClient or NULL on error.
*/
get_client(): Client
// Conflicting methods
/**
* Sets an accelerator path for this menu from which accelerator paths
* for its immediate children, its menu items, can be constructed.
* The main purpose of this function is to spare the programmer the
* inconvenience of having to call gtk_menu_item_set_accel_path() on
* each menu item that should support runtime user changable accelerators.
* Instead, by just calling gtk_menu_set_accel_path() on their parent,
* each menu item of this menu, that contains a label describing its
* purpose, automatically gets an accel path assigned.
*
* For example, a menu containing menu items “New” and “Exit”, will, after
* `gtk_menu_set_accel_path (menu, "<Gnumeric-Sheet>/File");` has been
* called, assign its items the accel paths: `"<Gnumeric-Sheet>/File/New"`
* and `"<Gnumeric-Sheet>/File/Exit"`.
*
* Assigning accel paths to menu items then enables the user to change
* their accelerators at runtime. More details about accelerator paths
* and their default setups can be found at gtk_accel_map_add_entry().
*
* Note that `accel_path` string will be stored in a #GQuark. Therefore,
* if you pass a static string, you can save some memory by interning
* it first with g_intern_static_string().
* @param accel_path a valid accelerator path, or %NULL to unset the path
*/
set_accel_path(accel_path: string | null): void
// Overloads of set_accel_path
/**
* Given an accelerator group, `accel_group,` and an accelerator path,
* `accel_path,` sets up an accelerator in `accel_group` so whenever the
* key binding that is defined for `accel_path` is pressed, `widget`
* will be activated. This removes any accelerators (for any
* accelerator group) installed by previous calls to
* gtk_widget_set_accel_path(). Associating accelerators with
* paths allows them to be modified by the user and the modifications
* to be saved for future use. (See gtk_accel_map_save().)
*
* This function is a low level function that would most likely
* be used by a menu creation system like #GtkUIManager. If you
* use #GtkUIManager, setting up accelerator paths will be done
* automatically.
*
* Even when you you arent using #GtkUIManager, if you only want to
* set up accelerators on menu items gtk_menu_item_set_accel_path()
* provides a somewhat more convenient interface.
*
* Note that `accel_path` string will be stored in a #GQuark. Therefore, if you
* pass a static string, you can save some memory by interning it first with
* g_intern_static_string().
* @param accel_path path used to look up the accelerator
* @param accel_group a #GtkAccelGroup.
*/
set_accel_path(accel_path: string | null, accel_group: Gtk.AccelGroup | null): void
/**
* Given an accelerator group, `accel_group,` and an accelerator path,
* `accel_path,` sets up an accelerator in `accel_group` so whenever the
* key binding that is defined for `accel_path` is pressed, `widget`
* will be activated. This removes any accelerators (for any
* accelerator group) installed by previous calls to
* gtk_widget_set_accel_path(). Associating accelerators with
* paths allows them to be modified by the user and the modifications
* to be saved for future use. (See gtk_accel_map_save().)
*
* This function is a low level function that would most likely
* be used by a menu creation system like #GtkUIManager. If you
* use #GtkUIManager, setting up accelerator paths will be done
* automatically.
*
* Even when you you arent using #GtkUIManager, if you only want to
* set up accelerators on menu items gtk_menu_item_set_accel_path()
* provides a somewhat more convenient interface.
*
* Note that `accel_path` string will be stored in a #GQuark. Therefore, if you
* pass a static string, you can save some memory by interning it first with
* g_intern_static_string().
* @param accel_path path used to look up the accelerator
* @param accel_group a #GtkAccelGroup.
*/
set_accel_path(accel_path: string | null, accel_group: Gtk.AccelGroup | null): void
/**
* Emits a #GtkWidget::child-notify signal for the
* [child property][child-properties]
* `child_property` on the child.
*
* This is an analogue of g_object_notify() for child properties.
*
* Also see gtk_widget_child_notify().
* @param child the child widget
* @param child_property the name of a child property installed on the class of `container`
*/
child_notify(child: Gtk.Widget, child_property: string | null): void
// Overloads of child_notify
/**
* Emits a #GtkWidget::child-notify signal for the
* [child property][child-properties] `child_property`
* on `widget`.
*
* This is the analogue of g_object_notify() for child properties.
*
* Also see gtk_container_child_notify().
* @param child_property the name of a child property installed on the class of `widget`s parent
*/
child_notify(child_property: string | null): void
/**
* Emits a #GtkWidget::child-notify signal for the
* [child property][child-properties] `child_property`
* on `widget`.
*
* This is the analogue of g_object_notify() for child properties.
*
* Also see gtk_container_child_notify().
* @param child_property the name of a child property installed on the class of `widget`s parent
*/
child_notify(child_property: string | null): void
// Class property signals of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
connect(sigName: "notify::dbus-name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::dbus-name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::dbus-name", ...args: any[]): void
connect(sigName: "notify::dbus-object", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::dbus-object", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::dbus-object", ...args: any[]): void
connect(sigName: "notify::accel-group", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::accel-group", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::accel-group", ...args: any[]): void
connect(sigName: "notify::accel-path", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::accel-path", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::accel-path", ...args: any[]): void
connect(sigName: "notify::active", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::active", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::active", ...args: any[]): void
connect(sigName: "notify::anchor-hints", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::anchor-hints", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::anchor-hints", ...args: any[]): void
connect(sigName: "notify::attach-widget", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::attach-widget", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::attach-widget", ...args: any[]): void
connect(sigName: "notify::menu-type-hint", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::menu-type-hint", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::menu-type-hint", ...args: any[]): void
connect(sigName: "notify::monitor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::monitor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::monitor", ...args: any[]): void
connect(sigName: "notify::rect-anchor-dx", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::rect-anchor-dx", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::rect-anchor-dx", ...args: any[]): void
connect(sigName: "notify::rect-anchor-dy", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::rect-anchor-dy", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::rect-anchor-dy", ...args: any[]): void
connect(sigName: "notify::reserve-toggle-size", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::reserve-toggle-size", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::reserve-toggle-size", ...args: any[]): void
connect(sigName: "notify::tearoff-state", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::tearoff-state", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::tearoff-state", ...args: any[]): void
connect(sigName: "notify::tearoff-title", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::tearoff-title", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::tearoff-title", ...args: any[]): void
connect(sigName: "notify::take-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::take-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::take-focus", ...args: any[]): void
connect(sigName: "notify::border-width", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::border-width", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::border-width", ...args: any[]): void
connect(sigName: "notify::child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::child", ...args: any[]): void
connect(sigName: "notify::resize-mode", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::resize-mode", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::resize-mode", ...args: any[]): void
connect(sigName: "notify::app-paintable", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::app-paintable", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::app-paintable", ...args: any[]): void
connect(sigName: "notify::can-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::can-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::can-default", ...args: any[]): void
connect(sigName: "notify::can-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::can-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::can-focus", ...args: any[]): void
connect(sigName: "notify::composite-child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::composite-child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::composite-child", ...args: any[]): void
connect(sigName: "notify::double-buffered", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::double-buffered", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::double-buffered", ...args: any[]): void
connect(sigName: "notify::events", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::events", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::events", ...args: any[]): void
connect(sigName: "notify::expand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::expand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::expand", ...args: any[]): void
connect(sigName: "notify::focus-on-click", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::focus-on-click", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::focus-on-click", ...args: any[]): void
connect(sigName: "notify::halign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::halign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::halign", ...args: any[]): void
connect(sigName: "notify::has-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::has-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::has-default", ...args: any[]): void
connect(sigName: "notify::has-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::has-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::has-focus", ...args: any[]): void
connect(sigName: "notify::has-tooltip", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::has-tooltip", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::has-tooltip", ...args: any[]): void
connect(sigName: "notify::height-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::height-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::height-request", ...args: any[]): void
connect(sigName: "notify::hexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::hexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::hexpand", ...args: any[]): void
connect(sigName: "notify::hexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::hexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::hexpand-set", ...args: any[]): void
connect(sigName: "notify::is-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::is-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::is-focus", ...args: any[]): void
connect(sigName: "notify::margin", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::margin", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::margin", ...args: any[]): void
connect(sigName: "notify::margin-bottom", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::margin-bottom", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::margin-bottom", ...args: any[]): void
connect(sigName: "notify::margin-end", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::margin-end", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::margin-end", ...args: any[]): void
connect(sigName: "notify::margin-left", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::margin-left", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::margin-left", ...args: any[]): void
connect(sigName: "notify::margin-right", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::margin-right", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::margin-right", ...args: any[]): void
connect(sigName: "notify::margin-start", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::margin-start", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::margin-start", ...args: any[]): void
connect(sigName: "notify::margin-top", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::margin-top", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::margin-top", ...args: any[]): void
connect(sigName: "notify::name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::name", ...args: any[]): void
connect(sigName: "notify::no-show-all", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::no-show-all", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::no-show-all", ...args: any[]): void
connect(sigName: "notify::opacity", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::opacity", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::opacity", ...args: any[]): void
connect(sigName: "notify::parent", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::parent", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::parent", ...args: any[]): void
connect(sigName: "notify::receives-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::receives-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::receives-default", ...args: any[]): void
connect(sigName: "notify::scale-factor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::scale-factor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::scale-factor", ...args: any[]): void
connect(sigName: "notify::sensitive", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::sensitive", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::sensitive", ...args: any[]): void
connect(sigName: "notify::style", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::style", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::style", ...args: any[]): void
connect(sigName: "notify::tooltip-markup", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
connect(sigName: "notify::tooltip-text", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::tooltip-text", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::tooltip-text", ...args: any[]): void
connect(sigName: "notify::valign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::valign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::valign", ...args: any[]): void
connect(sigName: "notify::vexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::vexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::vexpand", ...args: any[]): void
connect(sigName: "notify::vexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::vexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::vexpand-set", ...args: any[]): void
connect(sigName: "notify::visible", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::visible", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::visible", ...args: any[]): void
connect(sigName: "notify::width-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::width-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::width-request", ...args: any[]): void
connect(sigName: "notify::window", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::window", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
emit(sigName: "notify::window", ...args: any[]): void
connect(sigName: string, callback: (...args: any[]) => void): number
connect_after(sigName: string, callback: (...args: any[]) => void): number
emit(sigName: string, ...args: any[]): void
disconnect(id: number): void
}
/**
* A #GtkMenu that is built using an abstract tree built from
* a #DbusmenuGtkClient.
* @class
*/
export class Menu extends Gtk.Menu {
// Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
static name: string
static $gtype: GObject.GType<Menu>
// Constructors of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
constructor(config?: Menu.ConstructorProperties)
/**
* Creates a new #DbusmenuGtkMenu object and creates a #DbusmenuClient
* that connects across DBus to a #DbusmenuServer.
* @constructor
* @param dbus_name Name of the #DbusmenuServer on DBus
* @param dbus_object Name of the object on the #DbusmenuServer
* @returns A new #DbusmenuGtkMenu sync'd with a server
*/
constructor(dbus_name: string | null, dbus_object: string | null)
/**
* Creates a new #DbusmenuGtkMenu object and creates a #DbusmenuClient
* that connects across DBus to a #DbusmenuServer.
* @constructor
* @param dbus_name Name of the #DbusmenuServer on DBus
* @param dbus_object Name of the object on the #DbusmenuServer
* @returns A new #DbusmenuGtkMenu sync'd with a server
*/
static new(dbus_name: string | null, dbus_object: string | null): Menu
// Overloads of new
/**
* Creates a new #GtkMenu
* @constructor
* @returns a new #GtkMenu
*/
static new(): Gtk.Menu
_init(config?: Menu.ConstructorProperties): void
}
export interface ClientClass {
// Own fields of DbusmenuGtk3-0.4.DbusmenuGtk3.ClientClass
/**
* #GtkMenuClass
* @field
*/
parent_class: Dbusmenu.ClientClass
root_changed: (newroot: Dbusmenu.Menuitem) => void
reserved1: () => void
reserved2: () => void
reserved3: () => void
reserved4: () => void
reserved5: () => void
reserved6: () => void
}
/**
* Functions and signal slots for using a #DbusmenuGtkClient
* @record
*/
export abstract class ClientClass {
// Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.ClientClass
static name: string
}
export interface ClientPrivate {
}
export class ClientPrivate {
// Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.ClientPrivate
static name: string
}
export interface MenuClass {
// Own fields of DbusmenuGtk3-0.4.DbusmenuGtk3.MenuClass
/**
* #GtkMenuClass
* @field
*/
parent_class: Gtk.MenuClass
reserved1: () => void
reserved2: () => void
reserved3: () => void
reserved4: () => void
reserved5: () => void
reserved6: () => void
}
/**
* All of the subclassable functions and signal slots for a
* #DbusmenuGtkMenu.
* @record
*/
export abstract class MenuClass {
// Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.MenuClass
static name: string
}
export interface MenuPrivate {
}
export class MenuPrivate {
// Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.MenuPrivate
static name: string
}
/**
* Name of the imported GIR library
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
*/
export const __name__: string
/**
* Version of the imported GIR library
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
*/
export const __version__: string
// END