mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
add uint32 to Chex function support
This commit is contained in:
parent
43e1594f59
commit
fff1d95fcf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user