Range

package
v0.0.0-...-5dcec5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package Range provides methods for working with Range object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsRange() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

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

func (*Extension[T]) AsControl

func (self *Extension[T]) AsControl() Control.Instance

func (*Extension[T]) AsNode

func (self *Extension[T]) AsNode() Node.Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRange

func (self *Extension[T]) AsRange() Instance

type ID

type ID Object.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.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Implementation

type Implementation = implementation

Implementation implements Interface with empty methods.

type Instance

type Instance [1]gdclass.Range

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 New

func New() Instance

func (Instance) AllowGreater

func (self Instance) AllowGreater() bool

func (Instance) AllowLesser

func (self Instance) AllowLesser() bool

func (Instance) AsCanvasItem

func (self Instance) AsCanvasItem() CanvasItem.Instance

func (Instance) AsControl

func (self Instance) AsControl() Control.Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRange

func (self Instance) AsRange() Instance

func (Instance) ExpEdit

func (self Instance) ExpEdit() bool

func (Instance) ID

func (self Instance) ID() ID

func (Instance) MaxValue

func (self Instance) MaxValue() Float.X

func (Instance) MinValue

func (self Instance) MinValue() Float.X

func (Instance) OnChanged

func (self Instance) OnChanged(cb func(), flags ...Signal.Flags)

func (Instance) OnValueChanged

func (self Instance) OnValueChanged(cb func(value Float.X), flags ...Signal.Flags)

func (Instance) Page

func (self Instance) Page() Float.X

func (Instance) Ratio

func (self Instance) Ratio() Float.X

func (Instance) Rounded

func (self Instance) Rounded() bool

func (Instance) SetAllowGreater

func (self Instance) SetAllowGreater(value bool)

func (Instance) SetAllowLesser

func (self Instance) SetAllowLesser(value bool)

func (Instance) SetExpEdit

func (self Instance) SetExpEdit(value bool)

func (Instance) SetMaxValue

func (self Instance) SetMaxValue(value Float.X)

func (Instance) SetMinValue

func (self Instance) SetMinValue(value Float.X)

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetPage

func (self Instance) SetPage(value Float.X)

func (Instance) SetRatio

func (self Instance) SetRatio(value Float.X)

func (Instance) SetRounded

func (self Instance) SetRounded(value bool)

func (Instance) SetStep

func (self Instance) SetStep(value Float.X)

func (Instance) SetValue

func (self Instance) SetValue(value Float.X)

func (Instance) SetValueNoSignal

func (self Instance) SetValueNoSignal(value Float.X)

Sets the [Range]'s current value to the specified [param value], without emitting the [signal value_changed] signal.

func (Instance) Share

func (self Instance) Share(with Node.Instance)

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.

func (Instance) Step

func (self Instance) Step() Float.X

func (Instance) Unshare

func (self Instance) Unshare()

Stops the [Range] from sharing its member variables with any other.

func (Instance) Value

func (self Instance) Value() Float.X

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

type Interface

type Interface interface {
	//Called when the [Range]'s value is changed (following the same conditions as [signal value_changed]).
	ValueChanged(new_value Float.X)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL