public abstract class Range extends Widget implements Orientable
Modifier and Type | Class and Description |
---|---|
static interface |
Range.ValueChanged
The value showing in the Range instance has changed.
|
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.QueryTooltip, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent
Modifier and Type | Method and Description |
---|---|
void |
connect(Range.ValueChanged handler)
Connect a
Range.ValueChanged handler to this Range
instance. |
boolean |
getInverted()
Get whether or not the rate scale of this Range is inverted; see
setInverted() . |
Orientation |
getOrientation()
Get the orientation of this Orientable.
|
double |
getValue()
Retrieve the value currently indicated by this Range instance.
|
void |
setInverted(boolean setting)
Inverts the way the value changes when moving the slider.
|
void |
setOrientation(Orientation orientation)
Set the orientation of this Orientable.
|
void |
setValue(double value)
Change the value showingin the Range.
|
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, destroy, getAllocatedHeight, getAllocatedWidth, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getPreferredHeightForWidthMinimum, getPreferredHeightForWidthNatural, getPreferredHeightMinimum, getPreferredHeightNatural, getPreferredWidthForHeightMinimum, getPreferredWidthForHeightNatural, getPreferredWidthMinimum, getPreferredWidthNatural, getRequestMode, getRequisition, getSensitive, getStyleContext, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, overrideBackground, overrideColor, overrideFont, queueDraw, queueDrawArea, realize, setAlignHorizontal, setAlignVertical, setCanDefault, setCanFocus, setEvents, setExpandHorizontal, setExpandVertical, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll
public void connect(Range.ValueChanged handler)
Range.ValueChanged
handler to this Range
instance.public boolean getInverted()
setInverted()
.public Orientation getOrientation()
Orientable
getOrientation
in interface Orientable
public double getValue()
public void setInverted(boolean setting)
Ranges normally move from lower to higher values as the slider moves from top to bottom or left to right. Inverted ranges have higher values at the top or on the right rather than on the bottom or left.
public void setOrientation(Orientation orientation)
Orientable
setOrientation
in interface Orientable
public void setValue(double value)
Range.ValueChanged
signal will be emitted if the new value
is different from the present setting.