Gjsify LogoGjsify Logo

Hierarchy

  • ActionInfo

Index

Constructors

Properties

name: string

Methods

  • getAccels(): 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[]

  • getActionName(): string
  • getIconName(): string
  • getLabel(): string
  • Gets the label. The label has normally a mnemonic.

    Returns string

  • getTooltip(): string
  • hasBeenUsed(): boolean
  • Returns whether info has been used (for example by an #AmtkFactory function). See also amtk_action_info_store_check_all_used().

    Returns boolean

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

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

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

    Parameters

    • actionName: string

      the action name.

    Returns void

  • setIconName(iconName: string): void
  • setLabel(label: string): void
  • Sets the label with a mnemonic.

    Parameters

    • label: string

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

    Returns void

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

    • infoEntry: Amtk.ActionInfoEntry

      an #AmtkActionInfoEntry.

    • translationDomain: 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