About all my projects
Gnome::Gtk4::CallbackAction

Gnome::Gtk4::CallbackAction

Description

A Gnome::Gtk4::ShortcutAction that invokes a callback.

Uml Diagram

No caption

Class initialization

new

:native-object

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )

new-callbackaction

Create a custom action that calls the given $callback when activated.

method new-callbackaction ( GtkShortcutFunc &callback, gpointer $data, GDestroyNotify &destroy --> Gnome::Gtk4::CallbackAction )
  • GtkShortcutFunc &callback; the callback to call. The function must be specified with the following signature; :( N-Object $widget, N-Object $args, gpointer $user-data ).

  • $data; the data to be passed to $callback.

  • GDestroyNotify &destroy; the function to be called when the callback action is finalized. The function must be specified with the following signature; :( gpointer $data ).