miqt/qt/gen_qwindow.go

1058 lines
30 KiB
Go
Raw Normal View History

package qt
/*
#include "gen_qwindow.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"runtime/cgo"
"unsafe"
)
2024-09-04 06:54:22 +00:00
type QWindow__Visibility int
const (
2024-09-20 07:13:26 +00:00
QWindow__Hidden QWindow__Visibility = 0
QWindow__AutomaticVisibility QWindow__Visibility = 1
QWindow__Windowed QWindow__Visibility = 2
QWindow__Minimized QWindow__Visibility = 3
QWindow__Maximized QWindow__Visibility = 4
QWindow__FullScreen QWindow__Visibility = 5
2024-09-04 06:54:22 +00:00
)
type QWindow__AncestorMode int
const (
2024-09-20 07:13:26 +00:00
QWindow__ExcludeTransients QWindow__AncestorMode = 0
QWindow__IncludeTransients QWindow__AncestorMode = 1
2024-09-04 06:54:22 +00:00
)
type QWindow struct {
h *C.QWindow
*QObject
*QSurface
}
func (this *QWindow) cPointer() *C.QWindow {
if this == nil {
return nil
}
return this.h
}
func (this *QWindow) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQWindow(h *C.QWindow) *QWindow {
2024-09-01 02:23:55 +00:00
if h == nil {
return nil
}
return &QWindow{h: h, QObject: UnsafeNewQObject(unsafe.Pointer(h)), QSurface: UnsafeNewQSurface(unsafe.Pointer(h))}
}
func UnsafeNewQWindow(h unsafe.Pointer) *QWindow {
return newQWindow((*C.QWindow)(h))
}
// NewQWindow constructs a new QWindow object.
func NewQWindow() *QWindow {
ret := C.QWindow_new()
return newQWindow(ret)
}
// NewQWindow2 constructs a new QWindow object.
func NewQWindow2(parent *QWindow) *QWindow {
ret := C.QWindow_new2(parent.cPointer())
return newQWindow(ret)
}
// NewQWindow3 constructs a new QWindow object.
func NewQWindow3(screen *QScreen) *QWindow {
ret := C.QWindow_new3(screen.cPointer())
return newQWindow(ret)
}
func (this *QWindow) MetaObject() *QMetaObject {
return UnsafeNewQMetaObject(unsafe.Pointer(C.QWindow_MetaObject(this.h)))
}
func (this *QWindow) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return (unsafe.Pointer)(C.QWindow_Metacast(this.h, param1_Cstring))
}
func QWindow_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QWindow_Tr(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWindow_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QWindow_TrUtf8(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) SetSurfaceType(surfaceType QSurface__SurfaceType) {
C.QWindow_SetSurfaceType(this.h, (C.int)(surfaceType))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) SurfaceType() QSurface__SurfaceType {
return (QSurface__SurfaceType)(C.QWindow_SurfaceType(this.h))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) IsVisible() bool {
return (bool)(C.QWindow_IsVisible(this.h))
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) Visibility() QWindow__Visibility {
return (QWindow__Visibility)(C.QWindow_Visibility(this.h))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) SetVisibility(v QWindow__Visibility) {
C.QWindow_SetVisibility(this.h, (C.int)(v))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) Create() {
C.QWindow_Create(this.h)
}
func (this *QWindow) WinId() uintptr {
return (uintptr)(C.QWindow_WinId(this.h))
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) Parent(mode QWindow__AncestorMode) *QWindow {
return UnsafeNewQWindow(unsafe.Pointer(C.QWindow_Parent(this.h, (C.int)(mode))))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) Parent2() *QWindow {
return UnsafeNewQWindow(unsafe.Pointer(C.QWindow_Parent2(this.h)))
}
func (this *QWindow) SetParent(parent *QWindow) {
C.QWindow_SetParent(this.h, parent.cPointer())
}
func (this *QWindow) IsTopLevel() bool {
return (bool)(C.QWindow_IsTopLevel(this.h))
}
func (this *QWindow) IsModal() bool {
return (bool)(C.QWindow_IsModal(this.h))
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) Modality() WindowModality {
return (WindowModality)(C.QWindow_Modality(this.h))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) SetModality(modality WindowModality) {
C.QWindow_SetModality(this.h, (C.int)(modality))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) SetFormat(format *QSurfaceFormat) {
C.QWindow_SetFormat(this.h, format.cPointer())
}
func (this *QWindow) Format() *QSurfaceFormat {
_ret := C.QWindow_Format(this.h)
_goptr := newQSurfaceFormat(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) RequestedFormat() *QSurfaceFormat {
_ret := C.QWindow_RequestedFormat(this.h)
_goptr := newQSurfaceFormat(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) SetFlags(flags WindowType) {
C.QWindow_SetFlags(this.h, (C.int)(flags))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) Flags() WindowType {
return (WindowType)(C.QWindow_Flags(this.h))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) SetFlag(param1 WindowType) {
C.QWindow_SetFlag(this.h, (C.int)(param1))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) Type() WindowType {
return (WindowType)(C.QWindow_Type(this.h))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) Title() string {
var _ms C.struct_miqt_string = C.QWindow_Title(this.h)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWindow) SetOpacity(level float64) {
C.QWindow_SetOpacity(this.h, (C.double)(level))
}
func (this *QWindow) Opacity() float64 {
return (float64)(C.QWindow_Opacity(this.h))
}
func (this *QWindow) SetMask(region *QRegion) {
C.QWindow_SetMask(this.h, region.cPointer())
}
func (this *QWindow) Mask() *QRegion {
_ret := C.QWindow_Mask(this.h)
_goptr := newQRegion(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) IsActive() bool {
return (bool)(C.QWindow_IsActive(this.h))
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) ReportContentOrientationChange(orientation ScreenOrientation) {
C.QWindow_ReportContentOrientationChange(this.h, (C.int)(orientation))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) ContentOrientation() ScreenOrientation {
return (ScreenOrientation)(C.QWindow_ContentOrientation(this.h))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) DevicePixelRatio() float64 {
return (float64)(C.QWindow_DevicePixelRatio(this.h))
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) WindowState() WindowState {
return (WindowState)(C.QWindow_WindowState(this.h))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) WindowStates() WindowState {
return (WindowState)(C.QWindow_WindowStates(this.h))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) SetWindowState(state WindowState) {
C.QWindow_SetWindowState(this.h, (C.int)(state))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) SetWindowStates(states WindowState) {
C.QWindow_SetWindowStates(this.h, (C.int)(states))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) SetTransientParent(parent *QWindow) {
C.QWindow_SetTransientParent(this.h, parent.cPointer())
}
func (this *QWindow) TransientParent() *QWindow {
return UnsafeNewQWindow(unsafe.Pointer(C.QWindow_TransientParent(this.h)))
}
2024-08-29 07:01:51 +00:00
func (this *QWindow) IsAncestorOf(child *QWindow) bool {
return (bool)(C.QWindow_IsAncestorOf(this.h, child.cPointer()))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) IsExposed() bool {
return (bool)(C.QWindow_IsExposed(this.h))
}
func (this *QWindow) MinimumWidth() int {
return (int)(C.QWindow_MinimumWidth(this.h))
}
func (this *QWindow) MinimumHeight() int {
return (int)(C.QWindow_MinimumHeight(this.h))
}
func (this *QWindow) MaximumWidth() int {
return (int)(C.QWindow_MaximumWidth(this.h))
}
func (this *QWindow) MaximumHeight() int {
return (int)(C.QWindow_MaximumHeight(this.h))
}
func (this *QWindow) MinimumSize() *QSize {
_ret := C.QWindow_MinimumSize(this.h)
_goptr := newQSize(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) MaximumSize() *QSize {
_ret := C.QWindow_MaximumSize(this.h)
_goptr := newQSize(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) BaseSize() *QSize {
_ret := C.QWindow_BaseSize(this.h)
_goptr := newQSize(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) SizeIncrement() *QSize {
_ret := C.QWindow_SizeIncrement(this.h)
_goptr := newQSize(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) SetMinimumSize(size *QSize) {
C.QWindow_SetMinimumSize(this.h, size.cPointer())
}
func (this *QWindow) SetMaximumSize(size *QSize) {
C.QWindow_SetMaximumSize(this.h, size.cPointer())
}
func (this *QWindow) SetBaseSize(size *QSize) {
C.QWindow_SetBaseSize(this.h, size.cPointer())
}
func (this *QWindow) SetSizeIncrement(size *QSize) {
C.QWindow_SetSizeIncrement(this.h, size.cPointer())
}
func (this *QWindow) Geometry() *QRect {
_ret := C.QWindow_Geometry(this.h)
_goptr := newQRect(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) FrameMargins() *QMargins {
_ret := C.QWindow_FrameMargins(this.h)
_goptr := newQMargins(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) FrameGeometry() *QRect {
_ret := C.QWindow_FrameGeometry(this.h)
_goptr := newQRect(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) FramePosition() *QPoint {
_ret := C.QWindow_FramePosition(this.h)
_goptr := newQPoint(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) SetFramePosition(point *QPoint) {
C.QWindow_SetFramePosition(this.h, point.cPointer())
}
func (this *QWindow) Width() int {
return (int)(C.QWindow_Width(this.h))
}
func (this *QWindow) Height() int {
return (int)(C.QWindow_Height(this.h))
}
func (this *QWindow) X() int {
return (int)(C.QWindow_X(this.h))
}
func (this *QWindow) Y() int {
return (int)(C.QWindow_Y(this.h))
}
func (this *QWindow) Size() *QSize {
_ret := C.QWindow_Size(this.h)
_goptr := newQSize(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) Position() *QPoint {
_ret := C.QWindow_Position(this.h)
_goptr := newQPoint(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) SetPosition(pt *QPoint) {
C.QWindow_SetPosition(this.h, pt.cPointer())
}
func (this *QWindow) SetPosition2(posx int, posy int) {
C.QWindow_SetPosition2(this.h, (C.int)(posx), (C.int)(posy))
}
func (this *QWindow) Resize(newSize *QSize) {
C.QWindow_Resize(this.h, newSize.cPointer())
}
func (this *QWindow) Resize2(w int, h int) {
C.QWindow_Resize2(this.h, (C.int)(w), (C.int)(h))
}
func (this *QWindow) SetFilePath(filePath string) {
filePath_ms := C.struct_miqt_string{}
filePath_ms.data = C.CString(filePath)
filePath_ms.len = C.size_t(len(filePath))
defer C.free(unsafe.Pointer(filePath_ms.data))
C.QWindow_SetFilePath(this.h, filePath_ms)
}
func (this *QWindow) FilePath() string {
var _ms C.struct_miqt_string = C.QWindow_FilePath(this.h)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWindow) SetIcon(icon *QIcon) {
C.QWindow_SetIcon(this.h, icon.cPointer())
}
func (this *QWindow) Icon() *QIcon {
_ret := C.QWindow_Icon(this.h)
_goptr := newQIcon(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) Destroy() {
C.QWindow_Destroy(this.h)
}
func (this *QWindow) SetKeyboardGrabEnabled(grab bool) bool {
return (bool)(C.QWindow_SetKeyboardGrabEnabled(this.h, (C.bool)(grab)))
}
func (this *QWindow) SetMouseGrabEnabled(grab bool) bool {
return (bool)(C.QWindow_SetMouseGrabEnabled(this.h, (C.bool)(grab)))
}
func (this *QWindow) Screen() *QScreen {
return UnsafeNewQScreen(unsafe.Pointer(C.QWindow_Screen(this.h)))
}
func (this *QWindow) SetScreen(screen *QScreen) {
C.QWindow_SetScreen(this.h, screen.cPointer())
}
func (this *QWindow) AccessibleRoot() *QAccessibleInterface {
return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QWindow_AccessibleRoot(this.h)))
}
func (this *QWindow) FocusObject() *QObject {
return UnsafeNewQObject(unsafe.Pointer(C.QWindow_FocusObject(this.h)))
}
func (this *QWindow) MapToGlobal(pos *QPoint) *QPoint {
_ret := C.QWindow_MapToGlobal(this.h, pos.cPointer())
_goptr := newQPoint(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) MapFromGlobal(pos *QPoint) *QPoint {
_ret := C.QWindow_MapFromGlobal(this.h, pos.cPointer())
_goptr := newQPoint(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) Cursor() *QCursor {
_ret := C.QWindow_Cursor(this.h)
_goptr := newQCursor(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWindow) SetCursor(cursor *QCursor) {
C.QWindow_SetCursor(this.h, cursor.cPointer())
}
func (this *QWindow) UnsetCursor() {
C.QWindow_UnsetCursor(this.h)
}
func QWindow_FromWinId(id uintptr) *QWindow {
return UnsafeNewQWindow(unsafe.Pointer(C.QWindow_FromWinId((C.uintptr_t)(id))))
}
func (this *QWindow) RequestActivate() {
C.QWindow_RequestActivate(this.h)
}
func (this *QWindow) SetVisible(visible bool) {
C.QWindow_SetVisible(this.h, (C.bool)(visible))
}
func (this *QWindow) Show() {
C.QWindow_Show(this.h)
}
func (this *QWindow) Hide() {
C.QWindow_Hide(this.h)
}
func (this *QWindow) ShowMinimized() {
C.QWindow_ShowMinimized(this.h)
}
func (this *QWindow) ShowMaximized() {
C.QWindow_ShowMaximized(this.h)
}
func (this *QWindow) ShowFullScreen() {
C.QWindow_ShowFullScreen(this.h)
}
func (this *QWindow) ShowNormal() {
C.QWindow_ShowNormal(this.h)
}
func (this *QWindow) Close() bool {
return (bool)(C.QWindow_Close(this.h))
}
func (this *QWindow) Raise() {
C.QWindow_Raise(this.h)
}
func (this *QWindow) Lower() {
C.QWindow_Lower(this.h)
}
func (this *QWindow) StartSystemResize(edges Edge) bool {
return (bool)(C.QWindow_StartSystemResize(this.h, (C.int)(edges)))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) StartSystemMove() bool {
return (bool)(C.QWindow_StartSystemMove(this.h))
}
func (this *QWindow) SetTitle(title string) {
title_ms := C.struct_miqt_string{}
title_ms.data = C.CString(title)
title_ms.len = C.size_t(len(title))
defer C.free(unsafe.Pointer(title_ms.data))
C.QWindow_SetTitle(this.h, title_ms)
}
func (this *QWindow) SetX(arg int) {
C.QWindow_SetX(this.h, (C.int)(arg))
}
func (this *QWindow) SetY(arg int) {
C.QWindow_SetY(this.h, (C.int)(arg))
}
func (this *QWindow) SetWidth(arg int) {
C.QWindow_SetWidth(this.h, (C.int)(arg))
}
func (this *QWindow) SetHeight(arg int) {
C.QWindow_SetHeight(this.h, (C.int)(arg))
}
func (this *QWindow) SetGeometry(posx int, posy int, w int, h int) {
C.QWindow_SetGeometry(this.h, (C.int)(posx), (C.int)(posy), (C.int)(w), (C.int)(h))
}
func (this *QWindow) SetGeometryWithRect(rect *QRect) {
C.QWindow_SetGeometryWithRect(this.h, rect.cPointer())
}
func (this *QWindow) SetMinimumWidth(w int) {
C.QWindow_SetMinimumWidth(this.h, (C.int)(w))
}
func (this *QWindow) SetMinimumHeight(h int) {
C.QWindow_SetMinimumHeight(this.h, (C.int)(h))
}
func (this *QWindow) SetMaximumWidth(w int) {
C.QWindow_SetMaximumWidth(this.h, (C.int)(w))
}
func (this *QWindow) SetMaximumHeight(h int) {
C.QWindow_SetMaximumHeight(this.h, (C.int)(h))
}
func (this *QWindow) Alert(msec int) {
C.QWindow_Alert(this.h, (C.int)(msec))
}
func (this *QWindow) RequestUpdate() {
C.QWindow_RequestUpdate(this.h)
}
func (this *QWindow) ScreenChanged(screen *QScreen) {
C.QWindow_ScreenChanged(this.h, screen.cPointer())
}
func (this *QWindow) OnScreenChanged(slot func(screen *QScreen)) {
C.QWindow_connect_ScreenChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_ScreenChanged
func miqt_exec_callback_QWindow_ScreenChanged(cb C.intptr_t, screen *C.QScreen) {
gofunc, ok := cgo.Handle(cb).Value().(func(screen *QScreen))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQScreen(unsafe.Pointer(screen))
gofunc(slotval1)
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) ModalityChanged(modality WindowModality) {
C.QWindow_ModalityChanged(this.h, (C.int)(modality))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) OnModalityChanged(slot func(modality WindowModality)) {
C.QWindow_connect_ModalityChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
2024-08-29 07:01:51 +00:00
//export miqt_exec_callback_QWindow_ModalityChanged
func miqt_exec_callback_QWindow_ModalityChanged(cb C.intptr_t, modality C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(modality WindowModality))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-08-29 07:01:51 +00:00
}
// Convert all CABI parameters to Go parameters
slotval1 := (WindowModality)(modality)
gofunc(slotval1)
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) WindowStateChanged(windowState WindowState) {
C.QWindow_WindowStateChanged(this.h, (C.int)(windowState))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) OnWindowStateChanged(slot func(windowState WindowState)) {
C.QWindow_connect_WindowStateChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
2024-08-29 07:01:51 +00:00
//export miqt_exec_callback_QWindow_WindowStateChanged
func miqt_exec_callback_QWindow_WindowStateChanged(cb C.intptr_t, windowState C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(windowState WindowState))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-08-29 07:01:51 +00:00
}
// Convert all CABI parameters to Go parameters
slotval1 := (WindowState)(windowState)
gofunc(slotval1)
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) WindowTitleChanged(title string) {
title_ms := C.struct_miqt_string{}
title_ms.data = C.CString(title)
title_ms.len = C.size_t(len(title))
defer C.free(unsafe.Pointer(title_ms.data))
C.QWindow_WindowTitleChanged(this.h, title_ms)
}
func (this *QWindow) OnWindowTitleChanged(slot func(title string)) {
C.QWindow_connect_WindowTitleChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_WindowTitleChanged
func miqt_exec_callback_QWindow_WindowTitleChanged(cb C.intptr_t, title C.struct_miqt_string) {
gofunc, ok := cgo.Handle(cb).Value().(func(title string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var title_ms C.struct_miqt_string = title
title_ret := C.GoStringN(title_ms.data, C.int(int64(title_ms.len)))
C.free(unsafe.Pointer(title_ms.data))
slotval1 := title_ret
gofunc(slotval1)
}
func (this *QWindow) XChanged(arg int) {
C.QWindow_XChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnXChanged(slot func(arg int)) {
C.QWindow_connect_XChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_XChanged
func miqt_exec_callback_QWindow_XChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) YChanged(arg int) {
C.QWindow_YChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnYChanged(slot func(arg int)) {
C.QWindow_connect_YChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_YChanged
func miqt_exec_callback_QWindow_YChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) WidthChanged(arg int) {
C.QWindow_WidthChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnWidthChanged(slot func(arg int)) {
C.QWindow_connect_WidthChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_WidthChanged
func miqt_exec_callback_QWindow_WidthChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) HeightChanged(arg int) {
C.QWindow_HeightChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnHeightChanged(slot func(arg int)) {
C.QWindow_connect_HeightChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_HeightChanged
func miqt_exec_callback_QWindow_HeightChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) MinimumWidthChanged(arg int) {
C.QWindow_MinimumWidthChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnMinimumWidthChanged(slot func(arg int)) {
C.QWindow_connect_MinimumWidthChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_MinimumWidthChanged
func miqt_exec_callback_QWindow_MinimumWidthChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) MinimumHeightChanged(arg int) {
C.QWindow_MinimumHeightChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnMinimumHeightChanged(slot func(arg int)) {
C.QWindow_connect_MinimumHeightChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_MinimumHeightChanged
func miqt_exec_callback_QWindow_MinimumHeightChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) MaximumWidthChanged(arg int) {
C.QWindow_MaximumWidthChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnMaximumWidthChanged(slot func(arg int)) {
C.QWindow_connect_MaximumWidthChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_MaximumWidthChanged
func miqt_exec_callback_QWindow_MaximumWidthChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) MaximumHeightChanged(arg int) {
C.QWindow_MaximumHeightChanged(this.h, (C.int)(arg))
}
func (this *QWindow) OnMaximumHeightChanged(slot func(arg int)) {
C.QWindow_connect_MaximumHeightChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_MaximumHeightChanged
func miqt_exec_callback_QWindow_MaximumHeightChanged(cb C.intptr_t, arg C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(arg)
gofunc(slotval1)
}
func (this *QWindow) VisibleChanged(arg bool) {
C.QWindow_VisibleChanged(this.h, (C.bool)(arg))
}
func (this *QWindow) OnVisibleChanged(slot func(arg bool)) {
C.QWindow_connect_VisibleChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_VisibleChanged
func miqt_exec_callback_QWindow_VisibleChanged(cb C.intptr_t, arg C.bool) {
gofunc, ok := cgo.Handle(cb).Value().(func(arg bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(arg)
gofunc(slotval1)
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) VisibilityChanged(visibility QWindow__Visibility) {
C.QWindow_VisibilityChanged(this.h, (C.int)(visibility))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) OnVisibilityChanged(slot func(visibility QWindow__Visibility)) {
C.QWindow_connect_VisibilityChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
2024-08-29 07:01:51 +00:00
//export miqt_exec_callback_QWindow_VisibilityChanged
func miqt_exec_callback_QWindow_VisibilityChanged(cb C.intptr_t, visibility C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(visibility QWindow__Visibility))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-08-29 07:01:51 +00:00
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWindow__Visibility)(visibility)
gofunc(slotval1)
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) ActiveChanged() {
C.QWindow_ActiveChanged(this.h)
}
func (this *QWindow) OnActiveChanged(slot func()) {
C.QWindow_connect_ActiveChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_ActiveChanged
func miqt_exec_callback_QWindow_ActiveChanged(cb C.intptr_t) {
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) ContentOrientationChanged(orientation ScreenOrientation) {
C.QWindow_ContentOrientationChanged(this.h, (C.int)(orientation))
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) OnContentOrientationChanged(slot func(orientation ScreenOrientation)) {
C.QWindow_connect_ContentOrientationChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
2024-08-29 07:01:51 +00:00
//export miqt_exec_callback_QWindow_ContentOrientationChanged
func miqt_exec_callback_QWindow_ContentOrientationChanged(cb C.intptr_t, orientation C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(orientation ScreenOrientation))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-08-29 07:01:51 +00:00
}
// Convert all CABI parameters to Go parameters
slotval1 := (ScreenOrientation)(orientation)
gofunc(slotval1)
2024-08-29 07:01:51 +00:00
}
func (this *QWindow) FocusObjectChanged(object *QObject) {
C.QWindow_FocusObjectChanged(this.h, object.cPointer())
}
func (this *QWindow) OnFocusObjectChanged(slot func(object *QObject)) {
C.QWindow_connect_FocusObjectChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_FocusObjectChanged
func miqt_exec_callback_QWindow_FocusObjectChanged(cb C.intptr_t, object *C.QObject) {
gofunc, ok := cgo.Handle(cb).Value().(func(object *QObject))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQObject(unsafe.Pointer(object))
gofunc(slotval1)
}
func (this *QWindow) OpacityChanged(opacity float64) {
C.QWindow_OpacityChanged(this.h, (C.double)(opacity))
}
func (this *QWindow) OnOpacityChanged(slot func(opacity float64)) {
C.QWindow_connect_OpacityChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_OpacityChanged
func miqt_exec_callback_QWindow_OpacityChanged(cb C.intptr_t, opacity C.double) {
gofunc, ok := cgo.Handle(cb).Value().(func(opacity float64))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (float64)(opacity)
gofunc(slotval1)
}
func (this *QWindow) TransientParentChanged(transientParent *QWindow) {
C.QWindow_TransientParentChanged(this.h, transientParent.cPointer())
}
func (this *QWindow) OnTransientParentChanged(slot func(transientParent *QWindow)) {
C.QWindow_connect_TransientParentChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QWindow_TransientParentChanged
func miqt_exec_callback_QWindow_TransientParentChanged(cb C.intptr_t, transientParent *C.QWindow) {
gofunc, ok := cgo.Handle(cb).Value().(func(transientParent *QWindow))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQWindow(unsafe.Pointer(transientParent))
gofunc(slotval1)
}
func QWindow_Tr2(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QWindow_Tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWindow_Tr3(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QWindow_Tr3(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWindow_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QWindow_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWindow_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QWindow_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) SetFlag2(param1 WindowType, on bool) {
C.QWindow_SetFlag2(this.h, (C.int)(param1), (C.bool)(on))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QWindow) IsAncestorOf2(child *QWindow, mode QWindow__AncestorMode) bool {
return (bool)(C.QWindow_IsAncestorOf2(this.h, child.cPointer(), (C.int)(mode)))
2024-08-29 07:01:51 +00:00
}
// Delete this object from C++ memory.
func (this *QWindow) Delete() {
C.QWindow_Delete(this.h)
}
// 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 *QWindow) GoGC() {
runtime.SetFinalizer(this, func(this *QWindow) {
this.Delete()
runtime.KeepAlive(this.h)
})
}