/
gdkx11dnd.go
42 lines (33 loc) · 968 Bytes
/
gdkx11dnd.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Code generated by girgen. DO NOT EDIT.
package gdkx11
import (
"unsafe"
externglib "github.com/diamondburned/gotk4/pkg/core/glib"
"github.com/diamondburned/gotk4/pkg/gdk/v3"
)
// #cgo pkg-config: gdk-x11-3.0 gtk+-3.0
// #cgo CFLAGS: -Wno-deprecated-declarations
// #include <gdk/gdkx.h>
// #include <glib-object.h>
import "C"
func init() {
externglib.RegisterGValueMarshalers([]externglib.TypeMarshaler{
{T: externglib.Type(C.gdk_x11_drag_context_get_type()), F: marshalX11DragContexter},
})
}
type X11DragContext struct {
gdk.DragContext
}
func wrapX11DragContext(obj *externglib.Object) *X11DragContext {
return &X11DragContext{
DragContext: gdk.DragContext{
Object: obj,
},
}
}
func marshalX11DragContexter(p uintptr) (interface{}, error) {
val := C.g_value_get_object((*C.GValue)(unsafe.Pointer(p)))
obj := externglib.Take(unsafe.Pointer(val))
return wrapX11DragContext(obj), nil
}
func (*X11DragContext) privateX11DragContext() {}