add uint32 to Chex function support

This commit is contained in:
vcaesar 2019-03-28 12:57:46 -04:00
parent 43e1594f59
commit fff1d95fcf

View File

@ -146,6 +146,12 @@ func ToMMRGBHex(hex CHex) C.MMRGBHex {
return C.MMRGBHex(hex)
}
// UintToHex trans uint32 to robotgo.CHex
func UintToHex(u uint32) CHex {
hex := U32ToHex(C.uint32_t(u))
return CHex(hex)
}
// U32ToHex trans C.uint32_t to C.MMRGBHex
func U32ToHex(hex C.uint32_t) C.MMRGBHex {
return C.MMRGBHex(hex)