GObject.Object
GObject.InitiallyUnowned
Gtk.Object
Gtk.CellRenderer
Gtk.CellRendererText
Gtk.CellRendererAccel
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkCellRendererAccel |
Class : | CellRendererAccel |
Extends: | Gtk.CellRendererText |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
accel_key : Number
The keyval of the accelerator.
The keyval of the accelerator.
|
Gtk.CellRendererAccel | |
accel_key : Number
read only
|
Gtk.CellRendererAccel | |
accel_mode : Gtk.CellRendererAccelMode
Determines if the edited accelerators are GTK+ accelerators.
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.
|
Gtk.CellRendererAccel | |
accel_mode : Gtk.CellRendererAccelMode
read only
|
Gtk.CellRendererAccel | |
accel_mods : Gdk.ModifierType
The modifier mask of the accelerator.
The modifier mask of the accelerator.
|
Gtk.CellRendererAccel | |
accel_mods : Gdk.ModifierType
read only
|
Gtk.CellRendererAccel | |
align_set : Boolean
|
Gtk.CellRendererText | |
alignment : Pango.Alignment
Specifies how to align the lines of text with respect to each other.
Specifies how to align the lines of text with respect to each other. Note that this property describes how to align the lines of text in case there are several of them. The "xalign" property of GtkCellRenderer, on the other hand, sets the horizontal alignment of the whole text.
|
Gtk.CellRendererText | |
attributes : Pango.AttrList
|
Gtk.CellRendererText | |
background : String
|
Gtk.CellRendererText | |
background_gdk : Gdk.Color
|
Gtk.CellRendererText | |
background_set : Boolean
|
Gtk.CellRendererText | |
calc_fixed_height : Number
read only
|
Gtk.CellRendererText | |
cell_background : String
|
Gtk.CellRenderer | |
cell_background_gdk : Gdk.Color
|
Gtk.CellRenderer | |
cell_background_set : Boolean
|
Gtk.CellRenderer | |
edit_widget : Gtk.Widget
read only
|
Gtk.CellRendererAccel | |
editable : Boolean
|
Gtk.CellRendererText | |
editable_set : Boolean
|
Gtk.CellRendererText | |
editing : Boolean
read only
|
Gtk.CellRenderer | |
ellipsize : Pango.EllipsizeMode
Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string.
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.
|
Gtk.CellRendererText | |
ellipsize_set : Boolean
|
Gtk.CellRendererText | |
extra_attrs : Pango.AttrList
read only
|
Gtk.CellRendererText | |
family : String
|
Gtk.CellRendererText | |
family_set : Boolean
|
Gtk.CellRendererText | |
fixed_height_rows : Number
read only
|
Gtk.CellRendererText | |
flags : Number
read only
|
Gtk.Object | |
font : String
|
Gtk.CellRendererText | |
font_desc : Pango.FontDescription
|
Gtk.CellRendererText | |
font_scale : Number
read only
|
Gtk.CellRendererText | |
foreground : String
|
Gtk.CellRendererText | |
foreground_gdk : Gdk.Color
|
Gtk.CellRendererText | |
foreground_set : Boolean
|
Gtk.CellRendererText | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
grab_widget : Gtk.Widget
read only
|
Gtk.CellRendererAccel | |
height : Number
|
Gtk.CellRenderer | |
is_expanded : Boolean
|
Gtk.CellRenderer | |
is_expander : Boolean
|
Gtk.CellRenderer | |
keycode : Number
The hardware keycode of the accelerator.
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.
|
Gtk.CellRendererAccel | |
keycode : Number
read only
|
Gtk.CellRendererAccel | |
language : String
|
Gtk.CellRendererText | |
language_set : Boolean
|
Gtk.CellRendererText | |
markup : String
|
Gtk.CellRendererText | |
mode : Gtk.CellRendererMode
|
Gtk.CellRenderer | |
parent : Gtk.CellRendererText
read only
|
Gtk.CellRendererAccel | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.Object | |
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
ref_count : Number
|
GObject.InitiallyUnowned | |
rise : Number
|
Gtk.CellRendererText | |
rise_set : Boolean
|
Gtk.CellRendererText | |
scale : Number
|
Gtk.CellRendererText | |
scale_set : Boolean
|
Gtk.CellRendererText | |
sensitive : Boolean
|
Gtk.CellRenderer | |
single_paragraph_mode : Boolean
|
Gtk.CellRendererText | |
size : Number
|
Gtk.CellRendererText | |
size_points : Number
|
Gtk.CellRendererText | |
size_set : Boolean
|
Gtk.CellRendererText | |
sizing_label : Gtk.Widget
read only
|
Gtk.CellRendererAccel | |
stretch : Pango.Stretch
|
Gtk.CellRendererText | |
stretch_set : Boolean
|
Gtk.CellRendererText | |
strikethrough : Boolean
|
Gtk.CellRendererText | |
strikethrough_set : Boolean
|
Gtk.CellRendererText | |
style : Pango.Style
|
Gtk.CellRendererText | |
style_set : Boolean
|
Gtk.CellRendererText | |
text : String
|
Gtk.CellRendererText | |
underline : Pango.Underline
|
Gtk.CellRendererText | |
underline_set : Boolean
|
Gtk.CellRendererText | |
underline_style : Pango.Underline
read only
|
Gtk.CellRendererText | |
user_data : void*
|
Gtk.Object | |
variant : Pango.Variant
|
Gtk.CellRendererText | |
variant_set : Boolean
|
Gtk.CellRendererText | |
visible : Boolean
|
Gtk.CellRenderer | |
weight : Number
|
Gtk.CellRendererText | |
weight_set : Boolean
|
Gtk.CellRendererText | |
width : Number
|
Gtk.CellRenderer | |
width_chars : Number
The desired width of the cell, in characters.
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.
|
Gtk.CellRendererText | |
wrap_mode : Pango.WrapMode
Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string.
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.
|
Gtk.CellRendererText | |
wrap_width : Number
Specifies the width at which the text is wrapped.
Specifies the 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.
|
Gtk.CellRendererText | |
xalign : Number
|
Gtk.CellRenderer | |
xpad : Number
|
Gtk.CellRenderer | |
yalign : Number
|
Gtk.CellRenderer | |
ypad : Number
|
Gtk.CellRenderer |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.CellRendererAccel
(Object properties)
Create a new Gtk.CellRendererAccel
Create a new Gtk.CellRendererAccel
|
||
activate
(Event event, Widget widget, String path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
:
Boolean
Passes an activate event to the cell renderer for possible processing.
Passes an activate event to the cell renderer for possible processing. Some cell renderers may use events; for example, GtkCellRendererToggle toggles when it gets a mouse click.
|
Gtk.CellRenderer | |
destroy
()
:
none
|
Gtk.Object | |
editing_canceled
()
:
none
Causes the cell renderer to emit the GtkCellRenderer::editing-canceled signal.
Causes the cell renderer to emit the GtkCellRenderer::editing-canceled signal. This function is for use only by implementations of cell renderers that need to notify the client program that an editing process was canceled and the changes were not committed.
|
Gtk.CellRenderer | |
get_alignment
()
:
Object
|
Gtk.CellRenderer | |
Gtk.Object | ||
Gtk.Object | ||
get_fixed_size
()
:
Object
|
Gtk.CellRenderer | |
get_padding
()
:
Object
|
Gtk.CellRenderer | |
get_sensitive
()
:
Boolean
Returns the cell renderer's sensitivity.
Returns the cell renderer's sensitivity.
|
Gtk.CellRenderer | |
Obtains the width and height needed to render the cell.
Obtains the width and height needed to render the cell. Used by view widgets to determine the appropriate size for the cell_area passed to gtk_cell_renderer_render(). If cell_area is not NULL, fills in the x and y offsets (if set) of the cell relative to this location. Please note that the values set in width and height, as well as those in x_offset and y_offset are inclusive of the xpad and ypad properties.
|
Gtk.CellRenderer | |
get_user_data
()
:
void*
|
Gtk.Object | |
get_visible
()
:
Boolean
Returns the cell renderer's visibility.
Returns the cell renderer's visibility.
|
Gtk.CellRenderer | |
remove_data
(String key)
:
none
|
Gtk.Object | |
remove_data_by_id
(Number data_id)
:
none
|
Gtk.Object | |
remove_no_notify
(String key)
:
none
|
Gtk.Object | |
remove_no_notify_by_id
(Number key_id)
:
none
|
Gtk.Object | |
render
(Window window, Widget widget, Rectangle background_area, Rectangle cell_area, Rectangle expose_area, CellRendererState flags)
:
none
Invokes the virtual render function of the GtkCellRenderer.
Invokes the virtual render function of the GtkCellRenderer. The three passed-in rectangles are areas of window. Most renderers will draw within should be honored with respect to cell_area. background_area includes the blank space around the cell, and also the area containing the tree expander; so the background_area rectangles for all cells tile to cover the entire
|
Gtk.CellRenderer | |
Gtk.CellRenderer | ||
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
set_fixed_height_from_font
(Number number_of_rows)
:
none
Sets the height of a renderer to explicitly be determined by the "font" and "y_pad" property set on it.
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.
|
Gtk.CellRendererText | |
Gtk.CellRenderer | ||
Gtk.CellRenderer | ||
set_sensitive
(Boolean sensitive)
:
none
Sets the cell renderer's sensitivity.
Sets the cell renderer's sensitivity.
|
Gtk.CellRenderer | |
set_user_data
(void* data)
:
none
|
Gtk.Object | |
set_visible
(Boolean visible)
:
none
Sets the cell renderer's visibility.
Sets the cell renderer's visibility.
|
Gtk.CellRenderer | |
sink
()
:
none
|
Gtk.Object | |
start_editing
(Event event, Widget widget, String path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
:
Gtk.CellEditable
Passes an activate event to the cell renderer for possible processing.
Passes an activate event to the cell renderer for possible processing.
|
Gtk.CellRenderer | |
stop_editing
(Boolean canceled)
:
none
Informs the cell renderer that the editing is stopped.
Informs the cell renderer that the editing is stopped. If canceled is TRUE, the cell renderer will emit the GtkCellRenderer::editing-canceled signal. This function should be called by cell renderer implementations in response to the GtkCellEditable::editing-done signal of GtkCellEditable.
|
Gtk.CellRenderer |
Event | Defined By | |
---|---|---|
accel_cleared (CellRendererAccel self, String path_string)
:
none
Gets emitted when the user has removed the accelerator.
Gets emitted when the user has removed the accelerator.
|
Gtk.CellRendererAccel | |
accel_edited (CellRendererAccel self, String path_string, Number accel_key, ModifierType accel_mods, Number hardware_keycode)
:
none
Gets emitted when the user has selected a new accelerator.
Gets emitted when the user has selected a new accelerator.
|
Gtk.CellRendererAccel | |
destroy (Object self)
:
none
|
Gtk.Object | |
|
Gtk.CellRendererText | |
editing_canceled (CellRenderer self)
:
none
This signal gets emitted when the user cancels the process of editing a cell.
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.
|
Gtk.CellRenderer | |
This signal gets emitted when a cell starts to be edited.
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. Note that GTK+ doesn't guarantee that cell renderers will continue to use the same kind of widget for editing in future releases, therefore you should check the type of editable before doing any specific setup, as in the following example: |[ static void text_editing_started (GtkCellRenderer *cell, GtkCellEditable *editable, const gchar *path, gpointer data) { if (GTK_IS_ENTRY (editable)) { GtkEntry *entry = GTK_ENTRY (editable); /* ... create a GtkEntryCompletion */ gtk_entry_set_completion (entry, completion); } } ]|
|
Gtk.CellRenderer |