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

  • document_error_quark(): 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

  • file_copy_metadata(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

  • file_get_mime_type(uri: string, fast: boolean): string
  • file_get_mime_type_from_fd(fd: number): string
  • file_is_temp(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

  • get_locale_dir(): 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
  • mkstemp(tmpl: string, file_name: 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

    • file_name: string

      a location to store the filename of the temp file

    Returns number

  • mkstemp_file(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

  • should_use_portal(): boolean
  • shutdown(): void
  • tmp_file_unlink(file: Gio.File): void
  • tmp_filename_unlink(filename: string): void
  • tmp_uri_unlink(uri: string): void
  • xfer_uri_simple(from: string, to: string): boolean
  • xmp_parse(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