///
///
///
///
///
///
///
///
///
///
///
///
///
///
/**
* 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
*
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
*/
declare module 'gi://Thunarx?version=3.0' {
// Module dependencies
import type Gtk from 'gi://Gtk?version=3.0';
import type xlib from 'gi://xlib?version=2.0';
import type Gdk from 'gi://Gdk?version=3.0';
import type cairo from 'cairo';
import type GObject from 'gi://GObject?version=2.0';
import type GLib from 'gi://GLib?version=2.0';
import type Pango from 'gi://Pango?version=1.0';
import type HarfBuzz from 'gi://HarfBuzz?version=0.0';
import type freetype2 from 'gi://freetype2?version=2.0';
import type Gio from 'gi://Gio?version=2.0';
import type GModule from 'gi://GModule?version=2.0';
import type GdkPixbuf from 'gi://GdkPixbuf?version=2.0';
import type Atk from 'gi://Atk?version=1.0';
export namespace Thunarx {
/**
* Thunarx-3.0
*/
const FILESYSTEM_INFO_NAMESPACE: string;
const FILE_INFO_NAMESPACE: string;
const MAJOR_VERSION: number;
const MICRO_VERSION: number;
const MINOR_VERSION: number;
/**
* Checks that the thunarx library
* in use is compatible with the given version. Generally you would pass in
* the constants #THUNARX_MAJOR_VERSION, #THUNARX_MINOR_VERSION and
* #THUNARX_VERSION_MICRO as the three arguments to this function; that produces
* a check that the library in use is compatible with the version of
* thunarx the extension was
* compiled against.
*
* This function should be called by extensions in the
* thunar_extension_initialize() method to verify that the thunarx library used by file manager is
* compatible with the version the extension was compiled with.
*
*
* Checking the runtime version of the Thunar Extension library
*
* const gchar *mismatch;
* mismatch = thunarx_check_version (THUNARX_VERSION_MAJOR,
* THUNARX_VERSION_MINOR,
* THUNARX_VERSION_MICRO);
* if (G_UNLIKELY (mismatch != NULL))
* g_error ("Version mismatch: %s", mismatch);
*
*
* @param required_major the required major version.
* @param required_minor the required minor version.
* @param required_micro the required micro version.
* @returns %NULL if the library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by the library and must not be freed or modified by the caller.
*/
function check_version(required_major: number, required_minor: number, required_micro: number): string;
/**
* Does a deep copy of `file_infos` and returns the
* new list.
* @param file_infos a #GList of #ThunarxFileInfos.
* @returns a copy of @file_infos.
*/
function file_info_list_copy(file_infos: FileInfo[]): FileInfo[];
/**
* Frees the resources allocated for the `file_infos`
* list and decreases the reference count on the
* #ThunarxFileInfos contained within.
* @param file_infos a #GList of #ThunarxFileInfos.
*/
function file_info_list_free(file_infos: FileInfo[]): void;
type FileInfoList = object | null;
namespace Menu {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
class Menu extends GObject.Object {
static $gtype: GObject.GType