cutego/gui/qpainterpathstroker.go

237 lines
5.3 KiB
Go
Raw Normal View History

2015-10-24 18:18:24 +03:00
package gui
//#include "gui.h"
2015-10-24 18:18:24 +03:00
import "C"
import (
"github.com/therecipe/qt/core"
"log"
2015-10-24 18:18:24 +03:00
"unsafe"
)
type QPainterPathStroker struct {
ptr unsafe.Pointer
}
2015-11-09 20:23:42 +03:00
type QPainterPathStroker_ITF interface {
QPainterPathStroker_PTR() *QPainterPathStroker
2015-10-24 18:18:24 +03:00
}
func (p *QPainterPathStroker) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPainterPathStroker) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
2015-11-09 20:23:42 +03:00
func PointerFromQPainterPathStroker(ptr QPainterPathStroker_ITF) unsafe.Pointer {
2015-10-24 18:18:24 +03:00
if ptr != nil {
2015-11-09 20:23:42 +03:00
return ptr.QPainterPathStroker_PTR().Pointer()
2015-10-24 18:18:24 +03:00
}
return nil
}
2015-11-09 20:23:42 +03:00
func NewQPainterPathStrokerFromPointer(ptr unsafe.Pointer) *QPainterPathStroker {
2015-10-24 18:18:24 +03:00
var n = new(QPainterPathStroker)
n.SetPointer(ptr)
return n
}
2015-11-09 20:23:42 +03:00
func (ptr *QPainterPathStroker) QPainterPathStroker_PTR() *QPainterPathStroker {
2015-10-24 18:18:24 +03:00
return ptr
}
func NewQPainterPathStroker() *QPainterPathStroker {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::QPainterPathStroker")
}
}()
2015-11-09 20:23:42 +03:00
return NewQPainterPathStrokerFromPointer(C.QPainterPathStroker_NewQPainterPathStroker())
2015-10-24 18:18:24 +03:00
}
2015-11-09 20:23:42 +03:00
func NewQPainterPathStroker2(pen QPen_ITF) *QPainterPathStroker {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::QPainterPathStroker")
}
}()
2015-11-09 20:23:42 +03:00
return NewQPainterPathStrokerFromPointer(C.QPainterPathStroker_NewQPainterPathStroker2(PointerFromQPen(pen)))
2015-10-24 18:18:24 +03:00
}
func (ptr *QPainterPathStroker) CapStyle() core.Qt__PenCapStyle {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::capStyle")
}
}()
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return core.Qt__PenCapStyle(C.QPainterPathStroker_CapStyle(ptr.Pointer()))
}
return 0
}
func (ptr *QPainterPathStroker) CurveThreshold() float64 {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::curveThreshold")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
return float64(C.QPainterPathStroker_CurveThreshold(ptr.Pointer()))
}
return 0
}
func (ptr *QPainterPathStroker) DashOffset() float64 {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::dashOffset")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
return float64(C.QPainterPathStroker_DashOffset(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPainterPathStroker) JoinStyle() core.Qt__PenJoinStyle {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::joinStyle")
}
}()
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return core.Qt__PenJoinStyle(C.QPainterPathStroker_JoinStyle(ptr.Pointer()))
}
return 0
}
func (ptr *QPainterPathStroker) MiterLimit() float64 {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::miterLimit")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
return float64(C.QPainterPathStroker_MiterLimit(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPainterPathStroker) SetCapStyle(style core.Qt__PenCapStyle) {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::setCapStyle")
}
}()
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QPainterPathStroker_SetCapStyle(ptr.Pointer(), C.int(style))
}
}
func (ptr *QPainterPathStroker) SetCurveThreshold(threshold float64) {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::setCurveThreshold")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
C.QPainterPathStroker_SetCurveThreshold(ptr.Pointer(), C.double(threshold))
}
}
func (ptr *QPainterPathStroker) SetDashOffset(offset float64) {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::setDashOffset")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
C.QPainterPathStroker_SetDashOffset(ptr.Pointer(), C.double(offset))
2015-10-24 18:18:24 +03:00
}
}
func (ptr *QPainterPathStroker) SetDashPattern(style core.Qt__PenStyle) {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::setDashPattern")
}
}()
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QPainterPathStroker_SetDashPattern(ptr.Pointer(), C.int(style))
2015-10-24 18:18:24 +03:00
}
}
func (ptr *QPainterPathStroker) SetJoinStyle(style core.Qt__PenJoinStyle) {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::setJoinStyle")
}
}()
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QPainterPathStroker_SetJoinStyle(ptr.Pointer(), C.int(style))
}
}
func (ptr *QPainterPathStroker) SetMiterLimit(limit float64) {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::setMiterLimit")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
C.QPainterPathStroker_SetMiterLimit(ptr.Pointer(), C.double(limit))
2015-10-24 18:18:24 +03:00
}
}
2015-11-09 20:23:42 +03:00
func (ptr *QPainterPathStroker) SetWidth(width float64) {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::setWidth")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
C.QPainterPathStroker_SetWidth(ptr.Pointer(), C.double(width))
}
}
func (ptr *QPainterPathStroker) Width() float64 {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::width")
}
}()
2015-11-09 20:23:42 +03:00
if ptr.Pointer() != nil {
return float64(C.QPainterPathStroker_Width(ptr.Pointer()))
}
return 0
}
2015-10-24 18:18:24 +03:00
func (ptr *QPainterPathStroker) DestroyQPainterPathStroker() {
defer func() {
if recover() != nil {
log.Println("recovered in QPainterPathStroker::~QPainterPathStroker")
}
}()
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QPainterPathStroker_DestroyQPainterPathStroker(ptr.Pointer())
2015-10-24 18:18:24 +03:00
}
}