@react-gnome/gjs-esm-types
Version:
TypeScript module declarations for GJS ESM modules.
372 lines (310 loc) • 5.38 kB
TypeScript
/*
* 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 itself or create a bug report on https://github.com/gjsify/ts-for-gjs
*/
import type GObject from "gi://GObject?version=2.0";
declare module "gi://cairo?version=1.0" {
enum Status {
SUCCESS,
NO_MEMORY,
INVALID_RESTORE,
INVALID_POP_GROUP,
NO_CURRENT_POINT,
INVALID_MATRIX,
INVALID_STATUS,
NULL_POINTER,
INVALID_STRING,
INVALID_PATH_DATA,
READ_ERROR,
WRITE_ERROR,
SURFACE_FINISHED,
SURFACE_TYPE_MISMATCH,
PATTERN_TYPE_MISMATCH,
INVALID_CONTENT,
INVALID_FORMAT,
INVALID_VISUAL,
FILE_NOT_FOUND,
INVALID_DASH,
INVALID_DSC_COMMENT,
INVALID_INDEX,
CLIP_NOT_REPRESENTABLE,
TEMP_FILE_ERROR,
INVALID_STRIDE,
FONT_TYPE_MISMATCH,
USER_FONT_IMMUTABLE,
USER_FONT_ERROR,
NEGATIVE_COUNT,
INVALID_CLUSTERS,
INVALID_SLANT,
INVALID_WEIGHT,
INVALID_SIZE,
USER_FONT_NOT_IMPLEMENTED,
DEVICE_TYPE_MISMATCH,
DEVICE_ERROR,
INVALID_MESH_CONSTRUCTION,
DEVICE_FINISHED,
JBIG2_GLOBAL_MISSING,
}
enum Content {
COLOR,
ALPHA,
COLOR_ALPHA,
}
enum Operator {
CLEAR,
SOURCE,
OVER,
IN,
OUT,
ATOP,
DEST,
DEST_OVER,
DEST_IN,
DEST_OUT,
DEST_ATOP,
XOR,
ADD,
SATURATE,
MULTIPLY,
SCREEN,
OVERLAY,
DARKEN,
LIGHTEN,
COLOR_DODGE,
COLOR_BURN,
HARD_LIGHT,
SOFT_LIGHT,
DIFFERENCE,
EXCLUSION,
HSL_HUE,
HSL_SATURATION,
HSL_COLOR,
HSL_LUMINOSITY,
}
enum Antialias {
DEFAULT,
NONE,
GRAY,
SUBPIXEL,
FAST,
GOOD,
BEST,
}
enum FillRule {
WINDING,
EVEN_ODD,
}
enum LineCap {
BUTT,
ROUND,
SQUARE,
}
enum LineJoin {
MITER,
ROUND,
BEVEL,
}
enum TextClusterFlags {
BACKWARD,
}
enum FontSlant {
NORMAL,
ITALIC,
OBLIQUE,
}
enum FontWeight {
NORMAL,
BOLD,
}
enum SubpixelOrder {
DEFAULT,
RGB,
BGR,
VRGB,
VBGR,
}
enum HintStyle {
DEFAULT,
NONE,
SLIGHT,
MEDIUM,
FULL,
}
enum HintMetrics {
DEFAULT,
OFF,
ON,
}
enum FontType {
TOY,
FT,
WIN32,
QUARTZ,
USER,
}
enum PathDataType {
MOVE_TO,
LINE_TO,
CURVE_TO,
CLOSE_PATH,
}
enum DeviceType {
DRM,
GL,
SCRIPT,
XCB,
XLIB,
XML,
COGL,
WIN32,
INVALID,
}
enum SurfaceType {
IMAGE,
PDF,
PS,
XLIB,
XCB,
GLITZ,
QUARTZ,
WIN32,
BEOS,
DIRECTFB,
SVG,
OS2,
WIN32_PRINTING,
QUARTZ_IMAGE,
SCRIPT,
QT,
RECORDING,
VG,
GL,
DRM,
TEE,
XML,
SKIA,
SUBSURFACE,
COGL,
}
enum Format {
INVALID,
ARGB32,
RGB24,
A8,
A1,
RGB16_565,
RGB30,
}
enum PatternType {
SOLID,
SURFACE,
LINEAR,
RADIAL,
MESH,
RASTER_SOURCE,
}
enum Extend {
NONE,
REPEAT,
REFLECT,
PAD,
}
enum Filter {
FAST,
GOOD,
BEST,
NEAREST,
BILINEAR,
GAUSSIAN,
}
enum RegionOverlap {
IN,
OUT,
PART,
}
function image_surface_create(): void;
interface Context {}
class Context {
// Own properties of cairo-1.0.cairo.Context
static name: string;
}
interface Device {}
class Device {
// Own properties of cairo-1.0.cairo.Device
static name: string;
}
interface Surface {}
class Surface {
// Own properties of cairo-1.0.cairo.Surface
static name: string;
}
interface Matrix {}
class Matrix {
// Own properties of cairo-1.0.cairo.Matrix
static name: string;
}
interface Pattern {}
class Pattern {
// Own properties of cairo-1.0.cairo.Pattern
static name: string;
}
interface Region {}
class Region {
// Own properties of cairo-1.0.cairo.Region
static name: string;
}
interface FontOptions {}
class FontOptions {
// Own properties of cairo-1.0.cairo.FontOptions
static name: string;
}
interface FontFace {}
class FontFace {
// Own properties of cairo-1.0.cairo.FontFace
static name: string;
}
interface ScaledFont {}
class ScaledFont {
// Own properties of cairo-1.0.cairo.ScaledFont
static name: string;
}
interface Path {}
class Path {
// Own properties of cairo-1.0.cairo.Path
static name: string;
}
interface Rectangle {
// Own fields of cairo-1.0.cairo.Rectangle
x: number;
y: number;
width: number;
height: number;
}
class Rectangle {
// Own properties of cairo-1.0.cairo.Rectangle
static name: string;
}
interface RectangleInt {
// Own fields of cairo-1.0.cairo.RectangleInt
x: number;
y: number;
width: number;
height: number;
}
class RectangleInt {
// Own properties of cairo-1.0.cairo.RectangleInt
static name: string;
}
/**
* Name of the imported GIR library
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
*/
const __name__: string;
/**
* Version of the imported GIR library
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
*/
const __version__: string;
}