Struct gtk4::CellRendererComboBuilder [−][src]
pub struct CellRendererComboBuilder { /* fields omitted */ }
Expand description
A builder-pattern type to construct CellRendererCombo
objects.
Implementations
Create a new CellRendererComboBuilder
.
Build the CellRendererCombo
.
If true
, the cell renderer will include an entry and allow to enter
values other than the ones in the popup list.
Holds a tree model containing the possible values for the combo box. Use the text_column property to specify the column holding the values.
Specifies the model column which holds the possible values for the combo box.
Note that this refers to the model specified in the model property, not the model backing the tree view to which this cell renderer is attached.
CellRendererCombo
automatically adds a text cell renderer for
this column to its combo box.
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 “xalign” property of CellRenderer
,
on the other hand, sets the horizontal alignment of the whole text.
Background color as a gdk::RGBA
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
pango::EllipsizeMode::None
turns off ellipsizing. See the wrap-width property
for another way of making the text fit into a given width.
Foreground color as a gdk::RGBA
The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
For cell renderers that ellipsize or wrap text; this property
controls the maximum reported width of the cell. The
cell should not receive any greater allocation unless it is
set to expand in its CellLayout
and all of the cell’s siblings
have received their natural width.
The text that will be displayed in the CellRenderer
if
GtkCellRendererText:editable
is true
and the cell is empty.
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.
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 wrap-width property is set.
Specifies the minimum 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.
Cell background as a gdk::RGBA
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CellRendererComboBuilder
impl !Send for CellRendererComboBuilder
impl !Sync for CellRendererComboBuilder
impl Unpin for CellRendererComboBuilder
impl UnwindSafe for CellRendererComboBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more