GTK-TypeScript-Bindings/Gdk.d.ts

1774 lines
58 KiB
TypeScript
Raw Permalink Normal View History

2023-03-04 13:40:44 +00:00
declare namespace AuGDK {
class AnchorHints {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kFlipX": AnchorHints
static readonly "kFlipY": AnchorHints
static readonly "kSlideX": AnchorHints
static readonly "kSlideY": AnchorHints
static readonly "kResizeX": AnchorHints
static readonly "kResizeY": AnchorHints
static readonly "kFlip": AnchorHints
static readonly "kSlide": AnchorHints
static readonly "kResize": AnchorHints
}
class AxisFlags {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kX": AxisFlags
static readonly "kY": AxisFlags
static readonly "kDeltaX": AxisFlags
static readonly "kDeltaY": AxisFlags
static readonly "kPressure": AxisFlags
static readonly "kXTilt": AxisFlags
static readonly "kYTilt": AxisFlags
static readonly "kWheel": AxisFlags
static readonly "kDistance": AxisFlags
static readonly "kRotation": AxisFlags
static readonly "kSlider": AxisFlags
}
class AxisUse {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kIgnore": AxisUse
static readonly "kX": AxisUse
static readonly "kY": AxisUse
static readonly "kDeltaX": AxisUse
static readonly "kDeltaY": AxisUse
static readonly "kPressure": AxisUse
static readonly "kXTilt": AxisUse
static readonly "kYTilt": AxisUse
static readonly "kWheel": AxisUse
static readonly "kDistance": AxisUse
static readonly "kRotation": AxisUse
static readonly "kSlider": AxisUse
static readonly "kLast": AxisUse
}
class CrossingMode {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNormal": CrossingMode
static readonly "kGrab": CrossingMode
static readonly "kUngrab": CrossingMode
static readonly "kGtkGrab": CrossingMode
static readonly "kGtkUngrab": CrossingMode
static readonly "kStateChanged": CrossingMode
static readonly "kTouchBegin": CrossingMode
static readonly "kTouchEnd": CrossingMode
static readonly "kDeviceSwitch": CrossingMode
}
class DevicePadFeature {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kButton": DevicePadFeature
static readonly "kRing": DevicePadFeature
static readonly "kStrip": DevicePadFeature
}
class DeviceToolType {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kUnknown": DeviceToolType
static readonly "kPen": DeviceToolType
static readonly "kEraser": DeviceToolType
static readonly "kBrush": DeviceToolType
static readonly "kPencil": DeviceToolType
static readonly "kAirbrush": DeviceToolType
static readonly "kMouse": DeviceToolType
static readonly "kLens": DeviceToolType
}
class DragAction {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kCopy": DragAction
static readonly "kMove": DragAction
static readonly "kLink": DragAction
static readonly "kAsk": DragAction
}
class DragCancelReason {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNoTarget": DragCancelReason
static readonly "kUserCancelled": DragCancelReason
static readonly "kError": DragCancelReason
}
class EventType {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kDelete": EventType
static readonly "kMotionNotify": EventType
static readonly "kButtonPress": EventType
static readonly "kButtonRelease": EventType
static readonly "kKeyPress": EventType
static readonly "kKeyRelease": EventType
static readonly "kEnterNotify": EventType
static readonly "kLeaveNotify": EventType
static readonly "kFocusChange": EventType
static readonly "kProximityIn": EventType
static readonly "kProximityOut": EventType
static readonly "kDragEnter": EventType
static readonly "kDragLeave": EventType
static readonly "kDragMotion": EventType
static readonly "kDropStart": EventType
static readonly "kScroll": EventType
static readonly "kGrabBroken": EventType
static readonly "kTouchBegin": EventType
static readonly "kTouchUpdate": EventType
static readonly "kTouchEnd": EventType
static readonly "kTouchCancel": EventType
static readonly "kTouchpadSwipe": EventType
static readonly "kTouchpadPinch": EventType
static readonly "kPadButtonPress": EventType
static readonly "kPadButtonRelease": EventType
static readonly "kPadRing": EventType
static readonly "kPadStrip": EventType
static readonly "kPadGroupMode": EventType
static readonly "kTouchpadHold": EventType
static readonly "kEventLast": EventType
}
class FrameClockPhase {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": FrameClockPhase
static readonly "kFlushEvents": FrameClockPhase
static readonly "kBeforePaint": FrameClockPhase
static readonly "kUpdate": FrameClockPhase
static readonly "kLayout": FrameClockPhase
static readonly "kPaint": FrameClockPhase
static readonly "kResumeEvents": FrameClockPhase
static readonly "kAfterPaint": FrameClockPhase
}
class FullscreenMode {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kCurrentMonitor": FullscreenMode
static readonly "kAllMonitors": FullscreenMode
}
class GLAPI {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kGl": GLAPI
static readonly "kGles": GLAPI
}
class GLError {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNotAvailable": GLError
static readonly "kUnsupportedFormat": GLError
static readonly "kUnsupportedProfile": GLError
static readonly "kCompilationFailed": GLError
static readonly "kLinkFailed": GLError
}
class Gravity {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNorthWest": Gravity
static readonly "kNorth": Gravity
static readonly "kNorthEast": Gravity
static readonly "kWest": Gravity
static readonly "kCenter": Gravity
static readonly "kEast": Gravity
static readonly "kSouthWest": Gravity
static readonly "kSouth": Gravity
static readonly "kSouthEast": Gravity
static readonly "kStatic": Gravity
}
class InputSource {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kMouse": InputSource
static readonly "kPen": InputSource
static readonly "kKeyboard": InputSource
static readonly "kTouchscreen": InputSource
static readonly "kTouchpad": InputSource
static readonly "kTrackpoint": InputSource
static readonly "kTabletPad": InputSource
}
class KeyMatch {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": KeyMatch
static readonly "kPartial": KeyMatch
static readonly "kExact": KeyMatch
}
class MemoryFormat {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kB8g8r8a8Premultiplied": MemoryFormat
static readonly "kA8r8g8b8Premultiplied": MemoryFormat
static readonly "kR8g8b8a8Premultiplied": MemoryFormat
static readonly "kB8g8r8a8": MemoryFormat
static readonly "kA8r8g8b8": MemoryFormat
static readonly "kR8g8b8a8": MemoryFormat
static readonly "kA8b8g8r8": MemoryFormat
static readonly "kR8g8b8": MemoryFormat
static readonly "kB8g8r8": MemoryFormat
static readonly "kR16g16b16": MemoryFormat
static readonly "kR16g16b16a16Premultiplied": MemoryFormat
static readonly "kR16g16b16a16": MemoryFormat
static readonly "kR16g16b16Float": MemoryFormat
static readonly "kR16g16b16a16FloatPremultiplied": MemoryFormat
static readonly "kR16g16b16a16Float": MemoryFormat
static readonly "kR32g32b32Float": MemoryFormat
static readonly "kR32g32b32a32FloatPremultiplied": MemoryFormat
static readonly "kR32g32b32a32Float": MemoryFormat
static readonly "kNFormats": MemoryFormat
}
class ModifierType {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kShiftMask": ModifierType
static readonly "kLockMask": ModifierType
static readonly "kControlMask": ModifierType
static readonly "kAltMask": ModifierType
static readonly "kButton1Mask": ModifierType
static readonly "kButton2Mask": ModifierType
static readonly "kButton3Mask": ModifierType
static readonly "kButton4Mask": ModifierType
static readonly "kButton5Mask": ModifierType
static readonly "kSuperMask": ModifierType
static readonly "kHyperMask": ModifierType
static readonly "kMetaMask": ModifierType
}
class NotifyType {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kAncestor": NotifyType
static readonly "kVirtual": NotifyType
static readonly "kInferior": NotifyType
static readonly "kNonlinear": NotifyType
static readonly "kNonlinearVirtual": NotifyType
static readonly "kUnknown": NotifyType
}
class PaintableFlags {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kSize": PaintableFlags
static readonly "kContents": PaintableFlags
}
class ScrollDirection {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kUp": ScrollDirection
static readonly "kDown": ScrollDirection
static readonly "kLeft": ScrollDirection
static readonly "kRight": ScrollDirection
static readonly "kSmooth": ScrollDirection
}
class ScrollUnit {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kWheel": ScrollUnit
static readonly "kSurface": ScrollUnit
}
class SeatCapabilities {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": SeatCapabilities
static readonly "kPointer": SeatCapabilities
static readonly "kTouch": SeatCapabilities
static readonly "kTabletStylus": SeatCapabilities
static readonly "kKeyboard": SeatCapabilities
static readonly "kTabletPad": SeatCapabilities
static readonly "kAllPointing": SeatCapabilities
static readonly "kAll": SeatCapabilities
}
class SubpixelLayout {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kUnknown": SubpixelLayout
static readonly "kNone": SubpixelLayout
static readonly "kHorizontalRgb": SubpixelLayout
static readonly "kHorizontalBgr": SubpixelLayout
static readonly "kVerticalRgb": SubpixelLayout
static readonly "kVerticalBgr": SubpixelLayout
}
class SurfaceEdge {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNorthWest": SurfaceEdge
static readonly "kNorth": SurfaceEdge
static readonly "kNorthEast": SurfaceEdge
static readonly "kWest": SurfaceEdge
static readonly "kEast": SurfaceEdge
static readonly "kSouthWest": SurfaceEdge
static readonly "kSouth": SurfaceEdge
static readonly "kSouthEast": SurfaceEdge
}
class TextureError {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kTooLarge": TextureError
static readonly "kCorruptImage": TextureError
static readonly "kUnsupportedContent": TextureError
static readonly "kUnsupportedFormat": TextureError
}
class TitlebarGesture {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kDoubleClick": TitlebarGesture
static readonly "kRightClick": TitlebarGesture
static readonly "kMiddleClick": TitlebarGesture
}
class ToplevelState {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kMinimized": ToplevelState
static readonly "kMaximized": ToplevelState
static readonly "kSticky": ToplevelState
static readonly "kFullscreen": ToplevelState
static readonly "kAbove": ToplevelState
static readonly "kBelow": ToplevelState
static readonly "kFocused": ToplevelState
static readonly "kTiled": ToplevelState
static readonly "kTopTiled": ToplevelState
static readonly "kTopResizable": ToplevelState
static readonly "kRightTiled": ToplevelState
static readonly "kRightResizable": ToplevelState
static readonly "kBottomTiled": ToplevelState
static readonly "kBottomResizable": ToplevelState
static readonly "kLeftTiled": ToplevelState
static readonly "kLeftResizable": ToplevelState
}
class TouchpadGesturePhase {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kBegin": TouchpadGesturePhase
static readonly "kUpdate": TouchpadGesturePhase
static readonly "kEnd": TouchpadGesturePhase
static readonly "kCancel": TouchpadGesturePhase
}
class VulkanError {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kUnsupported": VulkanError
static readonly "kNotAvailable": VulkanError
}
class DevicePad {
getFeatureGroup(feature: AuGDK.DevicePadFeature, featureIdx: number): number;
getGroupNModes(groupIdx: number): number;
getNFeatures(feature: AuGDK.DevicePadFeature): number;
getNGroups(): number;
}
class DragSurface {
present(width: number, height: number): boolean;
}
class Paintable {
static NewEmpty(intrinsicWidth: number, intrinsicHeight: number): AuGDK.Paintable;
computeConcreteSize(specifiedWidth: number, specifiedHeight: number, defaultWidth: number, defaultHeight: number, concreteWidth: number, concreteHeight: number): void;
getCurrentImage(): AuGDK.Paintable;
getFlags(): AuGDK.PaintableFlags;
getIntrinsicAspectRatio(): number;
getIntrinsicHeight(): number;
getIntrinsicWidth(): number;
invalidateContents(): void;
invalidateSize(): void;
snapshot(snapshot: AuGDK.Snapshot, width: number, height: number): void;
}
class Popup {
autohide : boolean;
parent : AuGDK.Surface;
getAutohide(): boolean;
getParent(): AuGDK.Surface;
getPositionX(): number;
getPositionY(): number;
getRectAnchor(): AuGDK.Gravity;
getSurfaceAnchor(): AuGDK.Gravity;
present(width: number, height: number, layout: AuGDK.PopupLayout): boolean;
}
class Toplevel {
decorated : boolean;
deletable : boolean;
fullscreenMode : AuGDK.FullscreenMode;
iconList : void;
modal : boolean;
shortcutsInhibited : boolean;
startupId : string;
state : AuGDK.ToplevelState;
title : string;
transientFor : AuGDK.Surface;
beginMove(device: AuGDK.Device, button: number, x: number, y: number, timestamp: number): void;
beginResize(edge: AuGDK.SurfaceEdge, device: AuGDK.Device | undefined | null, button: number, x: number, y: number, timestamp: number): void;
focus(timestamp: number): void;
getState(): AuGDK.ToplevelState;
inhibitSystemShortcuts(event: AuGDK.Event | undefined | null): void;
lower(): boolean;
minimize(): boolean;
present(layout: AuGDK.ToplevelLayout): void;
restoreSystemShortcuts(): void;
setDecorated(decorated: boolean): void;
setDeletable(deletable: boolean): void;
setIconList(surfaces: AuGDK.Texture[]): void;
setModal(modal: boolean): void;
setStartupId(startupId: string): void;
setTitle(title: string): void;
setTransientFor(parent: AuGDK.Surface): void;
showWindowMenu(event: AuGDK.Event): boolean;
supportsEdgeConstraints(): boolean;
titlebarGesture(gesture: AuGDK.TitlebarGesture): boolean;
}
class ContentFormats {
static New(mimeTypes: string[] | undefined | null, nMimeTypes: number): AuGDK.ContentFormats;
static NewForGtype(type: number): AuGDK.ContentFormats;
containGtype(type: number): boolean;
containMimeType(mimeType: string): boolean;
getGtypes(nGtypes ?: number | bigint): number[];
getMimeTypes(nMimeTypes ?: number | bigint): string[];
match(second: AuGDK.ContentFormats): boolean;
matchGtype(second: AuGDK.ContentFormats): number;
matchMimeType(second: AuGDK.ContentFormats): string;
print(string: AuGlibEx.String): void;
ref(): AuGDK.ContentFormats;
union(second: AuGDK.ContentFormats): AuGDK.ContentFormats;
unionDeserializeGtypes(): AuGDK.ContentFormats;
unionDeserializeMimeTypes(): AuGDK.ContentFormats;
unionSerializeGtypes(): AuGDK.ContentFormats;
unionSerializeMimeTypes(): AuGDK.ContentFormats;
unref(): void;
static Parse(string: string): AuGDK.ContentFormats;
}
class ContentFormatsBuilder {
static New(): AuGDK.ContentFormatsBuilder;
addFormats(formats: AuGDK.ContentFormats): void;
addGtype(type: number): void;
addMimeType(mimeType: string): void;
ref(): AuGDK.ContentFormatsBuilder;
toFormats(): AuGDK.ContentFormats;
unref(): void;
}
class ContentProviderClass {
parentClass : GObject.ObjectClass;
contentChanged : (provider: AuGDK.ContentProvider) => void;
attachClipboard : (provider: AuGDK.ContentProvider, clipboard: AuGDK.Clipboard) => void;
detachClipboard : (provider: AuGDK.ContentProvider, clipboard: AuGDK.Clipboard) => void;
refFormats : (provider: AuGDK.ContentProvider) => AuGDK.ContentFormats;
refStorableFormats : (provider: AuGDK.ContentProvider) => AuGDK.ContentFormats;
writeMimeTypeAsync : (provider: AuGDK.ContentProvider, mimeType: string, stream: AuGIO.OutputStream, ioPriority: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null) => void;
writeMimeTypeFinish : (provider: AuGDK.ContentProvider, result: AuGIO.AsyncResult) => boolean;
getValue : (provider: AuGDK.ContentProvider, value: GObject.Value) => boolean;
}
class DevicePadInterface {
}
class DragSurfaceInterface {
}
class EventSequence {
}
class FileList {
static NewFromArray(files: AuGIO.File[], nFiles: number | bigint): AuGDK.FileList;
static NewFromList(files: AuGIO.File[]): AuGDK.FileList;
getFiles(): AuGIO.File[];
}
class FrameClockClass {
}
class FrameClockPrivate {
}
class FrameTimings {
getComplete(): boolean;
getFrameCounter(): number | bigint;
getFrameTime(): number | bigint;
getPredictedPresentationTime(): number | bigint;
getPresentationTime(): number | bigint;
getRefreshInterval(): number | bigint;
ref(): AuGDK.FrameTimings;
unref(): void;
}
class GLTextureClass {
}
class KeymapKey {
keycode : number;
group : number;
level : number;
}
class MemoryTextureClass {
}
class MonitorClass {
}
class PaintableInterface {
gIface : GObject.TypeInterface;
snapshot : (paintable: AuGDK.Paintable, snapshot: AuGDK.Snapshot, width: number, height: number) => void;
getCurrentImage : (paintable: AuGDK.Paintable) => AuGDK.Paintable;
getFlags : (paintable: AuGDK.Paintable) => AuGDK.PaintableFlags;
getIntrinsicWidth : (paintable: AuGDK.Paintable) => number;
getIntrinsicHeight : (paintable: AuGDK.Paintable) => number;
getIntrinsicAspectRatio : (paintable: AuGDK.Paintable) => number;
}
class PopupInterface {
}
class PopupLayout {
static New(anchorRect: AuGDK.Rectangle, rectAnchor: AuGDK.Gravity, surfaceAnchor: AuGDK.Gravity): AuGDK.PopupLayout;
copy(): AuGDK.PopupLayout;
equal(other: AuGDK.PopupLayout): boolean;
getAnchorHints(): AuGDK.AnchorHints;
getAnchorRect(): AuGDK.Rectangle;
getOffset(dx: number, dy: number): void;
getRectAnchor(): AuGDK.Gravity;
getShadowWidth(left: number, right: number, top: number, bottom: number): void;
getSurfaceAnchor(): AuGDK.Gravity;
ref(): AuGDK.PopupLayout;
setAnchorHints(anchorHints: AuGDK.AnchorHints): void;
setAnchorRect(anchorRect: AuGDK.Rectangle): void;
setOffset(dx: number, dy: number): void;
setRectAnchor(anchor: AuGDK.Gravity): void;
setShadowWidth(left: number, right: number, top: number, bottom: number): void;
setSurfaceAnchor(anchor: AuGDK.Gravity): void;
unref(): void;
}
class RGBA {
red : number;
green : number;
blue : number;
alpha : number;
copy(): AuGDK.RGBA;
equal(p2: AuGDK.RGBA): boolean;
free(): void;
hash(): number;
isClear(): boolean;
isOpaque(): boolean;
parse(spec: string): boolean;
}
class Rectangle {
x : number;
y : number;
width : number;
height : number;
containsPoint(x: number, y: number): boolean;
equal(rect2: AuGDK.Rectangle): boolean;
intersect(src2: AuGDK.Rectangle, dest ?: AuGDK.Rectangle): boolean;
union(src2: AuGDK.Rectangle, dest: AuGDK.Rectangle): void;
}
class SnapshotClass {
}
class SurfaceClass {
}
class TextureClass {
}
class TimeCoord {
time : number;
flags : AuGDK.AxisFlags;
axes : number[];
}
class ToplevelInterface {
}
class ToplevelLayout {
static New(): AuGDK.ToplevelLayout;
copy(): AuGDK.ToplevelLayout;
equal(other: AuGDK.ToplevelLayout): boolean;
getFullscreen(fullscreen: boolean): boolean;
getFullscreenMonitor(): AuGDK.Monitor;
getMaximized(maximized: boolean): boolean;
getResizable(): boolean;
ref(): AuGDK.ToplevelLayout;
setFullscreen(fullscreen: boolean, monitor: AuGDK.Monitor | undefined | null): void;
setMaximized(maximized: boolean): void;
setResizable(resizable: boolean): void;
unref(): void;
}
class ToplevelSize {
getBounds(boundsWidth: number, boundsHeight: number): void;
setMinSize(minWidth: number, minHeight: number): void;
setShadowWidth(left: number, right: number, top: number, bottom: number): void;
setSize(width: number, height: number): void;
}
class AppLaunchContext extends AuGIO.AppLaunchContext {
constructor(initializerList ?: AppLaunchContextCtor);
display : AuGDK.Display;
setDesktop(desktop: number): void;
setIcon(icon: AuGIO.Icon | undefined | null): void;
setIconName(iconName: string | undefined | null): void;
setTimestamp(timestamp: number): void;
//TypeScript is complete garbage:
}
class AppLaunchContextCtor {
display ?: AuGDK.Display;
}
class ButtonEvent extends AuGDK.Event {
constructor(initializerList ?: ButtonEventCtor);
getButton(): number;
//TypeScript is complete garbage:
}
class ButtonEventCtor {
}
class CairoContext extends AuGDK.DrawContext {
constructor(initializerList ?: CairoContextCtor);
cairoCreate(): cairo.Context;
//TypeScript is complete garbage:
}
class CairoContextCtor {
display ?: AuGDK.Display;
surface ?: AuGDK.Surface;
}
class Clipboard extends GObject.Object {
constructor(initializerList ?: ClipboardCtor);
content : AuGDK.ContentProvider;
display : AuGDK.Display;
formats : AuGDK.ContentFormats;
local : boolean;
getContent(): AuGDK.ContentProvider;
getDisplay(): AuGDK.Display;
getFormats(): AuGDK.ContentFormats;
isLocal(): boolean;
readAsync(mimeTypes: string[], ioPriority: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
readFinish(result: AuGIO.AsyncResult, outMimeType ?: string): AuGIO.InputStream;
readTextAsync(cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
readTextFinish(result: AuGIO.AsyncResult): string;
readTextureAsync(cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
readTextureFinish(result: AuGIO.AsyncResult): AuGDK.Texture;
readValueAsync(type: number, ioPriority: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
readValueFinish(result: AuGIO.AsyncResult): GObject.Value;
setContent(provider: AuGDK.ContentProvider | undefined | null): boolean;
set(value: GObject.Value): void;
storeAsync(ioPriority: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
storeFinish(result: AuGIO.AsyncResult): boolean;
//TypeScript is complete garbage:
}
class ClipboardCtor {
display ?: AuGDK.Display;
formats ?: AuGDK.ContentFormats;
local ?: boolean;
content ?: AuGDK.ContentProvider;
}
class ClipboardEventListener extends AuGlibEx.IEventListener {
changed(): void;
}
class ContentDeserializer extends GObject.Object implements AuGIO.AsyncResult {
constructor(initializerList ?: ContentDeserializerCtor);
getCancellable(): AuGIO.Cancellable;
getGtype(): number;
getInputStream(): AuGIO.InputStream;
getMimeType(): string;
getPriority(): number;
getTaskData(): void;
getUserData(): void;
getValue(): GObject.Value;
returnError(error: AuGlibEx.Error): void;
returnSuccess(): void;
setTaskData(notify: () => void): void;
//TypeScript is complete garbage:
getSourceObject(): GObject.Object;
isTagged(): boolean;
legacyPropagateError(): boolean;
}
class ContentDeserializerCtor {
}
class ContentProvider extends GObject.Object {
constructor(initializerList ?: ContentProviderCtor);
parent : GObject.Object;
formats : AuGDK.ContentFormats;
storableFormats : AuGDK.ContentFormats;
static NewForBytes(mimeType: string, bytes: AuGlibEx.Bytes): AuGDK.ContentProvider;
static NewForValue(value: GObject.Value): AuGDK.ContentProvider;
static NewUnion(providers: AuGDK.ContentProvider[] | undefined | null, nProviders: number | bigint): AuGDK.ContentProvider;
contentChanged(): void;
getValue(value: GObject.Value): boolean;
refFormats(): AuGDK.ContentFormats;
refStorableFormats(): AuGDK.ContentFormats;
writeMimeTypeAsync(mimeType: string, stream: AuGIO.OutputStream, ioPriority: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
writeMimeTypeFinish(result: AuGIO.AsyncResult): boolean;
//TypeScript is complete garbage:
}
class ContentProviderCtor {
formats ?: AuGDK.ContentFormats;
storableFormats ?: AuGDK.ContentFormats;
}
class ContentProviderEventListener extends AuGlibEx.IEventListener {
contentChanged(): void;
}
class ContentSerializer extends GObject.Object implements AuGIO.AsyncResult {
constructor(initializerList ?: ContentSerializerCtor);
getCancellable(): AuGIO.Cancellable;
getGtype(): number;
getMimeType(): string;
getOutputStream(): AuGIO.OutputStream;
getPriority(): number;
getTaskData(): void;
getUserData(): void;
getValue(): GObject.Value;
returnError(error: AuGlibEx.Error): void;
returnSuccess(): void;
setTaskData(notify: () => void): void;
//TypeScript is complete garbage:
getSourceObject(): GObject.Object;
isTagged(): boolean;
legacyPropagateError(): boolean;
}
class ContentSerializerCtor {
}
class CrossingEvent extends AuGDK.Event {
constructor(initializerList ?: CrossingEventCtor);
getDetail(): AuGDK.NotifyType;
getFocus(): boolean;
getMode(): AuGDK.CrossingMode;
//TypeScript is complete garbage:
}
class CrossingEventCtor {
}
class Cursor extends GObject.Object {
constructor(initializerList ?: CursorCtor);
fallback : AuGDK.Cursor;
hotspotX : number;
hotspotY : number;
name : string;
texture : AuGDK.Texture;
static NewFromName(name: string, fallback: AuGDK.Cursor | undefined | null): AuGDK.Cursor;
static NewFromTexture(texture: AuGDK.Texture, hotspotX: number, hotspotY: number, fallback: AuGDK.Cursor | undefined | null): AuGDK.Cursor;
getFallback(): AuGDK.Cursor;
getHotspotX(): number;
getHotspotY(): number;
getName(): string;
getTexture(): AuGDK.Texture;
//TypeScript is complete garbage:
}
class CursorCtor {
fallback ?: AuGDK.Cursor;
hotspotX ?: number;
hotspotY ?: number;
name ?: string;
texture ?: AuGDK.Texture;
}
class DNDEvent extends AuGDK.Event {
constructor(initializerList ?: DNDEventCtor);
getDrop(): AuGDK.Drop;
//TypeScript is complete garbage:
}
class DNDEventCtor {
}
class DeleteEvent extends AuGDK.Event {
constructor(initializerList ?: DeleteEventCtor);
//TypeScript is complete garbage:
}
class DeleteEventCtor {
}
class Device extends GObject.Object {
constructor(initializerList ?: DeviceCtor);
capsLockState : boolean;
direction : AuPango.Direction;
display : AuGDK.Display;
hasBidiLayouts : boolean;
hasCursor : boolean;
modifierState : AuGDK.ModifierType;
nAxes : number;
name : string;
numLockState : boolean;
numTouches : number;
productId : string;
scrollLockState : boolean;
seat : AuGDK.Seat;
source : AuGDK.InputSource;
tool : AuGDK.DeviceTool;
vendorId : string;
getCapsLockState(): boolean;
getDeviceTool(): AuGDK.DeviceTool;
getDirection(): AuPango.Direction;
getDisplay(): AuGDK.Display;
getHasCursor(): boolean;
getModifierState(): AuGDK.ModifierType;
getName(): string;
getNumLockState(): boolean;
getNumTouches(): number;
getProductId(): string;
getScrollLockState(): boolean;
getSeat(): AuGDK.Seat;
getSource(): AuGDK.InputSource;
getSurfaceAtPosition(winX ?: number, winY ?: number): AuGDK.Surface;
getTimestamp(): number;
getVendorId(): string;
//TypeScript is complete garbage:
}
class DeviceCtor {
display ?: AuGDK.Display;
name ?: string;
source ?: AuGDK.InputSource;
hasCursor ?: boolean;
nAxes ?: number;
vendorId ?: string;
productId ?: string;
seat ?: AuGDK.Seat;
numTouches ?: number;
tool ?: AuGDK.DeviceTool;
direction ?: AuPango.Direction;
hasBidiLayouts ?: boolean;
capsLockState ?: boolean;
numLockState ?: boolean;
scrollLockState ?: boolean;
modifierState ?: AuGDK.ModifierType;
}
class DeviceEventListener extends AuGlibEx.IEventListener {
changed(): void;
toolChanged(tool: AuGDK.DeviceTool): void;
}
class DeviceTool extends GObject.Object {
constructor(initializerList ?: DeviceToolCtor);
axes : AuGDK.AxisFlags;
hardwareId : number | bigint;
serial : number | bigint;
toolType : AuGDK.DeviceToolType;
getAxes(): AuGDK.AxisFlags;
getHardwareId(): number | bigint;
getSerial(): number | bigint;
getToolType(): AuGDK.DeviceToolType;
//TypeScript is complete garbage:
}
class DeviceToolCtor {
serial ?: number;
toolType ?: AuGDK.DeviceToolType;
axes ?: AuGDK.AxisFlags;
hardwareId ?: number;
}
class Display extends GObject.Object {
constructor(initializerList ?: DisplayCtor);
composited : boolean;
inputShapes : boolean;
rgba : boolean;
static GetDefault(): AuGDK.Display;
static Open(displayName: string | undefined | null): AuGDK.Display;
beep(): void;
close(): void;
createGlContext(): AuGDK.GLContext;
deviceIsGrabbed(device: AuGDK.Device): boolean;
flush(): void;
getAppLaunchContext(): AuGDK.AppLaunchContext;
getClipboard(): AuGDK.Clipboard;
getDefaultSeat(): AuGDK.Seat;
getMonitorAtSurface(surface: AuGDK.Surface): AuGDK.Monitor;
getMonitors(): AuGIO.ListModel;
getName(): string;
getPrimaryClipboard(): AuGDK.Clipboard;
getSetting(name: string, value: GObject.Value): boolean;
getStartupNotificationId(): string;
isClosed(): boolean;
isComposited(): boolean;
isRgba(): boolean;
listSeats(): AuGDK.Seat[];
mapKeycode(keycode: number, keys ?: AuGDK.KeymapKey[], keyvals ?: number[], nEntries ?: number): boolean;
mapKeyval(keyval: number, keys: AuGDK.KeymapKey[], nKeys: number): boolean;
notifyStartupComplete(startupId: string): void;
prepareGl(): boolean;
putEvent(event: AuGDK.Event): void;
supportsInputShapes(): boolean;
sync(): void;
translateKey(keycode: number, state: AuGDK.ModifierType, group: number, keyval ?: number, effectiveGroup ?: number, level ?: number, consumed ?: AuGDK.ModifierType): boolean;
//TypeScript is complete garbage:
}
class DisplayCtor {
composited ?: boolean;
rgba ?: boolean;
inputShapes ?: boolean;
}
class DisplayEventListener extends AuGlibEx.IEventListener {
closed(isError: boolean): void;
opened(): void;
seatAdded(seat: AuGDK.Seat): void;
seatRemoved(seat: AuGDK.Seat): void;
settingChanged(setting: string): void;
}
class DisplayManager extends GObject.Object {
constructor(initializerList ?: DisplayManagerCtor);
defaultDisplay : AuGDK.Display;
static Get(): AuGDK.DisplayManager;
getDefaultDisplay(): AuGDK.Display;
listDisplays(): AuGDK.Display[];
openDisplay(name: string): AuGDK.Display;
setDefaultDisplay(display: AuGDK.Display): void;
//TypeScript is complete garbage:
}
class DisplayManagerCtor {
defaultDisplay ?: AuGDK.Display;
}
class DisplayManagerEventListener extends AuGlibEx.IEventListener {
displayOpened(display: AuGDK.Display): void;
}
class Drag extends GObject.Object {
constructor(initializerList ?: DragCtor);
actions : AuGDK.DragAction;
content : AuGDK.ContentProvider;
device : AuGDK.Device;
display : AuGDK.Display;
formats : AuGDK.ContentFormats;
selectedAction : AuGDK.DragAction;
surface : AuGDK.Surface;
static Begin(surface: AuGDK.Surface, device: AuGDK.Device, content: AuGDK.ContentProvider, actions: AuGDK.DragAction, dx: number, dy: number): AuGDK.Drag;
dropDone(success: boolean): void;
getActions(): AuGDK.DragAction;
getContent(): AuGDK.ContentProvider;
getDevice(): AuGDK.Device;
getDisplay(): AuGDK.Display;
getDragSurface(): AuGDK.Surface;
getFormats(): AuGDK.ContentFormats;
getSelectedAction(): AuGDK.DragAction;
getSurface(): AuGDK.Surface;
setHotspot(hotX: number, hotY: number): void;
//TypeScript is complete garbage:
}
class DragCtor {
content ?: AuGDK.ContentProvider;
device ?: AuGDK.Device;
display ?: AuGDK.Display;
formats ?: AuGDK.ContentFormats;
selectedAction ?: AuGDK.DragAction;
actions ?: AuGDK.DragAction;
surface ?: AuGDK.Surface;
}
class DragEventListener extends AuGlibEx.IEventListener {
cancel(reason: AuGDK.DragCancelReason): void;
dndFinished(): void;
dropPerformed(): void;
}
class DrawContext extends GObject.Object {
constructor(initializerList ?: DrawContextCtor);
display : AuGDK.Display;
surface : AuGDK.Surface;
beginFrame(region: cairo.Region): void;
endFrame(): void;
getDisplay(): AuGDK.Display;
getFrameRegion(): cairo.Region;
getSurface(): AuGDK.Surface;
isInFrame(): boolean;
//TypeScript is complete garbage:
}
class DrawContextCtor {
display ?: AuGDK.Display;
surface ?: AuGDK.Surface;
}
class Drop extends GObject.Object {
constructor(initializerList ?: DropCtor);
actions : AuGDK.DragAction;
device : AuGDK.Device;
display : AuGDK.Display;
drag : AuGDK.Drag;
formats : AuGDK.ContentFormats;
surface : AuGDK.Surface;
finish(action: AuGDK.DragAction): void;
getActions(): AuGDK.DragAction;
getDevice(): AuGDK.Device;
getDisplay(): AuGDK.Display;
getDrag(): AuGDK.Drag;
getFormats(): AuGDK.ContentFormats;
getSurface(): AuGDK.Surface;
readAsync(mimeTypes: string[], ioPriority: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
readFinish(result: AuGIO.AsyncResult, outMimeType: string): AuGIO.InputStream;
readValueAsync(type: number, ioPriority: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
readValueFinish(result: AuGIO.AsyncResult): GObject.Value;
status(actions: AuGDK.DragAction, preferred: AuGDK.DragAction): void;
//TypeScript is complete garbage:
}
class DropCtor {
actions ?: AuGDK.DragAction;
device ?: AuGDK.Device;
display ?: AuGDK.Display;
drag ?: AuGDK.Drag;
formats ?: AuGDK.ContentFormats;
surface ?: AuGDK.Surface;
}
class Event {
constructor(initializerList ?: EventCtor);
getAngle(event2: AuGDK.Event, angle: number): boolean;
getCenter(event2: AuGDK.Event, x: number, y: number): boolean;
getDistance(event2: AuGDK.Event, distance: number): boolean;
getAxes(axes: number[], nAxes: number): boolean;
getAxis(axisUse: AuGDK.AxisUse, value: number): boolean;
getDevice(): AuGDK.Device;
getDeviceTool(): AuGDK.DeviceTool;
getDisplay(): AuGDK.Display;
getEventSequence(): AuGDK.EventSequence;
getEventType(): AuGDK.EventType;
getHistory(outNCoords: number): AuGDK.TimeCoord[];
getModifierState(): AuGDK.ModifierType;
getPointerEmulated(): boolean;
getPosition(x: number, y: number): boolean;
getSeat(): AuGDK.Seat;
getSurface(): AuGDK.Surface;
getTime(): number;
ref(): AuGDK.Event;
triggersContextMenu(): boolean;
unref(): void;
//TypeScript is complete garbage:
}
class EventCtor {
}
class FocusEvent extends AuGDK.Event {
constructor(initializerList ?: FocusEventCtor);
getIn(): boolean;
//TypeScript is complete garbage:
}
class FocusEventCtor {
}
class FrameClock extends GObject.Object {
constructor(initializerList ?: FrameClockCtor);
beginUpdating(): void;
endUpdating(): void;
getCurrentTimings(): AuGDK.FrameTimings;
getFps(): number;
getFrameCounter(): number | bigint;
getFrameTime(): number | bigint;
getHistoryStart(): number | bigint;
getRefreshInfo(baseTime: number | bigint, refreshIntervalReturn ?: number | bigint, presentationTimeReturn ?: number | bigint): void;
getTimings(frameCounter: number | bigint): AuGDK.FrameTimings;
requestPhase(phase: AuGDK.FrameClockPhase): void;
//TypeScript is complete garbage:
}
class FrameClockCtor {
}
class FrameClockEventListener extends AuGlibEx.IEventListener {
afterPaint(): void;
beforePaint(): void;
flushEvents(): void;
layout(): void;
paint(): void;
resumeEvents(): void;
update(): void;
}
class GLContext extends AuGDK.DrawContext {
constructor(initializerList ?: GLContextCtor);
allowedApis : AuGDK.GLAPI;
api : AuGDK.GLAPI;
sharedContext : AuGDK.GLContext;
static ClearCurrent(): void;
static GetCurrent(): AuGDK.GLContext;
getAllowedApis(): AuGDK.GLAPI;
getApi(): AuGDK.GLAPI;
getDebugEnabled(): boolean;
getForwardCompatible(): boolean;
getRequiredVersion(major: number | undefined | null, minor: number | undefined | null): void;
getSharedContext(): AuGDK.GLContext;
getUseEs(): boolean;
getVersion(major: number, minor: number): void;
isLegacy(): boolean;
isShared(other: AuGDK.GLContext): boolean;
makeCurrent(): void;
realize(): boolean;
setAllowedApis(apis: AuGDK.GLAPI): void;
setDebugEnabled(enabled: boolean): void;
setForwardCompatible(compatible: boolean): void;
setRequiredVersion(major: number, minor: number): void;
setUseEs(useEs: number): void;
//TypeScript is complete garbage:
}
class GLContextCtor {
display ?: AuGDK.Display;
surface ?: AuGDK.Surface;
allowedApis ?: AuGDK.GLAPI;
api ?: AuGDK.GLAPI;
sharedContext ?: AuGDK.GLContext;
}
class GLTexture extends AuGDK.Texture implements AuGDK.Paintable, AuGIO.Icon, AuGIO.LoadableIcon {
constructor(initializerList ?: GLTextureCtor);
static New(context: AuGDK.GLContext, id: number, width: number, height: number, destroy: () => void): AuGDK.GLTexture;
release(): void;
//TypeScript is complete garbage:
}
class GLTextureCtor {
width ?: number;
height ?: number;
}
class GrabBrokenEvent extends AuGDK.Event {
constructor(initializerList ?: GrabBrokenEventCtor);
getGrabSurface(): AuGDK.Surface;
getImplicit(): boolean;
//TypeScript is complete garbage:
}
class GrabBrokenEventCtor {
}
class KeyEvent extends AuGDK.Event {
constructor(initializerList ?: KeyEventCtor);
getConsumedModifiers(): AuGDK.ModifierType;
getKeycode(): number;
getKeyval(): number;
getLayout(): number;
getLevel(): number;
getMatch(keyval: number, modifiers: AuGDK.ModifierType): boolean;
isModifier(): boolean;
matches(keyval: number, modifiers: AuGDK.ModifierType): AuGDK.KeyMatch;
//TypeScript is complete garbage:
}
class KeyEventCtor {
}
class MemoryTexture extends AuGDK.Texture implements AuGDK.Paintable, AuGIO.Icon, AuGIO.LoadableIcon {
constructor(initializerList ?: MemoryTextureCtor);
static New(width: number, height: number, format: AuGDK.MemoryFormat, bytes: AuGlibEx.Bytes, stride: number | bigint): AuGDK.MemoryTexture;
//TypeScript is complete garbage:
}
class MemoryTextureCtor {
width ?: number;
height ?: number;
}
class Monitor extends GObject.Object {
constructor(initializerList ?: MonitorCtor);
connector : string;
description : string;
display : AuGDK.Display;
geometry : AuGDK.Rectangle;
heightMm : number;
manufacturer : string;
model : string;
refreshRate : number;
scaleFactor : number;
subpixelLayout : AuGDK.SubpixelLayout;
valid : boolean;
widthMm : number;
getConnector(): string;
getDescription(): string;
getDisplay(): AuGDK.Display;
getGeometry(geometry: AuGDK.Rectangle): void;
getHeightMm(): number;
getManufacturer(): string;
getModel(): string;
getRefreshRate(): number;
getScaleFactor(): number;
getSubpixelLayout(): AuGDK.SubpixelLayout;
getWidthMm(): number;
isValid(): boolean;
//TypeScript is complete garbage:
}
class MonitorCtor {
description ?: string;
display ?: AuGDK.Display;
manufacturer ?: string;
model ?: string;
connector ?: string;
scaleFactor ?: number;
geometry ?: AuGDK.Rectangle;
widthMm ?: number;
heightMm ?: number;
refreshRate ?: number;
subpixelLayout ?: AuGDK.SubpixelLayout;
valid ?: boolean;
}
class MonitorEventListener extends AuGlibEx.IEventListener {
invalidate(): void;
}
class MotionEvent extends AuGDK.Event {
constructor(initializerList ?: MotionEventCtor);
//TypeScript is complete garbage:
}
class MotionEventCtor {
}
class PadEvent extends AuGDK.Event {
constructor(initializerList ?: PadEventCtor);
getAxisValue(index: number, value: number): void;
getButton(): number;
getGroupMode(group: number, mode: number): void;
//TypeScript is complete garbage:
}
class PadEventCtor {
}
class ProximityEvent extends AuGDK.Event {
constructor(initializerList ?: ProximityEventCtor);
//TypeScript is complete garbage:
}
class ProximityEventCtor {
}
class ScrollEvent extends AuGDK.Event {
constructor(initializerList ?: ScrollEventCtor);
getDeltas(deltaX: number, deltaY: number): void;
getDirection(): AuGDK.ScrollDirection;
getUnit(): AuGDK.ScrollUnit;
isStop(): boolean;
//TypeScript is complete garbage:
}
class ScrollEventCtor {
}
class Seat extends GObject.Object {
constructor(initializerList ?: SeatCtor);
parentInstance : GObject.Object;
display : AuGDK.Display;
getCapabilities(): AuGDK.SeatCapabilities;
getDevices(capabilities: AuGDK.SeatCapabilities): AuGDK.Device[];
getDisplay(): AuGDK.Display;
getKeyboard(): AuGDK.Device;
getPointer(): AuGDK.Device;
getTools(): AuGDK.DeviceTool[];
//TypeScript is complete garbage:
}
class SeatCtor {
display ?: AuGDK.Display;
}
class SeatEventListener extends AuGlibEx.IEventListener {
deviceAdded(device: AuGDK.Device): void;
deviceRemoved(device: AuGDK.Device): void;
toolAdded(tool: AuGDK.DeviceTool): void;
toolRemoved(tool: AuGDK.DeviceTool): void;
}
class Snapshot extends GObject.Object {
constructor(initializerList ?: SnapshotCtor);
//TypeScript is complete garbage:
}
class SnapshotCtor {
}
class Surface extends GObject.Object {
constructor(initializerList ?: SurfaceCtor);
cursor : AuGDK.Cursor;
display : AuGDK.Display;
frameClock : AuGDK.FrameClock;
height : number;
mapped : boolean;
scaleFactor : number;
width : number;
static NewPopup(parent: AuGDK.Surface, autohide: boolean): AuGDK.Surface;
static NewToplevel(display: AuGDK.Display): AuGDK.Surface;
beep(): void;
createCairoContext(): AuGDK.CairoContext;
createGlContext(): AuGDK.GLContext;
createSimilarSurface(content: cairo.Content, width: number, height: number): cairo.Surface;
createVulkanContext(): AuGDK.VulkanContext;
destroy(): void;
getCursor(): AuGDK.Cursor;
getDeviceCursor(device: AuGDK.Device): AuGDK.Cursor;
getDevicePosition(device: AuGDK.Device, x ?: number, y ?: number, mask ?: AuGDK.ModifierType): boolean;
getDisplay(): AuGDK.Display;
getFrameClock(): AuGDK.FrameClock;
getHeight(): number;
getMapped(): boolean;
getScaleFactor(): number;
getWidth(): number;
hide(): void;
isDestroyed(): boolean;
queueRender(): void;
requestLayout(): void;
setCursor(cursor: AuGDK.Cursor | undefined | null): void;
setDeviceCursor(device: AuGDK.Device, cursor: AuGDK.Cursor): void;
setInputRegion(region: cairo.Region): void;
setOpaqueRegion(region: cairo.Region | undefined | null): void;
translateCoordinates(to: AuGDK.Surface, x: number, y: number): boolean;
//TypeScript is complete garbage:
}
class SurfaceCtor {
cursor ?: AuGDK.Cursor;
display ?: AuGDK.Display;
frameClock ?: AuGDK.FrameClock;
mapped ?: boolean;
width ?: number;
height ?: number;
scaleFactor ?: number;
}
class SurfaceEventListener extends AuGlibEx.IEventListener {
enterMonitor(monitor: AuGDK.Monitor): void;
event(event: AuGDK.Event): boolean;
layout(width: number, height: number): void;
leaveMonitor(monitor: AuGDK.Monitor): void;
render(region: cairo.Region): boolean;
}
class Texture extends GObject.Object implements AuGDK.Paintable, AuGIO.Icon, AuGIO.LoadableIcon {
constructor(initializerList ?: TextureCtor);
height : number;
width : number;
static NewForPixbuf(pixbuf: AuGDKPixBuf.Pixbuf): AuGDK.Texture;
static NewFromBytes(bytes: AuGlibEx.Bytes): AuGDK.Texture;
static NewFromFile(file: AuGIO.File): AuGDK.Texture;
static NewFromFilename(path: string): AuGDK.Texture;
static NewFromResource(resourcePath: string): AuGDK.Texture;
download(data: number[], stride: number | bigint): void;
getHeight(): number;
getWidth(): number;
saveToPng(filename: string): boolean;
saveToPngBytes(): AuGlibEx.Bytes;
saveToTiff(filename: string): boolean;
saveToTiffBytes(): AuGlibEx.Bytes;
//TypeScript is complete garbage:
static NewEmpty(intrinsicWidth: number, intrinsicHeight: number): AuGDK.Paintable;
computeConcreteSize(specifiedWidth: number, specifiedHeight: number, defaultWidth: number, defaultHeight: number, concreteWidth: number, concreteHeight: number): void;
getCurrentImage(): AuGDK.Paintable;
getFlags(): AuGDK.PaintableFlags;
getIntrinsicAspectRatio(): number;
getIntrinsicHeight(): number;
getIntrinsicWidth(): number;
invalidateContents(): void;
invalidateSize(): void;
snapshot(snapshot: AuGDK.Snapshot, width: number, height: number): void;
static Deserialize(value: AuGlibEx.Variant): AuGIO.Icon;
static Hash(): number;
static NewForString(str: string): AuGIO.Icon;
equal(icon2: AuGIO.Icon | undefined | null): boolean;
serialize(): AuGlibEx.Variant;
load(size: number, type ?: string, cancellable ?: AuGIO.Cancellable | undefined | null): AuGIO.InputStream;
loadAsync(size: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void;
loadFinish(res: AuGIO.AsyncResult, type ?: string): AuGIO.InputStream;
}
class TextureCtor {
width ?: number;
height ?: number;
}
class TouchEvent extends AuGDK.Event {
constructor(initializerList ?: TouchEventCtor);
getEmulatingPointer(): boolean;
//TypeScript is complete garbage:
}
class TouchEventCtor {
}
class TouchpadEvent extends AuGDK.Event {
constructor(initializerList ?: TouchpadEventCtor);
getDeltas(dx: number, dy: number): void;
getGesturePhase(): AuGDK.TouchpadGesturePhase;
getNFingers(): number;
getPinchAngleDelta(): number;
getPinchScale(): number;
//TypeScript is complete garbage:
}
class TouchpadEventCtor {
}
class VulkanContext extends AuGDK.DrawContext implements AuGIO.Initable {
constructor(initializerList ?: VulkanContextCtor);
//TypeScript is complete garbage:
init(cancellable: AuGIO.Cancellable | undefined | null): boolean;
}
class VulkanContextCtor {
display ?: AuGDK.Display;
surface ?: AuGDK.Surface;
}
class VulkanContextEventListener extends AuGlibEx.IEventListener {
imagesUpdated(): void;
}
}