Class LevelBar.Builder<B extends LevelBar.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:
LevelBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theLevelBarobject.onOffsetChanged(@Nullable String detail, LevelBar.OffsetChangedCallback handler) Emitted when an offset specified on the bar changes value.setInverted(boolean inverted) Whether theGtkLeveBaris inverted.setMaxValue(double maxValue) Determines the maximum value of the interval that can be displayed by the bar.setMinValue(double minValue) Determines the minimum value of the interval that can be displayed by the bar.setMode(LevelBarMode mode) Determines the wayGtkLevelBarinterprets the value properties to draw the level fill area.setValue(double value) Determines the currently filled value of the level bar.Methods 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 theLevelBarobject. This will callGObject.withProperties(Type, String[], Value[])to create a new GObject instance, which is then cast toLevelBar.- Overrides:
buildin classWidget.Builder<B extends LevelBar.Builder<B>>- Returns:
- a new instance of
LevelBarwith the properties that were set in the Builder object.
-
setInverted
Whether the
GtkLeveBaris inverted.Level bars normally grow from top to bottom or left to right. Inverted level bars grow in the opposite direction.
- Parameters:
inverted- the value for theinvertedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMaxValue
Determines the maximum value of the interval that can be displayed by the bar.- Parameters:
maxValue- the value for themax-valueproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMinValue
Determines the minimum value of the interval that can be displayed by the bar.- Parameters:
minValue- the value for themin-valueproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMode
Determines the way
GtkLevelBarinterprets the value properties to draw the level fill area.Specifically, when the value is
LevelBarMode.CONTINUOUS,GtkLevelBarwill draw a single block representing the current value in that area; when the value isLevelBarMode.DISCRETE, the widget will draw a succession of separate blocks filling the draw area, with the number of blocks being equal to the units separating the integral roundings ofGtk.LevelBar:min-valueandGtk.LevelBar:max-value.- Parameters:
mode- the value for themodeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setValue
Determines the currently filled value of the level bar.- Parameters:
value- the value for thevalueproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onOffsetChanged
Emitted when an offset specified on the bar changes value.
This typically is the result of a
LevelBar.addOffsetValue(String, double)call.The signal supports detailed connections; you can connect to the detailed signal "changed::x" in order to only receive callbacks when the value of offset "x" changes.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-