Class
GtkCellRendererAccel
Description [src]
class Gtk.CellRendererAccel : Gtk.CellRendererText
{
/* No available fields */
}
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.
The GtkCellRendererAccel
cell renderer was added in GTK+ 2.10.
Instance methods
Methods inherited from GtkCellRendererText (1)
gtk_cell_renderer_text_set_fixed_height_from_font
Sets the height of a renderer to explicitly be determined by the “font” and
“y_pad” property set on it. Further changes in these properties do not
affect the height, so they must be accompanied by a subsequent call to this
function. Using this function is unflexible, and should really only be used
if calculating the size of a cell is too slow (ie, a massive number of cells
displayed). If number_of_rows
is -1, then the fixed height is unset, and
the height is determined by the properties again.
Methods inherited from GtkCellRenderer (24)
Please see GtkCellRenderer for a full list of methods.
Properties
Gtk.CellRendererAccel:accel-mode
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.
since: 2.10
Gtk.CellRendererAccel:keycode
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.
since: 2.10
Properties inherited from GtkCellRendererText (48)
Gtk.CellRendererText:align-set
Gtk.CellRendererText:alignment
Specifies how to align the lines of text with respect to each other.
since: 2.10
Gtk.CellRendererText:attributes
Gtk.CellRendererText:background
Gtk.CellRendererText:background-gdk
Background color as a GdkColor
.
deprecated: 3.4
Gtk.CellRendererText:background-rgba
Background color as a GdkRGBA
.
since: 3.0
Gtk.CellRendererText:background-set
Gtk.CellRendererText:editable
Gtk.CellRendererText:editable-set
Gtk.CellRendererText:ellipsize
Specifies the preferred place to ellipsize the string, if the cell renderer
does not have enough room to display the entire string. Setting it to
PANGO_ELLIPSIZE_NONE
turns off ellipsizing. See the wrap-width property
for another way of making the text fit into a given width.
since: 2.6
Gtk.CellRendererText:ellipsize-set
Gtk.CellRendererText:family
Gtk.CellRendererText:family-set
Gtk.CellRendererText:font
Gtk.CellRendererText:font-desc
Gtk.CellRendererText:foreground
Gtk.CellRendererText:foreground-gdk
Foreground color as a GdkColor
.
deprecated: 3.4
Gtk.CellRendererText:foreground-rgba
Foreground color as a GdkRGBA
.
since: 3.0
Gtk.CellRendererText:foreground-set
Gtk.CellRendererText:language
Gtk.CellRendererText:language-set
Gtk.CellRendererText:markup
Gtk.CellRendererText:max-width-chars
The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
since: 3.0
Gtk.CellRendererText:placeholder-text
The text that will be displayed in the GtkCellRenderer
if
GtkCellRendererText:editable
is TRUE
and the cell is empty.
Gtk.CellRendererText:rise
Gtk.CellRendererText:rise-set
Gtk.CellRendererText:scale
Gtk.CellRendererText:scale-set
Gtk.CellRendererText:single-paragraph-mode
Gtk.CellRendererText:size
Gtk.CellRendererText:size-points
Gtk.CellRendererText:size-set
Gtk.CellRendererText:stretch
Gtk.CellRendererText:stretch-set
Gtk.CellRendererText:strikethrough
Gtk.CellRendererText:strikethrough-set
Gtk.CellRendererText:style
Gtk.CellRendererText:style-set
Gtk.CellRendererText:text
Gtk.CellRendererText:underline
Gtk.CellRendererText:underline-set
Gtk.CellRendererText:variant
Gtk.CellRendererText:variant-set
Gtk.CellRendererText:weight
Gtk.CellRendererText:weight-set
Gtk.CellRendererText:width-chars
The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3 characters or the property value, whichever is greater.
since: 2.6
Gtk.CellRendererText:wrap-mode
Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.
since: 2.8
Gtk.CellRendererText:wrap-width
Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed. Setting wrap-width to -1 turns wrapping off.
since: 2.8
Properties inherited from GtkCellRenderer (16)
Gtk.CellRenderer:cell-background
Gtk.CellRenderer:cell-background-gdk
Cell background as a GdkColor
.
deprecated: 3.4
Gtk.CellRenderer:cell-background-rgba
Cell background as a GdkRGBA
.
since: 3.0
Gtk.CellRenderer:cell-background-set
Gtk.CellRenderer:editing
Gtk.CellRenderer:height
Gtk.CellRenderer:is-expanded
Gtk.CellRenderer:is-expander
Gtk.CellRenderer:mode
Gtk.CellRenderer:sensitive
Gtk.CellRenderer:visible
Gtk.CellRenderer:width
Gtk.CellRenderer:xalign
Gtk.CellRenderer:xpad
Gtk.CellRenderer:yalign
Gtk.CellRenderer:ypad
Signals
Gtk.CellRendererAccel::accel-cleared
Gets emitted when the user has removed the accelerator.
since: 2.10
Gtk.CellRendererAccel::accel-edited
Gets emitted when the user has selected a new accelerator.
since: 2.10
Signals inherited from GtkCellRendererText (1)
Signals inherited from GtkCellRenderer (2)
GtkCellRenderer::editing-canceled
This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape.
since: 2.4
GtkCellRenderer::editing-started
This signal gets emitted when a cell starts to be edited.
The intended use of this signal is to do special setup
on editable
, e.g. adding a GtkEntryCompletion
or setting
up additional columns in a GtkComboBox
.
since: 2.6
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GtkCellRendererAccelClass {
GtkCellRendererTextClass parent_class;
void (* accel_edited) (
GtkCellRendererAccel* accel,
const gchar* path_string,
guint accel_key,
GdkModifierType accel_mods,
guint hardware_keycode
);
void (* accel_cleared) (
GtkCellRendererAccel* accel,
const gchar* path_string
);
void (* _gtk_reserved0) (
void
);
void (* _gtk_reserved1) (
void
);
void (* _gtk_reserved2) (
void
);
void (* _gtk_reserved3) (
void
);
void (* _gtk_reserved4) (
void
);
}
No description available.
Class members
parent_class: GtkCellRendererTextClass
No description available.
accel_edited: void (* accel_edited) ( GtkCellRendererAccel* accel, const gchar* path_string, guint accel_key, GdkModifierType accel_mods, guint hardware_keycode )
No description available.
accel_cleared: void (* accel_cleared) ( GtkCellRendererAccel* accel, const gchar* path_string )
No description available.
_gtk_reserved0: void (* _gtk_reserved0) ( void )
No description available.
_gtk_reserved1: void (* _gtk_reserved1) ( void )
No description available.
_gtk_reserved2: void (* _gtk_reserved2) ( void )
No description available.
_gtk_reserved3: void (* _gtk_reserved3) ( void )
No description available.
_gtk_reserved4: void (* _gtk_reserved4) ( void )
No description available.