Actionable

interface Actionable

The GtkActionable interface provides a convenient way of associating widgets with actions.

It primarily consists of two properties: property@Gtk.Actionable:action-name and property@Gtk.Actionable:action-target. There are also some convenience APIs for setting these properties.

The action will be looked up in action groups that are found among the widgets ancestors. Most commonly, these will be the actions with the “win.” or “app.” prefix that are associated with the GtkApplicationWindow or GtkApplication, but other action groups that are added with method@Gtk.Widget.insert_action_group will be consulted as well.

Skipped during bindings generation

  • method action-target: Property has no getter nor setter

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var actionName: String?

The name of the action with which this widget should be associated.

Link copied to clipboard
abstract val gtkActionablePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getActionName(): String?

Gets the action name for @actionable.

Link copied to clipboard
open fun getActionTargetValue(): <Error class: unknown class>?

Gets the current target value of @actionable.

Link copied to clipboard
open fun setActionName(actionName: String? = null)

Specifies the name of the action with which this widget should be associated.

Link copied to clipboard
open fun setActionTargetValue(targetValue: <Error class: unknown class>? = null)

Sets the target value of an actionable widget.

Link copied to clipboard
open fun setDetailedActionName(detailedActionName: String)

Sets the action-name and associated string target value of an actionable widget.