class UIng::ColorButton

Defined in:

uing/color_button.cr
uing/crimage.cr

Constructors

Instance Method Summary

Instance methods inherited from class UIng::Control

delete(child : Control) delete, destroy : Nil destroy, detach : self detach, disable : Nil disable, enable : Nil enable, enabled? : Bool enabled?, enabled_to_user? : Bool enabled_to_user?, handle : Pointer(Void) handle, hide : Nil hide, parent : Control | Nil parent, released? : Bool released?, set_minimum_size(width : Int32, height : Int32) : Nil set_minimum_size, show : Nil show, to_unsafe to_unsafe, tooltip=(tooltip : String) : Nil
tooltip=(tooltip : Nil) : Nil
tooltip=
, toplevel? : Bool toplevel?, visible? : Bool visible?

Macros inherited from module UIng::BlockConstructor

block_constructor block_constructor

Constructor Detail

def self.new(*args, &) #

[View source]
def self.new(*args, **kwargs, &) #

[View source]
def self.new #

[View source]

Instance Method Detail

def clear_on_changed : Nil #

Clears the callback; equivalent to #on_changed(nil).


[View source]
def color : Tuple(Float64, Float64, Float64, Float64) #

[View source]
def color=(color : CrImage::Color::Color) : Nil #

Sets a CrImage color while leaving the numeric RGBA getter unchanged.


[View source]
def color_crimage : CrImage::Color::NRGBA #

[View source]
def on_changed(&block : Float64, Float64, Float64, Float64 -> Nil) : Nil #

[View source]
def on_changed(callback : Nil) : Nil #

[View source]
def set_color(r : Number, g : Number, b : Number, a : Number) : Nil #

[View source]
def set_color(color : CrImage::Color::Color) : Nil #

[View source]
def to_unsafe #

[View source]