Documentation ¶
Overview ¶
Package ColorPickerButton provides methods for working with ColorPickerButton object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsBaseButton() BaseButton.Instance
- func (self Instance) AsButton() Button.Instance
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsColorPickerButton() Instance
- func (self Instance) AsControl() Control.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) Color() Color.RGBA
- func (self Instance) EditAlpha() bool
- func (self Instance) GetPicker() [1]gdclass.ColorPicker
- func (self Instance) GetPopup() [1]gdclass.PopupPanel
- func (self Instance) OnColorChanged(cb func(color Color.RGBA))
- func (self Instance) OnPickerCreated(cb func())
- func (self Instance) OnPopupClosed(cb func())
- func (self Instance) SetColor(value Color.RGBA)
- func (self Instance) SetEditAlpha(value bool)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
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 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 (Instance) AsBaseButton ¶
func (self Instance) AsBaseButton() BaseButton.Instance
func (Instance) AsCanvasItem ¶
func (self Instance) AsCanvasItem() CanvasItem.Instance
func (Instance) AsColorPickerButton ¶
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 (Instance) OnPickerCreated ¶
func (self Instance) OnPickerCreated(cb func())
func (Instance) OnPopupClosed ¶
func (self Instance) OnPopupClosed(cb func())