mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
add uint32 to Chex function support
This commit is contained in:
parent
43e1594f59
commit
fff1d95fcf
1 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue