About my projects, examples and tutorials
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.

Uml Diagram§

UNKNOWN image§

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

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 an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

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

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

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,
  *%user-options
)
Code
  • $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 is a native Gnome::Gtk4::CellRendererAccel object.
  • %user-options; A list of named arguments provided by .register-signal() in class 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,
  *%user-options
)
Code
  • $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 is a native Gnome::Gtk4::CellRendererAccel object.
  • %user-options; A list of named arguments provided by .register-signal() in class Object.