Added 'SetStyleColor' to make it simpler to set a color
This commit is contained in:
parent
0e83add8be
commit
c0b8c09edc
1 changed files with 5 additions and 0 deletions
|
@ -382,6 +382,11 @@ func SetStyleProperty(guiProperty Property, value int64) {
|
||||||
style[guiProperty] = value
|
style[guiProperty] = value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetStyleColor - Set one style property to a color value
|
||||||
|
func SetStyleColor(guiProperty Property, value rl.Color) {
|
||||||
|
style[guiProperty] = int64(rl.ColorToInt(value))
|
||||||
|
}
|
||||||
|
|
||||||
// GetStyleProperty - Get one style property
|
// GetStyleProperty - Get one style property
|
||||||
func GetStyleProperty(guiProperty Property) int64 {
|
func GetStyleProperty(guiProperty Property) int64 {
|
||||||
return style[int(guiProperty)]
|
return style[int(guiProperty)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue