Forum und email

GtkCellRendererText

Displays the contents of a cell in a GtkTreeView as text.

对象层次

GObject
`-- GtkObject
       `-- GtkCellRenderer
              `-- GtkCellRendererText

直接子类

描述

构造函数

-- Creates a new GtkCellRendererText.

方法

set_fixed_height_from_font()
  Sets the heigth of the renderer to a value determined by its current font and y_pad values.

属性

使用 get_property 和 set_property 方法访问这些。

background:
  The background color of the text as a string.
background-gdk:
  The background color of the text as a GdkColor
background-set:
  If TRUE the text background color is set by this cellrenderer. Default: FALSE.
editable:
  True/False. Indicates if the text can be modified by the user.
family:
  Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
font:
  Font description as a string.
foreground:
  Foreground color as a string.
size-points:
  Font size in points.
text:
  Text to render.

信号

"edited"
  Emitted when the text in the cell has been edited.