2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qdrawutil.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QDrawBorderPixmap__DrawingHint int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueTopLeft QDrawBorderPixmap__DrawingHint = 1
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueTop QDrawBorderPixmap__DrawingHint = 2
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueTopRight QDrawBorderPixmap__DrawingHint = 4
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueLeft QDrawBorderPixmap__DrawingHint = 8
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueCenter QDrawBorderPixmap__DrawingHint = 16
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueRight QDrawBorderPixmap__DrawingHint = 32
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueBottomLeft QDrawBorderPixmap__DrawingHint = 64
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueBottom QDrawBorderPixmap__DrawingHint = 128
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueBottomRight QDrawBorderPixmap__DrawingHint = 256
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueCorners QDrawBorderPixmap__DrawingHint = 325
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueEdges QDrawBorderPixmap__DrawingHint = 170
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueFrame QDrawBorderPixmap__DrawingHint = 495
|
|
|
|
QDrawBorderPixmap__DrawingHint__OpaqueAll QDrawBorderPixmap__DrawingHint = 511
|
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTileRules struct {
|
|
|
|
h *C.QTileRules
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTileRules) cPointer() *C.QTileRules {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQTileRules(h *C.QTileRules) *QTileRules {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QTileRules{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQTileRules_U(h unsafe.Pointer) *QTileRules {
|
|
|
|
return newQTileRules((*C.QTileRules)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTileRules constructs a new QTileRules object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQTileRules(horizontalRule TileRule, verticalRule TileRule) *QTileRules {
|
2024-08-29 07:01:51 +00:00
|
|
|
ret := C.QTileRules_new((C.uintptr_t)(horizontalRule), (C.uintptr_t)(verticalRule))
|
|
|
|
return newQTileRules(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTileRules2 constructs a new QTileRules object.
|
|
|
|
func NewQTileRules2() *QTileRules {
|
|
|
|
ret := C.QTileRules_new2()
|
|
|
|
return newQTileRules(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTileRules3 constructs a new QTileRules object.
|
|
|
|
func NewQTileRules3(param1 *QTileRules) *QTileRules {
|
|
|
|
ret := C.QTileRules_new3(param1.cPointer())
|
|
|
|
return newQTileRules(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTileRules4 constructs a new QTileRules object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQTileRules4(rule TileRule) *QTileRules {
|
2024-08-29 07:01:51 +00:00
|
|
|
ret := C.QTileRules_new4((C.uintptr_t)(rule))
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQTileRules(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTileRules) Delete() {
|
|
|
|
C.QTileRules_Delete(this.h)
|
|
|
|
}
|