Gjsify LogoGjsify Logo

Hierarchy

  • ActionInfo

Index

Constructors

Properties

name: string

Methods

  • get_accels(): string[]
  • Returns the accelerators. This function never returns %NULL, it always returns a %NULL-terminated array, to be suitable for gtk_application_set_accels_for_action().

    Returns string[]

  • get_action_name(): string
  • get_icon_name(): string
  • get_label(): string
  • get_tooltip(): string
  • has_been_used(): boolean
  • Returns whether info has been used (for example by an #AmtkFactory function). See also amtk_action_info_store_check_all_used().

    Returns boolean

  • mark_as_used(): void
  • Mark info as used. An #AmtkFactory function that uses an #AmtkActionInfo should call this function. See amtk_action_info_store_check_all_used().

    Returns void

  • set_accels(accels: string[]): void
  • A function similar to gtk_application_set_accels_for_action().

    accels must not be %NULL, it must be a %NULL-terminated array, to be consistent with gtk_application_set_accels_for_action().

    Parameters

    • accels: string[]

      a %NULL-terminated array of accelerators in the format understood by gtk_accelerator_parse().

    Returns void

  • set_action_name(action_name: string): void
  • Sets the action name, for example "win.save".

    Parameters

    • action_name: string

      the action name.

    Returns void

  • set_icon_name(icon_name: string): void
  • set_label(label: string): void
  • Sets the label with a mnemonic.

    Parameters

    • label: string

      the label (i.e. a short description), or %NULL.

    Returns void

  • set_tooltip(tooltip: string): void
  • unref(): void
  • Decrements the reference count of info by one. If the reference count drops to 0, info is freed.

    Returns void

  • Creates a new #AmtkActionInfo from an #AmtkActionInfoEntry.

    If translation_domain is not %NULL, g_dgettext() is used to translate the label and tooltip before setting them to the #AmtkActionInfo.

    Parameters

    • info_entry: Amtk.ActionInfoEntry

      an #AmtkActionInfoEntry.

    • translation_domain: string

      a gettext domain, or %NULL.

    Returns Amtk.ActionInfo

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