cutego/gui/qtexttablecellformat.go

126 lines
3.1 KiB
Go
Executable file

package gui
//#include "gui.h"
import "C"
import (
"github.com/therecipe/qt"
"unsafe"
)
type QTextTableCellFormat struct {
QTextCharFormat
}
type QTextTableCellFormat_ITF interface {
QTextCharFormat_ITF
QTextTableCellFormat_PTR() *QTextTableCellFormat
}
func PointerFromQTextTableCellFormat(ptr QTextTableCellFormat_ITF) unsafe.Pointer {
if ptr != nil {
return ptr.QTextTableCellFormat_PTR().Pointer()
}
return nil
}
func NewQTextTableCellFormatFromPointer(ptr unsafe.Pointer) *QTextTableCellFormat {
var n = new(QTextTableCellFormat)
n.SetPointer(ptr)
return n
}
func (ptr *QTextTableCellFormat) QTextTableCellFormat_PTR() *QTextTableCellFormat {
return ptr
}
func NewQTextTableCellFormat() *QTextTableCellFormat {
defer qt.Recovering("QTextTableCellFormat::QTextTableCellFormat")
return NewQTextTableCellFormatFromPointer(C.QTextTableCellFormat_NewQTextTableCellFormat())
}
func (ptr *QTextTableCellFormat) BottomPadding() float64 {
defer qt.Recovering("QTextTableCellFormat::bottomPadding")
if ptr.Pointer() != nil {
return float64(C.QTextTableCellFormat_BottomPadding(ptr.Pointer()))
}
return 0
}
func (ptr *QTextTableCellFormat) IsValid() bool {
defer qt.Recovering("QTextTableCellFormat::isValid")
if ptr.Pointer() != nil {
return C.QTextTableCellFormat_IsValid(ptr.Pointer()) != 0
}
return false
}
func (ptr *QTextTableCellFormat) LeftPadding() float64 {
defer qt.Recovering("QTextTableCellFormat::leftPadding")
if ptr.Pointer() != nil {
return float64(C.QTextTableCellFormat_LeftPadding(ptr.Pointer()))
}
return 0
}
func (ptr *QTextTableCellFormat) RightPadding() float64 {
defer qt.Recovering("QTextTableCellFormat::rightPadding")
if ptr.Pointer() != nil {
return float64(C.QTextTableCellFormat_RightPadding(ptr.Pointer()))
}
return 0
}
func (ptr *QTextTableCellFormat) SetBottomPadding(padding float64) {
defer qt.Recovering("QTextTableCellFormat::setBottomPadding")
if ptr.Pointer() != nil {
C.QTextTableCellFormat_SetBottomPadding(ptr.Pointer(), C.double(padding))
}
}
func (ptr *QTextTableCellFormat) SetLeftPadding(padding float64) {
defer qt.Recovering("QTextTableCellFormat::setLeftPadding")
if ptr.Pointer() != nil {
C.QTextTableCellFormat_SetLeftPadding(ptr.Pointer(), C.double(padding))
}
}
func (ptr *QTextTableCellFormat) SetPadding(padding float64) {
defer qt.Recovering("QTextTableCellFormat::setPadding")
if ptr.Pointer() != nil {
C.QTextTableCellFormat_SetPadding(ptr.Pointer(), C.double(padding))
}
}
func (ptr *QTextTableCellFormat) SetRightPadding(padding float64) {
defer qt.Recovering("QTextTableCellFormat::setRightPadding")
if ptr.Pointer() != nil {
C.QTextTableCellFormat_SetRightPadding(ptr.Pointer(), C.double(padding))
}
}
func (ptr *QTextTableCellFormat) SetTopPadding(padding float64) {
defer qt.Recovering("QTextTableCellFormat::setTopPadding")
if ptr.Pointer() != nil {
C.QTextTableCellFormat_SetTopPadding(ptr.Pointer(), C.double(padding))
}
}
func (ptr *QTextTableCellFormat) TopPadding() float64 {
defer qt.Recovering("QTextTableCellFormat::topPadding")
if ptr.Pointer() != nil {
return float64(C.QTextTableCellFormat_TopPadding(ptr.Pointer()))
}
return 0
}