About all my projects
Gnome::Gtk4::CellRendererAccel

Gnome::Gtk4::CellRendererAccel

Description

Renders a keyboard accelerator in a cell

Gnome::Gtk4::CellRendererAccel displays a keyboard accelerator (i.e. a key combination like Control + a`). If the cell renderer is editable, the accelerator can be changed by simply typing the new combination.

Class initialization

Note: The native version of this class is deprecated in gtk4-lib() since version 4.10

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

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

new-cellrendereraccel

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Creates a new Gnome::Gtk4::CellRendererAccel.

method new-cellrendereraccel ( --> Gnome::Gtk4::CellRendererAccel \)

Signals

accel-cleared

Gets emitted when the user has removed the accelerator.

method handler (
  Str $path-string,
  Int :$_handle_id,
  N-GObject :$_native-object,
  Gnome::Gtk4::CellRendererAccel :$_widget,
  *C<user>-options
)
  • $path-string; the path identifying the row of the edited cell.

  • $_handle_id; The registered event handler id.

  • $_native-object; The native object provided by the Raku object which registered this event. This a native Gnome::Gtk4::CellRendererAccel object.

  • $_widget; The object which registered the signal. User code may have left the object going out of scope.

  • user-options; A list of named arguments provided at the .register-signal() method from Gnome::GObject::Object.

accel-edited

Gets emitted when the user has selected a new accelerator.

method handler (
  Str $path-string,
  guint $accel-key,
   $accel-mods,
  guint $hardware-keycode,
  Int :$_handle_id,
  N-GObject :$_native-object,
  Gnome::Gtk4::CellRendererAccel :$_widget,
  *C<user>-options
)
  • $path-string; the path identifying the row of the edited cell.

  • $accel-key; the new accelerator keyval.

  • $accel-mods; the new accelerator modifier mask.

  • $hardware-keycode; the keycode of the new accelerator.

  • $_handle_id; The registered event handler id.

  • $_native-object; The native object provided by the Raku object which registered this event. This a native Gnome::Gtk4::CellRendererAccel object.

  • $_widget; The object which registered the signal. User code may have left the object going out of scope.

  • user-options; A list of named arguments provided at the .register-signal() method from Gnome::GObject::Object.