Class: Gtk::CellRendererAccel
- Inherits:
-
CellRendererText
- Object
- GObject::InitiallyUnowned
- CellRenderer
- CellRendererText
- Gtk::CellRendererAccel
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk4/deprecated.rb
Overview
Renders a keyboard accelerator in a cell
GtkCellRendererAccel 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.
Instance Method Summary collapse
-
#accel_key ⇒ Integer
The keyval of the accelerator.
-
#accel_key=(accel_key) ⇒ Integer
The keyval of the accelerator.
-
#accel_mode ⇒ Gtk::CellRendererAccelMode
Determines if the edited accelerators are GTK accelerators.
-
#accel_mode=(accel_mode) ⇒ Gtk::CellRendererAccelMode
Determines if the edited accelerators are GTK accelerators.
-
#accel_mods ⇒ Gdk::ModifierType
The modifier mask of the accelerator.
-
#accel_mods=(accel_mods) ⇒ Gdk::ModifierType
The modifier mask of the accelerator.
-
#initialize ⇒ Gtk::CellRenderer
constructor
Creates a new
GtkCellRendererAccel. -
#keycode ⇒ Integer
The hardware keycode of the accelerator.
-
#keycode=(keycode) ⇒ Integer
The hardware keycode of the accelerator.
Methods inherited from CellRendererText
#align_set=, #align_set?, #alignment, #alignment=, #attributes, #attributes=, #background=, #background_rgba, #background_rgba=, #background_set=, #background_set?, #editable=, #editable?, #editable_set=, #editable_set?, #ellipsize, #ellipsize=, #ellipsize_set=, #ellipsize_set?, #family, #family=, #family_set=, #family_set?, #fixed_height_from_font=, #font, #font=, #font_desc, #font_desc=, #foreground=, #foreground_rgba, #foreground_rgba=, #foreground_set=, #foreground_set?, #language, #language=, #language_set=, #language_set?, #markup=, #max_width_chars, #max_width_chars=, #placeholder_text, #placeholder_text=, #rise, #rise=, #rise_set=, #rise_set?, #scale, #scale=, #scale_set=, #scale_set?, #single_paragraph_mode=, #single_paragraph_mode?, #size, #size=, #size_points, #size_points=, #size_set=, #size_set?, #stretch, #stretch=, #stretch_set=, #stretch_set?, #strikethrough=, #strikethrough?, #strikethrough_set=, #strikethrough_set?, #style, #style=, #style_set=, #style_set?, #text, #text=, #underline, #underline=, #underline_set=, #underline_set?, #variant, #variant=, #variant_set=, #variant_set?, #weight, #weight=, #weight_set=, #weight_set?, #width_chars, #width_chars=, #wrap_mode, #wrap_mode=, #wrap_width, #wrap_width=
Methods inherited from CellRenderer
#activate, #cell_background=, #cell_background_rgba, #cell_background_rgba=, #cell_background_set=, #cell_background_set?, #editing=, #editing?, #get_aligned_area, #get_alignment, #get_fixed_size, #get_padding, #get_preferred_height, #get_preferred_height_for_width, #get_preferred_size, #get_preferred_width, #get_preferred_width_for_height, #get_state, #height, #height=, #is_activatable, #is_expanded, #is_expanded=, #is_expanded?, #is_expander, #is_expander=, #is_expander?, #mode, #mode=, #request_mode, #sensitive, #sensitive=, #sensitive?, #set_alignment, #set_fixed_size, #set_padding, #snapshot, #start_editing, #stop_editing, #visible, #visible=, #visible?, #width, #width=, #xalign, #xalign=, #xpad, #xpad=, #yalign, #yalign=, #ypad, #ypad=
Constructor Details
#initialize ⇒ Gtk::CellRenderer
Creates a new GtkCellRendererAccel.
Instance Method Details
#accel_key ⇒ Integer
The keyval of the accelerator.
#accel_key=(accel_key) ⇒ Integer
The keyval of the accelerator.
#accel_mode ⇒ Gtk::CellRendererAccelMode
Determines if the edited accelerators are GTK accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK are allowed, and the accelerators are rendered in the same way as they are in menus.
#accel_mode=(accel_mode) ⇒ Gtk::CellRendererAccelMode
Determines if the edited accelerators are GTK accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK are allowed, and the accelerators are rendered in the same way as they are in menus.
#accel_mods ⇒ Gdk::ModifierType
The modifier mask of the accelerator.
#accel_mods=(accel_mods) ⇒ Gdk::ModifierType
The modifier mask of the accelerator.
#keycode ⇒ Integer
The hardware keycode of the accelerator. Note that the hardware keycode is only relevant if the key does not have a keyval. Normally, the keyboard configuration should assign keyvals to all keys.
#keycode=(keycode) ⇒ Integer
The hardware keycode of the accelerator. Note that the hardware keycode is only relevant if the key does not have a keyval. Normally, the keyboard configuration should assign keyvals to all keys.