Add new functions

This commit is contained in:
JupiterRider 2023-05-09 20:15:53 +02:00
parent 0fdd3be307
commit 896586af0d
4 changed files with 66 additions and 1 deletions

View file

@ -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)