mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 21:25:16 +03:00
53 lines
939 B
Go
Executable file
53 lines
939 B
Go
Executable file
package gui
|
|
|
|
//#include "qpixmapcache.h"
|
|
import "C"
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
type QPixmapCache struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPixmapCache_ITF interface {
|
|
QPixmapCache_PTR() *QPixmapCache
|
|
}
|
|
|
|
func (p *QPixmapCache) Pointer() unsafe.Pointer {
|
|
return p.ptr
|
|
}
|
|
|
|
func (p *QPixmapCache) SetPointer(ptr unsafe.Pointer) {
|
|
p.ptr = ptr
|
|
}
|
|
|
|
func PointerFromQPixmapCache(ptr QPixmapCache_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPixmapCache_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPixmapCacheFromPointer(ptr unsafe.Pointer) *QPixmapCache {
|
|
var n = new(QPixmapCache)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
func (ptr *QPixmapCache) QPixmapCache_PTR() *QPixmapCache {
|
|
return ptr
|
|
}
|
|
|
|
func QPixmapCache_CacheLimit() int {
|
|
return int(C.QPixmapCache_QPixmapCache_CacheLimit())
|
|
}
|
|
|
|
func QPixmapCache_Clear() {
|
|
C.QPixmapCache_QPixmapCache_Clear()
|
|
}
|
|
|
|
func QPixmapCache_SetCacheLimit(n int) {
|
|
C.QPixmapCache_QPixmapCache_SetCacheLimit(C.int(n))
|
|
}
|