struct ImGui::ImColor

Overview

struct ImColor

Included Modules

Defined in:

obj.cr
types.cr

Constructors

Instance Method Summary

Instance methods inherited from module ImGui::StructType

to_unsafe to_unsafe

Constructor Detail

def self.new(r : Float32, g : Float32, b : Float32, a : Float32 = 1.0) : ImColor #

[View source]
def self.new(r : Int32, g : Int32, b : Int32, a : Int32 = 255) : ImColor #

[View source]
def self.new(col : ImVec4) : ImColor #

[View source]
def self.new(rgba : UInt32) : ImColor #

[View source]
def self.new : ImColor #

[View source]

Instance Method Detail

def hsv(h : Float32, s : Float32, v : Float32, a : Float32 = 1.0) : ImGui::ImColor #

[View source]
def set_hsv(h : Float32, s : Float32, v : Float32, a : Float32 = 1.0) : Void #

[View source]
def value : ImVec4 #

[View source]
def value=(value : ImVec4) #

[View source]