ColorPickerButton

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: 23 Imported by: 0

Documentation

Overview

Package ColorPickerButton provides methods for working with ColorPickerButton 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
	AsColorPickerButton() Instance
}

type Instance

type Instance [1]gdclass.ColorPickerButton

Encapsulates a [ColorPicker], making it accessible by pressing a button. Pressing the button will toggle the [ColorPicker]'s visibility. See also [BaseButton] which contains common properties and methods associated with this node. [b]Note:[/b] By default, the button may not be wide enough for the color preview swatch to be visible. Make sure to set [member Control.custom_minimum_size] to a big enough value to give the button enough space.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsBaseButton

func (self Instance) AsBaseButton() BaseButton.Instance

func (Instance) AsButton

func (self Instance) AsButton() Button.Instance

func (Instance) AsCanvasItem

func (self Instance) AsCanvasItem() CanvasItem.Instance

func (Instance) AsColorPickerButton

func (self Instance) AsColorPickerButton() 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) Color

func (self Instance) Color() Color.RGBA

func (Instance) EditAlpha

func (self Instance) EditAlpha() bool

func (Instance) GetPicker

func (self Instance) GetPicker() [1]gdclass.ColorPicker

Returns the [ColorPicker] that this node toggles. [b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member CanvasItem.visible] property.

func (Instance) GetPopup

func (self Instance) GetPopup() [1]gdclass.PopupPanel

Returns the control's [PopupPanel] which allows you to connect to popup signals. This allows you to handle events when the ColorPicker is shown or hidden. [b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member Window.visible] property.

func (Instance) OnColorChanged

func (self Instance) OnColorChanged(cb func(color Color.RGBA))

func (Instance) OnPickerCreated

func (self Instance) OnPickerCreated(cb func())

func (Instance) OnPopupClosed

func (self Instance) OnPopupClosed(cb func())

func (Instance) SetColor

func (self Instance) SetColor(value Color.RGBA)

func (Instance) SetEditAlpha

func (self Instance) SetEditAlpha(value bool)

func (*Instance) UnsafePointer

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

func (Instance) Virtual

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

Jump to

Keyboard shortcuts

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