gi-gtk-3.0.17: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.CellRendererText

Contents

Description

A CellRendererText renders a given text in its cell, using the font, color and style information provided by its properties. The text will be ellipsized if it is too long and the CellRendererText:ellipsize property allows it.

If the CellRenderer:mode is CellRendererModeEditable, the CellRendererText allows to edit its text using an entry.

Synopsis

Exported types

Methods

new

cellRendererTextNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m CellRendererText

Returns: the new cell renderer

Creates a new CellRendererText. Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, with TreeViewColumn, you can bind a property to a value in a TreeModel. For example, you can bind the “text” property on the cell renderer to a string value in the model, thus rendering a different string in each row of the TreeView

setFixedHeightFromFont

cellRendererTextSetFixedHeightFromFont Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellRendererText a) 
=> a

renderer: A CellRendererText

-> Int32

numberOfRows: Number of rows of text each cell renderer is allocated, or -1

-> m () 

Sets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is unflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If numberOfRows is -1, then the fixed height is unset, and the height is determined by the properties again.

Properties

alignSet

alignment

attributes

background

backgroundGdk

backgroundRgba

backgroundSet

editable

editableSet

ellipsize

ellipsizeSet

family

familySet

font

fontDesc

foreground

foregroundGdk

foregroundRgba

foregroundSet

language

languageSet

markup

maxWidthChars

placeholderText

rise

riseSet

scale

scaleSet

singleParagraphMode

size

sizePoints

sizeSet

stretch

stretchSet

strikethrough

strikethroughSet

style

styleSet

text

underline

underlineSet

variant

variantSet

weight

weightSet

widthChars

wrapMode

wrapWidth

Signals

edited