| ||||||||||
| ||||||||||
| ||||||||||
Description | ||||||||||
A CellRenderer which displays a single-line text. | ||||||||||
Synopsis | ||||||||||
Detail | ||||||||||
A CellRendererText renders a given text in its cell, using the font, color and style information provided by its attributes. The text will be ellipsized if it is too long and the ellipsize property allows it. If the cellMode is CellRendererModeEditable, the CellRendererText allows the user to edit its text using an Entry widget. | ||||||||||
Class Hierarchy | ||||||||||
| GObject | +----Object | +----CellRenderer | +----CellRendererText | +----CellRendererCombo | ||||||||||
Types | ||||||||||
data CellRendererText | ||||||||||
| ||||||||||
class CellRendererClass o => CellRendererTextClass o | ||||||||||
| ||||||||||
castToCellRendererText :: GObjectClass obj => obj -> CellRendererText | ||||||||||
gTypeCellRendererText :: GType | ||||||||||
toCellRendererText :: CellRendererTextClass o => o -> CellRendererText | ||||||||||
Constructors | ||||||||||
cellRendererTextNew :: IO CellRendererText | ||||||||||
Create a new CellRendererText object. | ||||||||||
Methods | ||||||||||
cellRendererTextSetFixedHeightFromFont | ||||||||||
| ||||||||||
Attributes | ||||||||||
cellText :: CellRendererTextClass cr => Attr cr String | ||||||||||
Define the attribute that specifies the text to be rendered. See also cellTextMarkup. | ||||||||||
cellTextMarkup :: CellRendererTextClass cr => WriteAttr cr (Maybe String) | ||||||||||
Define a markup string instead of a text. See cellText. | ||||||||||
cellTextSingleParagraphMode :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether or not to keep all text in a single paragraph. Default value: False | ||||||||||
cellTextBackground :: CellRendererClass self => WriteAttr self String | ||||||||||
Text background color as a string. Default value: "" | ||||||||||
cellTextBackgroundColor :: CellRendererClass self => Attr self Color | ||||||||||
Text background color as a Color. | ||||||||||
cellTextBackgroundSet :: CellRendererClass self => Attr self Bool | ||||||||||
Whether the 'cellTextBackground'\/'cellTextBackgroundColor' attribute is set. Default value: False | ||||||||||
cellTextForeground :: CellRendererClass self => WriteAttr self String | ||||||||||
Text foreground color as a string. Default value: "" | ||||||||||
cellTextForegroundColor :: CellRendererClass self => Attr self Color | ||||||||||
Text foreground color as a Color. | ||||||||||
cellTextForegroundSet :: CellRendererClass self => Attr self Bool | ||||||||||
Whether the 'cellTextForeground'\/'cellTextForegroundColor' attribute is set. Default value: False | ||||||||||
cellTextEditable :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the text can be modified by the user. | ||||||||||
cellTextEditableSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextEditable flag affects text editability. | ||||||||||
cellTextFont :: CellRendererTextClass self => Attr self String | ||||||||||
Font description as a string. | ||||||||||
cellTextFontDesc :: CellRendererTextClass self => Attr self FontDescription | ||||||||||
Font description as a Graphics.Rendering.Pango.FontDescription. | ||||||||||
cellTextFamily :: CellRendererTextClass self => Attr self String | ||||||||||
Name of the font family, e.g. Sans, Helvetica, Times, Monospace. | ||||||||||
cellTextFamilySet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Determines if cellTextFamily has an effect. | ||||||||||
cellTextStyle :: CellRendererTextClass self => Attr self FontStyle | ||||||||||
Font style (e.g. normal or italics). | ||||||||||
cellTextStyleSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextStyle tag is used, default is False. | ||||||||||
cellTextVariant :: CellRendererTextClass self => Attr self Variant | ||||||||||
Font variant (e.g. small caps). | ||||||||||
cellTextVariantSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextVariant tag is used, default is False. | ||||||||||
cellTextWeight :: CellRendererTextClass self => Attr self Int | ||||||||||
Font weight, default: 400. | ||||||||||
cellTextWeightSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextWeight tag is used, default is False. | ||||||||||
cellTextStretch :: CellRendererTextClass self => Attr self Stretch | ||||||||||
Font stretch. | ||||||||||
cellTextStretchSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextStretch tag is used, default is False. | ||||||||||
cellTextSize :: CellRendererTextClass self => Attr self Double | ||||||||||
Font size in points. | ||||||||||
cellTextSizePoints :: CellRendererTextClass self => Attr self Double | ||||||||||
Font size in points. Allowed values: >= 0 Default value: 0 | ||||||||||
cellTextSizeSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextSize tag is used, default is False. | ||||||||||
cellTextScale :: CellRendererTextClass self => Attr self Double | ||||||||||
Font scaling factor. Default is 1. | ||||||||||
cellTextScaleSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextScale tag is used, default is False. | ||||||||||
cellTextRise :: CellRendererTextClass self => Attr self Int | ||||||||||
Offset of text above the baseline (below the baseline if rise is negative). Allowed values: >= -2147483647 Default value: 0 | ||||||||||
cellTextRiseSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextRise tag is used, default is False. | ||||||||||
cellTextStrikethrough :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether to strike through the text. | ||||||||||
cellTextStrikethroughSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextStrikethrough tag is used, default is False. | ||||||||||
cellTextUnderline :: CellRendererTextClass self => Attr self Underline | ||||||||||
Style of underline for this text. | ||||||||||
cellTextUnderlineSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextUnderline tag is used, default is False. | ||||||||||
cellTextLanguage :: CellRendererTextClass self => Attr self (Maybe String) | ||||||||||
The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If you don't understand this parameter, you probably don't need it. | ||||||||||
cellTextLanguageSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextLanguage tag is used, default is False. | ||||||||||
cellTextEllipsize :: CellRendererTextClass self => Attr self EllipsizeMode | ||||||||||
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 EllipsizeNone turns off ellipsizing. See the cellTextWrapWidth property for another way of making the text fit into a given width.
| ||||||||||
cellTextEllipsizeSet :: CellRendererTextClass self => Attr self Bool | ||||||||||
Whether the cellTextEllipsize tag affects the ellipsize mode.
| ||||||||||
cellTextWidthChars :: CellRendererTextClass self => Attr self Int | ||||||||||
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.
| ||||||||||
cellTextWrapMode :: CellRendererTextClass self => Attr self LayoutWrapMode | ||||||||||
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 cellTextWrapWidth property is set.
| ||||||||||
cellTextWrapWidth :: CellRendererTextClass self => Attr self Int | ||||||||||
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.
| ||||||||||
cellTextAlignment :: CellRendererTextClass self => Attr self LayoutAlignment | ||||||||||
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 Graphics.UI.Gtk.ModelView.CellRenderer.cellXAlign property of CellRenderer, on the other hand, sets the horizontal alignment of the whole text. Default value: Graphics.Rendering.Pango.Layout.AlignLeft
| ||||||||||
Signals | ||||||||||
edited :: CellRendererTextClass self => Signal self (TreePath -> String -> IO ()) | ||||||||||
Emitted when the user finished editing a cell. Whenever editing is finished successfully, this signal is emitted which indicates that the model should be updated with the supplied value. The value is always a string which matches the cellText attribute of CellRendererText (and its derivates like CellRendererCombo).
| ||||||||||
Deprecated | ||||||||||
onEdited :: CellRendererTextClass self => self -> (TreePath -> String -> IO ()) -> IO (ConnectId self) | ||||||||||
afterEdited :: CellRendererTextClass self => self -> (TreePath -> String -> IO ()) -> IO (ConnectId self) | ||||||||||
Produced by Haddock version 2.4.2 |