2015-10-24 18:18:24 +03:00
|
|
|
package gui
|
|
|
|
|
2015-12-06 02:56:16 +03:00
|
|
|
//#include "gui.h"
|
2015-10-24 18:18:24 +03:00
|
|
|
import "C"
|
|
|
|
import (
|
2015-12-15 04:01:51 +03:00
|
|
|
"github.com/therecipe/qt"
|
2015-10-24 18:18:24 +03:00
|
|
|
"github.com/therecipe/qt/core"
|
|
|
|
"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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::QPainterPathStroker")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::QPainterPathStroker")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::capStyle")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::curveThreshold")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::dashOffset")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::joinStyle")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::miterLimit")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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) {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::setCapStyle")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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) {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::setCurveThreshold")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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) {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::setDashOffset")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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) {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::setDashPattern")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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) {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::setJoinStyle")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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) {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::setMiterLimit")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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) {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::setWidth")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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 {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::width")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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() {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QPainterPathStroker::~QPainterPathStroker")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|