-
public virtual bool activate (Event event, Widget widget, string path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
Passes an activate event to the cell renderer for possible processing. Some cell renderers may use
events; for example, CellRendererToggle toggles when it gets a mouse click.
-
public void get_alignment (out float xalign, out float yalign)
Fills in xalign and yalign with the appropriate values of cell.
-
public void get_fixed_size (out int width, out int height)
Fills in width and height with the appropriate size of cell.
-
public void get_padding (out int xpad, out int ypad)
Fills in xpad and ypad with the appropriate values of cell.
-
public bool get_sensitive ()
Returns the cell renderer's sensitivity.
-
public abstract void get_size (Widget widget, Rectangle? cell_area, out int x_offset, out int y_offset, out int width, out int height)
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 render. If
cell_area is not null, fills in the x and y offsets (if set) of the cell relative to this location.
-
public bool get_visible ()
Returns the cell renderer's visibility.
-
public abstract void render (Window window, Widget widget, Rectangle background_area, Rectangle cell_area, Rectangle expose_area, CellRendererState flags)
Invokes the virtual render function of the
CellRenderer. The three passed-in rectangles are areas of window. Most renderers will draw within cell_area
; the xalign, yalign, xpad, and ypad fields of the CellRenderer
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 window. expose_area is a clip rectangle.
-
public void set_alignment (float xalign, float yalign)
Sets the renderer's alignment within its available space.
-
public void set_fixed_size (int width, int height)
Sets the renderer size to be explicit, independent of the properties set.
-
public void set_padding (int xpad, int ypad)
Sets the renderer's padding.
-
public void set_sensitive (bool sensitive)
Sets the cell renderer's sensitivity.
-
public void set_visible (bool visible)
Sets the cell renderer's visibility.
-
public virtual weak CellEditable start_editing (Event event, Widget widget, string path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
Passes an activate event to the cell renderer for possible processing.
-
public void stop_editing (bool canceled)
Informs the cell renderer that the editing is stopped. If canceled is true,
the cell renderer will emit the editing_canceled signal.