Add new functions
This commit is contained in:
parent
0fdd3be307
commit
896586af0d
4 changed files with 66 additions and 1 deletions
|
@ -157,12 +157,19 @@ func RestoreWindow() {
|
|||
C.RestoreWindow()
|
||||
}
|
||||
|
||||
// SetWindowIcon - Set icon for window (only PLATFORM_DESKTOP)
|
||||
// SetWindowIcon - Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)
|
||||
func SetWindowIcon(image Image) {
|
||||
cimage := image.cptr()
|
||||
C.SetWindowIcon(*cimage)
|
||||
}
|
||||
|
||||
// SetWindowIcons - Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)
|
||||
func SetWindowIcons(images []Image, count int32) {
|
||||
cimages := (&images[0]).cptr()
|
||||
cimagesCount := C.int(count)
|
||||
C.SetWindowIcons(cimages, cimagesCount)
|
||||
}
|
||||
|
||||
// SetWindowTitle - Set title for window (only PLATFORM_DESKTOP)
|
||||
func SetWindowTitle(title string) {
|
||||
ctitle := C.CString(title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue