Class CellView.Builder<B extends CellView.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>, Orientable.Builder<B>, BuilderInterface
- Enclosing class:
CellView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theCellViewobject.setCellArea(CellArea cellArea) TheGtkCellArearendering cellssetCellAreaContext(CellAreaContext cellAreaContext) TheGtkCellAreaContextused to compute the geometry of the cell view.setDrawSensitive(boolean drawSensitive) Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive).setFitModel(boolean fitModel) Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn't change when different items are selected).The model for cell viewMethods inherited from class Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class GObject.Builder
onNotifyMethods inherited from class Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Accessible.Builder
setAccessibleRoleMethods inherited from interface BuilderInterface
addBuilderProperty, connect, connect, getArenaMethods inherited from interface Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theCellViewobject. This will callGObject.withProperties(Type, String[], Value[])to create a new GObject instance, which is then cast toCellView.- Overrides:
buildin classWidget.Builder<B extends CellView.Builder<B>>- Returns:
- a new instance of
CellViewwith the properties that were set in the Builder object.
-
setCellArea
The
GtkCellArearendering cellsIf no area is specified when creating the cell view with gtk_cell_view_new_with_context() a horizontally oriented
GtkCellAreaBox will be used.since 3.0
- Parameters:
cellArea- the value for thecell-areaproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setCellAreaContext
The
GtkCellAreaContextused to compute the geometry of the cell view.A group of cell views can be assigned the same context in order to ensure the sizes and cell alignments match across all the views with the same context.
GtkComboBoxmenus uses this to assign the same context to all cell views in the menu items for a single menu (each submenu creates its own context since the size of each submenu does not depend on parent or sibling menus).since 3.0
- Parameters:
cellAreaContext- the value for thecell-area-contextproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDrawSensitive
Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive).
since 3.0
- Parameters:
drawSensitive- the value for thedraw-sensitiveproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFitModel
Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn't change when different items are selected).
since 3.0
- Parameters:
fitModel- the value for thefit-modelproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModel
-