2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qtextformat.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QTextLength__Type int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextLength__VariableLength QTextLength__Type = 0
|
|
|
|
QTextLength__FixedLength QTextLength__Type = 1
|
|
|
|
QTextLength__PercentageLength QTextLength__Type = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextFormat__FormatType int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextFormat__InvalidFormat QTextFormat__FormatType = -1
|
|
|
|
QTextFormat__BlockFormat QTextFormat__FormatType = 1
|
|
|
|
QTextFormat__CharFormat QTextFormat__FormatType = 2
|
|
|
|
QTextFormat__ListFormat QTextFormat__FormatType = 3
|
|
|
|
QTextFormat__TableFormat QTextFormat__FormatType = 4
|
|
|
|
QTextFormat__FrameFormat QTextFormat__FormatType = 5
|
|
|
|
QTextFormat__UserFormat QTextFormat__FormatType = 100
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextFormat__Property int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextFormat__ObjectIndex QTextFormat__Property = 0
|
|
|
|
QTextFormat__CssFloat QTextFormat__Property = 2048
|
|
|
|
QTextFormat__LayoutDirection QTextFormat__Property = 2049
|
|
|
|
QTextFormat__OutlinePen QTextFormat__Property = 2064
|
|
|
|
QTextFormat__BackgroundBrush QTextFormat__Property = 2080
|
|
|
|
QTextFormat__ForegroundBrush QTextFormat__Property = 2081
|
|
|
|
QTextFormat__BackgroundImageUrl QTextFormat__Property = 2083
|
|
|
|
QTextFormat__BlockAlignment QTextFormat__Property = 4112
|
|
|
|
QTextFormat__BlockTopMargin QTextFormat__Property = 4144
|
|
|
|
QTextFormat__BlockBottomMargin QTextFormat__Property = 4145
|
|
|
|
QTextFormat__BlockLeftMargin QTextFormat__Property = 4146
|
|
|
|
QTextFormat__BlockRightMargin QTextFormat__Property = 4147
|
|
|
|
QTextFormat__TextIndent QTextFormat__Property = 4148
|
|
|
|
QTextFormat__TabPositions QTextFormat__Property = 4149
|
|
|
|
QTextFormat__BlockIndent QTextFormat__Property = 4160
|
|
|
|
QTextFormat__LineHeight QTextFormat__Property = 4168
|
|
|
|
QTextFormat__LineHeightType QTextFormat__Property = 4169
|
|
|
|
QTextFormat__BlockNonBreakableLines QTextFormat__Property = 4176
|
|
|
|
QTextFormat__BlockTrailingHorizontalRulerWidth QTextFormat__Property = 4192
|
|
|
|
QTextFormat__HeadingLevel QTextFormat__Property = 4208
|
|
|
|
QTextFormat__BlockQuoteLevel QTextFormat__Property = 4224
|
|
|
|
QTextFormat__BlockCodeLanguage QTextFormat__Property = 4240
|
|
|
|
QTextFormat__BlockCodeFence QTextFormat__Property = 4241
|
|
|
|
QTextFormat__BlockMarker QTextFormat__Property = 4256
|
|
|
|
QTextFormat__FirstFontProperty QTextFormat__Property = 8160
|
|
|
|
QTextFormat__FontCapitalization QTextFormat__Property = 8160
|
|
|
|
QTextFormat__FontLetterSpacingType QTextFormat__Property = 8243
|
|
|
|
QTextFormat__FontLetterSpacing QTextFormat__Property = 8161
|
|
|
|
QTextFormat__FontWordSpacing QTextFormat__Property = 8162
|
|
|
|
QTextFormat__FontStretch QTextFormat__Property = 8244
|
|
|
|
QTextFormat__FontStyleHint QTextFormat__Property = 8163
|
|
|
|
QTextFormat__FontStyleStrategy QTextFormat__Property = 8164
|
|
|
|
QTextFormat__FontKerning QTextFormat__Property = 8165
|
|
|
|
QTextFormat__FontHintingPreference QTextFormat__Property = 8166
|
|
|
|
QTextFormat__FontFamilies QTextFormat__Property = 8167
|
|
|
|
QTextFormat__FontStyleName QTextFormat__Property = 8168
|
|
|
|
QTextFormat__FontFamily QTextFormat__Property = 8192
|
|
|
|
QTextFormat__FontPointSize QTextFormat__Property = 8193
|
|
|
|
QTextFormat__FontSizeAdjustment QTextFormat__Property = 8194
|
|
|
|
QTextFormat__FontSizeIncrement QTextFormat__Property = 8194
|
|
|
|
QTextFormat__FontWeight QTextFormat__Property = 8195
|
|
|
|
QTextFormat__FontItalic QTextFormat__Property = 8196
|
|
|
|
QTextFormat__FontUnderline QTextFormat__Property = 8197
|
|
|
|
QTextFormat__FontOverline QTextFormat__Property = 8198
|
|
|
|
QTextFormat__FontStrikeOut QTextFormat__Property = 8199
|
|
|
|
QTextFormat__FontFixedPitch QTextFormat__Property = 8200
|
|
|
|
QTextFormat__FontPixelSize QTextFormat__Property = 8201
|
|
|
|
QTextFormat__LastFontProperty QTextFormat__Property = 8201
|
|
|
|
QTextFormat__TextUnderlineColor QTextFormat__Property = 8208
|
|
|
|
QTextFormat__TextVerticalAlignment QTextFormat__Property = 8225
|
|
|
|
QTextFormat__TextOutline QTextFormat__Property = 8226
|
|
|
|
QTextFormat__TextUnderlineStyle QTextFormat__Property = 8227
|
|
|
|
QTextFormat__TextToolTip QTextFormat__Property = 8228
|
|
|
|
QTextFormat__IsAnchor QTextFormat__Property = 8240
|
|
|
|
QTextFormat__AnchorHref QTextFormat__Property = 8241
|
|
|
|
QTextFormat__AnchorName QTextFormat__Property = 8242
|
|
|
|
QTextFormat__ObjectType QTextFormat__Property = 12032
|
|
|
|
QTextFormat__ListStyle QTextFormat__Property = 12288
|
|
|
|
QTextFormat__ListIndent QTextFormat__Property = 12289
|
|
|
|
QTextFormat__ListNumberPrefix QTextFormat__Property = 12290
|
|
|
|
QTextFormat__ListNumberSuffix QTextFormat__Property = 12291
|
|
|
|
QTextFormat__FrameBorder QTextFormat__Property = 16384
|
|
|
|
QTextFormat__FrameMargin QTextFormat__Property = 16385
|
|
|
|
QTextFormat__FramePadding QTextFormat__Property = 16386
|
|
|
|
QTextFormat__FrameWidth QTextFormat__Property = 16387
|
|
|
|
QTextFormat__FrameHeight QTextFormat__Property = 16388
|
|
|
|
QTextFormat__FrameTopMargin QTextFormat__Property = 16389
|
|
|
|
QTextFormat__FrameBottomMargin QTextFormat__Property = 16390
|
|
|
|
QTextFormat__FrameLeftMargin QTextFormat__Property = 16391
|
|
|
|
QTextFormat__FrameRightMargin QTextFormat__Property = 16392
|
|
|
|
QTextFormat__FrameBorderBrush QTextFormat__Property = 16393
|
|
|
|
QTextFormat__FrameBorderStyle QTextFormat__Property = 16400
|
|
|
|
QTextFormat__TableColumns QTextFormat__Property = 16640
|
|
|
|
QTextFormat__TableColumnWidthConstraints QTextFormat__Property = 16641
|
|
|
|
QTextFormat__TableCellSpacing QTextFormat__Property = 16642
|
|
|
|
QTextFormat__TableCellPadding QTextFormat__Property = 16643
|
|
|
|
QTextFormat__TableHeaderRowCount QTextFormat__Property = 16644
|
|
|
|
QTextFormat__TableBorderCollapse QTextFormat__Property = 16645
|
|
|
|
QTextFormat__TableCellRowSpan QTextFormat__Property = 18448
|
|
|
|
QTextFormat__TableCellColumnSpan QTextFormat__Property = 18449
|
|
|
|
QTextFormat__TableCellTopPadding QTextFormat__Property = 18450
|
|
|
|
QTextFormat__TableCellBottomPadding QTextFormat__Property = 18451
|
|
|
|
QTextFormat__TableCellLeftPadding QTextFormat__Property = 18452
|
|
|
|
QTextFormat__TableCellRightPadding QTextFormat__Property = 18453
|
|
|
|
QTextFormat__TableCellTopBorder QTextFormat__Property = 18454
|
|
|
|
QTextFormat__TableCellBottomBorder QTextFormat__Property = 18455
|
|
|
|
QTextFormat__TableCellLeftBorder QTextFormat__Property = 18456
|
|
|
|
QTextFormat__TableCellRightBorder QTextFormat__Property = 18457
|
|
|
|
QTextFormat__TableCellTopBorderStyle QTextFormat__Property = 18458
|
|
|
|
QTextFormat__TableCellBottomBorderStyle QTextFormat__Property = 18459
|
|
|
|
QTextFormat__TableCellLeftBorderStyle QTextFormat__Property = 18460
|
|
|
|
QTextFormat__TableCellRightBorderStyle QTextFormat__Property = 18461
|
|
|
|
QTextFormat__TableCellTopBorderBrush QTextFormat__Property = 18462
|
|
|
|
QTextFormat__TableCellBottomBorderBrush QTextFormat__Property = 18463
|
|
|
|
QTextFormat__TableCellLeftBorderBrush QTextFormat__Property = 18464
|
|
|
|
QTextFormat__TableCellRightBorderBrush QTextFormat__Property = 18465
|
|
|
|
QTextFormat__ImageName QTextFormat__Property = 20480
|
|
|
|
QTextFormat__ImageTitle QTextFormat__Property = 20481
|
|
|
|
QTextFormat__ImageAltText QTextFormat__Property = 20482
|
|
|
|
QTextFormat__ImageWidth QTextFormat__Property = 20496
|
|
|
|
QTextFormat__ImageHeight QTextFormat__Property = 20497
|
|
|
|
QTextFormat__ImageQuality QTextFormat__Property = 20500
|
|
|
|
QTextFormat__FullWidthSelection QTextFormat__Property = 24576
|
|
|
|
QTextFormat__PageBreakPolicy QTextFormat__Property = 28672
|
|
|
|
QTextFormat__UserProperty QTextFormat__Property = 1048576
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextFormat__ObjectTypes int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextFormat__NoObject QTextFormat__ObjectTypes = 0
|
|
|
|
QTextFormat__ImageObject QTextFormat__ObjectTypes = 1
|
|
|
|
QTextFormat__TableObject QTextFormat__ObjectTypes = 2
|
|
|
|
QTextFormat__TableCellObject QTextFormat__ObjectTypes = 3
|
|
|
|
QTextFormat__UserObject QTextFormat__ObjectTypes = 4096
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextFormat__PageBreakFlag int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextFormat__PageBreak_Auto QTextFormat__PageBreakFlag = 0
|
|
|
|
QTextFormat__PageBreak_AlwaysBefore QTextFormat__PageBreakFlag = 1
|
|
|
|
QTextFormat__PageBreak_AlwaysAfter QTextFormat__PageBreakFlag = 16
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextCharFormat__VerticalAlignment int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextCharFormat__AlignNormal QTextCharFormat__VerticalAlignment = 0
|
|
|
|
QTextCharFormat__AlignSuperScript QTextCharFormat__VerticalAlignment = 1
|
|
|
|
QTextCharFormat__AlignSubScript QTextCharFormat__VerticalAlignment = 2
|
|
|
|
QTextCharFormat__AlignMiddle QTextCharFormat__VerticalAlignment = 3
|
|
|
|
QTextCharFormat__AlignTop QTextCharFormat__VerticalAlignment = 4
|
|
|
|
QTextCharFormat__AlignBottom QTextCharFormat__VerticalAlignment = 5
|
|
|
|
QTextCharFormat__AlignBaseline QTextCharFormat__VerticalAlignment = 6
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextCharFormat__UnderlineStyle int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextCharFormat__NoUnderline QTextCharFormat__UnderlineStyle = 0
|
|
|
|
QTextCharFormat__SingleUnderline QTextCharFormat__UnderlineStyle = 1
|
|
|
|
QTextCharFormat__DashUnderline QTextCharFormat__UnderlineStyle = 2
|
|
|
|
QTextCharFormat__DotLine QTextCharFormat__UnderlineStyle = 3
|
|
|
|
QTextCharFormat__DashDotLine QTextCharFormat__UnderlineStyle = 4
|
|
|
|
QTextCharFormat__DashDotDotLine QTextCharFormat__UnderlineStyle = 5
|
|
|
|
QTextCharFormat__WaveUnderline QTextCharFormat__UnderlineStyle = 6
|
|
|
|
QTextCharFormat__SpellCheckUnderline QTextCharFormat__UnderlineStyle = 7
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextCharFormat__FontPropertiesInheritanceBehavior int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextCharFormat__FontPropertiesSpecifiedOnly QTextCharFormat__FontPropertiesInheritanceBehavior = 0
|
|
|
|
QTextCharFormat__FontPropertiesAll QTextCharFormat__FontPropertiesInheritanceBehavior = 1
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextBlockFormat__LineHeightTypes int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextBlockFormat__SingleHeight QTextBlockFormat__LineHeightTypes = 0
|
|
|
|
QTextBlockFormat__ProportionalHeight QTextBlockFormat__LineHeightTypes = 1
|
|
|
|
QTextBlockFormat__FixedHeight QTextBlockFormat__LineHeightTypes = 2
|
|
|
|
QTextBlockFormat__MinimumHeight QTextBlockFormat__LineHeightTypes = 3
|
|
|
|
QTextBlockFormat__LineDistanceHeight QTextBlockFormat__LineHeightTypes = 4
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextBlockFormat__MarkerType int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextBlockFormat__NoMarker QTextBlockFormat__MarkerType = 0
|
|
|
|
QTextBlockFormat__Unchecked QTextBlockFormat__MarkerType = 1
|
|
|
|
QTextBlockFormat__Checked QTextBlockFormat__MarkerType = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextListFormat__Style int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextListFormat__ListDisc QTextListFormat__Style = -1
|
|
|
|
QTextListFormat__ListCircle QTextListFormat__Style = -2
|
|
|
|
QTextListFormat__ListSquare QTextListFormat__Style = -3
|
|
|
|
QTextListFormat__ListDecimal QTextListFormat__Style = -4
|
|
|
|
QTextListFormat__ListLowerAlpha QTextListFormat__Style = -5
|
|
|
|
QTextListFormat__ListUpperAlpha QTextListFormat__Style = -6
|
|
|
|
QTextListFormat__ListLowerRoman QTextListFormat__Style = -7
|
|
|
|
QTextListFormat__ListUpperRoman QTextListFormat__Style = -8
|
|
|
|
QTextListFormat__ListStyleUndefined QTextListFormat__Style = 0
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextFrameFormat__Position int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextFrameFormat__InFlow QTextFrameFormat__Position = 0
|
|
|
|
QTextFrameFormat__FloatLeft QTextFrameFormat__Position = 1
|
|
|
|
QTextFrameFormat__FloatRight QTextFrameFormat__Position = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QTextFrameFormat__BorderStyle int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTextFrameFormat__BorderStyle_None QTextFrameFormat__BorderStyle = 0
|
|
|
|
QTextFrameFormat__BorderStyle_Dotted QTextFrameFormat__BorderStyle = 1
|
|
|
|
QTextFrameFormat__BorderStyle_Dashed QTextFrameFormat__BorderStyle = 2
|
|
|
|
QTextFrameFormat__BorderStyle_Solid QTextFrameFormat__BorderStyle = 3
|
|
|
|
QTextFrameFormat__BorderStyle_Double QTextFrameFormat__BorderStyle = 4
|
|
|
|
QTextFrameFormat__BorderStyle_DotDash QTextFrameFormat__BorderStyle = 5
|
|
|
|
QTextFrameFormat__BorderStyle_DotDotDash QTextFrameFormat__BorderStyle = 6
|
|
|
|
QTextFrameFormat__BorderStyle_Groove QTextFrameFormat__BorderStyle = 7
|
|
|
|
QTextFrameFormat__BorderStyle_Ridge QTextFrameFormat__BorderStyle = 8
|
|
|
|
QTextFrameFormat__BorderStyle_Inset QTextFrameFormat__BorderStyle = 9
|
|
|
|
QTextFrameFormat__BorderStyle_Outset QTextFrameFormat__BorderStyle = 10
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextLength struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextLength
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextLength) cPointer() *C.QTextLength {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextLength) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextLength constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQTextLength(h *C.QTextLength) *QTextLength {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QTextLength{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextLength constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQTextLength(h unsafe.Pointer) *QTextLength {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextLength{h: (*C.QTextLength)(h)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextLength constructs a new QTextLength object.
|
|
|
|
func NewQTextLength() *QTextLength {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextLength *C.QTextLength = nil
|
|
|
|
|
|
|
|
C.QTextLength_new(&outptr_QTextLength)
|
|
|
|
ret := newQTextLength(outptr_QTextLength)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextLength2 constructs a new QTextLength object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQTextLength2(typeVal QTextLength__Type, value float64) *QTextLength {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextLength *C.QTextLength = nil
|
|
|
|
|
|
|
|
C.QTextLength_new2((C.int)(typeVal), (C.double)(value), &outptr_QTextLength)
|
|
|
|
ret := newQTextLength(outptr_QTextLength)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQTextLength3 constructs a new QTextLength object.
|
|
|
|
func NewQTextLength3(param1 *QTextLength) *QTextLength {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextLength *C.QTextLength = nil
|
|
|
|
|
|
|
|
C.QTextLength_new3(param1.cPointer(), &outptr_QTextLength)
|
|
|
|
ret := newQTextLength(outptr_QTextLength)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextLength) Type() QTextLength__Type {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextLength__Type)(C.QTextLength_Type(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextLength) Value(maximumLength float64) float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextLength_Value(this.h, (C.double)(maximumLength)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextLength) RawValue() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextLength_RawValue(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextLength) OperatorEqual(other *QTextLength) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextLength_OperatorEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextLength) OperatorNotEqual(other *QTextLength) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextLength_OperatorNotEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextLength) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextLength_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextLength) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextLength) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) cPointer() *C.QTextFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextFormat constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQTextFormat(h *C.QTextFormat) *QTextFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QTextFormat{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextFormat constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQTextFormat(h unsafe.Pointer) *QTextFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextFormat{h: (*C.QTextFormat)(h)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextFormat constructs a new QTextFormat object.
|
|
|
|
func NewQTextFormat() *QTextFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextFormat_new(&outptr_QTextFormat)
|
|
|
|
ret := newQTextFormat(outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextFormat2 constructs a new QTextFormat object.
|
|
|
|
func NewQTextFormat2(typeVal int) *QTextFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextFormat_new2((C.int)(typeVal), &outptr_QTextFormat)
|
|
|
|
ret := newQTextFormat(outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextFormat3 constructs a new QTextFormat object.
|
|
|
|
func NewQTextFormat3(rhs *QTextFormat) *QTextFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextFormat_new3(rhs.cPointer(), &outptr_QTextFormat)
|
|
|
|
ret := newQTextFormat(outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) OperatorAssign(rhs *QTextFormat) {
|
|
|
|
C.QTextFormat_OperatorAssign(this.h, rhs.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) Swap(other *QTextFormat) {
|
|
|
|
C.QTextFormat_Swap(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) Merge(other *QTextFormat) {
|
|
|
|
C.QTextFormat_Merge(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsEmpty() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsEmpty(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) Type() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextFormat_Type(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ObjectIndex() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextFormat_ObjectIndex(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) SetObjectIndex(object int) {
|
|
|
|
C.QTextFormat_SetObjectIndex(this.h, (C.int)(object))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) Property(propertyId int) *QVariant {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_Property(this.h, (C.int)(propertyId))
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) SetProperty(propertyId int, value *QVariant) {
|
|
|
|
C.QTextFormat_SetProperty(this.h, (C.int)(propertyId), value.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ClearProperty(propertyId int) {
|
|
|
|
C.QTextFormat_ClearProperty(this.h, (C.int)(propertyId))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) HasProperty(propertyId int) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_HasProperty(this.h, (C.int)(propertyId)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) BoolProperty(propertyId int) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_BoolProperty(this.h, (C.int)(propertyId)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IntProperty(propertyId int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextFormat_IntProperty(this.h, (C.int)(propertyId)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) DoubleProperty(propertyId int) float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFormat_DoubleProperty(this.h, (C.int)(propertyId)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) StringProperty(propertyId int) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextFormat_StringProperty(this.h, (C.int)(propertyId))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ColorProperty(propertyId int) *QColor {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ColorProperty(this.h, (C.int)(propertyId))
|
|
|
|
_goptr := newQColor(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) PenProperty(propertyId int) *QPen {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_PenProperty(this.h, (C.int)(propertyId))
|
|
|
|
_goptr := newQPen(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) BrushProperty(propertyId int) *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_BrushProperty(this.h, (C.int)(propertyId))
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) LengthProperty(propertyId int) *QTextLength {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_LengthProperty(this.h, (C.int)(propertyId))
|
|
|
|
_goptr := newQTextLength(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) LengthVectorProperty(propertyId int) []QTextLength {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QTextFormat_LengthVectorProperty(this.h, (C.int)(propertyId))
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]QTextLength, int(_ma.len))
|
2024-09-17 07:30:27 +00:00
|
|
|
_outCast := (*[0xffff]*C.QTextLength)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-09-17 07:30:27 +00:00
|
|
|
_vv_ret := _outCast[i]
|
|
|
|
_vv_goptr := newQTextLength(_vv_ret)
|
|
|
|
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_ret[i] = *_vv_goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) SetProperty2(propertyId int, lengths []QTextLength) {
|
2024-09-01 05:51:28 +00:00
|
|
|
lengths_CArray := (*[0xffff]*C.QTextLength)(C.malloc(C.size_t(8 * len(lengths))))
|
2024-08-25 04:08:24 +00:00
|
|
|
defer C.free(unsafe.Pointer(lengths_CArray))
|
|
|
|
for i := range lengths {
|
|
|
|
lengths_CArray[i] = lengths[i].cPointer()
|
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
lengths_ma := C.struct_miqt_array{len: C.size_t(len(lengths)), data: unsafe.Pointer(lengths_CArray)}
|
2024-09-14 22:29:05 +00:00
|
|
|
C.QTextFormat_SetProperty2(this.h, (C.int)(propertyId), lengths_ma)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-04 07:59:22 +00:00
|
|
|
func (this *QTextFormat) Properties() map[int]QVariant {
|
|
|
|
var _mm C.struct_miqt_map = C.QTextFormat_Properties(this.h)
|
|
|
|
_ret := make(map[int]QVariant, int(_mm.len))
|
|
|
|
_Keys := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys))
|
|
|
|
_Values := (*[0xffff]*C.QVariant)(unsafe.Pointer(_mm.values))
|
|
|
|
for i := 0; i < int(_mm.len); i++ {
|
|
|
|
_entry_Key := (int)(_Keys[i])
|
|
|
|
|
|
|
|
_mapval_ret := _Values[i]
|
|
|
|
_mapval_goptr := newQVariant(_mapval_ret)
|
|
|
|
_mapval_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_entry_Value := *_mapval_goptr
|
|
|
|
|
|
|
|
_ret[_entry_Key] = _entry_Value
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextFormat) PropertyCount() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextFormat_PropertyCount(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) SetObjectType(typeVal int) {
|
|
|
|
C.QTextFormat_SetObjectType(this.h, (C.int)(typeVal))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ObjectType() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextFormat_ObjectType(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsCharFormat() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsCharFormat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsBlockFormat() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsBlockFormat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsListFormat() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsListFormat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsFrameFormat() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsFrameFormat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsImageFormat() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsImageFormat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsTableFormat() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsTableFormat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) IsTableCellFormat() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_IsTableCellFormat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ToBlockFormat() *QTextBlockFormat {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ToBlockFormat(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQTextBlockFormat(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ToCharFormat() *QTextCharFormat {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ToCharFormat(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQTextCharFormat(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ToListFormat() *QTextListFormat {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ToListFormat(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQTextListFormat(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ToTableFormat() *QTextTableFormat {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ToTableFormat(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQTextTableFormat(_ret, nil, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ToFrameFormat() *QTextFrameFormat {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ToFrameFormat(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQTextFrameFormat(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ToImageFormat() *QTextImageFormat {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ToImageFormat(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQTextImageFormat(_ret, nil, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ToTableCellFormat() *QTextTableCellFormat {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_ToTableCellFormat(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQTextTableCellFormat(_ret, nil, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) OperatorEqual(rhs *QTextFormat) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_OperatorEqual(this.h, rhs.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) OperatorNotEqual(rhs *QTextFormat) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFormat_OperatorNotEqual(this.h, rhs.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextFormat) SetLayoutDirection(direction LayoutDirection) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextFormat_SetLayoutDirection(this.h, (C.int)(direction))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextFormat) LayoutDirection() LayoutDirection {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (LayoutDirection)(C.QTextFormat_LayoutDirection(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextFormat) SetBackground(brush *QBrush) {
|
|
|
|
C.QTextFormat_SetBackground(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) Background() *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_Background(this.h)
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ClearBackground() {
|
|
|
|
C.QTextFormat_ClearBackground(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) SetForeground(brush *QBrush) {
|
|
|
|
C.QTextFormat_SetForeground(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) Foreground() *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFormat_Foreground(this.h)
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFormat) ClearForeground() {
|
|
|
|
C.QTextFormat_ClearForeground(this.h)
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextCharFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextCharFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QTextFormat
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) cPointer() *C.QTextCharFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextCharFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextCharFormat constructs the type using only CGO pointers.
|
|
|
|
func newQTextCharFormat(h *C.QTextCharFormat, h_QTextFormat *C.QTextFormat) *QTextCharFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTextCharFormat{h: h,
|
|
|
|
QTextFormat: newQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextCharFormat constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTextCharFormat(h unsafe.Pointer, h_QTextFormat unsafe.Pointer) *QTextCharFormat {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextCharFormat{h: (*C.QTextCharFormat)(h),
|
|
|
|
QTextFormat: UnsafeNewQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextCharFormat constructs a new QTextCharFormat object.
|
|
|
|
func NewQTextCharFormat() *QTextCharFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextCharFormat *C.QTextCharFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextCharFormat_new(&outptr_QTextCharFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextCharFormat(outptr_QTextCharFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextCharFormat2 constructs a new QTextCharFormat object.
|
|
|
|
func NewQTextCharFormat2(param1 *QTextCharFormat) *QTextCharFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextCharFormat *C.QTextCharFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextCharFormat_new2(param1.cPointer(), &outptr_QTextCharFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextCharFormat(outptr_QTextCharFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetFont(font *QFont, behavior QTextCharFormat__FontPropertiesInheritanceBehavior) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetFont(this.h, font.cPointer(), (C.int)(behavior))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontWithFont(font *QFont) {
|
|
|
|
C.QTextCharFormat_SetFontWithFont(this.h, font.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) Font() *QFont {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextCharFormat_Font(this.h)
|
|
|
|
_goptr := newQFont(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontFamily(family string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
family_ms := C.struct_miqt_string{}
|
|
|
|
family_ms.data = C.CString(family)
|
|
|
|
family_ms.len = C.size_t(len(family))
|
|
|
|
defer C.free(unsafe.Pointer(family_ms.data))
|
|
|
|
C.QTextCharFormat_SetFontFamily(this.h, family_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontFamily() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextCharFormat_FontFamily(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontFamilies(families []string) {
|
2024-10-19 02:49:49 +00:00
|
|
|
families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families))))
|
2024-08-25 04:08:24 +00:00
|
|
|
defer C.free(unsafe.Pointer(families_CArray))
|
|
|
|
for i := range families {
|
2024-10-18 23:53:33 +00:00
|
|
|
families_i_ms := C.struct_miqt_string{}
|
|
|
|
families_i_ms.data = C.CString(families[i])
|
|
|
|
families_i_ms.len = C.size_t(len(families[i]))
|
|
|
|
defer C.free(unsafe.Pointer(families_i_ms.data))
|
|
|
|
families_CArray[i] = families_i_ms
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
families_ma := C.struct_miqt_array{len: C.size_t(len(families)), data: unsafe.Pointer(families_CArray)}
|
2024-09-14 22:29:05 +00:00
|
|
|
C.QTextCharFormat_SetFontFamilies(this.h, families_ma)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontFamilies() *QVariant {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextCharFormat_FontFamilies(this.h)
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontStyleName(styleName string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
styleName_ms := C.struct_miqt_string{}
|
|
|
|
styleName_ms.data = C.CString(styleName)
|
|
|
|
styleName_ms.len = C.size_t(len(styleName))
|
|
|
|
defer C.free(unsafe.Pointer(styleName_ms.data))
|
|
|
|
C.QTextCharFormat_SetFontStyleName(this.h, styleName_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontStyleName() *QVariant {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextCharFormat_FontStyleName(this.h)
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontPointSize(size float64) {
|
|
|
|
C.QTextCharFormat_SetFontPointSize(this.h, (C.double)(size))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontPointSize() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextCharFormat_FontPointSize(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontWeight(weight int) {
|
|
|
|
C.QTextCharFormat_SetFontWeight(this.h, (C.int)(weight))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontWeight() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextCharFormat_FontWeight(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontItalic(italic bool) {
|
|
|
|
C.QTextCharFormat_SetFontItalic(this.h, (C.bool)(italic))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontItalic() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_FontItalic(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetFontCapitalization(capitalization QFont__Capitalization) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetFontCapitalization(this.h, (C.int)(capitalization))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) FontCapitalization() QFont__Capitalization {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QFont__Capitalization)(C.QTextCharFormat_FontCapitalization(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetFontLetterSpacingType(letterSpacingType QFont__SpacingType) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetFontLetterSpacingType(this.h, (C.int)(letterSpacingType))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) FontLetterSpacingType() QFont__SpacingType {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QFont__SpacingType)(C.QTextCharFormat_FontLetterSpacingType(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextCharFormat) SetFontLetterSpacing(spacing float64) {
|
|
|
|
C.QTextCharFormat_SetFontLetterSpacing(this.h, (C.double)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontLetterSpacing() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextCharFormat_FontLetterSpacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontWordSpacing(spacing float64) {
|
|
|
|
C.QTextCharFormat_SetFontWordSpacing(this.h, (C.double)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontWordSpacing() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextCharFormat_FontWordSpacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontUnderline(underline bool) {
|
|
|
|
C.QTextCharFormat_SetFontUnderline(this.h, (C.bool)(underline))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontUnderline() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_FontUnderline(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontOverline(overline bool) {
|
|
|
|
C.QTextCharFormat_SetFontOverline(this.h, (C.bool)(overline))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontOverline() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_FontOverline(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontStrikeOut(strikeOut bool) {
|
|
|
|
C.QTextCharFormat_SetFontStrikeOut(this.h, (C.bool)(strikeOut))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontStrikeOut() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_FontStrikeOut(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetUnderlineColor(color *QColor) {
|
|
|
|
C.QTextCharFormat_SetUnderlineColor(this.h, color.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) UnderlineColor() *QColor {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextCharFormat_UnderlineColor(this.h)
|
|
|
|
_goptr := newQColor(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontFixedPitch(fixedPitch bool) {
|
|
|
|
C.QTextCharFormat_SetFontFixedPitch(this.h, (C.bool)(fixedPitch))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontFixedPitch() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_FontFixedPitch(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetFontStretch(factor int) {
|
|
|
|
C.QTextCharFormat_SetFontStretch(this.h, (C.int)(factor))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontStretch() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextCharFormat_FontStretch(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetFontStyleHint(hint QFont__StyleHint) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetFontStyleHint(this.h, (C.int)(hint))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetFontStyleStrategy(strategy QFont__StyleStrategy) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetFontStyleStrategy(this.h, (C.int)(strategy))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) FontStyleHint() QFont__StyleHint {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QFont__StyleHint)(C.QTextCharFormat_FontStyleHint(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) FontStyleStrategy() QFont__StyleStrategy {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QFont__StyleStrategy)(C.QTextCharFormat_FontStyleStrategy(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetFontHintingPreference(hintingPreference QFont__HintingPreference) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetFontHintingPreference(this.h, (C.int)(hintingPreference))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) FontHintingPreference() QFont__HintingPreference {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QFont__HintingPreference)(C.QTextCharFormat_FontHintingPreference(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextCharFormat) SetFontKerning(enable bool) {
|
|
|
|
C.QTextCharFormat_SetFontKerning(this.h, (C.bool)(enable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) FontKerning() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_FontKerning(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetUnderlineStyle(style QTextCharFormat__UnderlineStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetUnderlineStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) UnderlineStyle() QTextCharFormat__UnderlineStyle {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextCharFormat__UnderlineStyle)(C.QTextCharFormat_UnderlineStyle(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetVerticalAlignment(alignment QTextCharFormat__VerticalAlignment) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetVerticalAlignment(this.h, (C.int)(alignment))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) VerticalAlignment() QTextCharFormat__VerticalAlignment {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextCharFormat__VerticalAlignment)(C.QTextCharFormat_VerticalAlignment(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextCharFormat) SetTextOutline(pen *QPen) {
|
|
|
|
C.QTextCharFormat_SetTextOutline(this.h, pen.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) TextOutline() *QPen {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextCharFormat_TextOutline(this.h)
|
|
|
|
_goptr := newQPen(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetToolTip(tip string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
tip_ms := C.struct_miqt_string{}
|
|
|
|
tip_ms.data = C.CString(tip)
|
|
|
|
tip_ms.len = C.size_t(len(tip))
|
|
|
|
defer C.free(unsafe.Pointer(tip_ms.data))
|
|
|
|
C.QTextCharFormat_SetToolTip(this.h, tip_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) ToolTip() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextCharFormat_ToolTip(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetAnchor(anchor bool) {
|
|
|
|
C.QTextCharFormat_SetAnchor(this.h, (C.bool)(anchor))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) IsAnchor() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextCharFormat_IsAnchor(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetAnchorHref(value string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
|
|
|
C.QTextCharFormat_SetAnchorHref(this.h, value_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) AnchorHref() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextCharFormat_AnchorHref(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetAnchorName(name string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
C.QTextCharFormat_SetAnchorName(this.h, name_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) AnchorName() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextCharFormat_AnchorName(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetAnchorNames(names []string) {
|
2024-10-19 02:49:49 +00:00
|
|
|
names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names))))
|
2024-08-25 04:08:24 +00:00
|
|
|
defer C.free(unsafe.Pointer(names_CArray))
|
|
|
|
for i := range names {
|
2024-10-18 23:53:33 +00:00
|
|
|
names_i_ms := C.struct_miqt_string{}
|
|
|
|
names_i_ms.data = C.CString(names[i])
|
|
|
|
names_i_ms.len = C.size_t(len(names[i]))
|
|
|
|
defer C.free(unsafe.Pointer(names_i_ms.data))
|
|
|
|
names_CArray[i] = names_i_ms
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
names_ma := C.struct_miqt_array{len: C.size_t(len(names)), data: unsafe.Pointer(names_CArray)}
|
2024-09-14 22:29:05 +00:00
|
|
|
C.QTextCharFormat_SetAnchorNames(this.h, names_ma)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) AnchorNames() []string {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QTextCharFormat_AnchorNames(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]string, int(_ma.len))
|
2024-10-18 23:53:33 +00:00
|
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
2024-09-17 07:30:27 +00:00
|
|
|
_ret[i] = _lv_ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetTableCellRowSpan(tableCellRowSpan int) {
|
|
|
|
C.QTextCharFormat_SetTableCellRowSpan(this.h, (C.int)(tableCellRowSpan))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) TableCellRowSpan() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextCharFormat_TableCellRowSpan(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) SetTableCellColumnSpan(tableCellColumnSpan int) {
|
|
|
|
C.QTextCharFormat_SetTableCellColumnSpan(this.h, (C.int)(tableCellColumnSpan))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextCharFormat) TableCellColumnSpan() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextCharFormat_TableCellColumnSpan(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextCharFormat) SetFontStyleHint2(hint QFont__StyleHint, strategy QFont__StyleStrategy) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextCharFormat_SetFontStyleHint2(this.h, (C.int)(hint), (C.int)(strategy))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextCharFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextCharFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextCharFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextCharFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextBlockFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextBlockFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QTextFormat
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) cPointer() *C.QTextBlockFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextBlockFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextBlockFormat constructs the type using only CGO pointers.
|
|
|
|
func newQTextBlockFormat(h *C.QTextBlockFormat, h_QTextFormat *C.QTextFormat) *QTextBlockFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTextBlockFormat{h: h,
|
|
|
|
QTextFormat: newQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextBlockFormat constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTextBlockFormat(h unsafe.Pointer, h_QTextFormat unsafe.Pointer) *QTextBlockFormat {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextBlockFormat{h: (*C.QTextBlockFormat)(h),
|
|
|
|
QTextFormat: UnsafeNewQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextBlockFormat constructs a new QTextBlockFormat object.
|
|
|
|
func NewQTextBlockFormat() *QTextBlockFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextBlockFormat *C.QTextBlockFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextBlockFormat_new(&outptr_QTextBlockFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextBlockFormat(outptr_QTextBlockFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextBlockFormat2 constructs a new QTextBlockFormat object.
|
|
|
|
func NewQTextBlockFormat2(param1 *QTextBlockFormat) *QTextBlockFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextBlockFormat *C.QTextBlockFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextBlockFormat_new2(param1.cPointer(), &outptr_QTextBlockFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextBlockFormat(outptr_QTextBlockFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextBlockFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextBlockFormat) SetAlignment(alignment AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QTextBlockFormat_SetAlignment(this.h, (C.int)(alignment))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextBlockFormat) Alignment() AlignmentFlag {
|
|
|
|
return (AlignmentFlag)(C.QTextBlockFormat_Alignment(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextBlockFormat) SetTopMargin(margin float64) {
|
|
|
|
C.QTextBlockFormat_SetTopMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) TopMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextBlockFormat_TopMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetBottomMargin(margin float64) {
|
|
|
|
C.QTextBlockFormat_SetBottomMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) BottomMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextBlockFormat_BottomMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetLeftMargin(margin float64) {
|
|
|
|
C.QTextBlockFormat_SetLeftMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) LeftMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextBlockFormat_LeftMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetRightMargin(margin float64) {
|
|
|
|
C.QTextBlockFormat_SetRightMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) RightMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextBlockFormat_RightMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetTextIndent(aindent float64) {
|
|
|
|
C.QTextBlockFormat_SetTextIndent(this.h, (C.double)(aindent))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) TextIndent() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextBlockFormat_TextIndent(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetIndent(indent int) {
|
|
|
|
C.QTextBlockFormat_SetIndent(this.h, (C.int)(indent))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) Indent() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextBlockFormat_Indent(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetHeadingLevel(alevel int) {
|
|
|
|
C.QTextBlockFormat_SetHeadingLevel(this.h, (C.int)(alevel))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) HeadingLevel() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextBlockFormat_HeadingLevel(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetLineHeight(height float64, heightType int) {
|
|
|
|
C.QTextBlockFormat_SetLineHeight(this.h, (C.double)(height), (C.int)(heightType))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) LineHeight(scriptLineHeight float64, scaling float64) float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextBlockFormat_LineHeight(this.h, (C.double)(scriptLineHeight), (C.double)(scaling)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) LineHeight2() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextBlockFormat_LineHeight2(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) LineHeightType() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextBlockFormat_LineHeightType(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetNonBreakableLines(b bool) {
|
|
|
|
C.QTextBlockFormat_SetNonBreakableLines(this.h, (C.bool)(b))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) NonBreakableLines() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextBlockFormat_NonBreakableLines(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextBlockFormat) SetPageBreakPolicy(flags QTextFormat__PageBreakFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QTextBlockFormat_SetPageBreakPolicy(this.h, (C.int)(flags))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextBlockFormat) PageBreakPolicy() QTextFormat__PageBreakFlag {
|
|
|
|
return (QTextFormat__PageBreakFlag)(C.QTextBlockFormat_PageBreakPolicy(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) SetTabPositions(tabs []QTextOption__Tab) {
|
2024-09-01 05:51:28 +00:00
|
|
|
tabs_CArray := (*[0xffff]*C.QTextOption__Tab)(C.malloc(C.size_t(8 * len(tabs))))
|
2024-08-29 07:01:51 +00:00
|
|
|
defer C.free(unsafe.Pointer(tabs_CArray))
|
|
|
|
for i := range tabs {
|
|
|
|
tabs_CArray[i] = tabs[i].cPointer()
|
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
tabs_ma := C.struct_miqt_array{len: C.size_t(len(tabs)), data: unsafe.Pointer(tabs_CArray)}
|
2024-09-14 22:29:05 +00:00
|
|
|
C.QTextBlockFormat_SetTabPositions(this.h, tabs_ma)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextBlockFormat) TabPositions() []QTextOption__Tab {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QTextBlockFormat_TabPositions(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]QTextOption__Tab, int(_ma.len))
|
2024-09-17 07:30:27 +00:00
|
|
|
_outCast := (*[0xffff]*C.QTextOption__Tab)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-09-17 07:30:27 +00:00
|
|
|
_lv_ret := _outCast[i]
|
|
|
|
_lv_goptr := newQTextOption__Tab(_lv_ret)
|
|
|
|
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_ret[i] = *_lv_goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextBlockFormat) SetMarker(marker QTextBlockFormat__MarkerType) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextBlockFormat_SetMarker(this.h, (C.int)(marker))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextBlockFormat) Marker() QTextBlockFormat__MarkerType {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextBlockFormat__MarkerType)(C.QTextBlockFormat_Marker(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextBlockFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextBlockFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextBlockFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextBlockFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextListFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextListFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QTextFormat
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextListFormat) cPointer() *C.QTextListFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextListFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextListFormat constructs the type using only CGO pointers.
|
|
|
|
func newQTextListFormat(h *C.QTextListFormat, h_QTextFormat *C.QTextFormat) *QTextListFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTextListFormat{h: h,
|
|
|
|
QTextFormat: newQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextListFormat constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTextListFormat(h unsafe.Pointer, h_QTextFormat unsafe.Pointer) *QTextListFormat {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextListFormat{h: (*C.QTextListFormat)(h),
|
|
|
|
QTextFormat: UnsafeNewQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextListFormat constructs a new QTextListFormat object.
|
|
|
|
func NewQTextListFormat() *QTextListFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextListFormat *C.QTextListFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextListFormat_new(&outptr_QTextListFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextListFormat(outptr_QTextListFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextListFormat2 constructs a new QTextListFormat object.
|
|
|
|
func NewQTextListFormat2(param1 *QTextListFormat) *QTextListFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextListFormat *C.QTextListFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextListFormat_new2(param1.cPointer(), &outptr_QTextListFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextListFormat(outptr_QTextListFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextListFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextListFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextListFormat) SetStyle(style QTextListFormat__Style) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextListFormat_SetStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextListFormat) Style() QTextListFormat__Style {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextListFormat__Style)(C.QTextListFormat_Style(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextListFormat) SetIndent(indent int) {
|
|
|
|
C.QTextListFormat_SetIndent(this.h, (C.int)(indent))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextListFormat) Indent() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextListFormat_Indent(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextListFormat) SetNumberPrefix(numberPrefix string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
numberPrefix_ms := C.struct_miqt_string{}
|
|
|
|
numberPrefix_ms.data = C.CString(numberPrefix)
|
|
|
|
numberPrefix_ms.len = C.size_t(len(numberPrefix))
|
|
|
|
defer C.free(unsafe.Pointer(numberPrefix_ms.data))
|
|
|
|
C.QTextListFormat_SetNumberPrefix(this.h, numberPrefix_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextListFormat) NumberPrefix() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextListFormat_NumberPrefix(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextListFormat) SetNumberSuffix(numberSuffix string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
numberSuffix_ms := C.struct_miqt_string{}
|
|
|
|
numberSuffix_ms.data = C.CString(numberSuffix)
|
|
|
|
numberSuffix_ms.len = C.size_t(len(numberSuffix))
|
|
|
|
defer C.free(unsafe.Pointer(numberSuffix_ms.data))
|
|
|
|
C.QTextListFormat_SetNumberSuffix(this.h, numberSuffix_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextListFormat) NumberSuffix() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextListFormat_NumberSuffix(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextListFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextListFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextListFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextListFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextImageFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextImageFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QTextCharFormat
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) cPointer() *C.QTextImageFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextImageFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextImageFormat constructs the type using only CGO pointers.
|
|
|
|
func newQTextImageFormat(h *C.QTextImageFormat, h_QTextCharFormat *C.QTextCharFormat, h_QTextFormat *C.QTextFormat) *QTextImageFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTextImageFormat{h: h,
|
|
|
|
QTextCharFormat: newQTextCharFormat(h_QTextCharFormat, h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextImageFormat constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTextImageFormat(h unsafe.Pointer, h_QTextCharFormat unsafe.Pointer, h_QTextFormat unsafe.Pointer) *QTextImageFormat {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextImageFormat{h: (*C.QTextImageFormat)(h),
|
|
|
|
QTextCharFormat: UnsafeNewQTextCharFormat(h_QTextCharFormat, h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextImageFormat constructs a new QTextImageFormat object.
|
|
|
|
func NewQTextImageFormat() *QTextImageFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextImageFormat *C.QTextImageFormat = nil
|
|
|
|
var outptr_QTextCharFormat *C.QTextCharFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextImageFormat_new(&outptr_QTextImageFormat, &outptr_QTextCharFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextImageFormat(outptr_QTextImageFormat, outptr_QTextCharFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextImageFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) SetName(name string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
C.QTextImageFormat_SetName(this.h, name_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) Name() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QTextImageFormat_Name(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) SetWidth(width float64) {
|
|
|
|
C.QTextImageFormat_SetWidth(this.h, (C.double)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) Width() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextImageFormat_Width(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) SetHeight(height float64) {
|
|
|
|
C.QTextImageFormat_SetHeight(this.h, (C.double)(height))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) Height() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextImageFormat_Height(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) SetQuality() {
|
|
|
|
C.QTextImageFormat_SetQuality(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) Quality() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextImageFormat_Quality(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextImageFormat) SetQuality1(quality int) {
|
|
|
|
C.QTextImageFormat_SetQuality1(this.h, (C.int)(quality))
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextImageFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextImageFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextImageFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextImageFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextFrameFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextFrameFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QTextFormat
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) cPointer() *C.QTextFrameFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextFrameFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextFrameFormat constructs the type using only CGO pointers.
|
|
|
|
func newQTextFrameFormat(h *C.QTextFrameFormat, h_QTextFormat *C.QTextFormat) *QTextFrameFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTextFrameFormat{h: h,
|
|
|
|
QTextFormat: newQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextFrameFormat constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTextFrameFormat(h unsafe.Pointer, h_QTextFormat unsafe.Pointer) *QTextFrameFormat {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextFrameFormat{h: (*C.QTextFrameFormat)(h),
|
|
|
|
QTextFormat: UnsafeNewQTextFormat(h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextFrameFormat constructs a new QTextFrameFormat object.
|
|
|
|
func NewQTextFrameFormat() *QTextFrameFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextFrameFormat *C.QTextFrameFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextFrameFormat_new(&outptr_QTextFrameFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextFrameFormat(outptr_QTextFrameFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextFrameFormat2 constructs a new QTextFrameFormat object.
|
|
|
|
func NewQTextFrameFormat2(param1 *QTextFrameFormat) *QTextFrameFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextFrameFormat *C.QTextFrameFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextFrameFormat_new2(param1.cPointer(), &outptr_QTextFrameFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextFrameFormat(outptr_QTextFrameFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextFrameFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextFrameFormat) SetPosition(f QTextFrameFormat__Position) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextFrameFormat_SetPosition(this.h, (C.int)(f))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextFrameFormat) Position() QTextFrameFormat__Position {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextFrameFormat__Position)(C.QTextFrameFormat_Position(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextFrameFormat) SetBorder(border float64) {
|
|
|
|
C.QTextFrameFormat_SetBorder(this.h, (C.double)(border))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) Border() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFrameFormat_Border(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetBorderBrush(brush *QBrush) {
|
|
|
|
C.QTextFrameFormat_SetBorderBrush(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) BorderBrush() *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFrameFormat_BorderBrush(this.h)
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextFrameFormat) SetBorderStyle(style QTextFrameFormat__BorderStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextFrameFormat_SetBorderStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextFrameFormat) BorderStyle() QTextFrameFormat__BorderStyle {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextFrameFormat__BorderStyle)(C.QTextFrameFormat_BorderStyle(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextFrameFormat) SetMargin(margin float64) {
|
|
|
|
C.QTextFrameFormat_SetMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) Margin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFrameFormat_Margin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetTopMargin(margin float64) {
|
|
|
|
C.QTextFrameFormat_SetTopMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) TopMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFrameFormat_TopMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetBottomMargin(margin float64) {
|
|
|
|
C.QTextFrameFormat_SetBottomMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) BottomMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFrameFormat_BottomMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetLeftMargin(margin float64) {
|
|
|
|
C.QTextFrameFormat_SetLeftMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) LeftMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFrameFormat_LeftMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetRightMargin(margin float64) {
|
|
|
|
C.QTextFrameFormat_SetRightMargin(this.h, (C.double)(margin))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) RightMargin() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFrameFormat_RightMargin(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetPadding(padding float64) {
|
|
|
|
C.QTextFrameFormat_SetPadding(this.h, (C.double)(padding))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) Padding() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextFrameFormat_Padding(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetWidth(width float64) {
|
|
|
|
C.QTextFrameFormat_SetWidth(this.h, (C.double)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetWidthWithLength(length *QTextLength) {
|
|
|
|
C.QTextFrameFormat_SetWidthWithLength(this.h, length.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) Width() *QTextLength {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFrameFormat_Width(this.h)
|
|
|
|
_goptr := newQTextLength(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetHeight(height float64) {
|
|
|
|
C.QTextFrameFormat_SetHeight(this.h, (C.double)(height))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) SetHeightWithHeight(height *QTextLength) {
|
|
|
|
C.QTextFrameFormat_SetHeightWithHeight(this.h, height.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextFrameFormat) Height() *QTextLength {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextFrameFormat_Height(this.h)
|
|
|
|
_goptr := newQTextLength(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextFrameFormat) SetPageBreakPolicy(flags QTextFormat__PageBreakFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QTextFrameFormat_SetPageBreakPolicy(this.h, (C.int)(flags))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextFrameFormat) PageBreakPolicy() QTextFormat__PageBreakFlag {
|
|
|
|
return (QTextFormat__PageBreakFlag)(C.QTextFrameFormat_PageBreakPolicy(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextFrameFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextFrameFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextFrameFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextFrameFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextTableFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextTableFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QTextFrameFormat
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) cPointer() *C.QTextTableFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextTableFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextTableFormat constructs the type using only CGO pointers.
|
|
|
|
func newQTextTableFormat(h *C.QTextTableFormat, h_QTextFrameFormat *C.QTextFrameFormat, h_QTextFormat *C.QTextFormat) *QTextTableFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTextTableFormat{h: h,
|
|
|
|
QTextFrameFormat: newQTextFrameFormat(h_QTextFrameFormat, h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextTableFormat constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTextTableFormat(h unsafe.Pointer, h_QTextFrameFormat unsafe.Pointer, h_QTextFormat unsafe.Pointer) *QTextTableFormat {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextTableFormat{h: (*C.QTextTableFormat)(h),
|
|
|
|
QTextFrameFormat: UnsafeNewQTextFrameFormat(h_QTextFrameFormat, h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextTableFormat constructs a new QTextTableFormat object.
|
|
|
|
func NewQTextTableFormat() *QTextTableFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextTableFormat *C.QTextTableFormat = nil
|
|
|
|
var outptr_QTextFrameFormat *C.QTextFrameFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextTableFormat_new(&outptr_QTextTableFormat, &outptr_QTextFrameFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextTableFormat(outptr_QTextTableFormat, outptr_QTextFrameFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextTableFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) Columns() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextTableFormat_Columns(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) SetColumns(columns int) {
|
|
|
|
C.QTextTableFormat_SetColumns(this.h, (C.int)(columns))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) SetColumnWidthConstraints(constraints []QTextLength) {
|
2024-09-01 05:51:28 +00:00
|
|
|
constraints_CArray := (*[0xffff]*C.QTextLength)(C.malloc(C.size_t(8 * len(constraints))))
|
2024-08-25 04:08:24 +00:00
|
|
|
defer C.free(unsafe.Pointer(constraints_CArray))
|
|
|
|
for i := range constraints {
|
|
|
|
constraints_CArray[i] = constraints[i].cPointer()
|
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
constraints_ma := C.struct_miqt_array{len: C.size_t(len(constraints)), data: unsafe.Pointer(constraints_CArray)}
|
2024-09-14 22:29:05 +00:00
|
|
|
C.QTextTableFormat_SetColumnWidthConstraints(this.h, constraints_ma)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) ColumnWidthConstraints() []QTextLength {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QTextTableFormat_ColumnWidthConstraints(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]QTextLength, int(_ma.len))
|
2024-09-17 07:30:27 +00:00
|
|
|
_outCast := (*[0xffff]*C.QTextLength)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-09-17 07:30:27 +00:00
|
|
|
_vv_ret := _outCast[i]
|
|
|
|
_vv_goptr := newQTextLength(_vv_ret)
|
|
|
|
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_ret[i] = *_vv_goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) ClearColumnWidthConstraints() {
|
|
|
|
C.QTextTableFormat_ClearColumnWidthConstraints(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) CellSpacing() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableFormat_CellSpacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) SetCellSpacing(spacing float64) {
|
|
|
|
C.QTextTableFormat_SetCellSpacing(this.h, (C.double)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) CellPadding() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableFormat_CellPadding(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) SetCellPadding(padding float64) {
|
|
|
|
C.QTextTableFormat_SetCellPadding(this.h, (C.double)(padding))
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextTableFormat) SetAlignment(alignment AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QTextTableFormat_SetAlignment(this.h, (C.int)(alignment))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QTextTableFormat) Alignment() AlignmentFlag {
|
|
|
|
return (AlignmentFlag)(C.QTextTableFormat_Alignment(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextTableFormat) SetHeaderRowCount(count int) {
|
|
|
|
C.QTextTableFormat_SetHeaderRowCount(this.h, (C.int)(count))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) HeaderRowCount() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QTextTableFormat_HeaderRowCount(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) SetBorderCollapse(borderCollapse bool) {
|
|
|
|
C.QTextTableFormat_SetBorderCollapse(this.h, (C.bool)(borderCollapse))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableFormat) BorderCollapse() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextTableFormat_BorderCollapse(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextTableFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextTableFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextTableFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextTableFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextTableCellFormat struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTextTableCellFormat
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QTextCharFormat
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) cPointer() *C.QTextTableCellFormat {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTextTableCellFormat) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTextTableCellFormat constructs the type using only CGO pointers.
|
|
|
|
func newQTextTableCellFormat(h *C.QTextTableCellFormat, h_QTextCharFormat *C.QTextCharFormat, h_QTextFormat *C.QTextFormat) *QTextTableCellFormat {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTextTableCellFormat{h: h,
|
|
|
|
QTextCharFormat: newQTextCharFormat(h_QTextCharFormat, h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTextTableCellFormat constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTextTableCellFormat(h unsafe.Pointer, h_QTextCharFormat unsafe.Pointer, h_QTextFormat unsafe.Pointer) *QTextTableCellFormat {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTextTableCellFormat{h: (*C.QTextTableCellFormat)(h),
|
|
|
|
QTextCharFormat: UnsafeNewQTextCharFormat(h_QTextCharFormat, h_QTextFormat)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextTableCellFormat constructs a new QTextTableCellFormat object.
|
|
|
|
func NewQTextTableCellFormat() *QTextTableCellFormat {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTextTableCellFormat *C.QTextTableCellFormat = nil
|
|
|
|
var outptr_QTextCharFormat *C.QTextCharFormat = nil
|
|
|
|
var outptr_QTextFormat *C.QTextFormat = nil
|
|
|
|
|
|
|
|
C.QTextTableCellFormat_new(&outptr_QTextTableCellFormat, &outptr_QTextCharFormat, &outptr_QTextFormat)
|
|
|
|
ret := newQTextTableCellFormat(outptr_QTextTableCellFormat, outptr_QTextCharFormat, outptr_QTextFormat)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTextTableCellFormat_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetTopPadding(padding float64) {
|
|
|
|
C.QTextTableCellFormat_SetTopPadding(this.h, (C.double)(padding))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) TopPadding() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_TopPadding(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetBottomPadding(padding float64) {
|
|
|
|
C.QTextTableCellFormat_SetBottomPadding(this.h, (C.double)(padding))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) BottomPadding() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_BottomPadding(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetLeftPadding(padding float64) {
|
|
|
|
C.QTextTableCellFormat_SetLeftPadding(this.h, (C.double)(padding))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) LeftPadding() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_LeftPadding(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetRightPadding(padding float64) {
|
|
|
|
C.QTextTableCellFormat_SetRightPadding(this.h, (C.double)(padding))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) RightPadding() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_RightPadding(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetPadding(padding float64) {
|
|
|
|
C.QTextTableCellFormat_SetPadding(this.h, (C.double)(padding))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetTopBorder(width float64) {
|
|
|
|
C.QTextTableCellFormat_SetTopBorder(this.h, (C.double)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) TopBorder() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_TopBorder(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetBottomBorder(width float64) {
|
|
|
|
C.QTextTableCellFormat_SetBottomBorder(this.h, (C.double)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) BottomBorder() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_BottomBorder(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetLeftBorder(width float64) {
|
|
|
|
C.QTextTableCellFormat_SetLeftBorder(this.h, (C.double)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) LeftBorder() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_LeftBorder(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetRightBorder(width float64) {
|
|
|
|
C.QTextTableCellFormat_SetRightBorder(this.h, (C.double)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) RightBorder() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTextTableCellFormat_RightBorder(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetBorder(width float64) {
|
|
|
|
C.QTextTableCellFormat_SetBorder(this.h, (C.double)(width))
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) SetTopBorderStyle(style QTextFrameFormat__BorderStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextTableCellFormat_SetTopBorderStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) TopBorderStyle() QTextFrameFormat__BorderStyle {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextFrameFormat__BorderStyle)(C.QTextTableCellFormat_TopBorderStyle(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) SetBottomBorderStyle(style QTextFrameFormat__BorderStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextTableCellFormat_SetBottomBorderStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) BottomBorderStyle() QTextFrameFormat__BorderStyle {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextFrameFormat__BorderStyle)(C.QTextTableCellFormat_BottomBorderStyle(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) SetLeftBorderStyle(style QTextFrameFormat__BorderStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextTableCellFormat_SetLeftBorderStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) LeftBorderStyle() QTextFrameFormat__BorderStyle {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextFrameFormat__BorderStyle)(C.QTextTableCellFormat_LeftBorderStyle(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) SetRightBorderStyle(style QTextFrameFormat__BorderStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextTableCellFormat_SetRightBorderStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) RightBorderStyle() QTextFrameFormat__BorderStyle {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTextFrameFormat__BorderStyle)(C.QTextTableCellFormat_RightBorderStyle(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextTableCellFormat) SetBorderStyle(style QTextFrameFormat__BorderStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QTextTableCellFormat_SetBorderStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextTableCellFormat) SetTopBorderBrush(brush *QBrush) {
|
|
|
|
C.QTextTableCellFormat_SetTopBorderBrush(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) TopBorderBrush() *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextTableCellFormat_TopBorderBrush(this.h)
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetBottomBorderBrush(brush *QBrush) {
|
|
|
|
C.QTextTableCellFormat_SetBottomBorderBrush(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) BottomBorderBrush() *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextTableCellFormat_BottomBorderBrush(this.h)
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetLeftBorderBrush(brush *QBrush) {
|
|
|
|
C.QTextTableCellFormat_SetLeftBorderBrush(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) LeftBorderBrush() *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextTableCellFormat_LeftBorderBrush(this.h)
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetRightBorderBrush(brush *QBrush) {
|
|
|
|
C.QTextTableCellFormat_SetRightBorderBrush(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) RightBorderBrush() *QBrush {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextTableCellFormat_RightBorderBrush(this.h)
|
|
|
|
_goptr := newQBrush(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextTableCellFormat) SetBorderBrush(brush *QBrush) {
|
|
|
|
C.QTextTableCellFormat_SetBorderBrush(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextTableCellFormat) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTextTableCellFormat_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTextTableCellFormat) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextTableCellFormat) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|