Documentation
¶
Overview ¶
Package Range provides methods for working with Range object instances.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Implementation
- type Instance
- func (self Instance) AllowGreater() bool
- func (self Instance) AllowLesser() bool
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsControl() Control.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRange() Instance
- func (self Instance) ExpEdit() bool
- func (self Instance) ID() ID
- func (self Instance) MaxValue() Float.X
- func (self Instance) MinValue() Float.X
- func (self Instance) OnChanged(cb func(), flags ...Signal.Flags)
- func (self Instance) OnValueChanged(cb func(value Float.X), flags ...Signal.Flags)
- func (self Instance) Page() Float.X
- func (self Instance) Ratio() Float.X
- func (self Instance) Rounded() bool
- func (self Instance) SetAllowGreater(value bool)
- func (self Instance) SetAllowLesser(value bool)
- func (self Instance) SetExpEdit(value bool)
- func (self Instance) SetMaxValue(value Float.X)
- func (self Instance) SetMinValue(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetPage(value Float.X)
- func (self Instance) SetRatio(value Float.X)
- func (self Instance) SetRounded(value bool)
- func (self Instance) SetStep(value Float.X)
- func (self Instance) SetValue(value Float.X)
- func (self Instance) SetValueNoSignal(value Float.X)
- func (self Instance) Share(with Node.Instance)
- func (self Instance) Step() Float.X
- func (self Instance) Unshare()
- func (self Instance) Value() Float.X
- func (self Instance) Virtual(name string) reflect.Value
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsCanvasItem ¶
func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Implementation ¶
type Implementation = implementation
Implementation implements Interface with empty methods.
type Instance ¶
Range is an abstract base class for controls that represent a number within a range, using a configured [member step] and [member page] size. See e.g. [ScrollBar] and [Slider] for examples of higher-level nodes using Range.
See [Interface] for methods that can be overridden by a [Class] that extends it.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AllowGreater ¶
func (Instance) AllowLesser ¶
func (Instance) AsCanvasItem ¶
func (self Instance) AsCanvasItem() CanvasItem.Instance
func (Instance) OnValueChanged ¶
func (Instance) SetAllowGreater ¶
func (Instance) SetAllowLesser ¶
func (Instance) SetExpEdit ¶
func (Instance) SetMaxValue ¶
func (Instance) SetMinValue ¶
func (Instance) SetRounded ¶
func (Instance) SetValueNoSignal ¶
Sets the [Range]'s current value to the specified [param value], without emitting the [signal value_changed] signal.
func (Instance) Share ¶
Binds two [Range]s together along with any ranges previously grouped with either of them. When any of range's member variables change, it will share the new value with all other ranges in its group.