About my projects, examples and tutorials
Gnome::Gtk4::CallbackAction

Gnome::Gtk4::CallbackAction

Description§

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

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/CallbackAction.png> :width<70\%>

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! )
Code

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 )
Code
  • 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 ).