GObject.Object
GObject.InitiallyUnowned
Gtk.Object
Gtk.CellRenderer
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkCellRenderer |
Class : | CellRenderer |
Extends: | Gtk.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
cell_background : String
|
Gtk.CellRenderer | |
cell_background_gdk : Gdk.Color
|
Gtk.CellRenderer | |
cell_background_set : Boolean
|
Gtk.CellRenderer | |
cell_background_set : Number
read only
|
Gtk.CellRenderer | |
editing : Boolean
read only
|
Gtk.CellRenderer | |
editing : Number
read only
|
Gtk.CellRenderer | |
flags : Number
read only
|
Gtk.Object | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
height : Number
|
Gtk.CellRenderer | |
height : Number
read only
|
Gtk.CellRenderer | |
is_expanded : Boolean
|
Gtk.CellRenderer | |
is_expanded : Number
read only
|
Gtk.CellRenderer | |
is_expander : Boolean
|
Gtk.CellRenderer | |
is_expander : Number
read only
|
Gtk.CellRenderer | |
mode : Gtk.CellRendererMode
|
Gtk.CellRenderer | |
mode : Number
read only
|
Gtk.CellRenderer | |
parent : Gtk.Object
read only
|
Gtk.CellRenderer | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.Object | |
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
ref_count : Number
|
GObject.InitiallyUnowned | |
sensitive : Boolean
|
Gtk.CellRenderer | |
sensitive : Number
read only
|
Gtk.CellRenderer | |
user_data : void*
|
Gtk.Object | |
visible : Boolean
|
Gtk.CellRenderer | |
visible : Number
read only
|
Gtk.CellRenderer | |
width : Number
|
Gtk.CellRenderer | |
width : Number
read only
|
Gtk.CellRenderer | |
xalign : Number
|
Gtk.CellRenderer | |
xalign : Number
read only
|
Gtk.CellRenderer | |
xpad : Number
|
Gtk.CellRenderer | |
xpad : Number
read only
|
Gtk.CellRenderer | |
yalign : Number
|
Gtk.CellRenderer | |
yalign : Number
read only
|
Gtk.CellRenderer | |
ypad : Number
|
Gtk.CellRenderer | |
ypad : Number
read only
|
Gtk.CellRenderer |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.CellRenderer
(Object properties)
Create a new Gtk.CellRenderer
Create a new Gtk.CellRenderer
|
||
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 | ||
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 | |
---|---|---|
destroy (Object self)
:
none
|
Gtk.Object | |
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 |
Class / Namespace | Method / Signal / Properties |
---|---|
Gladeui.SignalEditor
Property |
handler_renderer : Gtk.CellRenderer
|
Gladeui.SignalEditor
Property |
userdata_renderer : Gtk.CellRenderer
|
Gtk.CellLayout
Method |
pack_start
(CellRenderer cell, Boolean expand)
:
none
Packs the cell into the beginning of cell_layout.
|
Gtk.CellLayout
Method |
pack_end
(CellRenderer cell, Boolean expand)
:
none
Adds the cell to the end of cell_layout.
|
Gtk.CellLayout
Method |
Adds an attribute mapping to the list in cell_layout.
|
Gtk.CellLayout
Method |
Sets the GtkCellLayoutDataFunc to use for cell_layout.
|
Gtk.CellLayout
Method |
clear_attributes
(CellRenderer cell)
:
none
Clears all existing attributes previously set with gtk_cell_layout_set_attributes().
|
Gtk.CellLayout
Method |
reorder
(CellRenderer cell, Number position)
:
none
Re-inserts cell at position.
|
Gtk.IconView
Method |
Finds the path at the point (x, y), relative to bin_window coordinates.
|
Gtk.IconView
Method |
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.IconView
Method |
Fills in path and cell with the current cursor path and cell.
|
Gtk.IconView
Method |
Sets the tip area of tooltip to the area which cell occupies in the item pointed to by path.
|
Gtk.TreeView
Method |
insert_column_with_data_func
(Number position, String title, CellRenderer cell, Function func, void* data, Function dnotify)
:
Number
Convenience function that inserts a new column into the GtkTreeView with the given cell renderer and a GtkCellDataFunc to set cell renderer attributes (normally using data from the model).
|
Gtk.TreeView
Method |
set_cursor_on_cell
(TreePath path, TreeViewColumn focus_column, CellRenderer focus_cell, Boolean start_editing)
:
none
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.TreeView
Method |
Sets the tip area of tooltip to the area path, column and cell have in common.
|
Gtk.TreeViewColumn
Method |
pack_start
(CellRenderer cell, Boolean expand)
:
none
Packs the cell into the beginning of the column.
|
Gtk.TreeViewColumn
Method |
pack_end
(CellRenderer cell, Boolean expand)
:
none
Adds the cell to end of the column.
|
Gtk.TreeViewColumn
Method |
Adds an attribute mapping to the list in tree_column.
|
Gtk.TreeViewColumn
Method |
set_cell_data_func
(CellRenderer cell_renderer, Function func, void* func_data, Function destroy)
:
none
Sets the GtkTreeViewColumnFunc to use for the column.
|
Gtk.TreeViewColumn
Method |
clear_attributes
(CellRenderer cell_renderer)
:
none
Clears all existing attributes previously set with gtk_tree_view_column_set_attributes().
|
Gtk.TreeViewColumn
Method |
focus_cell
(CellRenderer cell)
:
none
Sets the current keyboard focus to be at cell, if the column contains 2 or more editable and activatable cells.
|
Gtk.TreeViewColumn
Method |
Obtains the horizontal position and size of a cell in a column.
|
GtkSource.Gutter
Signal |
|
GtkSource.Gutter
Signal |
|
GtkSource.Gutter
Method |
insert
(CellRenderer renderer, Number position)
:
none
Inserts renderer into gutter at position.
|
GtkSource.Gutter
Method |
reorder
(CellRenderer renderer, Number position)
:
none
Reorders renderer in gutter to new position.
|
GtkSource.Gutter
Method |
remove
(CellRenderer renderer)
:
none
Removes renderer from gutter.
|
GtkSource.Gutter
Method |
Sets the GtkSourceGutterDataFunc to use for renderer.
|
GtkSource.Gutter
Method |
Sets the GtkSourceGutterSizeFunc to use for renderer.
|