Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

BackendPage: object
BackendPageDestroyFunc: GLib.DestroyNotify

Variables

MAJOR_VERSION: number

The major version number of the EV library (e.g. in version 3.1.4 this is 3).

MINOR_VERSION: number

The minor version number of the EV library (e.g. in version 3.1.4 this is 1).

Functions

  • documentErrorQuark(): Quark
  • Compresses the file at uri.

    If type is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.

    Otherwise, it returns the filename of a temporary file containing the compressed data from the file at uri.

    On error it returns %NULL and fills in error.

    It is the caller's responsibility to unlink the temp file after use.

    Parameters

    Returns string

  • fileCopyMetadata(from: string, to: string): boolean
  • Performs a g_file_copy_attributes() with %G_FILE_COPY_ALL_METADATA from from to to.

    Parameters

    • from: string

      the source URI

    • to: string

      the target URI

    Returns boolean

  • fileGetMimeType(uri: string, fast: boolean): string
  • fileGetMimeTypeFromFd(fd: number): string
  • fileIsTemp(file: Gio.File): boolean
  • Uncompresses the file at uri.

    If type is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.

    Otherwise, it returns the filename of a temporary file containing the decompressed data from the file at uri. On error it returns %NULL and fills in error.

    It is the caller's responsibility to unlink the temp file after use.

    Parameters

    Returns string

  • getLocaleDir(): string
  • init(): boolean
  • Initializes the evince document library, and binds the evince gettext domain.

    You must call this before calling any other function in the evince document library.

    Returns boolean

  • mkdtemp(tmpl: string): string
  • Creates a temp directory in the evince temp directory.

    Parameters

    • tmpl: string

      a template string; must end in 'XXXXXX'

    Returns string

  • mkstemp(tmpl: string, fileName: string): number
  • Creates a temp file in the evince temp directory.

    Parameters

    • tmpl: string

      a template string; must contain 'XXXXXX', but not necessarily as a suffix

    • fileName: string

      a location to store the filename of the temp file

    Returns number

  • mkstempFile(tmpl: string): Gio.File
  • Creates a temp #GFile in the evince temp directory. See ev_mkstemp() for more information.

    Parameters

    • tmpl: string

      a template string; must contain 'XXXXXX', but not necessarily as a suffix

    Returns Gio.File

  • shouldUsePortal(): boolean
  • shutdown(): void
  • tmpFileUnlink(file: Gio.File): void
  • tmpFilenameUnlink(filename: string): void
  • tmpUriUnlink(uri: string): void
  • xferUriSimple(from: string, to: string): boolean
  • Performs a g_file_copy() from from to to.

    Parameters

    • from: string

      the source URI

    • to: string

      the target URI

    Returns boolean

  • xmpParse(xmp: string, size: number, info: DocumentInfo): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method