Range

package
v0.0.0-...-ae8aae0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 21 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 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.

%!(EXTRA string=Range)

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) 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())

func (Instance) OnValueChanged

func (self Instance) OnValueChanged(cb func(value Float.X))

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) 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 [1]gdclass.Node)

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) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

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