Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Variables

Functions

Variables

DURATION_INFINITE: number

Indicates an [classAnimation] with an infinite duration.

This value is mostly used internally.

MAJOR_VERSION: number

Adwaita major version component (e.g. 1 if the version is 1.2.3).

MICRO_VERSION: number

Adwaita micro version component (e.g. 3 if the version is 1.2.3).

MINOR_VERSION: number

Adwaita minor version component (e.g. 2 if the version is 1.2.3).

VERSION_S: string

Adwaita version, encoded as a string, useful for printing and concatenation.

Functions

  • easing_ease(self: Easing, value: number): number
  • Computes easing with easing for value.

    value should generally be in the [0, 1] range.

    Parameters

    • self: Easing

      an easing value

    • value: number

      a value to ease

    Returns number

  • get_enable_animations(widget: Gtk.Widget): boolean
  • Checks whether animations are enabled for widget.

    This should be used when implementing an animated widget to know whether to animate it or not.

    Parameters

    Returns boolean

  • get_major_version(): number
  • Returns the major version number of the Adwaita library.

    For example, in libadwaita version 1.2.3 this is 1.

    This function is in the library, so it represents the libadwaita library your code is running against. Contrast with the [constMAJOR_VERSION] constant, which represents the major version of the libadwaita headers you have included when compiling your code.

    Returns number

  • get_micro_version(): number
  • Returns the micro version number of the Adwaita library.

    For example, in libadwaita version 1.2.3 this is 3.

    This function is in the library, so it represents the libadwaita library your code is running against. Contrast with the [constMAJOR_VERSION] constant, which represents the micro version of the libadwaita headers you have included when compiling your code.

    Returns number

  • get_minor_version(): number
  • Returns the minor version number of the Adwaita library.

    For example, in libadwaita version 1.2.3 this is 2.

    This function is in the library, so it represents the libadwaita library your code is running against. Contrast with the [constMAJOR_VERSION] constant, which represents the minor version of the libadwaita headers you have included when compiling your code.

    Returns number

  • init(): void
  • Initializes Libadwaita.

    This function can be used instead of [funcGtk.init] as it initializes GTK implicitly.

    There's no need to call this function if you're using [classApplication].

    If Libadwaita has already been initialized, the function will simply return.

    This makes sure translations, types, themes, and icons for the Adwaita library are set up properly.

    Returns void

  • is_initialized(): boolean
  • Use this function to check if libadwaita has been initialized with [funcinit].

    Returns boolean

  • lerp(a: number, b: number, t: number): number
  • Computes the linear interpolation between a and b for t.

    Parameters

    • a: number

      the start

    • b: number

      the end

    • t: number

      the interpolation rate

    Returns number

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