cutego/gui/qaccessibletablecellinterface.go

124 lines
3.3 KiB
Go
Raw Normal View History

2015-10-24 18:18:24 +03:00
package gui
//#include "gui.h"
2015-10-24 18:18:24 +03:00
import "C"
import (
"github.com/therecipe/qt"
2015-10-24 18:18:24 +03:00
"unsafe"
)
type QAccessibleTableCellInterface struct {
ptr unsafe.Pointer
}
2015-11-09 20:23:42 +03:00
type QAccessibleTableCellInterface_ITF interface {
QAccessibleTableCellInterface_PTR() *QAccessibleTableCellInterface
2015-10-24 18:18:24 +03:00
}
func (p *QAccessibleTableCellInterface) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QAccessibleTableCellInterface) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
2015-11-09 20:23:42 +03:00
func PointerFromQAccessibleTableCellInterface(ptr QAccessibleTableCellInterface_ITF) unsafe.Pointer {
2015-10-24 18:18:24 +03:00
if ptr != nil {
2015-11-09 20:23:42 +03:00
return ptr.QAccessibleTableCellInterface_PTR().Pointer()
2015-10-24 18:18:24 +03:00
}
return nil
}
2015-11-09 20:23:42 +03:00
func NewQAccessibleTableCellInterfaceFromPointer(ptr unsafe.Pointer) *QAccessibleTableCellInterface {
2015-10-24 18:18:24 +03:00
var n = new(QAccessibleTableCellInterface)
n.SetPointer(ptr)
for len(n.ObjectNameAbs()) < len("QAccessibleTableCellInterface_") {
n.SetObjectNameAbs("QAccessibleTableCellInterface_" + qt.Identifier())
}
2015-10-24 18:18:24 +03:00
return n
}
2015-11-09 20:23:42 +03:00
func (ptr *QAccessibleTableCellInterface) QAccessibleTableCellInterface_PTR() *QAccessibleTableCellInterface {
2015-10-24 18:18:24 +03:00
return ptr
}
func (ptr *QAccessibleTableCellInterface) ColumnExtent() int {
defer qt.Recovering("QAccessibleTableCellInterface::columnExtent")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return int(C.QAccessibleTableCellInterface_ColumnExtent(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QAccessibleTableCellInterface) ColumnIndex() int {
defer qt.Recovering("QAccessibleTableCellInterface::columnIndex")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return int(C.QAccessibleTableCellInterface_ColumnIndex(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QAccessibleTableCellInterface) IsSelected() bool {
defer qt.Recovering("QAccessibleTableCellInterface::isSelected")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return C.QAccessibleTableCellInterface_IsSelected(ptr.Pointer()) != 0
2015-10-24 18:18:24 +03:00
}
return false
}
func (ptr *QAccessibleTableCellInterface) RowExtent() int {
defer qt.Recovering("QAccessibleTableCellInterface::rowExtent")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return int(C.QAccessibleTableCellInterface_RowExtent(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QAccessibleTableCellInterface) RowIndex() int {
defer qt.Recovering("QAccessibleTableCellInterface::rowIndex")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return int(C.QAccessibleTableCellInterface_RowIndex(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QAccessibleTableCellInterface) Table() *QAccessibleInterface {
defer qt.Recovering("QAccessibleTableCellInterface::table")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return NewQAccessibleInterfaceFromPointer(C.QAccessibleTableCellInterface_Table(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return nil
}
func (ptr *QAccessibleTableCellInterface) DestroyQAccessibleTableCellInterface() {
defer qt.Recovering("QAccessibleTableCellInterface::~QAccessibleTableCellInterface")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QAccessibleTableCellInterface_DestroyQAccessibleTableCellInterface(ptr.Pointer())
2015-10-24 18:18:24 +03:00
}
}
func (ptr *QAccessibleTableCellInterface) ObjectNameAbs() string {
defer qt.Recovering("QAccessibleTableCellInterface::objectNameAbs")
if ptr.Pointer() != nil {
return C.GoString(C.QAccessibleTableCellInterface_ObjectNameAbs(ptr.Pointer()))
}
return ""
}
func (ptr *QAccessibleTableCellInterface) SetObjectNameAbs(name string) {
defer qt.Recovering("QAccessibleTableCellInterface::setObjectNameAbs")
if ptr.Pointer() != nil {
C.QAccessibleTableCellInterface_SetObjectNameAbs(ptr.Pointer(), C.CString(name))
}
}