| ||||||||||||
| ||||||||||||
| ||||||||||||
Description | ||||||||||||
An object for rendering a cell in a list, icon or combo box widget. | ||||||||||||
Synopsis | ||||||||||||
Detail | ||||||||||||
The CellRenderer is a base class of a set of objects used for rendering a cell to a Drawable. These objects are used primarily by the TreeView widget, though they aren't tied to them in any specific way. It is worth noting that CellRenderer is not a Widget and cannot be treated as such. The primary use of a CellRenderer is for drawing a certain graphical elements on a Drawable. Typically, one cell renderer is used to draw many cells on the screen. To this extent, it isn't expected that a CellRenderer keep any permanent state around. Instead, any state is set just prior to use by changing the attributes of the cell. Then, the cell is measured and rendered in the correct location. Beyond merely rendering a cell, cell renderers can optionally provide active user interface elements. A cell renderer can be activatable like Graphics.UI.Gtk.ModelView.CellRendererToggle, which toggles when it gets activated by a mouse click, or it can be editable like Graphics.UI.Gtk.ModelView.CellRendererText, which allows the user to edit the text using a Graphics.UI.Gtk.Entry.Entry. | ||||||||||||
Class Hierarchy | ||||||||||||
| GObject | +----Object | +----CellRenderer | +----CellRendererText | +----CellRendererPixbuf | +----CellRendererProgress | +----CellRendererCombo | +----CellRendererToggle | ||||||||||||
Types | ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
Methods | ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
Attributes | ||||||||||||
| ||||||||||||
Editable mode of the CellRenderer. Default value: CellRendererModeInert | ||||||||||||
| ||||||||||||
Display the cell. Default value: True | ||||||||||||
| ||||||||||||
Display the cell sensitive. Default value: True | ||||||||||||
| ||||||||||||
The x-align. Allowed values: [0,1] Default value: 0.5 | ||||||||||||
| ||||||||||||
The y-align. Allowed values: [0,1] Default value: 0.5 | ||||||||||||
| ||||||||||||
The xpad. Default value: 0 | ||||||||||||
| ||||||||||||
The ypad. Default value: 0 | ||||||||||||
| ||||||||||||
The fixed width. Allowed values: >= -1 Default value: -1 | ||||||||||||
| ||||||||||||
The fixed height. Allowed values: >= -1 Default value: -1 | ||||||||||||
| ||||||||||||
Row has children. Default value: False | ||||||||||||
| ||||||||||||
Row is an expander row, and is expanded. Default value: False | ||||||||||||
| ||||||||||||
Cell background color as a string. Default value: "" | ||||||||||||
| ||||||||||||
Cell background color as a Color. | ||||||||||||
| ||||||||||||
Whether the cellBackground / cellBackgroundColor attribute is set. You can use this to reset the attribute to its default. Default value: False | ||||||||||||
Signals | ||||||||||||
| ||||||||||||
This signal gets emitted when a cell starts to be edited. The indended use of this signal is to do special setup on editable, e.g. adding a EntryCompletion or setting up additional columns in a ComboBox.
| ||||||||||||
| ||||||||||||
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.
| ||||||||||||
Deprecated | ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
Produced by Haddock version 2.6.0 |