Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Variables

Functions

Variables

COUNTER_REQUIRES_ATOMIC: number
DOCK_BIN_STYLE_CLASS_PINNED: string
ENABLE_TRACE: number
MAJOR_VERSION: number

Dzl major version component (e.g. 1 if %DZL_VERSION is 1.2.3)

MICRO_VERSION: number

Dzl micro version component (e.g. 3 if %DZL_VERSION is 1.2.3)

MINOR_VERSION: number

Dzl minor version component (e.g. 2 if %DZL_VERSION is 1.2.3)

VERSION_S: string

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

Functions

  • Adds a rounded rectangle to cr's current path.

    Parameters

    • cr: cairo.Context

      a cairo context

    • rect: Gdk.Rectangle

      a #GdkRectangle to draw

    • x_radius: number

      the radius of the corners on the X axis

    • y_radius: number

      the radius of the corners on the Y axis

    Returns void

  • If both self and other are not %NULL, then the cancellation of other will be propagated to self if other is cancelled.

    If self and other are the same, self is returned and no additional chaining will occur.

    If self and other are %NULL, then %NULL is returned. If self is non-%NULL, it will be returned. If self is %NULL and other is non-%NULL, other will be returned. This is useful to succinctly chain cancellables like:

    |[ cancellable = dzl_cancellable_chain (cancellable, self->cancellable);


    @param self a #GCancellable or %NULL
    @param other a #GCancellable or %NULL

    Parameters

    Returns Gio.Cancellable | null

  • file_manager_show(file: Gio.File): boolean
  • frame_source_add(frames_per_sec: number, callback: SourceFunc): number
  • Creates a new frame source that will execute when the timeout interval for the source has elapsed. The timing will try to synchronize based on the end time of the animation.

    Parameters

    • frames_per_sec: number

      Target frames per second.

    • callback: SourceFunc

      A #GSourceFunc to execute.

    Returns number

  • frame_source_add_full(priority: number, frames_per_sec: number, callback: SourceFunc): number
  • fuzzy_highlight(str: string, query: string, case_sensitive: boolean): string
  • g_time_span_to_label(span: number): string
  • Creates a string describing the time span in hours, minutes, and seconds. For example, a time span of three and a half minutes would be "3:30". 2 days, 3 hours, 6 minutes, and 20 seconds would be "51:06:20".

    Parameters

    • span: number

      the span of time

    Returns string

  • g_time_span_to_label_mapping(binding: Binding, from_value: any, to_value: any, user_data: object): boolean
  • A #GBindingTransformFunc to transform a time span into a string label using dzl_g_time_span_to_label().

    Parameters

    • binding: Binding
    • from_value: any
    • to_value: any
    • user_data: object

    Returns boolean

  • g_variant_hash(data: object): number
  • get_current_cpu_call(): number
  • This function will binary search the contents of store looking for the location to insert a new row.

    compare_column must be the index of a column that is a %G_TYPE_POINTER, %G_TYPE_BOXED or %G_TYPE_OBJECT based column.

    compare_func will be called with key as the first parameter and the value from the #GtkListStore row as the second parameter. The third and final parameter is compare_data.

    Parameters

    • store: Gtk.ListStore

      A #GtkListStore

    • key: object

      A key to compare to when binary searching

    • compare_column: number

      the column containing the data to compare

    • compare_func: CompareDataFunc

      A callback to compare

    Returns Gtk.TreeIter

  • gtk_widget_action_with_string(widget: Gtk.Widget, group: string, name: string, param: string): boolean
  • gtk_widget_add_style_class(widget: Gtk.Widget, class_name: string): void
  • Tries to locate a widget in a hierarchy given it's #GType.

    There is not an efficient implementation of this method, so use it only when the hierarchy of widgets is small.

    Parameters

    Returns Gtk.Widget | null

  • This is similar to gtk_widget_get_ancestor(), but looks for relatives via properties such as #GtkPopover:relative-to and others.

    Parameters

    • widget: Gtk.Widget

      a #GtkWidget

    • relative_type: GType<unknown>

      the type of widget to locate

    Returns Gtk.Widget | null

  • gtk_widget_hide_with_fade(widget: Gtk.Widget): void
  • This function is like gtk_widget_is_ancestor() except that it checks various relative widgets that are not in the direct hierarchy of widgets. That includes #GtkMenu:attach-widget, #GtkPopover:relative-to, and #GtkWindow:transient-for.

    Parameters

    • widget: Gtk.Widget

      a #GtkWidget

    • ancestor: Gtk.Widget

      a #GtkWidget that might be an ancestor

    Returns boolean

  • gtk_widget_mux_action_groups(widget: Gtk.Widget, from_widget: Gtk.Widget, mux_key: string): void
  • This function will find all of the actions on from_widget in various groups and add them to widget. As this just copies the action groups over, note that it does not allow for muxing items within the same group.

    You should specify a key for mux_key so that if the same mux key is seen again, the previous muxings will be removed.

    Parameters

    • widget: Gtk.Widget

      a #GtkWidget

    • from_widget: Gtk.Widget

      A #GtkWidget containing the groups to copy

    • mux_key: string

      a unique key to represent the muxing

    Returns void

  • gtk_widget_remove_style_class(widget: Gtk.Widget, class_name: string): void
  • gtk_widget_show_with_fade(widget: Gtk.Widget): void
  • levenshtein(needle: string, haystack: string): number
  • Creates a shade of the color rgba by multiplying its saturation and lightness by k.

    Values of k greater than 1 will make the color brighter, while values less than 1 will make it darker. The alpha value will remain the same.

    Parameters

    • rgba: Gdk.RGBA

      a #GdkRGBA to shade

    • k: number

      the factor by which to shade the input color

    Returns Gdk.RGBA

  • shortcut_chord_equal(data1: object, data2: object): boolean
  • shortcut_chord_hash(data: object): number
  • shortcut_chord_table_get_type(): GType

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